Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@noir-lang/noir_wasm

Package Overview
Dependencies
Maintainers
1
Versions
394
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@noir-lang/noir_wasm - npm Package Compare versions

Comparing version 0.3.1-7955b1e to 0.3.2-29b1f7df

82

nodejs/noir_wasm.js

@@ -42,12 +42,12 @@ let imports = {};

? function (arg, view) {
return cachedTextEncoder.encodeInto(arg, view);
}
return cachedTextEncoder.encodeInto(arg, view);
}
: function (arg, view) {
const buf = cachedTextEncoder.encode(arg);
view.set(buf);
return {
read: arg.length,
written: buf.length
};
});
const buf = cachedTextEncoder.encode(arg);
view.set(buf);
return {
read: arg.length,
written: buf.length
};
});

@@ -125,3 +125,3 @@ function passStringToWasm0(arg, malloc, realloc) {

*/
module.exports.compile = function(args) {
module.exports.compile = function (args) {
const ret = wasm.compile(addHeapObject(args));

@@ -141,3 +141,3 @@ return takeObject(ret);

*/
module.exports.acir_from_bytes = function(bytes) {
module.exports.acir_from_bytes = function (bytes) {
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_export_0);

@@ -156,3 +156,3 @@ const len0 = WASM_VECTOR_LEN;

*/
module.exports.acir_to_bytes = function(acir) {
module.exports.acir_to_bytes = function (acir) {
try {

@@ -175,3 +175,3 @@ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);

*/
module.exports.acir_read_bytes = function(bytes) {
module.exports.acir_read_bytes = function (bytes) {
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_export_0);

@@ -187,3 +187,3 @@ const len0 = WASM_VECTOR_LEN;

*/
module.exports.acir_write_bytes = function(acir) {
module.exports.acir_write_bytes = function (acir) {
try {

@@ -205,3 +205,3 @@ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);

*/
module.exports.build_info = function() {
module.exports.build_info = function () {
const ret = wasm.build_info();

@@ -219,3 +219,3 @@ return takeObject(ret);

module.exports.__wbindgen_is_undefined = function(arg0) {
module.exports.__wbindgen_is_undefined = function (arg0) {
const ret = getObject(arg0) === undefined;

@@ -225,7 +225,7 @@ return ret;

module.exports.__wbindgen_object_drop_ref = function(arg0) {
module.exports.__wbindgen_object_drop_ref = function (arg0) {
takeObject(arg0);
};
module.exports.__wbg_new_abda76e883ba8a5f = function() {
module.exports.__wbg_new_abda76e883ba8a5f = function () {
const ret = new Error();

@@ -235,3 +235,3 @@ return addHeapObject(ret);

module.exports.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
module.exports.__wbg_stack_658279fe44541cf6 = function (arg0, arg1) {
const ret = getObject(arg1).stack;

@@ -244,3 +244,3 @@ const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);

module.exports.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
module.exports.__wbg_error_f851667af71bcfc6 = function (arg0, arg1) {
try {

@@ -253,13 +253,15 @@ console.error(getStringFromWasm0(arg0, arg1));

module.exports.__wbg_readfile_1583649552f79b9c = function() { return handleError(function (arg0, arg1, arg2) {
const ret = read_file(getStringFromWasm0(arg1, arg2));
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
const len0 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len0;
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
}, arguments) };
module.exports.__wbg_readfile_a43240e6f11dd5eb = function () {
return handleError(function (arg0, arg1, arg2) {
const ret = read_file(getStringFromWasm0(arg1, arg2));
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
const len0 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len0;
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
}, arguments)
};
module.exports.__wbindgen_string_get = function(arg0, arg1) {
module.exports.__wbindgen_string_get = function (arg0, arg1) {
const obj = getObject(arg1);
const ret = typeof(obj) === 'string' ? obj : undefined;
const ret = typeof (obj) === 'string' ? obj : undefined;
var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);

@@ -271,13 +273,17 @@ var len0 = WASM_VECTOR_LEN;

module.exports.__wbg_parse_3ac95b51fc312db8 = function() { return handleError(function (arg0, arg1) {
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
return addHeapObject(ret);
}, arguments) };
module.exports.__wbg_parse_3ac95b51fc312db8 = function () {
return handleError(function (arg0, arg1) {
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
return addHeapObject(ret);
}, arguments)
};
module.exports.__wbg_stringify_029a979dfb73aa17 = function() { return handleError(function (arg0) {
const ret = JSON.stringify(getObject(arg0));
return addHeapObject(ret);
}, arguments) };
module.exports.__wbg_stringify_029a979dfb73aa17 = function () {
return handleError(function (arg0) {
const ret = JSON.stringify(getObject(arg0));
return addHeapObject(ret);
}, arguments)
};
module.exports.__wbindgen_throw = function(arg0, arg1) {
module.exports.__wbindgen_throw = function (arg0, arg1) {
throw new Error(getStringFromWasm0(arg0, arg1));

@@ -284,0 +290,0 @@ };

@@ -6,3 +6,3 @@ {

],
"version": "0.3.1-7955b1e",
"version": "0.3.2-29b1f7df",
"files": [

@@ -18,3 +18,3 @@ "nodejs",

"peerDependencies": {
"@noir-lang/noir-source-resolver": "1.0.0"
"@noir-lang/noir-source-resolver": "1.1.0"
},

@@ -26,4 +26,4 @@ "repository": {

"compiler": {
"versionHash": "7955b1ead2ed3128bbe64bec75a07a2ccaa05ed3"
"versionHash": "29b1f7df4d563849a62e64c533cb62932188135b"
}
}
# Noir Lang WASM JavaScript Package
## Tracks
Noir lang Repository [noir-lang/noir@7955b1e](https://github.com/noir-lang/noir/tree/7955b1ead2ed3128bbe64bec75a07a2ccaa05ed3)
Noir lang Repository [noir-lang/noir@29b1f7df](https://github.com/noir-lang/noir/tree/29b1f7df4d563849a62e64c533cb62932188135b)

@@ -269,3 +269,3 @@ import { read_file } from '@noir-lang/noir-source-resolver';

};
imports.wbg.__wbg_readfile_1583649552f79b9c = function() { return handleError(function (arg0, arg1, arg2) {
imports.wbg.__wbg_readfile_a43240e6f11dd5eb = function() { return handleError(function (arg0, arg1, arg2) {
const ret = read_file(getStringFromWasm0(arg1, arg2));

@@ -272,0 +272,0 @@ const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc