@noir-lang/noir_wasm 0.6.0-181813 → 0.6.0-2777348
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 -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 +12 -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@2777348](https://github.com/noir-lang/noir/tree/2777348263af63ceae33015361298eb2916047e5)
|
package/nodejs/noir_wasm.d.ts
CHANGED
|
@@ -11,6 +11,11 @@ export function acir_read_bytes(bytes: Uint8Array): any;
|
|
|
11
11
|
*/
|
|
12
12
|
export function acir_write_bytes(acir: any): Uint8Array;
|
|
13
13
|
/**
|
|
14
|
+
* @param {any} args
|
|
15
|
+
* @returns {any}
|
|
16
|
+
*/
|
|
17
|
+
export function compile(args: any): any;
|
|
18
|
+
/**
|
|
14
19
|
* @param {string} level
|
|
15
20
|
*/
|
|
16
21
|
export function init_log_level(level: string): void;
|
|
@@ -18,8 +23,3 @@ export function init_log_level(level: string): void;
|
|
|
18
23
|
* @returns {any}
|
|
19
24
|
*/
|
|
20
25
|
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
|
@@ -156,6 +156,15 @@ module.exports.acir_write_bytes = function(acir) {
|
|
|
156
156
|
}
|
|
157
157
|
};
|
|
158
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
|
+
|
|
159
168
|
/**
|
|
160
169
|
* @param {string} level
|
|
161
170
|
*/
|
|
@@ -173,15 +182,6 @@ module.exports.build_info = function() {
|
|
|
173
182
|
return takeObject(ret);
|
|
174
183
|
};
|
|
175
184
|
|
|
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
|
-
|
|
185
185
|
function handleError(f, args) {
|
|
186
186
|
try {
|
|
187
187
|
return f.apply(this, args);
|
|
@@ -190,15 +190,15 @@ function handleError(f, args) {
|
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
|
|
193
|
-
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
194
|
-
takeObject(arg0);
|
|
195
|
-
};
|
|
196
|
-
|
|
197
193
|
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
198
194
|
const ret = getObject(arg0) === undefined;
|
|
199
195
|
return ret;
|
|
200
196
|
};
|
|
201
197
|
|
|
198
|
+
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
199
|
+
takeObject(arg0);
|
|
200
|
+
};
|
|
201
|
+
|
|
202
202
|
module.exports.__wbindgen_is_null = function(arg0) {
|
|
203
203
|
const ret = getObject(arg0) === null;
|
|
204
204
|
return ret;
|
package/nodejs/noir_wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
4
|
export function acir_read_bytes(a: number, b: number): number;
|
|
5
5
|
export function acir_write_bytes(a: number, b: number): void;
|
|
6
|
+
export function compile(a: number): number;
|
|
6
7
|
export function init_log_level(a: number, b: number): void;
|
|
7
8
|
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.6.0-
|
|
6
|
+
"version": "0.6.0-2777348",
|
|
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": "2777348263af63ceae33015361298eb2916047e5"
|
|
25
25
|
}
|
|
26
26
|
}
|
package/web/noir_wasm.d.ts
CHANGED
|
@@ -11,6 +11,11 @@ export function acir_read_bytes(bytes: Uint8Array): any;
|
|
|
11
11
|
*/
|
|
12
12
|
export function acir_write_bytes(acir: any): Uint8Array;
|
|
13
13
|
/**
|
|
14
|
+
* @param {any} args
|
|
15
|
+
* @returns {any}
|
|
16
|
+
*/
|
|
17
|
+
export function compile(args: any): any;
|
|
18
|
+
/**
|
|
14
19
|
* @param {string} level
|
|
15
20
|
*/
|
|
16
21
|
export function init_log_level(level: string): void;
|
|
@@ -18,11 +23,6 @@ export function init_log_level(level: string): void;
|
|
|
18
23
|
* @returns {any}
|
|
19
24
|
*/
|
|
20
25
|
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
|
|
|
@@ -30,9 +30,9 @@ export interface InitOutput {
|
|
|
30
30
|
readonly memory: WebAssembly.Memory;
|
|
31
31
|
readonly acir_read_bytes: (a: number, b: number) => number;
|
|
32
32
|
readonly acir_write_bytes: (a: number, b: number) => void;
|
|
33
|
+
readonly compile: (a: number) => number;
|
|
33
34
|
readonly init_log_level: (a: number, b: number) => void;
|
|
34
35
|
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
|
@@ -154,6 +154,15 @@ export function acir_write_bytes(acir) {
|
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
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
|
+
|
|
157
166
|
/**
|
|
158
167
|
* @param {string} level
|
|
159
168
|
*/
|
|
@@ -171,15 +180,6 @@ export function build_info() {
|
|
|
171
180
|
return takeObject(ret);
|
|
172
181
|
}
|
|
173
182
|
|
|
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
|
-
|
|
183
183
|
function handleError(f, args) {
|
|
184
184
|
try {
|
|
185
185
|
return f.apply(this, args);
|
|
@@ -222,13 +222,13 @@ async function load(module, imports) {
|
|
|
222
222
|
function getImports() {
|
|
223
223
|
const imports = {};
|
|
224
224
|
imports.wbg = {};
|
|
225
|
-
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
226
|
-
takeObject(arg0);
|
|
227
|
-
};
|
|
228
225
|
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
229
226
|
const ret = getObject(arg0) === undefined;
|
|
230
227
|
return ret;
|
|
231
228
|
};
|
|
229
|
+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
230
|
+
takeObject(arg0);
|
|
231
|
+
};
|
|
232
232
|
imports.wbg.__wbindgen_is_null = function(arg0) {
|
|
233
233
|
const ret = getObject(arg0) === null;
|
|
234
234
|
return ret;
|
package/web/noir_wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
4
|
export function acir_read_bytes(a: number, b: number): number;
|
|
5
5
|
export function acir_write_bytes(a: number, b: number): void;
|
|
6
|
+
export function compile(a: number): number;
|
|
6
7
|
export function init_log_level(a: number, b: number): void;
|
|
7
8
|
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;
|