@noir-lang/noir_wasm 0.31.0 → 0.32.0

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.31.0",
6
+ "version": "0.32.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.31.0",
6
+ "version": "0.32.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
@@ -199,21 +199,19 @@ function _assertClass(instance, klass) {
199
199
  return instance.ptr;
200
200
  }
201
201
  /**
202
- * This is a method that exposes the same API as `compile`
203
- * But uses the Context based APi internally
204
202
  * @param {string} entry_point
205
203
  * @param {DependencyGraph | undefined} dependency_graph
206
204
  * @param {PathToFileSourceMap} file_source_map
207
205
  * @returns {ProgramCompileResult}
208
206
  */
209
- module.exports.compile_program_ = function(entry_point, dependency_graph, file_source_map) {
207
+ module.exports.compile_program = function(entry_point, dependency_graph, file_source_map) {
210
208
  try {
211
209
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
212
210
  const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
213
211
  const len0 = WASM_VECTOR_LEN;
214
212
  _assertClass(file_source_map, PathToFileSourceMap);
215
213
  var ptr1 = file_source_map.__destroy_into_raw();
216
- wasm.compile_program_(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
214
+ wasm.compile_program(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
217
215
  var r0 = getInt32Memory0()[retptr / 4 + 0];
218
216
  var r1 = getInt32Memory0()[retptr / 4 + 1];
219
217
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -227,21 +225,19 @@ module.exports.compile_program_ = function(entry_point, dependency_graph, file_s
227
225
  };
228
226
 
229
227
  /**
230
- * This is a method that exposes the same API as `compile`
231
- * But uses the Context based APi internally
232
228
  * @param {string} entry_point
233
229
  * @param {DependencyGraph | undefined} dependency_graph
234
230
  * @param {PathToFileSourceMap} file_source_map
235
231
  * @returns {ContractCompileResult}
236
232
  */
237
- module.exports.compile_contract_ = function(entry_point, dependency_graph, file_source_map) {
233
+ module.exports.compile_contract = function(entry_point, dependency_graph, file_source_map) {
238
234
  try {
239
235
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
240
236
  const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
241
237
  const len0 = WASM_VECTOR_LEN;
242
238
  _assertClass(file_source_map, PathToFileSourceMap);
243
239
  var ptr1 = file_source_map.__destroy_into_raw();
244
- wasm.compile_contract_(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
240
+ wasm.compile_contract(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
245
241
  var r0 = getInt32Memory0()[retptr / 4 + 0];
246
242
  var r1 = getInt32Memory0()[retptr / 4 + 1];
247
243
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -255,19 +251,21 @@ module.exports.compile_contract_ = function(entry_point, dependency_graph, file_
255
251
  };
256
252
 
257
253
  /**
254
+ * This is a method that exposes the same API as `compile`
255
+ * But uses the Context based APi internally
258
256
  * @param {string} entry_point
259
257
  * @param {DependencyGraph | undefined} dependency_graph
260
258
  * @param {PathToFileSourceMap} file_source_map
261
259
  * @returns {ProgramCompileResult}
262
260
  */
263
- module.exports.compile_program = function(entry_point, dependency_graph, file_source_map) {
261
+ module.exports.compile_program_ = function(entry_point, dependency_graph, file_source_map) {
264
262
  try {
265
263
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
266
264
  const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
267
265
  const len0 = WASM_VECTOR_LEN;
268
266
  _assertClass(file_source_map, PathToFileSourceMap);
269
267
  var ptr1 = file_source_map.__destroy_into_raw();
270
- wasm.compile_program(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
268
+ wasm.compile_program_(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
271
269
  var r0 = getInt32Memory0()[retptr / 4 + 0];
272
270
  var r1 = getInt32Memory0()[retptr / 4 + 1];
273
271
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -281,19 +279,21 @@ module.exports.compile_program = function(entry_point, dependency_graph, file_so
281
279
  };
282
280
 
283
281
  /**
282
+ * This is a method that exposes the same API as `compile`
283
+ * But uses the Context based APi internally
284
284
  * @param {string} entry_point
285
285
  * @param {DependencyGraph | undefined} dependency_graph
286
286
  * @param {PathToFileSourceMap} file_source_map
287
287
  * @returns {ContractCompileResult}
288
288
  */
289
- module.exports.compile_contract = function(entry_point, dependency_graph, file_source_map) {
289
+ module.exports.compile_contract_ = function(entry_point, dependency_graph, file_source_map) {
290
290
  try {
291
291
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
292
292
  const ptr0 = passStringToWasm0(entry_point, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
293
293
  const len0 = WASM_VECTOR_LEN;
294
294
  _assertClass(file_source_map, PathToFileSourceMap);
295
295
  var ptr1 = file_source_map.__destroy_into_raw();
296
- wasm.compile_contract(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
296
+ wasm.compile_contract_(retptr, ptr0, len0, isLikeNone(dependency_graph) ? 0 : addHeapObject(dependency_graph), ptr1);
297
297
  var r0 = getInt32Memory0()[retptr / 4 + 0];
298
298
  var r1 = getInt32Memory0()[retptr / 4 + 1];
299
299
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -523,7 +523,7 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
523
523
  takeObject(arg0);
524
524
  };
525
525
 
526
- module.exports.__wbg_constructor_23a70262203c0d24 = function() {
526
+ module.exports.__wbg_constructor_1e8197daa87b8402 = function() {
527
527
  const ret = new Object();
528
528
  return addHeapObject(ret);
529
529
  };
@@ -533,7 +533,7 @@ module.exports.__wbindgen_is_undefined = function(arg0) {
533
533
  return ret;
534
534
  };
535
535
 
536
- module.exports.__wbg_constructor_2a2d75afec348bca = function(arg0) {
536
+ module.exports.__wbg_constructor_1c9ff776d22374a5 = function(arg0) {
537
537
  const ret = new Error(takeObject(arg0));
538
538
  return addHeapObject(ret);
539
539
  };