@noir-lang/noir_wasm 1.0.0-beta.4-4bc636a.nightly → 1.0.0-beta.4-77b2261.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
@@ -11452,17 +11452,19 @@ function takeFromExternrefTable0(idx) {
11452
11452
  return value;
11453
11453
  }
11454
11454
  /**
11455
+ * This is a method that exposes the same API as `compile`
11456
+ * But uses the Context based APi internally
11455
11457
  * @param {string} entry_point
11456
11458
  * @param {DependencyGraph | null | undefined} dependency_graph
11457
11459
  * @param {PathToFileSourceMap} file_source_map
11458
11460
  * @returns {ProgramCompileResult}
11459
11461
  */
11460
- module.exports.compile_program = function(entry_point, dependency_graph, file_source_map) {
11462
+ module.exports.compile_program_ = function(entry_point, dependency_graph, file_source_map) {
11461
11463
  const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
11462
11464
  const len0 = WASM_VECTOR_LEN;
11463
11465
  _assertClass(file_source_map, PathToFileSourceMap);
11464
11466
  var ptr1 = file_source_map.__destroy_into_raw();
11465
- const ret = wasm.compile_program(ptr0, len0, isLikeNone(dependency_graph) ? 0 : addToExternrefTable0(dependency_graph), ptr1);
11467
+ const ret = wasm.compile_program_(ptr0, len0, isLikeNone(dependency_graph) ? 0 : addToExternrefTable0(dependency_graph), ptr1);
11466
11468
  if (ret[2]) {
11467
11469
  throw takeFromExternrefTable0(ret[1]);
11468
11470
  }
@@ -11470,17 +11472,19 @@ module.exports.compile_program = function(entry_point, dependency_graph, file_so
11470
11472
  };
11471
11473
 
11472
11474
  /**
11475
+ * This is a method that exposes the same API as `compile`
11476
+ * But uses the Context based APi internally
11473
11477
  * @param {string} entry_point
11474
11478
  * @param {DependencyGraph | null | undefined} dependency_graph
11475
11479
  * @param {PathToFileSourceMap} file_source_map
11476
11480
  * @returns {ContractCompileResult}
11477
11481
  */
11478
- module.exports.compile_contract = function(entry_point, dependency_graph, file_source_map) {
11482
+ module.exports.compile_contract_ = function(entry_point, dependency_graph, file_source_map) {
11479
11483
  const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
11480
11484
  const len0 = WASM_VECTOR_LEN;
11481
11485
  _assertClass(file_source_map, PathToFileSourceMap);
11482
11486
  var ptr1 = file_source_map.__destroy_into_raw();
11483
- const ret = wasm.compile_contract(ptr0, len0, isLikeNone(dependency_graph) ? 0 : addToExternrefTable0(dependency_graph), ptr1);
11487
+ const ret = wasm.compile_contract_(ptr0, len0, isLikeNone(dependency_graph) ? 0 : addToExternrefTable0(dependency_graph), ptr1);
11484
11488
  if (ret[2]) {
11485
11489
  throw takeFromExternrefTable0(ret[1]);
11486
11490
  }
@@ -11488,19 +11492,17 @@ module.exports.compile_contract = function(entry_point, dependency_graph, file_s
11488
11492
  };
11489
11493
 
11490
11494
  /**
11491
- * This is a method that exposes the same API as `compile`
11492
- * But uses the Context based APi internally
11493
11495
  * @param {string} entry_point
11494
11496
  * @param {DependencyGraph | null | undefined} dependency_graph
11495
11497
  * @param {PathToFileSourceMap} file_source_map
11496
11498
  * @returns {ProgramCompileResult}
11497
11499
  */
11498
- module.exports.compile_program_ = function(entry_point, dependency_graph, file_source_map) {
11500
+ module.exports.compile_program = function(entry_point, dependency_graph, file_source_map) {
11499
11501
  const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
11500
11502
  const len0 = WASM_VECTOR_LEN;
11501
11503
  _assertClass(file_source_map, PathToFileSourceMap);
11502
11504
  var ptr1 = file_source_map.__destroy_into_raw();
11503
- const ret = wasm.compile_program_(ptr0, len0, isLikeNone(dependency_graph) ? 0 : addToExternrefTable0(dependency_graph), ptr1);
11505
+ const ret = wasm.compile_program(ptr0, len0, isLikeNone(dependency_graph) ? 0 : addToExternrefTable0(dependency_graph), ptr1);
11504
11506
  if (ret[2]) {
11505
11507
  throw takeFromExternrefTable0(ret[1]);
11506
11508
  }
@@ -11508,19 +11510,17 @@ module.exports.compile_program_ = function(entry_point, dependency_graph, file_s
11508
11510
  };
11509
11511
 
11510
11512
  /**
11511
- * This is a method that exposes the same API as `compile`
11512
- * But uses the Context based APi internally
11513
11513
  * @param {string} entry_point
11514
11514
  * @param {DependencyGraph | null | undefined} dependency_graph
11515
11515
  * @param {PathToFileSourceMap} file_source_map
11516
11516
  * @returns {ContractCompileResult}
11517
11517
  */
11518
- module.exports.compile_contract_ = function(entry_point, dependency_graph, file_source_map) {
11518
+ module.exports.compile_contract = function(entry_point, dependency_graph, file_source_map) {
11519
11519
  const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
11520
11520
  const len0 = WASM_VECTOR_LEN;
11521
11521
  _assertClass(file_source_map, PathToFileSourceMap);
11522
11522
  var ptr1 = file_source_map.__destroy_into_raw();
11523
- const ret = wasm.compile_contract_(ptr0, len0, isLikeNone(dependency_graph) ? 0 : addToExternrefTable0(dependency_graph), ptr1);
11523
+ const ret = wasm.compile_contract(ptr0, len0, isLikeNone(dependency_graph) ? 0 : addToExternrefTable0(dependency_graph), ptr1);
11524
11524
  if (ret[2]) {
11525
11525
  throw takeFromExternrefTable0(ret[1]);
11526
11526
  }