@noir-lang/noir_wasm 0.26.0-da27e34.nightly → 0.27.0-606ff44.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.
@@ -3,7 +3,7 @@
3
3
  "collaborators": [
4
4
  "The Noir Team <team@noir-lang.org>"
5
5
  ],
6
- "version": "0.26.0",
6
+ "version": "0.27.0",
7
7
  "license": "MIT OR Apache-2.0",
8
8
  "files": [
9
9
  "index_bg.wasm",
@@ -3,7 +3,7 @@
3
3
  "collaborators": [
4
4
  "The Noir Team <team@noir-lang.org>"
5
5
  ],
6
- "version": "0.26.0",
6
+ "version": "0.27.0",
7
7
  "license": "MIT OR Apache-2.0",
8
8
  "files": [
9
9
  "index_bg.wasm",
Binary file
package/dist/node/main.js CHANGED
@@ -215,21 +215,19 @@ function _assertClass(instance, klass) {
215
215
  return instance.ptr;
216
216
  }
217
217
  /**
218
- * This is a method that exposes the same API as `compile`
219
- * But uses the Context based APi internally
220
218
  * @param {string} entry_point
221
219
  * @param {DependencyGraph | undefined} dependency_graph
222
220
  * @param {PathToFileSourceMap} file_source_map
223
221
  * @returns {ProgramCompileResult}
224
222
  */
225
- module.exports.compile_program_ = function(entry_point, dependency_graph, file_source_map) {
223
+ module.exports.compile_program = function(entry_point, dependency_graph, file_source_map) {
226
224
  try {
227
225
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
228
226
  const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
229
227
  const len0 = WASM_VECTOR_LEN;
230
228
  _assertClass(file_source_map, PathToFileSourceMap);
231
229
  var ptr1 = file_source_map.__destroy_into_raw();
232
- wasm.compile_program_(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
230
+ wasm.compile_program(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
233
231
  var r0 = getInt32Memory0()[retptr / 4 + 0];
234
232
  var r1 = getInt32Memory0()[retptr / 4 + 1];
235
233
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -243,21 +241,19 @@ module.exports.compile_program_ = function(entry_point, dependency_graph, file_s
243
241
  };
244
242
 
245
243
  /**
246
- * This is a method that exposes the same API as `compile`
247
- * But uses the Context based APi internally
248
244
  * @param {string} entry_point
249
245
  * @param {DependencyGraph | undefined} dependency_graph
250
246
  * @param {PathToFileSourceMap} file_source_map
251
247
  * @returns {ContractCompileResult}
252
248
  */
253
- module.exports.compile_contract_ = function(entry_point, dependency_graph, file_source_map) {
249
+ module.exports.compile_contract = function(entry_point, dependency_graph, file_source_map) {
254
250
  try {
255
251
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
256
252
  const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
257
253
  const len0 = WASM_VECTOR_LEN;
258
254
  _assertClass(file_source_map, PathToFileSourceMap);
259
255
  var ptr1 = file_source_map.__destroy_into_raw();
260
- wasm.compile_contract_(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
256
+ wasm.compile_contract(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
261
257
  var r0 = getInt32Memory0()[retptr / 4 + 0];
262
258
  var r1 = getInt32Memory0()[retptr / 4 + 1];
263
259
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -271,19 +267,21 @@ module.exports.compile_contract_ = function(entry_point, dependency_graph, file_
271
267
  };
272
268
 
273
269
  /**
270
+ * This is a method that exposes the same API as `compile`
271
+ * But uses the Context based APi internally
274
272
  * @param {string} entry_point
275
273
  * @param {DependencyGraph | undefined} dependency_graph
276
274
  * @param {PathToFileSourceMap} file_source_map
277
275
  * @returns {ProgramCompileResult}
278
276
  */
279
- module.exports.compile_program = function(entry_point, dependency_graph, file_source_map) {
277
+ module.exports.compile_program_ = function(entry_point, dependency_graph, file_source_map) {
280
278
  try {
281
279
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
282
280
  const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
283
281
  const len0 = WASM_VECTOR_LEN;
284
282
  _assertClass(file_source_map, PathToFileSourceMap);
285
283
  var ptr1 = file_source_map.__destroy_into_raw();
286
- wasm.compile_program(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
284
+ wasm.compile_program_(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
287
285
  var r0 = getInt32Memory0()[retptr / 4 + 0];
288
286
  var r1 = getInt32Memory0()[retptr / 4 + 1];
289
287
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -297,19 +295,21 @@ module.exports.compile_program = function(entry_point, dependency_graph, file_so
297
295
  };
298
296
 
299
297
  /**
298
+ * This is a method that exposes the same API as `compile`
299
+ * But uses the Context based APi internally
300
300
  * @param {string} entry_point
301
301
  * @param {DependencyGraph | undefined} dependency_graph
302
302
  * @param {PathToFileSourceMap} file_source_map
303
303
  * @returns {ContractCompileResult}
304
304
  */
305
- module.exports.compile_contract = function(entry_point, dependency_graph, file_source_map) {
305
+ module.exports.compile_contract_ = function(entry_point, dependency_graph, file_source_map) {
306
306
  try {
307
307
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
308
308
  const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
309
309
  const len0 = WASM_VECTOR_LEN;
310
310
  _assertClass(file_source_map, PathToFileSourceMap);
311
311
  var ptr1 = file_source_map.__destroy_into_raw();
312
- wasm.compile_contract(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
312
+ wasm.compile_contract_(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
313
313
  var r0 = getInt32Memory0()[retptr / 4 + 0];
314
314
  var r1 = getInt32Memory0()[retptr / 4 + 1];
315
315
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -518,21 +518,21 @@ class PathToFileSourceMap {
518
518
  }
519
519
  module.exports.PathToFileSourceMap = PathToFileSourceMap;
520
520
 
521
+ module.exports.__wbindgen_is_undefined = function(arg0) {
522
+ const ret = getObject(arg0) === undefined;
523
+ return ret;
524
+ };
525
+
521
526
  module.exports.__wbindgen_object_drop_ref = function(arg0) {
522
527
  takeObject(arg0);
523
528
  };
524
529
 
525
- module.exports.__wbg_constructor_dc2096d1a846456a = function(arg0) {
530
+ module.exports.__wbg_constructor_d324422a76f57e97 = function(arg0) {
526
531
  const ret = new Error(takeObject(arg0));
527
532
  return addHeapObject(ret);
528
533
  };
529
534
 
530
- module.exports.__wbindgen_is_undefined = function(arg0) {
531
- const ret = getObject(arg0) === undefined;
532
- return ret;
533
- };
534
-
535
- module.exports.__wbg_constructor_16652445ed5bfc27 = function() {
535
+ module.exports.__wbg_constructor_5ba06a405a88a2ec = function() {
536
536
  const ret = new Object();
537
537
  return addHeapObject(ret);
538
538
  };