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

@noir-lang/noir_wasm

Package Overview
Dependencies
Maintainers
1
Versions
413
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.18.0-a01549b.nightly to 0.18.0-a098541.nightly

4

nodejs/noir_wasm_bg.wasm.d.ts

@@ -5,6 +5,6 @@ /* tslint:disable */

export function compile(a: number, b: number, c: number, d: number, e: number): void;
export function init_log_level(a: number, b: number): void;
export function build_info(): number;
export function acir_read_bytes(a: number, b: number): number;
export function acir_write_bytes(a: number, b: number): void;
export function init_log_level(a: number, b: number): void;
export function build_info(): number;
export function __wbindgen_export_0(a: number): number;

@@ -11,0 +11,0 @@ export function __wbindgen_export_1(a: number, b: number, c: number): number;

@@ -7,5 +7,13 @@ /* tslint:disable */

* @param {DependencyGraph | undefined} dependency_graph
* @returns {CompileResult}
*/
export function compile(entry_point: string, contracts?: boolean, dependency_graph?: DependencyGraph): CompileResult;
/**
* @param {string} level
*/
export function init_log_level(level: string): void;
/**
* @returns {any}
*/
export function compile(entry_point: string, contracts?: boolean, dependency_graph?: DependencyGraph): any;
export function build_info(): any;
/**

@@ -21,18 +29,3 @@ * @param {Uint8Array} bytes

export function acir_write_bytes(acir: any): Uint8Array;
/**
* @param {string} level
*/
export function init_log_level(level: string): void;
/**
* @returns {any}
*/
export function build_info(): any;
export type DependencyGraph = {
root_dependencies: readonly string[];
library_dependencies: Readonly<Record<string, readonly string[]>>;
}
export type Diagnostic = {

@@ -54,1 +47,40 @@ message: string;

export type DependencyGraph = {
root_dependencies: readonly string[];
library_dependencies: Readonly<Record<string, readonly string[]>>;
}
export type CompiledContract = {
noir_version: string;
name: string;
backend: string;
functions: Array<any>;
events: Array<any>;
};
export type CompiledProgram = {
noir_version: string;
backend: string;
abi: any;
bytecode: string;
}
export type DebugArtifact = {
debug_symbols: Array<any>;
file_map: Record<number, any>;
warnings: Array<any>;
};
export type CompileResult = (
| {
contract: CompiledContract;
debug: DebugArtifact;
}
| {
program: CompiledProgram;
debug: DebugArtifact;
}
);

@@ -190,3 +190,3 @@ let imports = {};

* @param {DependencyGraph | undefined} dependency_graph
* @returns {any}
* @returns {CompileResult}
*/

@@ -218,3 +218,19 @@ module.exports.compile = function(entry_point, contracts, dependency_graph) {

}
/**
* @param {string} level
*/
module.exports.init_log_level = function(level) {
const ptr0 = passStringToWasm0(level, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
const len0 = WASM_VECTOR_LEN;
wasm.init_log_level(ptr0, len0);
};
/**
* @returns {any}
*/
module.exports.build_info = function() {
const ret = wasm.build_info();
return takeObject(ret);
};
function passArray8ToWasm0(arg, malloc) {

@@ -259,19 +275,7 @@ const ptr = malloc(arg.length * 1) >>> 0;

/**
* @param {string} level
*/
module.exports.init_log_level = function(level) {
const ptr0 = passStringToWasm0(level, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
const len0 = WASM_VECTOR_LEN;
wasm.init_log_level(ptr0, len0);
module.exports.__wbindgen_is_undefined = function(arg0) {
const ret = getObject(arg0) === undefined;
return ret;
};
/**
* @returns {any}
*/
module.exports.build_info = function() {
const ret = wasm.build_info();
return takeObject(ret);
};
module.exports.__wbindgen_object_drop_ref = function(arg0) {

@@ -286,2 +290,7 @@ takeObject(arg0);

module.exports.__wbg_constructor_e29c95824faa216c = function() {
const ret = new Object();
return addHeapObject(ret);
};
module.exports.__wbg_readfile_a8c4f775fbe0578e = function() { return handleError(function (arg0, arg1, arg2) {

@@ -295,7 +304,2 @@ const ret = read_file(getStringFromWasm0(arg1, arg2));

module.exports.__wbindgen_is_undefined = function(arg0) {
const ret = getObject(arg0) === undefined;
return ret;
};
module.exports.__wbindgen_string_new = function(arg0, arg1) {

@@ -302,0 +306,0 @@ const ret = getStringFromWasm0(arg0, arg1);

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

],
"version": "0.18.0-a01549b.nightly",
"version": "0.18.0-a098541.nightly",
"license": "(MIT OR Apache-2.0)",

@@ -35,3 +35,3 @@ "main": "./nodejs/noir_wasm.js",

"peerDependencies": {
"@noir-lang/source-resolver": "0.18.0-a01549b.nightly"
"@noir-lang/source-resolver": "0.18.0-a098541.nightly"
},

@@ -38,0 +38,0 @@ "devDependencies": {

@@ -5,6 +5,6 @@ /* tslint:disable */

export function compile(a: number, b: number, c: number, d: number, e: number): void;
export function init_log_level(a: number, b: number): void;
export function build_info(): number;
export function acir_read_bytes(a: number, b: number): number;
export function acir_write_bytes(a: number, b: number): void;
export function init_log_level(a: number, b: number): void;
export function build_info(): number;
export function __wbindgen_export_0(a: number): number;

@@ -11,0 +11,0 @@ export function __wbindgen_export_1(a: number, b: number, c: number): number;

@@ -7,5 +7,13 @@ /* tslint:disable */

* @param {DependencyGraph | undefined} dependency_graph
* @returns {CompileResult}
*/
export function compile(entry_point: string, contracts?: boolean, dependency_graph?: DependencyGraph): CompileResult;
/**
* @param {string} level
*/
export function init_log_level(level: string): void;
/**
* @returns {any}
*/
export function compile(entry_point: string, contracts?: boolean, dependency_graph?: DependencyGraph): any;
export function build_info(): any;
/**

@@ -21,18 +29,3 @@ * @param {Uint8Array} bytes

export function acir_write_bytes(acir: any): Uint8Array;
/**
* @param {string} level
*/
export function init_log_level(level: string): void;
/**
* @returns {any}
*/
export function build_info(): any;
export type DependencyGraph = {
root_dependencies: readonly string[];
library_dependencies: Readonly<Record<string, readonly string[]>>;
}
export type Diagnostic = {

@@ -55,2 +48,41 @@ message: string;

export type DependencyGraph = {
root_dependencies: readonly string[];
library_dependencies: Readonly<Record<string, readonly string[]>>;
}
export type CompiledContract = {
noir_version: string;
name: string;
backend: string;
functions: Array<any>;
events: Array<any>;
};
export type CompiledProgram = {
noir_version: string;
backend: string;
abi: any;
bytecode: string;
}
export type DebugArtifact = {
debug_symbols: Array<any>;
file_map: Record<number, any>;
warnings: Array<any>;
};
export type CompileResult = (
| {
contract: CompiledContract;
debug: DebugArtifact;
}
| {
program: CompiledProgram;
debug: DebugArtifact;
}
);
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;

@@ -61,6 +93,6 @@

readonly compile: (a: number, b: number, c: number, d: number, e: number) => void;
readonly init_log_level: (a: number, b: number) => void;
readonly build_info: () => number;
readonly acir_read_bytes: (a: number, b: number) => number;
readonly acir_write_bytes: (a: number, b: number) => void;
readonly init_log_level: (a: number, b: number) => void;
readonly build_info: () => number;
readonly __wbindgen_export_0: (a: number) => number;

@@ -67,0 +99,0 @@ readonly __wbindgen_export_1: (a: number, b: number, c: number) => number;

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

* @param {DependencyGraph | undefined} dependency_graph
* @returns {any}
* @returns {CompileResult}
*/

@@ -216,3 +216,19 @@ export function compile(entry_point, contracts, dependency_graph) {

}
/**
* @param {string} level
*/
export function init_log_level(level) {
const ptr0 = passStringToWasm0(level, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
const len0 = WASM_VECTOR_LEN;
wasm.init_log_level(ptr0, len0);
}
/**
* @returns {any}
*/
export function build_info() {
const ret = wasm.build_info();
return takeObject(ret);
}
function passArray8ToWasm0(arg, malloc) {

@@ -257,19 +273,2 @@ const ptr = malloc(arg.length * 1) >>> 0;

/**
* @param {string} level
*/
export function init_log_level(level) {
const ptr0 = passStringToWasm0(level, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
const len0 = WASM_VECTOR_LEN;
wasm.init_log_level(ptr0, len0);
}
/**
* @returns {any}
*/
export function build_info() {
const ret = wasm.build_info();
return takeObject(ret);
}
async function __wbg_load(module, imports) {

@@ -309,2 +308,6 @@ if (typeof Response === 'function' && module instanceof Response) {

imports.wbg = {};
imports.wbg.__wbindgen_is_undefined = function(arg0) {
const ret = getObject(arg0) === undefined;
return ret;
};
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {

@@ -317,2 +320,6 @@ takeObject(arg0);

};
imports.wbg.__wbg_constructor_e29c95824faa216c = function() {
const ret = new Object();
return addHeapObject(ret);
};
imports.wbg.__wbg_readfile_a8c4f775fbe0578e = function() { return handleError(function (arg0, arg1, arg2) {

@@ -325,6 +332,2 @@ const ret = read_file(getStringFromWasm0(arg1, arg2));

}, arguments) };
imports.wbg.__wbindgen_is_undefined = function(arg0) {
const ret = getObject(arg0) === undefined;
return ret;
};
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {

@@ -331,0 +334,0 @@ const ret = getStringFromWasm0(arg0, arg1);

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