@crisp-e3/zk-inputs 0.2.2-test → 0.3.0-test
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/LICENSE.md +92 -123
- package/README.md +9 -6
- package/dist/{web/index.js → index.js} +1 -1
- package/dist/index_base64.js +1 -0
- package/main.js +20 -0
- package/package.json +14 -45
- package/dist/node/index.d.ts +0 -42
- package/dist/node/index.js +0 -408
- package/dist/node/index_bg.wasm +0 -0
- package/dist/node/index_bg.wasm.d.ts +0 -18
- package/dist/web/index_base64.js +0 -1
- package/init.d.ts +0 -8
- package/init_node.cjs +0 -9
- package/init_node.js +0 -9
- package/init_web.js +0 -29
- /package/dist/{web/index.d.ts → index.d.ts} +0 -0
package/init.d.ts
DELETED
package/init_node.cjs
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: LGPL-3.0-only
|
|
2
|
-
//
|
|
3
|
-
// This file is provided WITHOUT ANY WARRANTY;
|
|
4
|
-
// without even the implied warranty of MERCHANTABILITY
|
|
5
|
-
// or FITNESS FOR A PARTICULAR PURPOSE.
|
|
6
|
-
|
|
7
|
-
module.exports = async function init() {
|
|
8
|
-
// Node does not need to be loaded async
|
|
9
|
-
};
|
package/init_node.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: LGPL-3.0-only
|
|
2
|
-
//
|
|
3
|
-
// This file is provided WITHOUT ANY WARRANTY;
|
|
4
|
-
// without even the implied warranty of MERCHANTABILITY
|
|
5
|
-
// or FITNESS FOR A PARTICULAR PURPOSE.
|
|
6
|
-
|
|
7
|
-
export default async function init() {
|
|
8
|
-
// Node does not need to be loaded async
|
|
9
|
-
}
|
package/init_web.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: LGPL-3.0-only
|
|
2
|
-
//
|
|
3
|
-
// This file is provided WITHOUT ANY WARRANTY;
|
|
4
|
-
// without even the implied warranty of MERCHANTABILITY
|
|
5
|
-
// or FITNESS FOR A PARTICULAR PURPOSE.
|
|
6
|
-
|
|
7
|
-
import * as bindgen from "./dist/web/index.js";
|
|
8
|
-
|
|
9
|
-
let promise;
|
|
10
|
-
|
|
11
|
-
export default async function init() {
|
|
12
|
-
promise ??= (async () => {
|
|
13
|
-
const { default: base64 } = await import("./dist/web/index_base64.js");
|
|
14
|
-
|
|
15
|
-
const binaryString = atob(base64);
|
|
16
|
-
const len = binaryString.length;
|
|
17
|
-
const bytes = new Uint8Array(len);
|
|
18
|
-
|
|
19
|
-
for (let i = 0; i < len; i++) {
|
|
20
|
-
bytes[i] = binaryString.charCodeAt(i);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
bindgen.initSync(bytes);
|
|
24
|
-
|
|
25
|
-
return bindgen;
|
|
26
|
-
})();
|
|
27
|
-
|
|
28
|
-
return promise;
|
|
29
|
-
}
|
|
File without changes
|