Skip to content

Commit

Permalink
switch to logger/web.dart for wasm compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
d-markey committed Sep 22, 2024
1 parent 4b0552f commit 2cbf3d5
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion lib/src/_impl/web/_channel.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'dart:async';
import 'dart:js_interop';

import 'package:logger/logger.dart';
import 'package:logger/web.dart';
import 'package:web/web.dart' as web;

import '../../channel.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/src/_impl/web/_worker_channel.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'dart:async';
import 'dart:js_interop';

import 'package:logger/logger.dart';
import 'package:logger/web.dart';
import 'package:meta/meta.dart';
import 'package:web/web.dart' as web;

Expand Down
2 changes: 1 addition & 1 deletion lib/src/_impl/xplat/_channel.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'dart:async';

import 'package:logger/logger.dart';
import 'package:logger/web.dart';

import '../../channel.dart';
import '../../exceptions/exception_manager.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/src/_impl/xplat/_disconnected_channel.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'dart:async';

import 'package:logger/logger.dart';
import 'package:logger/web.dart';
import 'package:meta/meta.dart';

import '../../channel.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/src/_impl/xplat/_internal_logger.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:logger/logger.dart';
import 'package:logger/web.dart';

class InternalLogger extends Logger {
InternalLogger()
Expand Down
2 changes: 1 addition & 1 deletion lib/src/_impl/xplat/_worker_channel.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:logger/logger.dart';
import 'package:logger/web.dart';

import '../../exceptions/squadron_error.dart';
import '../../typedefs.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/src/_impl/xplat/_worker_runner.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'dart:async';
import 'dart:isolate';

import 'package:logger/logger.dart';
import 'package:logger/web.dart';

import '../../exceptions/squadron_error.dart';
import '../../local_worker/local_worker.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/src/channel.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'dart:async';

import 'package:logger/logger.dart';
import 'package:logger/web.dart';

import '_impl/xplat/_channel.dart'
if (dart.library.io) '_impl/native/_channel.dart'
Expand Down
2 changes: 1 addition & 1 deletion lib/src/iworker.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'dart:async';

import 'package:logger/logger.dart';
import 'package:logger/web.dart';
import 'package:using/using.dart';

import 'exceptions/exception_manager.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/src/local_worker/local_worker.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'dart:async';

import 'package:logger/logger.dart';
import 'package:logger/web.dart';
import 'package:using/using.dart';

import '../_impl/xplat/_local_worker.dart'
Expand Down
2 changes: 1 addition & 1 deletion lib/src/pool/worker_pool.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'dart:async';
import 'dart:collection';

import 'package:logger/logger.dart';
import 'package:logger/web.dart';
import 'package:using/using.dart';

import '../concurrency_settings.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/src/worker/worker.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'dart:async';

import 'package:cancelation_token/cancelation_token.dart';
import 'package:logger/logger.dart';
import 'package:logger/web.dart';
import 'package:using/using.dart';

import '../_impl/xplat/_forward_completer.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/src/worker/worker_channel.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'dart:async';

import 'package:logger/logger.dart';
import 'package:logger/web.dart';

import '../_impl/xplat/_worker_channel.dart'
if (dart.library.io) '../_impl/native/_worker_channel.dart'
Expand Down
2 changes: 1 addition & 1 deletion lib/src/worker/worker_response.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'dart:async';

import 'package:logger/logger.dart';
import 'package:logger/web.dart';
import 'package:meta/meta.dart';

import '../_impl/xplat/_time_stamp.dart';
Expand Down

0 comments on commit 2cbf3d5

Please sign in to comment.