@gurge/sdk-react-native 0.3.130 → 0.3.138
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/HinkalProvider.cjs +1 -0
- package/{react-native/HinkalProvider.mjs → HinkalProvider.mjs} +2 -2
- package/{react-native/HinkalWebViewWorker.cjs → HinkalWebViewWorker.cjs} +1 -1
- package/{react-native/HinkalWebViewWorker.mjs → HinkalWebViewWorker.mjs} +5 -5
- package/bridge/HinkalRNWorker.cjs +1 -0
- package/{react-native/bridge → bridge}/HinkalRNWorker.d.ts +1 -1
- package/{react-native/bridge → bridge}/HinkalRNWorker.mjs +1 -1
- package/{react-native/bridge → bridge}/serialization.utils.mjs +1 -1
- package/common/src/crypto/babyJub.cjs +1 -1
- package/common/src/crypto/babyJub.mjs +1 -2
- package/common/src/crypto/eddsa.cjs +1 -1
- package/common/src/crypto/eddsa.mjs +2 -3
- package/common/src/crypto/poseidon.cjs +1 -1
- package/common/src/crypto/poseidon.mjs +2 -3
- package/common/src/functions/utils/index.cjs +1 -1
- package/common/src/functions/utils/index.d.ts +0 -1
- package/common/src/functions/utils/index.mjs +0 -1
- package/common/src/webworker/utxoWorker/utxoWorkerLauncher.ts?worker&url.cjs +1 -1
- package/common/src/webworker/utxoWorker/utxoWorkerLauncher.ts?worker&url.mjs +1 -1
- package/common/src/webworker/viteWorkerURL.constant.mjs +3 -3
- package/common/src/webworker/zkProofWorker/zkProofWorkerLauncher.ts?worker&url.cjs +1 -1
- package/common/src/webworker/zkProofWorker/zkProofWorkerLauncher.ts?worker&url.mjs +1 -1
- package/index.cjs +1 -1
- package/index.d.ts +1 -1
- package/index.mjs +1 -1
- package/package.json +1 -2
- package/scripts/patch-libsodium-for-rn.js +5 -3
- package/shims/circomlibjs-hinkal-fork.mjs +11 -1752
- package/shims/crypto.cjs +1 -1
- package/common/src/functions/utils/bigint-math.utils.cjs +0 -1
- package/common/src/functions/utils/bigint-math.utils.d.ts +0 -2
- package/common/src/functions/utils/bigint-math.utils.mjs +0 -1
- package/react-native/HinkalProvider.cjs +0 -1
- package/react-native/bridge/HinkalRNWorker.cjs +0 -1
- /package/{react-native/HinkalProvider.d.ts → HinkalProvider.d.ts} +0 -0
- /package/{react-native/HinkalWebViewWorker.d.ts → HinkalWebViewWorker.d.ts} +0 -0
- /package/{react-native/bridge → bridge}/serialization.utils.cjs +0 -0
- /package/{react-native/bridge → bridge}/serialization.utils.d.ts +0 -0
package/shims/crypto.cjs
CHANGED
|
@@ -7,7 +7,7 @@ function ensureRng() {
|
|
|
7
7
|
if (!global.crypto || typeof global.crypto.getRandomValues !== 'function') {
|
|
8
8
|
throw new Error(
|
|
9
9
|
'[hinkal-rn] global.crypto.getRandomValues is not available. ' +
|
|
10
|
-
'Import @
|
|
10
|
+
'Import @gurge/sdk-react-native (HinkalProvider) before other SDK code.',
|
|
11
11
|
);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`../../constants/protocol.constants.cjs`);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../../constants/protocol.constants.mjs";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require("../_virtual/_rolldown/runtime.cjs"),require(`../bootstrap.cjs`);const e=require(`./HinkalWebViewWorker.cjs`);let t=require(`react/jsx-runtime`);var n=({children:n})=>(0,t.jsxs)(t.Fragment,{children:[n,(0,t.jsx)(e,{})]});exports.HinkalProvider=n;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require("../../_virtual/_rolldown/runtime.cjs");const e=require(`./serialization.utils.cjs`);let t=require(`react-native`);var n=class{onmessage=null;onerror=null;requestId=e.nextRequestId();subscription;constructor(e){this.variant=e,this.subscription=t.DeviceEventEmitter.addListener(`FROM_WEBVIEW_WORKER`,e=>{!e||e.requestId!==this.requestId||(e.type===`RESULT`?this.onmessage?.({data:e.data}):e.type===`ERROR`&&this.onerror?.(Error(e.error??`WebView worker error`)))})}postMessage(e){t.DeviceEventEmitter.emit(`TO_WEBVIEW_WORKER`,{__requestId:this.requestId,variant:this.variant,message:e})}terminate(){this.subscription?.remove?.(),this.subscription=null}};exports.HinkalRNWorker=n;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|