@gurge/sdk-react-native 0.3.80 → 0.3.82

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/bootstrap.cjs CHANGED
@@ -1 +1 @@
1
- const e=require(`./_virtual/_rolldown/runtime.cjs`);require(`react-native-get-random-values`);let t=require(`buffer`),n=require(`react-native`);n=e.__toESM(n),global.Buffer=t.Buffer,globalThis.WebAssembly?.RuntimeError||(globalThis.WebAssembly={RuntimeError:class extends Error{constructor(e){super(e),this.name=`RuntimeError`}},instantiate:()=>Promise.reject(Error(`WebAssembly is not available`))}),globalThis.indexedDB===void 0&&(globalThis.indexedDB={}),global.require===void 0&&(global.require=e=>{if(e===`react-native`)return n;throw Error(`global.require shim: unsupported module "${e}"`)});
1
+ const e=require(`./_virtual/_rolldown/runtime.cjs`);require(`react-native-get-random-values`);let t=require(`buffer`),n=require(`react-native`);n=e.__toESM(n),global.Buffer=t.Buffer,globalThis.indexedDB===void 0&&(globalThis.indexedDB={}),global.require===void 0&&(global.require=e=>{if(e===`react-native`)return n;throw Error(`global.require shim: unsupported module "${e}"`)});
package/bootstrap.mjs CHANGED
@@ -1,14 +1,7 @@
1
1
  import "react-native-get-random-values";
2
2
  import { Buffer as e } from "buffer";
3
3
  import * as t from "react-native";
4
- global.Buffer = e, globalThis.WebAssembly?.RuntimeError || (globalThis.WebAssembly = {
5
- RuntimeError: class extends Error {
6
- constructor(e) {
7
- super(e), this.name = "RuntimeError";
8
- }
9
- },
10
- instantiate: () => Promise.reject(/* @__PURE__ */ Error("WebAssembly is not available"))
11
- }), globalThis.indexedDB === void 0 && (globalThis.indexedDB = {}), global.require === void 0 && (global.require = (e) => {
4
+ global.Buffer = e, globalThis.indexedDB === void 0 && (globalThis.indexedDB = {}), global.require === void 0 && (global.require = (e) => {
12
5
  if (e === "react-native") return t;
13
6
  throw Error(`global.require shim: unsupported module "${e}"`);
14
7
  });
@@ -2,9 +2,9 @@
2
2
  const domain = 'https://storage.googleapis.com/hinkal-workers-staging';
3
3
 
4
4
  const WORKER_CDN_URLS = {
5
- ZKProof: domain + '/0.3.80/' + 'zkProofWorkerLauncher.js',
6
- SnarkJS: domain + '/0.3.80/' + 'snarkjsWorkerLauncher.js',
7
- UTXO: domain + '/0.3.80/' + 'utxoWorkerLauncher.js',
5
+ ZKProof: domain + '/0.3.82/' + 'zkProofWorkerLauncher.js',
6
+ SnarkJS: domain + '/0.3.82/' + 'snarkjsWorkerLauncher.js',
7
+ UTXO: domain + '/0.3.82/' + 'utxoWorkerLauncher.js',
8
8
  };
9
9
 
10
10
  // Returns a blob:// URL which points
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gurge/sdk-react-native",
3
- "version": "0.3.80",
3
+ "version": "0.3.82",
4
4
  "description": "Prebundled Hinkal SDK for React Native — no Metro config required.",
5
5
  "homepage": "hinkal.io",
6
6
  "author": {
package/shims/globals.cjs CHANGED
@@ -7,18 +7,6 @@ if (typeof globalThis.indexedDB === "undefined") {
7
7
  globalThis.indexedDB = {};
8
8
  }
9
9
 
10
- if (!globalThis.WebAssembly?.RuntimeError) {
11
- globalThis.WebAssembly = {
12
- RuntimeError: class RuntimeError extends Error {
13
- constructor(message) {
14
- super(message);
15
- this.name = "RuntimeError";
16
- }
17
- },
18
- instantiate: () => Promise.reject(new Error("WebAssembly is not available")),
19
- };
20
- }
21
-
22
10
  if (typeof global.require === "undefined") {
23
11
  global.require = (m) => {
24
12
  if (m === "react-native") return ReactNative;