New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@kevaundray/noir_wasm

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kevaundray/noir_wasm - npm Package Compare versions

Comparing version 0.15.0-kw-play-around-a32adaf80 to 0.15.0-kw-play-around-b27bfd1ba

6

nodejs/noir_wasm_bg.wasm.d.ts
/* tslint:disable */
/* eslint-disable */
export const memory: WebAssembly.Memory;
export function compile(a: number): number;
export function init_log_level(a: number, b: number): void;

@@ -8,7 +9,6 @@ export function build_info(): number;

export function acir_write_bytes(a: number, b: number): void;
export function compile(a: number): number;
export function __wbindgen_export_0(a: number): number;
export function __wbindgen_export_1(a: number, b: number, c: number): number;
export function __wbindgen_export_2(a: number): void;
export function __wbindgen_add_to_stack_pointer(a: number): number;
export function __wbindgen_export_2(a: number, b: number): void;
export function __wbindgen_export_3(a: number): void;
export function __wbindgen_export_3(a: number, b: number): void;
/* tslint:disable */
/* eslint-disable */
/**
* @param {any} args
* @returns {any}
*/
export function compile(args: any): any;
/**
* @param {string} level

@@ -21,6 +26,1 @@ */

export function acir_write_bytes(acir: any): Uint8Array;
/**
* @param {any} args
* @returns {any}
*/
export function compile(args: any): any;
let imports = {};
imports['__wbindgen_placeholder__'] = module.exports;
let wasm;
const { read_file } = require(`@kevaundray/source-resolver`);
const { read_file } = require(`@noir-lang/source-resolver`);
const { TextDecoder, TextEncoder } = require(`util`);

@@ -122,2 +122,18 @@

/**
* @param {any} args
* @returns {any}
*/
module.exports.compile = function(args) {
const ret = wasm.compile(addHeapObject(args));
return takeObject(ret);
};
function handleError(f, args) {
try {
return f.apply(this, args);
} catch (e) {
wasm.__wbindgen_export_2(addHeapObject(e));
}
}
/**
* @param {string} level

@@ -171,3 +187,3 @@ */

var v1 = getArrayU8FromWasm0(r0, r1).slice();
wasm.__wbindgen_export_2(r0, r1 * 1);
wasm.__wbindgen_export_3(r0, r1 * 1);
return v1;

@@ -179,23 +195,2 @@ } finally {

/**
* @param {any} args
* @returns {any}
*/
module.exports.compile = function(args) {
const ret = wasm.compile(addHeapObject(args));
return takeObject(ret);
};
function handleError(f, args) {
try {
return f.apply(this, args);
} catch (e) {
wasm.__wbindgen_export_3(addHeapObject(e));
}
}
module.exports.__wbindgen_object_drop_ref = function(arg0) {
takeObject(arg0);
};
module.exports.__wbindgen_is_undefined = function(arg0) {

@@ -211,2 +206,14 @@ const ret = getObject(arg0) === undefined;

module.exports.__wbindgen_object_drop_ref = function(arg0) {
takeObject(arg0);
};
module.exports.__wbg_readfile_e2b010c5826e7b29 = function() { return handleError(function (arg0, arg1, arg2) {
const ret = read_file(getStringFromWasm0(arg1, arg2));
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
const len1 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len1;
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
}, arguments) };
module.exports.__wbindgen_string_new = function(arg0, arg1) {

@@ -238,14 +245,6 @@ const ret = getStringFromWasm0(arg0, arg1);

} finally {
wasm.__wbindgen_export_2(deferred0_0, deferred0_1);
wasm.__wbindgen_export_3(deferred0_0, deferred0_1);
}
};
module.exports.__wbg_readfile_321c3bbf2e889054 = function() { return handleError(function (arg0, arg1, arg2) {
const ret = read_file(getStringFromWasm0(arg1, arg2));
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
const len1 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len1;
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
}, arguments) };
module.exports.__wbg_debug_efabe4eb183aa5d4 = function(arg0, arg1, arg2, arg3) {

@@ -252,0 +251,0 @@ console.debug(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));

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

],
"version": "0.15.0-kw-play-around-a32adaf80",
"version": "0.15.0-kw-play-around-b27bfd1ba",
"license": "(MIT OR Apache-2.0)",

@@ -9,0 +9,0 @@ "main": "./nodejs/noir_wasm.js",

/* tslint:disable */
/* eslint-disable */
export const memory: WebAssembly.Memory;
export function compile(a: number): number;
export function init_log_level(a: number, b: number): void;

@@ -8,7 +9,6 @@ export function build_info(): number;

export function acir_write_bytes(a: number, b: number): void;
export function compile(a: number): number;
export function __wbindgen_export_0(a: number): number;
export function __wbindgen_export_1(a: number, b: number, c: number): number;
export function __wbindgen_export_2(a: number): void;
export function __wbindgen_add_to_stack_pointer(a: number): number;
export function __wbindgen_export_2(a: number, b: number): void;
export function __wbindgen_export_3(a: number): void;
export function __wbindgen_export_3(a: number, b: number): void;
/* tslint:disable */
/* eslint-disable */
/**
* @param {any} args
* @returns {any}
*/
export function compile(args: any): any;
/**
* @param {string} level

@@ -21,7 +26,2 @@ */

export function acir_write_bytes(acir: any): Uint8Array;
/**
* @param {any} args
* @returns {any}
*/
export function compile(args: any): any;

@@ -32,2 +32,3 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;

readonly memory: WebAssembly.Memory;
readonly compile: (a: number) => number;
readonly init_log_level: (a: number, b: number) => void;

@@ -37,8 +38,7 @@ readonly build_info: () => number;

readonly acir_write_bytes: (a: number, b: number) => void;
readonly compile: (a: number) => number;
readonly __wbindgen_export_0: (a: number) => number;
readonly __wbindgen_export_1: (a: number, b: number, c: number) => number;
readonly __wbindgen_export_2: (a: number) => void;
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
readonly __wbindgen_export_2: (a: number, b: number) => void;
readonly __wbindgen_export_3: (a: number) => void;
readonly __wbindgen_export_3: (a: number, b: number) => void;
}

@@ -45,0 +45,0 @@

@@ -1,2 +0,2 @@

import { read_file } from '@kevaundray/source-resolver';
import { read_file } from '@noir-lang/source-resolver';

@@ -120,2 +120,18 @@ let wasm;

/**
* @param {any} args
* @returns {any}
*/
export function compile(args) {
const ret = wasm.compile(addHeapObject(args));
return takeObject(ret);
}
function handleError(f, args) {
try {
return f.apply(this, args);
} catch (e) {
wasm.__wbindgen_export_2(addHeapObject(e));
}
}
/**
* @param {string} level

@@ -169,3 +185,3 @@ */

var v1 = getArrayU8FromWasm0(r0, r1).slice();
wasm.__wbindgen_export_2(r0, r1 * 1);
wasm.__wbindgen_export_3(r0, r1 * 1);
return v1;

@@ -177,19 +193,2 @@ } finally {

/**
* @param {any} args
* @returns {any}
*/
export function compile(args) {
const ret = wasm.compile(addHeapObject(args));
return takeObject(ret);
}
function handleError(f, args) {
try {
return f.apply(this, args);
} catch (e) {
wasm.__wbindgen_export_3(addHeapObject(e));
}
}
async function __wbg_load(module, imports) {

@@ -229,5 +228,2 @@ if (typeof Response === 'function' && module instanceof Response) {

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

@@ -241,2 +237,12 @@ const ret = getObject(arg0) === undefined;

};
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
takeObject(arg0);
};
imports.wbg.__wbg_readfile_e2b010c5826e7b29 = function() { return handleError(function (arg0, arg1, arg2) {
const ret = read_file(getStringFromWasm0(arg1, arg2));
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
const len1 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len1;
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
}, arguments) };
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {

@@ -265,12 +271,5 @@ const ret = getStringFromWasm0(arg0, arg1);

} finally {
wasm.__wbindgen_export_2(deferred0_0, deferred0_1);
wasm.__wbindgen_export_3(deferred0_0, deferred0_1);
}
};
imports.wbg.__wbg_readfile_321c3bbf2e889054 = function() { return handleError(function (arg0, arg1, arg2) {
const ret = read_file(getStringFromWasm0(arg1, arg2));
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
const len1 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len1;
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
}, arguments) };
imports.wbg.__wbg_debug_efabe4eb183aa5d4 = function(arg0, arg1, arg2, arg3) {

@@ -277,0 +276,0 @@ console.debug(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));

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