@noir-lang/noir_wasm 0.3.2-fa0e9cff → 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 +4 -4
- package/nodejs/noir_wasm.js +15 -15
- package/nodejs/noir_wasm_bg.wasm +0 -0
- package/nodejs/noir_wasm_bg.wasm.d.ts +1 -1
- package/package.json +4 -4
- package/web/noir_wasm.d.ts +5 -5
- package/web/noir_wasm.js +14 -14
- package/web/noir_wasm_bg.wasm +0 -0
- package/web/noir_wasm_bg.wasm.d.ts +1 -1
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,10 +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
4
|
* @param {any} args
|
|
9
5
|
* @returns {any}
|
|
10
6
|
*/
|
|
@@ -30,6 +26,10 @@ export function acir_read_bytes(bytes: Uint8Array): any;
|
|
|
30
26
|
*/
|
|
31
27
|
export function acir_write_bytes(acir: any): Uint8Array;
|
|
32
28
|
/**
|
|
29
|
+
* @param {string} level
|
|
30
|
+
*/
|
|
31
|
+
export function init_log_level(level: string): void;
|
|
32
|
+
/**
|
|
33
33
|
* @returns {any}
|
|
34
34
|
*/
|
|
35
35
|
export function build_info(): any;
|
package/nodejs/noir_wasm.js
CHANGED
|
@@ -117,15 +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
120
|
/**
|
|
130
121
|
* @param {any} args
|
|
131
122
|
* @returns {any}
|
|
@@ -202,6 +193,15 @@ module.exports.acir_write_bytes = function(acir) {
|
|
|
202
193
|
}
|
|
203
194
|
};
|
|
204
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
205
|
/**
|
|
206
206
|
* @returns {any}
|
|
207
207
|
*/
|
|
@@ -232,6 +232,11 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
|
232
232
|
takeObject(arg0);
|
|
233
233
|
};
|
|
234
234
|
|
|
235
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
236
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
237
|
+
return addHeapObject(ret);
|
|
238
|
+
};
|
|
239
|
+
|
|
235
240
|
module.exports.__wbg_new_abda76e883ba8a5f = function() {
|
|
236
241
|
const ret = new Error();
|
|
237
242
|
return addHeapObject(ret);
|
|
@@ -253,12 +258,7 @@ module.exports.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
|
|
|
253
258
|
}
|
|
254
259
|
};
|
|
255
260
|
|
|
256
|
-
module.exports.
|
|
257
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
258
|
-
return addHeapObject(ret);
|
|
259
|
-
};
|
|
260
|
-
|
|
261
|
-
module.exports.__wbg_readfile_a43240e6f11dd5eb = function() { return handleError(function (arg0, arg1, arg2) {
|
|
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,12 +1,12 @@
|
|
|
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
4
|
export function compile(a: number): number;
|
|
6
5
|
export function acir_from_bytes(a: number, b: number): number;
|
|
7
6
|
export function acir_to_bytes(a: number, b: number): void;
|
|
8
7
|
export function acir_read_bytes(a: number, b: number): number;
|
|
9
8
|
export function acir_write_bytes(a: number, b: number): void;
|
|
9
|
+
export function init_log_level(a: number, b: number): void;
|
|
10
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;
|
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,10 +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
4
|
* @param {any} args
|
|
9
5
|
* @returns {any}
|
|
10
6
|
*/
|
|
@@ -30,6 +26,10 @@ export function acir_read_bytes(bytes: Uint8Array): any;
|
|
|
30
26
|
*/
|
|
31
27
|
export function acir_write_bytes(acir: any): Uint8Array;
|
|
32
28
|
/**
|
|
29
|
+
* @param {string} level
|
|
30
|
+
*/
|
|
31
|
+
export function init_log_level(level: string): void;
|
|
32
|
+
/**
|
|
33
33
|
* @returns {any}
|
|
34
34
|
*/
|
|
35
35
|
export function build_info(): any;
|
|
@@ -38,12 +38,12 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
38
38
|
|
|
39
39
|
export interface InitOutput {
|
|
40
40
|
readonly memory: WebAssembly.Memory;
|
|
41
|
-
readonly init_log_level: (a: number, b: number) => void;
|
|
42
41
|
readonly compile: (a: number) => number;
|
|
43
42
|
readonly acir_from_bytes: (a: number, b: number) => number;
|
|
44
43
|
readonly acir_to_bytes: (a: number, b: number) => void;
|
|
45
44
|
readonly acir_read_bytes: (a: number, b: number) => number;
|
|
46
45
|
readonly acir_write_bytes: (a: number, b: number) => void;
|
|
46
|
+
readonly init_log_level: (a: number, b: number) => void;
|
|
47
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;
|
package/web/noir_wasm.js
CHANGED
|
@@ -115,15 +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
118
|
/**
|
|
128
119
|
* @param {any} args
|
|
129
120
|
* @returns {any}
|
|
@@ -200,6 +191,15 @@ export function acir_write_bytes(acir) {
|
|
|
200
191
|
}
|
|
201
192
|
}
|
|
202
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
203
|
/**
|
|
204
204
|
* @returns {any}
|
|
205
205
|
*/
|
|
@@ -261,6 +261,10 @@ function getImports() {
|
|
|
261
261
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
262
262
|
takeObject(arg0);
|
|
263
263
|
};
|
|
264
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
265
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
266
|
+
return addHeapObject(ret);
|
|
267
|
+
};
|
|
264
268
|
imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
|
|
265
269
|
const ret = new Error();
|
|
266
270
|
return addHeapObject(ret);
|
|
@@ -279,11 +283,7 @@ function getImports() {
|
|
|
279
283
|
wasm.__wbindgen_export_2(arg0, arg1);
|
|
280
284
|
}
|
|
281
285
|
};
|
|
282
|
-
imports.wbg.
|
|
283
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
284
|
-
return addHeapObject(ret);
|
|
285
|
-
};
|
|
286
|
-
imports.wbg.__wbg_readfile_a43240e6f11dd5eb = function() { return handleError(function (arg0, arg1, arg2) {
|
|
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,12 +1,12 @@
|
|
|
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
4
|
export function compile(a: number): number;
|
|
6
5
|
export function acir_from_bytes(a: number, b: number): number;
|
|
7
6
|
export function acir_to_bytes(a: number, b: number): void;
|
|
8
7
|
export function acir_read_bytes(a: number, b: number): number;
|
|
9
8
|
export function acir_write_bytes(a: number, b: number): void;
|
|
9
|
+
export function init_log_level(a: number, b: number): void;
|
|
10
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;
|