@noir-lang/noir_wasm 0.3.2-fd3c99a → 0.4.0-e1ba4f8
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/README.md +1 -1
- package/nodejs/noir_wasm.d.ts +8 -8
- package/nodejs/noir_wasm.js +18 -18
- package/nodejs/noir_wasm_bg.wasm +0 -0
- package/nodejs/noir_wasm_bg.wasm.d.ts +2 -2
- package/package.json +4 -4
- package/web/noir_wasm.d.ts +10 -10
- package/web/noir_wasm.js +18 -18
- package/web/noir_wasm_bg.wasm +0 -0
- package/web/noir_wasm_bg.wasm.d.ts +2 -2
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
# Noir Lang WASM JavaScript Package
|
|
2
2
|
|
|
3
3
|
## Tracks
|
|
4
|
-
Noir lang Repository [noir-lang/noir@
|
|
4
|
+
Noir lang Repository [noir-lang/noir@e1ba4f8](https://github.com/noir-lang/noir/tree/e1ba4f82c6ad90a8f11c433b66b42a20efcea8ed)
|
package/nodejs/noir_wasm.d.ts
CHANGED
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* @param {string} level
|
|
5
|
-
*/
|
|
6
|
-
export function init_log_level(level: string): void;
|
|
7
|
-
/**
|
|
8
|
-
* @returns {any}
|
|
9
|
-
*/
|
|
10
|
-
export function build_info(): any;
|
|
11
|
-
/**
|
|
12
4
|
* @param {any} args
|
|
13
5
|
* @returns {any}
|
|
14
6
|
*/
|
|
@@ -33,3 +25,11 @@ export function acir_read_bytes(bytes: Uint8Array): any;
|
|
|
33
25
|
* @returns {Uint8Array}
|
|
34
26
|
*/
|
|
35
27
|
export function acir_write_bytes(acir: any): Uint8Array;
|
|
28
|
+
/**
|
|
29
|
+
* @param {string} level
|
|
30
|
+
*/
|
|
31
|
+
export function init_log_level(level: string): void;
|
|
32
|
+
/**
|
|
33
|
+
* @returns {any}
|
|
34
|
+
*/
|
|
35
|
+
export function build_info(): any;
|
package/nodejs/noir_wasm.js
CHANGED
|
@@ -117,23 +117,6 @@ function getInt32Memory0() {
|
|
|
117
117
|
}
|
|
118
118
|
return cachedInt32Memory0;
|
|
119
119
|
}
|
|
120
|
-
/**
|
|
121
|
-
* @param {string} level
|
|
122
|
-
*/
|
|
123
|
-
module.exports.init_log_level = function(level) {
|
|
124
|
-
const ptr0 = passStringToWasm0(level, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
125
|
-
const len0 = WASM_VECTOR_LEN;
|
|
126
|
-
wasm.init_log_level(ptr0, len0);
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* @returns {any}
|
|
131
|
-
*/
|
|
132
|
-
module.exports.build_info = function() {
|
|
133
|
-
const ret = wasm.build_info();
|
|
134
|
-
return takeObject(ret);
|
|
135
|
-
};
|
|
136
|
-
|
|
137
120
|
/**
|
|
138
121
|
* @param {any} args
|
|
139
122
|
* @returns {any}
|
|
@@ -210,6 +193,23 @@ module.exports.acir_write_bytes = function(acir) {
|
|
|
210
193
|
}
|
|
211
194
|
};
|
|
212
195
|
|
|
196
|
+
/**
|
|
197
|
+
* @param {string} level
|
|
198
|
+
*/
|
|
199
|
+
module.exports.init_log_level = function(level) {
|
|
200
|
+
const ptr0 = passStringToWasm0(level, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
201
|
+
const len0 = WASM_VECTOR_LEN;
|
|
202
|
+
wasm.init_log_level(ptr0, len0);
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* @returns {any}
|
|
207
|
+
*/
|
|
208
|
+
module.exports.build_info = function() {
|
|
209
|
+
const ret = wasm.build_info();
|
|
210
|
+
return takeObject(ret);
|
|
211
|
+
};
|
|
212
|
+
|
|
213
213
|
function handleError(f, args) {
|
|
214
214
|
try {
|
|
215
215
|
return f.apply(this, args);
|
|
@@ -258,7 +258,7 @@ module.exports.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
|
|
|
258
258
|
}
|
|
259
259
|
};
|
|
260
260
|
|
|
261
|
-
module.exports.
|
|
261
|
+
module.exports.__wbg_readfile_b65dbb8c0bdbf836 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
262
262
|
const ret = read_file(getStringFromWasm0(arg1, arg2));
|
|
263
263
|
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
264
264
|
const len0 = WASM_VECTOR_LEN;
|
package/nodejs/noir_wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export function init_log_level(a: number, b: number): void;
|
|
5
|
-
export function build_info(): number;
|
|
6
4
|
export function compile(a: number): number;
|
|
7
5
|
export function acir_from_bytes(a: number, b: number): number;
|
|
8
6
|
export function acir_to_bytes(a: number, b: number): void;
|
|
9
7
|
export function acir_read_bytes(a: number, b: number): number;
|
|
10
8
|
export function acir_write_bytes(a: number, b: number): void;
|
|
9
|
+
export function init_log_level(a: number, b: number): void;
|
|
10
|
+
export function build_info(): number;
|
|
11
11
|
export function __wbindgen_export_0(a: number): number;
|
|
12
12
|
export function __wbindgen_export_1(a: number, b: number, c: number): number;
|
|
13
13
|
export function __wbindgen_add_to_stack_pointer(a: number): number;
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@noir-lang/noir_wasm",
|
|
3
3
|
"collaborators": [
|
|
4
|
-
"The Noir Team <
|
|
4
|
+
"The Noir Team <team@noir-lang.org>"
|
|
5
5
|
],
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.4.0-e1ba4f8",
|
|
7
7
|
"files": [
|
|
8
8
|
"nodejs",
|
|
9
9
|
"web",
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
"module": "./web/noir_wasm.js",
|
|
15
15
|
"sideEffects": false,
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"@noir-lang/noir-source-resolver": "1.1.
|
|
17
|
+
"@noir-lang/noir-source-resolver": "1.1.2"
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
21
21
|
"url": "https://github.com/noir-lang/noir_wasm.git"
|
|
22
22
|
},
|
|
23
23
|
"compiler": {
|
|
24
|
-
"versionHash": "
|
|
24
|
+
"versionHash": "e1ba4f82c6ad90a8f11c433b66b42a20efcea8ed"
|
|
25
25
|
}
|
|
26
26
|
}
|
package/web/noir_wasm.d.ts
CHANGED
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* @param {string} level
|
|
5
|
-
*/
|
|
6
|
-
export function init_log_level(level: string): void;
|
|
7
|
-
/**
|
|
8
|
-
* @returns {any}
|
|
9
|
-
*/
|
|
10
|
-
export function build_info(): any;
|
|
11
|
-
/**
|
|
12
4
|
* @param {any} args
|
|
13
5
|
* @returns {any}
|
|
14
6
|
*/
|
|
@@ -33,18 +25,26 @@ export function acir_read_bytes(bytes: Uint8Array): any;
|
|
|
33
25
|
* @returns {Uint8Array}
|
|
34
26
|
*/
|
|
35
27
|
export function acir_write_bytes(acir: any): Uint8Array;
|
|
28
|
+
/**
|
|
29
|
+
* @param {string} level
|
|
30
|
+
*/
|
|
31
|
+
export function init_log_level(level: string): void;
|
|
32
|
+
/**
|
|
33
|
+
* @returns {any}
|
|
34
|
+
*/
|
|
35
|
+
export function build_info(): any;
|
|
36
36
|
|
|
37
37
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
38
38
|
|
|
39
39
|
export interface InitOutput {
|
|
40
40
|
readonly memory: WebAssembly.Memory;
|
|
41
|
-
readonly init_log_level: (a: number, b: number) => void;
|
|
42
|
-
readonly build_info: () => number;
|
|
43
41
|
readonly compile: (a: number) => number;
|
|
44
42
|
readonly acir_from_bytes: (a: number, b: number) => number;
|
|
45
43
|
readonly acir_to_bytes: (a: number, b: number) => void;
|
|
46
44
|
readonly acir_read_bytes: (a: number, b: number) => number;
|
|
47
45
|
readonly acir_write_bytes: (a: number, b: number) => void;
|
|
46
|
+
readonly init_log_level: (a: number, b: number) => void;
|
|
47
|
+
readonly build_info: () => number;
|
|
48
48
|
readonly __wbindgen_export_0: (a: number) => number;
|
|
49
49
|
readonly __wbindgen_export_1: (a: number, b: number, c: number) => number;
|
|
50
50
|
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
package/web/noir_wasm.js
CHANGED
|
@@ -115,23 +115,6 @@ function getInt32Memory0() {
|
|
|
115
115
|
}
|
|
116
116
|
return cachedInt32Memory0;
|
|
117
117
|
}
|
|
118
|
-
/**
|
|
119
|
-
* @param {string} level
|
|
120
|
-
*/
|
|
121
|
-
export function init_log_level(level) {
|
|
122
|
-
const ptr0 = passStringToWasm0(level, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
123
|
-
const len0 = WASM_VECTOR_LEN;
|
|
124
|
-
wasm.init_log_level(ptr0, len0);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* @returns {any}
|
|
129
|
-
*/
|
|
130
|
-
export function build_info() {
|
|
131
|
-
const ret = wasm.build_info();
|
|
132
|
-
return takeObject(ret);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
118
|
/**
|
|
136
119
|
* @param {any} args
|
|
137
120
|
* @returns {any}
|
|
@@ -208,6 +191,23 @@ export function acir_write_bytes(acir) {
|
|
|
208
191
|
}
|
|
209
192
|
}
|
|
210
193
|
|
|
194
|
+
/**
|
|
195
|
+
* @param {string} level
|
|
196
|
+
*/
|
|
197
|
+
export function init_log_level(level) {
|
|
198
|
+
const ptr0 = passStringToWasm0(level, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
199
|
+
const len0 = WASM_VECTOR_LEN;
|
|
200
|
+
wasm.init_log_level(ptr0, len0);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* @returns {any}
|
|
205
|
+
*/
|
|
206
|
+
export function build_info() {
|
|
207
|
+
const ret = wasm.build_info();
|
|
208
|
+
return takeObject(ret);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
211
|
function handleError(f, args) {
|
|
212
212
|
try {
|
|
213
213
|
return f.apply(this, args);
|
|
@@ -283,7 +283,7 @@ function getImports() {
|
|
|
283
283
|
wasm.__wbindgen_export_2(arg0, arg1);
|
|
284
284
|
}
|
|
285
285
|
};
|
|
286
|
-
imports.wbg.
|
|
286
|
+
imports.wbg.__wbg_readfile_b65dbb8c0bdbf836 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
287
287
|
const ret = read_file(getStringFromWasm0(arg1, arg2));
|
|
288
288
|
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
289
289
|
const len0 = WASM_VECTOR_LEN;
|
package/web/noir_wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export function init_log_level(a: number, b: number): void;
|
|
5
|
-
export function build_info(): number;
|
|
6
4
|
export function compile(a: number): number;
|
|
7
5
|
export function acir_from_bytes(a: number, b: number): number;
|
|
8
6
|
export function acir_to_bytes(a: number, b: number): void;
|
|
9
7
|
export function acir_read_bytes(a: number, b: number): number;
|
|
10
8
|
export function acir_write_bytes(a: number, b: number): void;
|
|
9
|
+
export function init_log_level(a: number, b: number): void;
|
|
10
|
+
export function build_info(): number;
|
|
11
11
|
export function __wbindgen_export_0(a: number): number;
|
|
12
12
|
export function __wbindgen_export_1(a: number, b: number, c: number): number;
|
|
13
13
|
export function __wbindgen_add_to_stack_pointer(a: number): number;
|