Skip to content

Commit

Permalink
fix: wasm compat (#2580)
Browse files Browse the repository at this point in the history
* add another conditional import for exception identifier

* update changelog
  • Loading branch information
buenaflor authored Jan 20, 2025
1 parent 7659cbe commit e503e3c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
- Add SentryReplayQuality setting (`options.experimental.replay.quality`) ([#2582](https://github.com/getsentry/sentry-dart/pull/2582))
- SPM Support ([#2280](https://github.com/getsentry/sentry-dart/pull/2280))

### Fixes

- WASM compat for Drift ([#2580](https://github.com/getsentry/sentry-dart/pull/2580))

### Dependencies

- Bump Native SDK from v0.7.17 to v0.7.18 ([#2578](https://github.com/getsentry/sentry-dart/pull/2578))
Expand Down
8 changes: 5 additions & 3 deletions dart/lib/src/dart_exception_type_identifier.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import 'package:http/http.dart' show ClientException;
import 'dart:async' show TimeoutException, AsyncError, DeferredLoadException;
import '../sentry.dart';

import 'package:http/http.dart' show ClientException;

import '../sentry.dart';
import 'dart_exception_type_identifier_io.dart'
if (dart.library.html) 'dart_exception_type_identifier_web.dart';
if (dart.library.html) 'dart_exception_type_identifier_web.dart'
if (dart.library.js_interop) 'dart_exception_type_identifier_web.dart';

class DartExceptionTypeIdentifier implements ExceptionTypeIdentifier {
@override
Expand Down

0 comments on commit e503e3c

Please sign in to comment.