Skip to content

Commit 018e1dc

Browse files
tyllarkmosuem
andauthored
fix(crypto): update conditional import for js interop library (#915)
Co-authored-by: Moritz <moritz@suemmermann.de>
1 parent 9fefb52 commit 018e1dc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pkgs/crypto/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
- Run `dart format` with the new style.
44
- Performance improvements.
5+
- Updated web conditional import to use `js_interop` to support WebAssembly.
56

67
## 3.0.6
78

pkgs/crypto/lib/src/sha512.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import 'dart:convert';
66

77
import 'digest.dart';
88
import 'hash.dart';
9-
// ignore: uri_does_not_exist
10-
import 'sha512_fastsinks.dart' if (dart.library.js) 'sha512_slowsinks.dart';
9+
import 'sha512_fastsinks.dart'
10+
if (dart.library.js_interop) 'sha512_slowsinks.dart';
1111
import 'utils.dart';
1212

1313
/// An implementation of the [SHA-384][rfc] hash function.

0 commit comments

Comments
 (0)