@noir-lang/noir_wasm 1.0.0-beta.16-5a65dae.nightly → 1.0.0-beta.16-438ab72.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.
Binary file
package/dist/node/main.js CHANGED
@@ -11436,19 +11436,17 @@ function takeFromExternrefTable0(idx) {
11436
11436
  return value;
11437
11437
  }
11438
11438
  /**
11439
- * This is a method that exposes the same API as `compile`
11440
- * But uses the Context based APi internally
11441
11439
  * @param {string} entry_point
11442
11440
  * @param {DependencyGraph | null | undefined} dependency_graph
11443
11441
  * @param {PathToFileSourceMap} file_source_map
11444
11442
  * @returns {ProgramCompileResult}
11445
11443
  */
11446
- module.exports.compile_program_ = function(entry_point, dependency_graph, file_source_map) {
11444
+ module.exports.compile_program = function(entry_point, dependency_graph, file_source_map) {
11447
11445
  const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
11448
11446
  const len0 = WASM_VECTOR_LEN;
11449
11447
  _assertClass(file_source_map, PathToFileSourceMap);
11450
11448
  var ptr1 = file_source_map.__destroy_into_raw();
11451
- const ret = wasm.compile_program_(ptr0, len0, isLikeNone(dependency_graph) ? 0 : addToExternrefTable0(dependency_graph), ptr1);
11449
+ const ret = wasm.compile_program(ptr0, len0, isLikeNone(dependency_graph) ? 0 : addToExternrefTable0(dependency_graph), ptr1);
11452
11450
  if (ret[2]) {
11453
11451
  throw takeFromExternrefTable0(ret[1]);
11454
11452
  }
@@ -11456,19 +11454,17 @@ module.exports.compile_program_ = function(entry_point, dependency_graph, file_s
11456
11454
  };
11457
11455
 
11458
11456
  /**
11459
- * This is a method that exposes the same API as `compile`
11460
- * But uses the Context based APi internally
11461
11457
  * @param {string} entry_point
11462
11458
  * @param {DependencyGraph | null | undefined} dependency_graph
11463
11459
  * @param {PathToFileSourceMap} file_source_map
11464
11460
  * @returns {ContractCompileResult}
11465
11461
  */
11466
- module.exports.compile_contract_ = function(entry_point, dependency_graph, file_source_map) {
11462
+ module.exports.compile_contract = function(entry_point, dependency_graph, file_source_map) {
11467
11463
  const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
11468
11464
  const len0 = WASM_VECTOR_LEN;
11469
11465
  _assertClass(file_source_map, PathToFileSourceMap);
11470
11466
  var ptr1 = file_source_map.__destroy_into_raw();
11471
- const ret = wasm.compile_contract_(ptr0, len0, isLikeNone(dependency_graph) ? 0 : addToExternrefTable0(dependency_graph), ptr1);
11467
+ const ret = wasm.compile_contract(ptr0, len0, isLikeNone(dependency_graph) ? 0 : addToExternrefTable0(dependency_graph), ptr1);
11472
11468
  if (ret[2]) {
11473
11469
  throw takeFromExternrefTable0(ret[1]);
11474
11470
  }
@@ -11493,17 +11489,19 @@ module.exports.build_info = function() {
11493
11489
  };
11494
11490
 
11495
11491
  /**
11492
+ * This is a method that exposes the same API as `compile`
11493
+ * But uses the Context based APi internally
11496
11494
  * @param {string} entry_point
11497
11495
  * @param {DependencyGraph | null | undefined} dependency_graph
11498
11496
  * @param {PathToFileSourceMap} file_source_map
11499
11497
  * @returns {ProgramCompileResult}
11500
11498
  */
11501
- module.exports.compile_program = function(entry_point, dependency_graph, file_source_map) {
11499
+ module.exports.compile_program_ = function(entry_point, dependency_graph, file_source_map) {
11502
11500
  const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
11503
11501
  const len0 = WASM_VECTOR_LEN;
11504
11502
  _assertClass(file_source_map, PathToFileSourceMap);
11505
11503
  var ptr1 = file_source_map.__destroy_into_raw();
11506
- const ret = wasm.compile_program(ptr0, len0, isLikeNone(dependency_graph) ? 0 : addToExternrefTable0(dependency_graph), ptr1);
11504
+ const ret = wasm.compile_program_(ptr0, len0, isLikeNone(dependency_graph) ? 0 : addToExternrefTable0(dependency_graph), ptr1);
11507
11505
  if (ret[2]) {
11508
11506
  throw takeFromExternrefTable0(ret[1]);
11509
11507
  }
@@ -11511,17 +11509,19 @@ module.exports.compile_program = function(entry_point, dependency_graph, file_so
11511
11509
  };
11512
11510
 
11513
11511
  /**
11512
+ * This is a method that exposes the same API as `compile`
11513
+ * But uses the Context based APi internally
11514
11514
  * @param {string} entry_point
11515
11515
  * @param {DependencyGraph | null | undefined} dependency_graph
11516
11516
  * @param {PathToFileSourceMap} file_source_map
11517
11517
  * @returns {ContractCompileResult}
11518
11518
  */
11519
- module.exports.compile_contract = function(entry_point, dependency_graph, file_source_map) {
11519
+ module.exports.compile_contract_ = function(entry_point, dependency_graph, file_source_map) {
11520
11520
  const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
11521
11521
  const len0 = WASM_VECTOR_LEN;
11522
11522
  _assertClass(file_source_map, PathToFileSourceMap);
11523
11523
  var ptr1 = file_source_map.__destroy_into_raw();
11524
- const ret = wasm.compile_contract(ptr0, len0, isLikeNone(dependency_graph) ? 0 : addToExternrefTable0(dependency_graph), ptr1);
11524
+ const ret = wasm.compile_contract_(ptr0, len0, isLikeNone(dependency_graph) ? 0 : addToExternrefTable0(dependency_graph), ptr1);
11525
11525
  if (ret[2]) {
11526
11526
  throw takeFromExternrefTable0(ret[1]);
11527
11527
  }