@noir-lang/noir_wasm 0.5.1-52ce1fd → 0.5.1-7df3bb1
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 +13 -12
- 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 +12 -11
- 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@7df3bb1](https://github.com/noir-lang/noir/tree/7df3bb1b09d5da500bff5490ab2723a7802e8e9c)
|
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
|
*/
|
|
@@ -23,3 +18,8 @@ export function init_log_level(level: string): void;
|
|
|
23
18
|
* @returns {any}
|
|
24
19
|
*/
|
|
25
20
|
export function build_info(): any;
|
|
21
|
+
/**
|
|
22
|
+
* @param {any} args
|
|
23
|
+
* @returns {any}
|
|
24
|
+
*/
|
|
25
|
+
export function compile(args: any): any;
|
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);
|
|
@@ -181,6 +173,15 @@ module.exports.build_info = function() {
|
|
|
181
173
|
return takeObject(ret);
|
|
182
174
|
};
|
|
183
175
|
|
|
176
|
+
/**
|
|
177
|
+
* @param {any} args
|
|
178
|
+
* @returns {any}
|
|
179
|
+
*/
|
|
180
|
+
module.exports.compile = function(args) {
|
|
181
|
+
const ret = wasm.compile(addHeapObject(args));
|
|
182
|
+
return takeObject(ret);
|
|
183
|
+
};
|
|
184
|
+
|
|
184
185
|
function handleError(f, args) {
|
|
185
186
|
try {
|
|
186
187
|
return f.apply(this, args);
|
|
@@ -189,6 +190,10 @@ function handleError(f, args) {
|
|
|
189
190
|
}
|
|
190
191
|
}
|
|
191
192
|
|
|
193
|
+
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
194
|
+
takeObject(arg0);
|
|
195
|
+
};
|
|
196
|
+
|
|
192
197
|
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
193
198
|
const ret = getObject(arg0) === undefined;
|
|
194
199
|
return ret;
|
|
@@ -199,10 +204,6 @@ module.exports.__wbindgen_is_null = function(arg0) {
|
|
|
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);
|
package/nodejs/noir_wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -1,11 +1,11 @@
|
|
|
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;
|
|
7
6
|
export function init_log_level(a: number, b: number): void;
|
|
8
7
|
export function build_info(): number;
|
|
8
|
+
export function compile(a: number): number;
|
|
9
9
|
export function __wbindgen_export_0(a: number): number;
|
|
10
10
|
export function __wbindgen_export_1(a: number, b: number, c: number): number;
|
|
11
11
|
export function __wbindgen_add_to_stack_pointer(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.5.1-
|
|
6
|
+
"version": "0.5.1-7df3bb1",
|
|
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": "7df3bb1b09d5da500bff5490ab2723a7802e8e9c"
|
|
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
|
*/
|
|
@@ -23,16 +18,21 @@ export function init_log_level(level: string): void;
|
|
|
23
18
|
* @returns {any}
|
|
24
19
|
*/
|
|
25
20
|
export function build_info(): any;
|
|
21
|
+
/**
|
|
22
|
+
* @param {any} args
|
|
23
|
+
* @returns {any}
|
|
24
|
+
*/
|
|
25
|
+
export function compile(args: any): any;
|
|
26
26
|
|
|
27
27
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
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;
|
|
34
33
|
readonly init_log_level: (a: number, b: number) => void;
|
|
35
34
|
readonly build_info: () => number;
|
|
35
|
+
readonly compile: (a: number) => number;
|
|
36
36
|
readonly __wbindgen_export_0: (a: number) => number;
|
|
37
37
|
readonly __wbindgen_export_1: (a: number, b: number, c: number) => number;
|
|
38
38
|
readonly __wbindgen_add_to_stack_pointer: (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);
|
|
@@ -179,6 +171,15 @@ export function build_info() {
|
|
|
179
171
|
return takeObject(ret);
|
|
180
172
|
}
|
|
181
173
|
|
|
174
|
+
/**
|
|
175
|
+
* @param {any} args
|
|
176
|
+
* @returns {any}
|
|
177
|
+
*/
|
|
178
|
+
export function compile(args) {
|
|
179
|
+
const ret = wasm.compile(addHeapObject(args));
|
|
180
|
+
return takeObject(ret);
|
|
181
|
+
}
|
|
182
|
+
|
|
182
183
|
function handleError(f, args) {
|
|
183
184
|
try {
|
|
184
185
|
return f.apply(this, args);
|
|
@@ -221,6 +222,9 @@ async function load(module, imports) {
|
|
|
221
222
|
function getImports() {
|
|
222
223
|
const imports = {};
|
|
223
224
|
imports.wbg = {};
|
|
225
|
+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
226
|
+
takeObject(arg0);
|
|
227
|
+
};
|
|
224
228
|
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
225
229
|
const ret = getObject(arg0) === undefined;
|
|
226
230
|
return ret;
|
|
@@ -229,9 +233,6 @@ function getImports() {
|
|
|
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);
|
package/web/noir_wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -1,11 +1,11 @@
|
|
|
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;
|
|
7
6
|
export function init_log_level(a: number, b: number): void;
|
|
8
7
|
export function build_info(): number;
|
|
8
|
+
export function compile(a: number): number;
|
|
9
9
|
export function __wbindgen_export_0(a: number): number;
|
|
10
10
|
export function __wbindgen_export_1(a: number, b: number, c: number): number;
|
|
11
11
|
export function __wbindgen_add_to_stack_pointer(a: number): number;
|