@noir-lang/noir_wasm 0.5.1-f144391 → 0.6.0-5fd976e
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 +5 -5
- package/nodejs/noir_wasm.js +14 -13
- package/nodejs/noir_wasm_bg.wasm +0 -0
- package/nodejs/noir_wasm_bg.wasm.d.ts +1 -1
- package/package.json +2 -2
- package/web/noir_wasm.d.ts +6 -6
- package/web/noir_wasm.js +13 -12
- 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@5fd976e](https://github.com/noir-lang/noir/tree/5fd976e03e8034e521840621035c99ea840b13ba)
|
package/nodejs/noir_wasm.d.ts
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* @param {any} args
|
|
5
|
-
* @returns {any}
|
|
6
|
-
*/
|
|
7
|
-
export function compile(args: any): any;
|
|
8
|
-
/**
|
|
9
4
|
* @param {Uint8Array} bytes
|
|
10
5
|
* @returns {any}
|
|
11
6
|
*/
|
|
@@ -16,6 +11,11 @@ export function acir_read_bytes(bytes: Uint8Array): any;
|
|
|
16
11
|
*/
|
|
17
12
|
export function acir_write_bytes(acir: any): Uint8Array;
|
|
18
13
|
/**
|
|
14
|
+
* @param {any} args
|
|
15
|
+
* @returns {any}
|
|
16
|
+
*/
|
|
17
|
+
export function compile(args: any): any;
|
|
18
|
+
/**
|
|
19
19
|
* @param {string} level
|
|
20
20
|
*/
|
|
21
21
|
export function init_log_level(level: string): void;
|
package/nodejs/noir_wasm.js
CHANGED
|
@@ -117,14 +117,6 @@ function getInt32Memory0() {
|
|
|
117
117
|
}
|
|
118
118
|
return cachedInt32Memory0;
|
|
119
119
|
}
|
|
120
|
-
/**
|
|
121
|
-
* @param {any} args
|
|
122
|
-
* @returns {any}
|
|
123
|
-
*/
|
|
124
|
-
module.exports.compile = function(args) {
|
|
125
|
-
const ret = wasm.compile(addHeapObject(args));
|
|
126
|
-
return takeObject(ret);
|
|
127
|
-
};
|
|
128
120
|
|
|
129
121
|
function passArray8ToWasm0(arg, malloc) {
|
|
130
122
|
const ptr = malloc(arg.length * 1);
|
|
@@ -164,6 +156,15 @@ module.exports.acir_write_bytes = function(acir) {
|
|
|
164
156
|
}
|
|
165
157
|
};
|
|
166
158
|
|
|
159
|
+
/**
|
|
160
|
+
* @param {any} args
|
|
161
|
+
* @returns {any}
|
|
162
|
+
*/
|
|
163
|
+
module.exports.compile = function(args) {
|
|
164
|
+
const ret = wasm.compile(addHeapObject(args));
|
|
165
|
+
return takeObject(ret);
|
|
166
|
+
};
|
|
167
|
+
|
|
167
168
|
/**
|
|
168
169
|
* @param {string} level
|
|
169
170
|
*/
|
|
@@ -194,15 +195,15 @@ module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
|
194
195
|
return ret;
|
|
195
196
|
};
|
|
196
197
|
|
|
198
|
+
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
199
|
+
takeObject(arg0);
|
|
200
|
+
};
|
|
201
|
+
|
|
197
202
|
module.exports.__wbindgen_is_null = function(arg0) {
|
|
198
203
|
const ret = getObject(arg0) === null;
|
|
199
204
|
return ret;
|
|
200
205
|
};
|
|
201
206
|
|
|
202
|
-
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
203
|
-
takeObject(arg0);
|
|
204
|
-
};
|
|
205
|
-
|
|
206
207
|
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
207
208
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
208
209
|
return addHeapObject(ret);
|
|
@@ -229,7 +230,7 @@ module.exports.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
|
|
|
229
230
|
}
|
|
230
231
|
};
|
|
231
232
|
|
|
232
|
-
module.exports.
|
|
233
|
+
module.exports.__wbg_readfile_865ff7b07c118548 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
233
234
|
const ret = read_file(getStringFromWasm0(arg1, arg2));
|
|
234
235
|
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
235
236
|
const len0 = WASM_VECTOR_LEN;
|
package/nodejs/noir_wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export function compile(a: number): number;
|
|
5
4
|
export function acir_read_bytes(a: number, b: number): number;
|
|
6
5
|
export function acir_write_bytes(a: number, b: number): void;
|
|
6
|
+
export function compile(a: number): number;
|
|
7
7
|
export function init_log_level(a: number, b: number): void;
|
|
8
8
|
export function build_info(): number;
|
|
9
9
|
export function __wbindgen_export_0(a: number): number;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"collaborators": [
|
|
4
4
|
"The Noir Team <team@noir-lang.org>"
|
|
5
5
|
],
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.6.0-5fd976e",
|
|
7
7
|
"files": [
|
|
8
8
|
"nodejs",
|
|
9
9
|
"web",
|
|
@@ -21,6 +21,6 @@
|
|
|
21
21
|
"url": "https://github.com/noir-lang/noir_wasm.git"
|
|
22
22
|
},
|
|
23
23
|
"compiler": {
|
|
24
|
-
"versionHash": "
|
|
24
|
+
"versionHash": "5fd976e03e8034e521840621035c99ea840b13ba"
|
|
25
25
|
}
|
|
26
26
|
}
|
package/web/noir_wasm.d.ts
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* @param {any} args
|
|
5
|
-
* @returns {any}
|
|
6
|
-
*/
|
|
7
|
-
export function compile(args: any): any;
|
|
8
|
-
/**
|
|
9
4
|
* @param {Uint8Array} bytes
|
|
10
5
|
* @returns {any}
|
|
11
6
|
*/
|
|
@@ -16,6 +11,11 @@ export function acir_read_bytes(bytes: Uint8Array): any;
|
|
|
16
11
|
*/
|
|
17
12
|
export function acir_write_bytes(acir: any): Uint8Array;
|
|
18
13
|
/**
|
|
14
|
+
* @param {any} args
|
|
15
|
+
* @returns {any}
|
|
16
|
+
*/
|
|
17
|
+
export function compile(args: any): any;
|
|
18
|
+
/**
|
|
19
19
|
* @param {string} level
|
|
20
20
|
*/
|
|
21
21
|
export function init_log_level(level: string): void;
|
|
@@ -28,9 +28,9 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
28
28
|
|
|
29
29
|
export interface InitOutput {
|
|
30
30
|
readonly memory: WebAssembly.Memory;
|
|
31
|
-
readonly compile: (a: number) => number;
|
|
32
31
|
readonly acir_read_bytes: (a: number, b: number) => number;
|
|
33
32
|
readonly acir_write_bytes: (a: number, b: number) => void;
|
|
33
|
+
readonly compile: (a: number) => number;
|
|
34
34
|
readonly init_log_level: (a: number, b: number) => void;
|
|
35
35
|
readonly build_info: () => number;
|
|
36
36
|
readonly __wbindgen_export_0: (a: number) => number;
|
package/web/noir_wasm.js
CHANGED
|
@@ -115,14 +115,6 @@ function getInt32Memory0() {
|
|
|
115
115
|
}
|
|
116
116
|
return cachedInt32Memory0;
|
|
117
117
|
}
|
|
118
|
-
/**
|
|
119
|
-
* @param {any} args
|
|
120
|
-
* @returns {any}
|
|
121
|
-
*/
|
|
122
|
-
export function compile(args) {
|
|
123
|
-
const ret = wasm.compile(addHeapObject(args));
|
|
124
|
-
return takeObject(ret);
|
|
125
|
-
}
|
|
126
118
|
|
|
127
119
|
function passArray8ToWasm0(arg, malloc) {
|
|
128
120
|
const ptr = malloc(arg.length * 1);
|
|
@@ -162,6 +154,15 @@ export function acir_write_bytes(acir) {
|
|
|
162
154
|
}
|
|
163
155
|
}
|
|
164
156
|
|
|
157
|
+
/**
|
|
158
|
+
* @param {any} args
|
|
159
|
+
* @returns {any}
|
|
160
|
+
*/
|
|
161
|
+
export function compile(args) {
|
|
162
|
+
const ret = wasm.compile(addHeapObject(args));
|
|
163
|
+
return takeObject(ret);
|
|
164
|
+
}
|
|
165
|
+
|
|
165
166
|
/**
|
|
166
167
|
* @param {string} level
|
|
167
168
|
*/
|
|
@@ -225,13 +226,13 @@ function getImports() {
|
|
|
225
226
|
const ret = getObject(arg0) === undefined;
|
|
226
227
|
return ret;
|
|
227
228
|
};
|
|
229
|
+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
230
|
+
takeObject(arg0);
|
|
231
|
+
};
|
|
228
232
|
imports.wbg.__wbindgen_is_null = function(arg0) {
|
|
229
233
|
const ret = getObject(arg0) === null;
|
|
230
234
|
return ret;
|
|
231
235
|
};
|
|
232
|
-
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
233
|
-
takeObject(arg0);
|
|
234
|
-
};
|
|
235
236
|
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
236
237
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
237
238
|
return addHeapObject(ret);
|
|
@@ -254,7 +255,7 @@ function getImports() {
|
|
|
254
255
|
wasm.__wbindgen_export_2(arg0, arg1);
|
|
255
256
|
}
|
|
256
257
|
};
|
|
257
|
-
imports.wbg.
|
|
258
|
+
imports.wbg.__wbg_readfile_865ff7b07c118548 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
258
259
|
const ret = read_file(getStringFromWasm0(arg1, arg2));
|
|
259
260
|
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
260
261
|
const len0 = WASM_VECTOR_LEN;
|
package/web/noir_wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export function compile(a: number): number;
|
|
5
4
|
export function acir_read_bytes(a: number, b: number): number;
|
|
6
5
|
export function acir_write_bytes(a: number, b: number): void;
|
|
6
|
+
export function compile(a: number): number;
|
|
7
7
|
export function init_log_level(a: number, b: number): void;
|
|
8
8
|
export function build_info(): number;
|
|
9
9
|
export function __wbindgen_export_0(a: number): number;
|