@noir-lang/noir_wasm 0.22.0-57eae42.nightly → 0.22.0-66af0e7.nightly

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.
@@ -11,14 +11,6 @@
11
11
  */
12
12
  export function compile_(entry_point: string, contracts: boolean | undefined, dependency_graph: DependencyGraph | undefined, file_source_map: PathToFileSourceMap): CompileResult;
13
13
  /**
14
- * @param {string} level
15
- */
16
- export function init_log_level(level: string): void;
17
- /**
18
- * @returns {any}
19
- */
20
- export function build_info(): any;
21
- /**
22
14
  * @param {string} entry_point
23
15
  * @param {boolean | undefined} contracts
24
16
  * @param {DependencyGraph | undefined} dependency_graph
@@ -26,6 +18,14 @@ export function build_info(): any;
26
18
  * @returns {CompileResult}
27
19
  */
28
20
  export function compile(entry_point: string, contracts: boolean | undefined, dependency_graph: DependencyGraph | undefined, file_source_map: PathToFileSourceMap): CompileResult;
21
+ /**
22
+ * @param {string} filter
23
+ */
24
+ export function init_log_level(filter: string): void;
25
+ /**
26
+ * @returns {any}
27
+ */
28
+ export function build_info(): any;
29
29
 
30
30
  export type Diagnostic = {
31
31
  message: string;
@@ -218,23 +218,6 @@ module.exports.compile_ = function(entry_point, contracts, dependency_graph, fil
218
218
  }
219
219
  };
220
220
 
221
- /**
222
- * @param {string} level
223
- */
224
- module.exports.init_log_level = function(level) {
225
- const ptr0 = passStringToWasm0(level, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
226
- const len0 = WASM_VECTOR_LEN;
227
- wasm.init_log_level(ptr0, len0);
228
- };
229
-
230
- /**
231
- * @returns {any}
232
- */
233
- module.exports.build_info = function() {
234
- const ret = wasm.build_info();
235
- return takeObject(ret);
236
- };
237
-
238
221
  /**
239
222
  * @param {string} entry_point
240
223
  * @param {boolean | undefined} contracts
@@ -262,6 +245,23 @@ module.exports.compile = function(entry_point, contracts, dependency_graph, file
262
245
  }
263
246
  };
264
247
 
248
+ /**
249
+ * @param {string} filter
250
+ */
251
+ module.exports.init_log_level = function(filter) {
252
+ const ptr0 = passStringToWasm0(filter, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
253
+ const len0 = WASM_VECTOR_LEN;
254
+ wasm.init_log_level(ptr0, len0);
255
+ };
256
+
257
+ /**
258
+ * @returns {any}
259
+ */
260
+ module.exports.build_info = function() {
261
+ const ret = wasm.build_info();
262
+ return takeObject(ret);
263
+ };
264
+
265
265
  function handleError(f, args) {
266
266
  try {
267
267
  return f.apply(this, args);
@@ -448,6 +448,11 @@ class PathToFileSourceMap {
448
448
  }
449
449
  module.exports.PathToFileSourceMap = PathToFileSourceMap;
450
450
 
451
+ module.exports.__wbindgen_is_undefined = function(arg0) {
452
+ const ret = getObject(arg0) === undefined;
453
+ return ret;
454
+ };
455
+
451
456
  module.exports.__wbindgen_object_drop_ref = function(arg0) {
452
457
  takeObject(arg0);
453
458
  };
@@ -462,16 +467,6 @@ module.exports.__wbg_constructor_a3b5b211c5053ce8 = function() {
462
467
  return addHeapObject(ret);
463
468
  };
464
469
 
465
- module.exports.__wbindgen_is_undefined = function(arg0) {
466
- const ret = getObject(arg0) === undefined;
467
- return ret;
468
- };
469
-
470
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
471
- const ret = getStringFromWasm0(arg0, arg1);
472
- return addHeapObject(ret);
473
- };
474
-
475
470
  module.exports.__wbg_new_abda76e883ba8a5f = function() {
476
471
  const ret = new Error();
477
472
  return addHeapObject(ret);
@@ -497,6 +492,15 @@ module.exports.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
497
492
  }
498
493
  };
499
494
 
495
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
496
+ const ret = getStringFromWasm0(arg0, arg1);
497
+ return addHeapObject(ret);
498
+ };
499
+
500
+ module.exports.__wbg_debug_e3f6a1578e6d45ca = function(arg0) {
501
+ console.debug(getObject(arg0));
502
+ };
503
+
500
504
  module.exports.__wbg_debug_efabe4eb183aa5d4 = function(arg0, arg1, arg2, arg3) {
501
505
  console.debug(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
502
506
  };
@@ -509,12 +513,16 @@ module.exports.__wbg_error_50f42b952a595a23 = function(arg0, arg1, arg2, arg3) {
509
513
  console.error(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
510
514
  };
511
515
 
516
+ module.exports.__wbg_info_05db236d79f1b785 = function(arg0) {
517
+ console.info(getObject(arg0));
518
+ };
519
+
512
520
  module.exports.__wbg_info_24d8f53d98f12b95 = function(arg0, arg1, arg2, arg3) {
513
521
  console.info(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
514
522
  };
515
523
 
516
- module.exports.__wbg_log_9b164efbe6db702f = function(arg0, arg1, arg2, arg3) {
517
- console.log(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
524
+ module.exports.__wbg_warn_9bdd743e9f5fe1e0 = function(arg0) {
525
+ console.warn(getObject(arg0));
518
526
  };
519
527
 
520
528
  module.exports.__wbg_warn_8342bfbc6028193a = function(arg0, arg1, arg2, arg3) {
Binary file
@@ -10,12 +10,12 @@ export function compilercontext_add_dependency_edge(a: number, b: number, c: num
10
10
  export function compilercontext_compile_program(a: number, b: number, c: number): void;
11
11
  export function compilercontext_compile_contract(a: number, b: number, c: number): void;
12
12
  export function compile_(a: number, b: number, c: number, d: number, e: number, f: number): void;
13
- export function init_log_level(a: number, b: number): void;
14
- export function build_info(): number;
15
13
  export function __wbg_pathtofilesourcemap_free(a: number): void;
16
14
  export function pathtofilesourcemap_new(): number;
17
15
  export function pathtofilesourcemap_add_source_code(a: number, b: number, c: number, d: number, e: number): number;
18
16
  export function compile(a: number, b: number, c: number, d: number, e: number, f: number): void;
17
+ export function init_log_level(a: number, b: number): void;
18
+ export function build_info(): number;
19
19
  export function __wbindgen_export_0(a: number): number;
20
20
  export function __wbindgen_export_1(a: number, b: number, c: number): number;
21
21
  export function __wbindgen_add_to_stack_pointer(a: number): number;
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@noir-lang/noir_wasm",
3
- "collaborators": [
3
+ "contributors": [
4
4
  "The Noir Team <team@noir-lang.org>"
5
5
  ],
6
- "version": "0.22.0-57eae42.nightly",
6
+ "version": "0.22.0-66af0e7.nightly",
7
7
  "license": "(MIT OR Apache-2.0)",
8
8
  "main": "./nodejs/noir_wasm.js",
9
9
  "types": "./web/noir_wasm.d.ts",
@@ -14,9 +14,14 @@
14
14
  "package.json"
15
15
  ],
16
16
  "sideEffects": false,
17
+ "homepage": "https://noir-lang.org/",
17
18
  "repository": {
18
- "type": "git",
19
- "url": "https://github.com/noir-lang/noir.git"
19
+ "url": "https://github.com/noir-lang/noir.git",
20
+ "directory": "compiler/wasm",
21
+ "type": "git"
22
+ },
23
+ "bugs": {
24
+ "url": "https://github.com/noir-lang/noir/issues"
20
25
  },
21
26
  "scripts": {
22
27
  "build": "bash ./build.sh",
@@ -11,14 +11,6 @@
11
11
  */
12
12
  export function compile_(entry_point: string, contracts: boolean | undefined, dependency_graph: DependencyGraph | undefined, file_source_map: PathToFileSourceMap): CompileResult;
13
13
  /**
14
- * @param {string} level
15
- */
16
- export function init_log_level(level: string): void;
17
- /**
18
- * @returns {any}
19
- */
20
- export function build_info(): any;
21
- /**
22
14
  * @param {string} entry_point
23
15
  * @param {boolean | undefined} contracts
24
16
  * @param {DependencyGraph | undefined} dependency_graph
@@ -26,6 +18,14 @@ export function build_info(): any;
26
18
  * @returns {CompileResult}
27
19
  */
28
20
  export function compile(entry_point: string, contracts: boolean | undefined, dependency_graph: DependencyGraph | undefined, file_source_map: PathToFileSourceMap): CompileResult;
21
+ /**
22
+ * @param {string} filter
23
+ */
24
+ export function init_log_level(filter: string): void;
25
+ /**
26
+ * @returns {any}
27
+ */
28
+ export function build_info(): any;
29
29
 
30
30
  export type Diagnostic = {
31
31
  message: string;
@@ -151,12 +151,12 @@ export interface InitOutput {
151
151
  readonly compilercontext_compile_program: (a: number, b: number, c: number) => void;
152
152
  readonly compilercontext_compile_contract: (a: number, b: number, c: number) => void;
153
153
  readonly compile_: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
154
- readonly init_log_level: (a: number, b: number) => void;
155
- readonly build_info: () => number;
156
154
  readonly __wbg_pathtofilesourcemap_free: (a: number) => void;
157
155
  readonly pathtofilesourcemap_new: () => number;
158
156
  readonly pathtofilesourcemap_add_source_code: (a: number, b: number, c: number, d: number, e: number) => number;
159
157
  readonly compile: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
158
+ readonly init_log_level: (a: number, b: number) => void;
159
+ readonly build_info: () => number;
160
160
  readonly __wbindgen_export_0: (a: number) => number;
161
161
  readonly __wbindgen_export_1: (a: number, b: number, c: number) => number;
162
162
  readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
package/web/noir_wasm.js CHANGED
@@ -215,23 +215,6 @@ export function compile_(entry_point, contracts, dependency_graph, file_source_m
215
215
  }
216
216
  }
217
217
 
218
- /**
219
- * @param {string} level
220
- */
221
- export function init_log_level(level) {
222
- const ptr0 = passStringToWasm0(level, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
223
- const len0 = WASM_VECTOR_LEN;
224
- wasm.init_log_level(ptr0, len0);
225
- }
226
-
227
- /**
228
- * @returns {any}
229
- */
230
- export function build_info() {
231
- const ret = wasm.build_info();
232
- return takeObject(ret);
233
- }
234
-
235
218
  /**
236
219
  * @param {string} entry_point
237
220
  * @param {boolean | undefined} contracts
@@ -259,6 +242,23 @@ export function compile(entry_point, contracts, dependency_graph, file_source_ma
259
242
  }
260
243
  }
261
244
 
245
+ /**
246
+ * @param {string} filter
247
+ */
248
+ export function init_log_level(filter) {
249
+ const ptr0 = passStringToWasm0(filter, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
250
+ const len0 = WASM_VECTOR_LEN;
251
+ wasm.init_log_level(ptr0, len0);
252
+ }
253
+
254
+ /**
255
+ * @returns {any}
256
+ */
257
+ export function build_info() {
258
+ const ret = wasm.build_info();
259
+ return takeObject(ret);
260
+ }
261
+
262
262
  function handleError(f, args) {
263
263
  try {
264
264
  return f.apply(this, args);
@@ -476,6 +476,10 @@ async function __wbg_load(module, imports) {
476
476
  function __wbg_get_imports() {
477
477
  const imports = {};
478
478
  imports.wbg = {};
479
+ imports.wbg.__wbindgen_is_undefined = function(arg0) {
480
+ const ret = getObject(arg0) === undefined;
481
+ return ret;
482
+ };
479
483
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
480
484
  takeObject(arg0);
481
485
  };
@@ -487,14 +491,6 @@ function __wbg_get_imports() {
487
491
  const ret = new Object();
488
492
  return addHeapObject(ret);
489
493
  };
490
- imports.wbg.__wbindgen_is_undefined = function(arg0) {
491
- const ret = getObject(arg0) === undefined;
492
- return ret;
493
- };
494
- imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
495
- const ret = getStringFromWasm0(arg0, arg1);
496
- return addHeapObject(ret);
497
- };
498
494
  imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
499
495
  const ret = new Error();
500
496
  return addHeapObject(ret);
@@ -517,6 +513,13 @@ function __wbg_get_imports() {
517
513
  wasm.__wbindgen_export_2(deferred0_0, deferred0_1);
518
514
  }
519
515
  };
516
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
517
+ const ret = getStringFromWasm0(arg0, arg1);
518
+ return addHeapObject(ret);
519
+ };
520
+ imports.wbg.__wbg_debug_e3f6a1578e6d45ca = function(arg0) {
521
+ console.debug(getObject(arg0));
522
+ };
520
523
  imports.wbg.__wbg_debug_efabe4eb183aa5d4 = function(arg0, arg1, arg2, arg3) {
521
524
  console.debug(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
522
525
  };
@@ -526,11 +529,14 @@ function __wbg_get_imports() {
526
529
  imports.wbg.__wbg_error_50f42b952a595a23 = function(arg0, arg1, arg2, arg3) {
527
530
  console.error(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
528
531
  };
532
+ imports.wbg.__wbg_info_05db236d79f1b785 = function(arg0) {
533
+ console.info(getObject(arg0));
534
+ };
529
535
  imports.wbg.__wbg_info_24d8f53d98f12b95 = function(arg0, arg1, arg2, arg3) {
530
536
  console.info(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
531
537
  };
532
- imports.wbg.__wbg_log_9b164efbe6db702f = function(arg0, arg1, arg2, arg3) {
533
- console.log(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
538
+ imports.wbg.__wbg_warn_9bdd743e9f5fe1e0 = function(arg0) {
539
+ console.warn(getObject(arg0));
534
540
  };
535
541
  imports.wbg.__wbg_warn_8342bfbc6028193a = function(arg0, arg1, arg2, arg3) {
536
542
  console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
Binary file
@@ -10,12 +10,12 @@ export function compilercontext_add_dependency_edge(a: number, b: number, c: num
10
10
  export function compilercontext_compile_program(a: number, b: number, c: number): void;
11
11
  export function compilercontext_compile_contract(a: number, b: number, c: number): void;
12
12
  export function compile_(a: number, b: number, c: number, d: number, e: number, f: number): void;
13
- export function init_log_level(a: number, b: number): void;
14
- export function build_info(): number;
15
13
  export function __wbg_pathtofilesourcemap_free(a: number): void;
16
14
  export function pathtofilesourcemap_new(): number;
17
15
  export function pathtofilesourcemap_add_source_code(a: number, b: number, c: number, d: number, e: number): number;
18
16
  export function compile(a: number, b: number, c: number, d: number, e: number, f: number): void;
17
+ export function init_log_level(a: number, b: number): void;
18
+ export function build_info(): number;
19
19
  export function __wbindgen_export_0(a: number): number;
20
20
  export function __wbindgen_export_1(a: number, b: number, c: number): number;
21
21
  export function __wbindgen_add_to_stack_pointer(a: number): number;