@sabaaa1/common 0.0.27 → 0.0.28

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.
Files changed (31) hide show
  1. package/assets/snarkjs.worker-IfEWh7KB.js +14803 -0
  2. package/assets/{zkProofWorkerLogic-DB9cbXu-.js → utxo.worker-CmpqHMqD.js} +16093 -14906
  3. package/assets/{utxoWorkerLogic-DEqWaadT.js → zkProof.worker-CmpqHMqD.js} +16723 -16044
  4. package/package.json +1 -1
  5. package/webworker/snarkjsWorker/snarkjsWorkerLogic.cjs +1 -0
  6. package/webworker/snarkjsWorker/snarkjsWorkerLogic.mjs +40 -0
  7. package/webworker/utxoWorker/utxoWorkerLogic.cjs +1 -0
  8. package/webworker/utxoWorker/utxoWorkerLogic.mjs +76 -0
  9. package/webworker/workerFactory.cjs +1 -1
  10. package/webworker/workerFactory.d.ts +3 -3
  11. package/webworker/workerFactory.mjs +30 -16
  12. package/webworker/workerProxy.cjs +1 -0
  13. package/webworker/workerProxy.mjs +54 -0
  14. package/webworker/workers/snarkjs.worker.d.ts +0 -0
  15. package/webworker/workers/utxo.worker.d.ts +0 -0
  16. package/webworker/workers/zkProof.worker.d.ts +0 -0
  17. package/webworker/zkProofWorker/zkProofWorkerLogic.cjs +1 -0
  18. package/webworker/zkProofWorker/zkProofWorkerLogic.mjs +52 -0
  19. package/assets/snarkjsWorkerLauncher-Dsmwcy9L.js +0 -1176
  20. package/assets/snarkjsWorkerLogic-B9NbAQYW.js +0 -13634
  21. package/assets/utxoWorkerLauncher-BUSzpnDL.js +0 -1205
  22. package/assets/zkProofWorkerLauncher-CoKmCKjC.js +0 -1205
  23. package/webworker/snarkjsWorker/snarkjsWorkerLauncher.cjs +0 -1
  24. package/webworker/snarkjsWorker/snarkjsWorkerLauncher.mjs +0 -4
  25. package/webworker/utxoWorker/utxoWorkerLauncher.cjs +0 -1
  26. package/webworker/utxoWorker/utxoWorkerLauncher.mjs +0 -4
  27. package/webworker/viteWorkerURL.constant.cjs +0 -1
  28. package/webworker/viteWorkerURL.constant.d.ts +0 -9
  29. package/webworker/viteWorkerURL.constant.mjs +0 -12
  30. package/webworker/zkProofWorker/zkProofWorkerLauncher.cjs +0 -1
  31. package/webworker/zkProofWorker/zkProofWorkerLauncher.mjs +0 -4
@@ -1 +0,0 @@
1
- "use strict";const e=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/../../assets/snarkjsWorkerLauncher-Dsmwcy9L.js").href:new URL("../../assets/snarkjsWorkerLauncher-Dsmwcy9L.js",document.currentScript&&document.currentScript.src||document.baseURI).href);module.exports=e;
@@ -1,4 +0,0 @@
1
- const r = "" + new URL("../../assets/snarkjsWorkerLauncher-Dsmwcy9L.js", import.meta.url).href;
2
- export {
3
- r as default
4
- };
@@ -1 +0,0 @@
1
- "use strict";const e=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/../../assets/utxoWorkerLauncher-BUSzpnDL.js").href:new URL("../../assets/utxoWorkerLauncher-BUSzpnDL.js",document.currentScript&&document.currentScript.src||document.baseURI).href);module.exports=e;
@@ -1,4 +0,0 @@
1
- const e = "" + new URL("../../assets/utxoWorkerLauncher-BUSzpnDL.js", import.meta.url).href;
2
- export {
3
- e as default
4
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./zkProofWorker/zkProofWorkerLauncher.cjs"),o=require("./snarkjsWorker/snarkjsWorkerLauncher.cjs"),t=require("./utxoWorker/utxoWorkerLauncher.cjs"),r=require("./worker.registry.cjs"),n=async()=>({[r.WorkerVariant.ZKProof]:e,[r.WorkerVariant.SnarkJS]:o,[r.WorkerVariant.UTXO]:t});exports.getWorkerViteURL=n;
@@ -1,9 +0,0 @@
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 declare const getWorkerViteURL: () => Promise<{
6
- ZKProof: any;
7
- SnarkJS: any;
8
- UTXO: any;
9
- }>;
@@ -1,12 +0,0 @@
1
- import o from "./zkProofWorker/zkProofWorkerLauncher.mjs";
2
- import t from "./snarkjsWorker/snarkjsWorkerLauncher.mjs";
3
- import e from "./utxoWorker/utxoWorkerLauncher.mjs";
4
- import { WorkerVariant as r } from "./worker.registry.mjs";
5
- const a = async () => ({
6
- [r.ZKProof]: o,
7
- [r.SnarkJS]: t,
8
- [r.UTXO]: e
9
- });
10
- export {
11
- a as getWorkerViteURL
12
- };
@@ -1 +0,0 @@
1
- "use strict";const e=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/../../assets/zkProofWorkerLauncher-CoKmCKjC.js").href:new URL("../../assets/zkProofWorkerLauncher-CoKmCKjC.js",document.currentScript&&document.currentScript.src||document.baseURI).href);module.exports=e;
@@ -1,4 +0,0 @@
1
- const r = "" + new URL("../../assets/zkProofWorkerLauncher-CoKmCKjC.js", import.meta.url).href;
2
- export {
3
- r as default
4
- };