@gurge/sdk 0.3.42 → 0.3.43

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gurge/sdk",
3
- "version": "0.3.42",
3
+ "version": "0.3.43",
4
4
  "homepage": "hinkal.io",
5
5
  "author": {
6
6
  "name": "Hinkal Protocol"
@@ -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.42/' + 'zkProofWorkerLauncher.js',
6
- SnarkJS: domain + '/0.3.42/' + 'snarkjsWorkerLauncher.js',
7
- UTXO: domain + '/0.3.42/' + 'utxoWorkerLauncher.js',
5
+ ZKProof: domain + '/0.3.43/' + 'zkProofWorkerLauncher.js',
6
+ SnarkJS: domain + '/0.3.43/' + 'snarkjsWorkerLauncher.js',
7
+ UTXO: domain + '/0.3.43/' + 'utxoWorkerLauncher.js',
8
8
  };
9
9
 
10
10
  // Returns a blob:// URL which points
@@ -1,5 +1,8 @@
1
- import { WorkerVariant } from './worker.registry';
2
- export declare const WORKER_CDN_URLS: Record<WorkerVariant, string>;
1
+ /**
2
+ * These imports tell vite to generate and bundle worker file.
3
+ * These are import conditionally because we do not have vite when running on node.
4
+ */
5
+ export { WORKER_CDN_URLS } from './viteWorkerURL.constant.fallback';
3
6
  export declare const getWorkerViteURL: () => Promise<{
4
7
  ZKProof: any;
5
8
  SnarkJS: any;
@@ -0,0 +1,4 @@
1
+ import { WorkerVariant } from './worker.registry';
2
+ /** Used by SDK build when workers-prebuild is missing. Run `yarn build:sdk-workers` for real CDN URLs. */
3
+ export declare const WORKER_CDN_URLS: Record<WorkerVariant, string>;
4
+ export declare const getWorkerViteURL: () => Promise<Record<WorkerVariant, string>>;
@@ -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.42/' + 'zkProofWorkerLauncher.js',
6
- SnarkJS: domain + '/0.3.42/' + 'snarkjsWorkerLauncher.js',
7
- UTXO: domain + '/0.3.42/' + 'utxoWorkerLauncher.js',
5
+ ZKProof: domain + '/0.3.43/' + 'zkProofWorkerLauncher.js',
6
+ SnarkJS: domain + '/0.3.43/' + 'snarkjsWorkerLauncher.js',
7
+ UTXO: domain + '/0.3.43/' + 'utxoWorkerLauncher.js',
8
8
  };
9
9
 
10
10
  // Returns a blob:// URL which points
@@ -1 +1 @@
1
- var e=`https://storage.googleapis.com/hinkal-workers-staging`,t={ZKProof:e+`/0.3.42/zkProofWorkerLauncher.js`,SnarkJS:e+`/0.3.42/snarkjsWorkerLauncher.js`,UTXO:e+`/0.3.42/utxoWorkerLauncher.js`};exports.WORKER_CDN_URLS=t;
1
+ var e=`https://storage.googleapis.com/hinkal-workers-staging`,t={ZKProof:e+`/0.3.43/zkProofWorkerLauncher.js`,SnarkJS:e+`/0.3.43/snarkjsWorkerLauncher.js`,UTXO:e+`/0.3.43/utxoWorkerLauncher.js`};exports.WORKER_CDN_URLS=t;
@@ -1,8 +1,8 @@
1
1
  //#region dist/libs/shared/workers-prebuild/viteWorkerURL.constant.es.js
2
2
  var e = "https://storage.googleapis.com/hinkal-workers-staging", t = {
3
- ZKProof: e + "/0.3.42/zkProofWorkerLauncher.js",
4
- SnarkJS: e + "/0.3.42/snarkjsWorkerLauncher.js",
5
- UTXO: e + "/0.3.42/utxoWorkerLauncher.js"
3
+ ZKProof: e + "/0.3.43/zkProofWorkerLauncher.js",
4
+ SnarkJS: e + "/0.3.43/snarkjsWorkerLauncher.js",
5
+ UTXO: e + "/0.3.43/utxoWorkerLauncher.js"
6
6
  };
7
7
  //#endregion
8
8
  export { t as WORKER_CDN_URLS };
@@ -1 +1 @@
1
- const e=require(`./worker.registry.cjs`),t=require(`./zkProofWorker/zkProofWorkerLauncher.ts?worker&url.cjs`),n=require(`./snarkjsWorker/snarkjsWorkerLauncher.ts?worker&url.cjs`),r=require(`./utxoWorker/utxoWorkerLauncher.ts?worker&url.cjs`);var i=async()=>({[e.WorkerVariant.ZKProof]:t.default,[e.WorkerVariant.SnarkJS]:n.default,[e.WorkerVariant.UTXO]:r.default});exports.getWorkerViteURL=i;
1
+ const e=require(`./worker.registry.cjs`),t=require(`./zkProofWorker/zkProofWorkerLauncher.ts?worker&url.cjs`),n=require(`./snarkjsWorker/snarkjsWorkerLauncher.ts?worker&url.cjs`),r=require(`./utxoWorker/utxoWorkerLauncher.ts?worker&url.cjs`);require(`./viteWorkerURL.constant.fallback.cjs`);var i=async()=>({[e.WorkerVariant.ZKProof]:t.default,[e.WorkerVariant.SnarkJS]:n.default,[e.WorkerVariant.UTXO]:r.default});exports.getWorkerViteURL=i;
@@ -0,0 +1 @@
1
+ const e=require(`./worker.registry.cjs`);e.WorkerVariant.ZKProof,e.WorkerVariant.SnarkJS,e.WorkerVariant.UTXO;
@@ -0,0 +1,3 @@
1
+ import { WorkerVariant as e } from "./worker.registry.mjs";
2
+ e.ZKProof, e.SnarkJS, e.UTXO;
3
+ //#endregion
@@ -2,6 +2,7 @@ import { WorkerVariant as e } from "./worker.registry.mjs";
2
2
  import t from "./zkProofWorker/zkProofWorkerLauncher.ts?worker&url.mjs";
3
3
  import n from "./snarkjsWorker/snarkjsWorkerLauncher.ts?worker&url.mjs";
4
4
  import r from "./utxoWorker/utxoWorkerLauncher.ts?worker&url.mjs";
5
+ import "./viteWorkerURL.constant.fallback.mjs";
5
6
  //#region libs/shared/common/src/webworker/viteWorkerURL.constant.ts
6
7
  var i = async () => ({
7
8
  [e.ZKProof]: t,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gurge/sdk",
3
- "version": "0.3.42",
3
+ "version": "0.3.43",
4
4
  "homepage": "hinkal.io",
5
5
  "author": {
6
6
  "name": "Hinkal Protocol"