@noir-lang/noir_wasm 0.6.0-dffa3c5 → 0.6.0-eae624b
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 +21 -20
- package/nodejs/noir_wasm_bg.wasm +0 -0
- package/nodejs/noir_wasm_bg.wasm.d.ts +2 -2
- package/package.json +2 -2
- package/web/noir_wasm.d.ts +10 -10
- package/web/noir_wasm.js +20 -19
- 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@eae624b](https://github.com/noir-lang/noir/tree/eae624bc68c41c97199580e41d83f69af5cd0c52)
|
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 {Uint8Array} bytes
|
|
13
5
|
* @returns {any}
|
|
14
6
|
*/
|
|
@@ -23,3 +15,11 @@ export function acir_write_bytes(acir: any): Uint8Array;
|
|
|
23
15
|
* @returns {any}
|
|
24
16
|
*/
|
|
25
17
|
export function compile(args: any): any;
|
|
18
|
+
/**
|
|
19
|
+
* @param {string} level
|
|
20
|
+
*/
|
|
21
|
+
export function init_log_level(level: string): void;
|
|
22
|
+
/**
|
|
23
|
+
* @returns {any}
|
|
24
|
+
*/
|
|
25
|
+
export function build_info(): any;
|
package/nodejs/noir_wasm.js
CHANGED
|
@@ -117,22 +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
120
|
|
|
137
121
|
function passArray8ToWasm0(arg, malloc) {
|
|
138
122
|
const ptr = malloc(arg.length * 1);
|
|
@@ -181,6 +165,23 @@ module.exports.compile = function(args) {
|
|
|
181
165
|
return takeObject(ret);
|
|
182
166
|
};
|
|
183
167
|
|
|
168
|
+
/**
|
|
169
|
+
* @param {string} level
|
|
170
|
+
*/
|
|
171
|
+
module.exports.init_log_level = function(level) {
|
|
172
|
+
const ptr0 = passStringToWasm0(level, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
173
|
+
const len0 = WASM_VECTOR_LEN;
|
|
174
|
+
wasm.init_log_level(ptr0, len0);
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* @returns {any}
|
|
179
|
+
*/
|
|
180
|
+
module.exports.build_info = function() {
|
|
181
|
+
const ret = wasm.build_info();
|
|
182
|
+
return takeObject(ret);
|
|
183
|
+
};
|
|
184
|
+
|
|
184
185
|
function handleError(f, args) {
|
|
185
186
|
try {
|
|
186
187
|
return f.apply(this, args);
|
|
@@ -189,15 +190,15 @@ function handleError(f, args) {
|
|
|
189
190
|
}
|
|
190
191
|
}
|
|
191
192
|
|
|
192
|
-
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
193
|
-
takeObject(arg0);
|
|
194
|
-
};
|
|
195
|
-
|
|
196
193
|
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
197
194
|
const ret = getObject(arg0) === undefined;
|
|
198
195
|
return ret;
|
|
199
196
|
};
|
|
200
197
|
|
|
198
|
+
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
199
|
+
takeObject(arg0);
|
|
200
|
+
};
|
|
201
|
+
|
|
201
202
|
module.exports.__wbindgen_is_null = function(arg0) {
|
|
202
203
|
const ret = getObject(arg0) === null;
|
|
203
204
|
return 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 init_log_level(a: number, b: number): void;
|
|
5
|
-
export function build_info(): number;
|
|
6
4
|
export function acir_read_bytes(a: number, b: number): number;
|
|
7
5
|
export function acir_write_bytes(a: number, b: number): void;
|
|
8
6
|
export function compile(a: number): number;
|
|
7
|
+
export function init_log_level(a: number, b: number): void;
|
|
8
|
+
export function build_info(): 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-eae624b",
|
|
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": "eae624bc68c41c97199580e41d83f69af5cd0c52"
|
|
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 {Uint8Array} bytes
|
|
13
5
|
* @returns {any}
|
|
14
6
|
*/
|
|
@@ -23,16 +15,24 @@ export function acir_write_bytes(acir: any): Uint8Array;
|
|
|
23
15
|
* @returns {any}
|
|
24
16
|
*/
|
|
25
17
|
export function compile(args: any): any;
|
|
18
|
+
/**
|
|
19
|
+
* @param {string} level
|
|
20
|
+
*/
|
|
21
|
+
export function init_log_level(level: string): void;
|
|
22
|
+
/**
|
|
23
|
+
* @returns {any}
|
|
24
|
+
*/
|
|
25
|
+
export function build_info(): 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 init_log_level: (a: number, b: number) => void;
|
|
32
|
-
readonly build_info: () => number;
|
|
33
31
|
readonly acir_read_bytes: (a: number, b: number) => number;
|
|
34
32
|
readonly acir_write_bytes: (a: number, b: number) => void;
|
|
35
33
|
readonly compile: (a: number) => number;
|
|
34
|
+
readonly init_log_level: (a: number, b: number) => void;
|
|
35
|
+
readonly build_info: () => 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,22 +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
118
|
|
|
135
119
|
function passArray8ToWasm0(arg, malloc) {
|
|
136
120
|
const ptr = malloc(arg.length * 1);
|
|
@@ -179,6 +163,23 @@ export function compile(args) {
|
|
|
179
163
|
return takeObject(ret);
|
|
180
164
|
}
|
|
181
165
|
|
|
166
|
+
/**
|
|
167
|
+
* @param {string} level
|
|
168
|
+
*/
|
|
169
|
+
export function init_log_level(level) {
|
|
170
|
+
const ptr0 = passStringToWasm0(level, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
171
|
+
const len0 = WASM_VECTOR_LEN;
|
|
172
|
+
wasm.init_log_level(ptr0, len0);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* @returns {any}
|
|
177
|
+
*/
|
|
178
|
+
export function build_info() {
|
|
179
|
+
const ret = wasm.build_info();
|
|
180
|
+
return takeObject(ret);
|
|
181
|
+
}
|
|
182
|
+
|
|
182
183
|
function handleError(f, args) {
|
|
183
184
|
try {
|
|
184
185
|
return f.apply(this, args);
|
|
@@ -221,13 +222,13 @@ async function load(module, imports) {
|
|
|
221
222
|
function getImports() {
|
|
222
223
|
const imports = {};
|
|
223
224
|
imports.wbg = {};
|
|
224
|
-
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
225
|
-
takeObject(arg0);
|
|
226
|
-
};
|
|
227
225
|
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
228
226
|
const ret = getObject(arg0) === undefined;
|
|
229
227
|
return ret;
|
|
230
228
|
};
|
|
229
|
+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
230
|
+
takeObject(arg0);
|
|
231
|
+
};
|
|
231
232
|
imports.wbg.__wbindgen_is_null = function(arg0) {
|
|
232
233
|
const ret = getObject(arg0) === null;
|
|
233
234
|
return 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 init_log_level(a: number, b: number): void;
|
|
5
|
-
export function build_info(): number;
|
|
6
4
|
export function acir_read_bytes(a: number, b: number): number;
|
|
7
5
|
export function acir_write_bytes(a: number, b: number): void;
|
|
8
6
|
export function compile(a: number): number;
|
|
7
|
+
export function init_log_level(a: number, b: number): void;
|
|
8
|
+
export function build_info(): 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;
|