@walletconnect/react-native-compat 2.14.0-canary-e4ee88 → 2.14.0-canary-crypto.0
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +4 -0
- package/package.json +3 -2
package/index.js
CHANGED
@@ -9,6 +9,10 @@ import "react-native-get-random-values";
|
|
9
9
|
// Polyfill URL()
|
10
10
|
import "react-native-url-polyfill/auto";
|
11
11
|
|
12
|
+
import { subtle } from "react-native-quick-crypto";
|
13
|
+
|
14
|
+
global?.crypto?.subtle = subtle;
|
15
|
+
|
12
16
|
// Polyfill Buffer
|
13
17
|
if (typeof Buffer === "undefined") {
|
14
18
|
global.Buffer = require("buffer").Buffer;
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@walletconnect/react-native-compat",
|
3
3
|
"description": "Shims for WalletConnect Protocol in React Native Projects",
|
4
|
-
"version": "2.14.0-canary-
|
4
|
+
"version": "2.14.0-canary-crypto.0",
|
5
5
|
"author": "WalletConnect, Inc. <walletconnect.com>",
|
6
6
|
"homepage": "https://github.com/walletconnect/walletconnect-monorepo/",
|
7
7
|
"license": "Apache-2.0",
|
@@ -38,7 +38,8 @@
|
|
38
38
|
"dependencies": {
|
39
39
|
"events": "3.3.0",
|
40
40
|
"fast-text-encoding": "1.0.6",
|
41
|
-
"react-native-url-polyfill": "2.0.0"
|
41
|
+
"react-native-url-polyfill": "2.0.0",
|
42
|
+
"react-native-quick-crypto": "0.7.3"
|
42
43
|
},
|
43
44
|
"peerDependencies": {
|
44
45
|
"@react-native-async-storage/async-storage": "*",
|