@getpara/react-native-wallet 1.10.0 → 1.11.0-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/shim.js CHANGED
@@ -8,6 +8,7 @@ import { Buffer } from '@craftzdog/react-native-buffer';
8
8
  import process from 'process';
9
9
  import 'react-native-url-polyfill/auto';
10
10
  import { TextEncoder, TextDecoder } from 'text-encoding';
11
+ import structuredClone from '@ungap/structured-clone';
11
12
  const setupProcessPolyfill = () => {
12
13
  if (typeof globalThis.process === 'undefined') {
13
14
  globalThis.process = process;
@@ -61,8 +62,14 @@ const setupTextEncodingPolyfills = () => {
61
62
  globalThis.TextEncoder = TextEncoder;
62
63
  globalThis.TextDecoder = TextDecoder;
63
64
  };
65
+ const setupStructuredClonePolyfill = () => {
66
+ if (typeof globalThis.structuredClone === 'undefined') {
67
+ globalThis.structuredClone = structuredClone;
68
+ }
69
+ };
64
70
  setupProcessPolyfill();
65
71
  setupBufferPolyfill();
66
72
  setupBase64Polyfills();
67
73
  setupCryptoPolyfills();
68
74
  setupTextEncodingPolyfills();
75
+ setupStructuredClonePolyfill();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpara/react-native-wallet",
3
- "version": "1.10.0",
3
+ "version": "1.11.0-dev.2",
4
4
  "description": "Para Wallet for React Native",
5
5
  "homepage": "https://getpara.com",
6
6
  "author": "Para Team <hello@getpara.com> (https://getpara.com)",
@@ -29,7 +29,8 @@
29
29
  "@sentry/react-native": "^6.7.0",
30
30
  "node-forge": "1.3.1",
31
31
  "react-native-url-polyfill": "2.0.0",
32
- "text-encoding": "0.7.0"
32
+ "text-encoding": "0.7.0",
33
+ "@ungap/structured-clone": "1.3.0"
33
34
  },
34
35
  "devDependencies": {
35
36
  "@craftzdog/react-native-buffer": "6.0.5",
@@ -59,6 +60,5 @@
59
60
  },
60
61
  "publishConfig": {
61
62
  "access": "public"
62
- },
63
- "gitHead": "617cf0aa1307a96ec5e91d39e306e8a0b3b86b82"
63
+ }
64
64
  }
package/src/shim.js CHANGED
@@ -8,6 +8,7 @@ import { Buffer } from '@craftzdog/react-native-buffer';
8
8
  import process from 'process';
9
9
  import 'react-native-url-polyfill/auto';
10
10
  import { TextEncoder, TextDecoder } from 'text-encoding';
11
+ import structuredClone from '@ungap/structured-clone';
11
12
 
12
13
  const setupProcessPolyfill = () => {
13
14
  if (typeof globalThis.process === 'undefined') {
@@ -67,8 +68,15 @@ const setupTextEncodingPolyfills = () => {
67
68
  globalThis.TextDecoder = TextDecoder;
68
69
  };
69
70
 
71
+ const setupStructuredClonePolyfill = () => {
72
+ if (typeof globalThis.structuredClone === 'undefined') {
73
+ globalThis.structuredClone = structuredClone;
74
+ }
75
+ };
76
+
70
77
  setupProcessPolyfill();
71
78
  setupBufferPolyfill();
72
79
  setupBase64Polyfills();
73
80
  setupCryptoPolyfills();
74
81
  setupTextEncodingPolyfills();
82
+ setupStructuredClonePolyfill();