Socket
Socket
Sign inDemoInstall

@noir-lang/noir_wasm

Package Overview
Dependencies
Maintainers
1
Versions
342
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.2.0-5bd4bd5 to 0.2.0-870ea46

2

nodejs/noir_wasm_bg.wasm.d.ts

@@ -7,2 +7,4 @@ /* tslint:disable */

export function acir_to_bytes(a: number, b: number): void;
export function acir_read_bytes(a: number, b: number): number;
export function acir_write_bytes(a: number, b: number): void;
export function build_info(): number;

@@ -9,0 +11,0 @@ export function __wbindgen_export_0(a: number): number;

@@ -19,4 +19,14 @@ /* tslint:disable */

/**
* @param {Uint8Array} bytes
* @returns {any}
*/
export function acir_read_bytes(bytes: Uint8Array): any;
/**
* @param {any} acir
* @returns {Uint8Array}
*/
export function acir_write_bytes(acir: any): Uint8Array;
/**
* @returns {any}
*/
export function build_info(): any;

@@ -170,4 +170,33 @@ let imports = {};

/**
* @param {Uint8Array} bytes
* @returns {any}
*/
module.exports.acir_read_bytes = function(bytes) {
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_export_0);
const len0 = WASM_VECTOR_LEN;
const ret = wasm.acir_read_bytes(ptr0, len0);
return takeObject(ret);
};
/**
* @param {any} acir
* @returns {Uint8Array}
*/
module.exports.acir_write_bytes = function(acir) {
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
wasm.acir_write_bytes(retptr, addHeapObject(acir));
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
var v0 = getArrayU8FromWasm0(r0, r1).slice();
wasm.__wbindgen_export_2(r0, r1 * 1);
return v0;
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
}
};
/**
* @returns {any}
*/
module.exports.build_info = function() {

@@ -186,2 +215,6 @@ const ret = wasm.build_info();

module.exports.__wbindgen_object_drop_ref = function(arg0) {
takeObject(arg0);
};
module.exports.__wbindgen_is_undefined = function(arg0) {

@@ -192,6 +225,2 @@ const ret = getObject(arg0) === undefined;

module.exports.__wbindgen_object_drop_ref = function(arg0) {
takeObject(arg0);
};
module.exports.__wbg_readfile_1ed72752a157b319 = function() { return handleError(function (arg0, arg1, arg2) {

@@ -198,0 +227,0 @@ const ret = read_file(getStringFromWasm0(arg1, arg2));

4

package.json

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

],
"version": "0.2.0-5bd4bd5",
"version": "0.2.0-870ea46",
"files": [

@@ -25,4 +25,4 @@ "nodejs",

"compiler": {
"versionHash": "5bd4bd5047e4bc9a67bd79ab2a2519dc0c92da42"
"versionHash": "870ea463583502db106d4c8b05ad5c02fb6f8428"
}
}
# Noir Lang WASM JavaScript Package
## Tracks
Noir lang Repository [noir-lang/noir@5bd4bd5](https://github.com/noir-lang/noir/tree/5bd4bd5047e4bc9a67bd79ab2a2519dc0c92da42)
Noir lang Repository [noir-lang/noir@870ea46](https://github.com/noir-lang/noir/tree/870ea463583502db106d4c8b05ad5c02fb6f8428)

@@ -7,2 +7,4 @@ /* tslint:disable */

export function acir_to_bytes(a: number, b: number): void;
export function acir_read_bytes(a: number, b: number): number;
export function acir_write_bytes(a: number, b: number): void;
export function build_info(): number;

@@ -9,0 +11,0 @@ export function __wbindgen_export_0(a: number): number;

@@ -19,4 +19,14 @@ /* tslint:disable */

/**
* @param {Uint8Array} bytes
* @returns {any}
*/
export function acir_read_bytes(bytes: Uint8Array): any;
/**
* @param {any} acir
* @returns {Uint8Array}
*/
export function acir_write_bytes(acir: any): Uint8Array;
/**
* @returns {any}
*/
export function build_info(): any;

@@ -31,2 +41,4 @@

readonly acir_to_bytes: (a: number, b: number) => void;
readonly acir_read_bytes: (a: number, b: number) => number;
readonly acir_write_bytes: (a: number, b: number) => void;
readonly build_info: () => number;

@@ -33,0 +45,0 @@ readonly __wbindgen_export_0: (a: number) => number;

@@ -168,4 +168,33 @@ import { read_file } from '@noir-lang/noir-source-resolver';

/**
* @param {Uint8Array} bytes
* @returns {any}
*/
export function acir_read_bytes(bytes) {
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_export_0);
const len0 = WASM_VECTOR_LEN;
const ret = wasm.acir_read_bytes(ptr0, len0);
return takeObject(ret);
}
/**
* @param {any} acir
* @returns {Uint8Array}
*/
export function acir_write_bytes(acir) {
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
wasm.acir_write_bytes(retptr, addHeapObject(acir));
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
var v0 = getArrayU8FromWasm0(r0, r1).slice();
wasm.__wbindgen_export_2(r0, r1 * 1);
return v0;
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
}
}
/**
* @returns {any}
*/
export function build_info() {

@@ -218,2 +247,5 @@ const ret = wasm.build_info();

imports.wbg = {};
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
takeObject(arg0);
};
imports.wbg.__wbindgen_is_undefined = function(arg0) {

@@ -223,5 +255,2 @@ const ret = getObject(arg0) === undefined;

};
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
takeObject(arg0);
};
imports.wbg.__wbg_readfile_1ed72752a157b319 = function() { return handleError(function (arg0, arg1, arg2) {

@@ -228,0 +257,0 @@ const ret = read_file(getStringFromWasm0(arg1, arg2));

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