@hinkal/common 0.1.14 → 0.1.15

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 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./babyJub.cjs"),i=require("./poseidon.cjs"),o=require("buffer"),s=require("process");let e=!1;const n=async()=>{e||(typeof window<"u"&&(window.Buffer=o.Buffer,window.process=s),await i.poseidonHolder.init(),await r.jubHolder.init(),e=!0)};exports.preProcessing=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./babyJub.cjs"),o=require("./poseidon.cjs"),i=require("buffer"),n=require("process");let e=!1;const s=async()=>{e||(typeof window<"u"&&(window.global=window,window.Buffer=i.Buffer,window.process=n),await o.poseidonHolder.init(),await r.jubHolder.init(),e=!0)};exports.preProcessing=s;
@@ -1,11 +1,11 @@
1
1
  import { jubHolder as r } from "./babyJub.mjs";
2
- import { poseidonHolder as e } from "./poseidon.mjs";
3
- import { Buffer as i } from "buffer";
4
- import t from "process";
2
+ import { poseidonHolder as i } from "./poseidon.mjs";
3
+ import { Buffer as e } from "buffer";
4
+ import n from "process";
5
5
  let o = !1;
6
- const d = async () => {
7
- o || (typeof window < "u" && (window.Buffer = i, window.process = t), await e.init(), await r.init(), o = !0);
6
+ const w = async () => {
7
+ o || (typeof window < "u" && (window.global = window, window.Buffer = e, window.process = n), await i.init(), await r.init(), o = !0);
8
8
  };
9
9
  export {
10
- d as preProcessing
10
+ w as preProcessing
11
11
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hinkal/common",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "homepage": "hinkal.pro",
5
5
  "author": {
6
6
  "name": "Hinkal Protocol"
@@ -1 +1 @@
1
- "use strict";const e=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/../../assets/utxoWorkerLauncher-Dv4aj_Al.js").href:new URL("../../assets/utxoWorkerLauncher-Dv4aj_Al.js",document.currentScript&&document.currentScript.src||document.baseURI).href);module.exports=e;
1
+ "use strict";const e=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/../../assets/utxoWorkerLauncher-C2sEzlcI.js").href:new URL("../../assets/utxoWorkerLauncher-C2sEzlcI.js",document.currentScript&&document.currentScript.src||document.baseURI).href);module.exports=e;
@@ -1,4 +1,4 @@
1
- const e = "" + new URL("../../assets/utxoWorkerLauncher-Dv4aj_Al.js", import.meta.url).href;
1
+ const e = "" + new URL("../../assets/utxoWorkerLauncher-C2sEzlcI.js", import.meta.url).href;
2
2
  export {
3
3
  e as default
4
4
  };
@@ -1 +1 @@
1
- "use strict";const e=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/../../assets/zkProofWorkerLauncher-CwOOcx0o.js").href:new URL("../../assets/zkProofWorkerLauncher-CwOOcx0o.js",document.currentScript&&document.currentScript.src||document.baseURI).href);module.exports=e;
1
+ "use strict";const r=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/../../assets/zkProofWorkerLauncher-DqoryIuY.js").href:new URL("../../assets/zkProofWorkerLauncher-DqoryIuY.js",document.currentScript&&document.currentScript.src||document.baseURI).href);module.exports=r;
@@ -1,4 +1,4 @@
1
- const r = "" + new URL("../../assets/zkProofWorkerLauncher-CwOOcx0o.js", import.meta.url).href;
1
+ const r = "" + new URL("../../assets/zkProofWorkerLauncher-DqoryIuY.js", import.meta.url).href;
2
2
  export {
3
3
  r as default
4
4
  };