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

wnfs

Package Overview
Dependencies
Maintainers
8
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wnfs - npm Package Compare versions

Comparing version 0.1.11 to 0.1.12

2

package.json

@@ -8,3 +8,3 @@ {

"description": "WebNative Filesystem API (WebAssembly)",
"version": "0.1.11",
"version": "0.1.12",
"license": "Apache-2.0",

@@ -11,0 +11,0 @@ "repository": {

@@ -231,2 +231,6 @@ /* tslint:disable */

/**
* @returns {PrivateFile}
*/
asFile(): PrivateFile;
/**
* @returns {boolean}

@@ -236,2 +240,6 @@ */

/**
* @returns {boolean}
*/
isFile(): boolean;
/**
* @returns {string}

@@ -438,2 +446,5 @@ */

readonly memory: WebAssembly.Memory;
readonly __wbg_privateforest_free: (a: number) => void;
readonly privateforest_new: () => number;
readonly privateforest_get: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
readonly __wbg_publicdirectory_free: (a: number) => void;

@@ -461,5 +472,8 @@ readonly publicdirectory_new: (a: number) => number;

readonly privatefile_getId: (a: number, b: number) => void;
readonly __wbg_privateforest_free: (a: number) => void;
readonly privateforest_new: () => number;
readonly privateforest_get: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
readonly __wbg_privatenode_free: (a: number) => void;
readonly privatenode_asDir: (a: number, b: number) => void;
readonly privatenode_asFile: (a: number, b: number) => void;
readonly privatenode_isDir: (a: number) => number;
readonly privatenode_isFile: (a: number) => number;
readonly privatenode_getId: (a: number, b: number) => void;
readonly __wbg_publicnode_free: (a: number) => void;

@@ -482,6 +496,2 @@ readonly publicnode_asDir: (a: number, b: number) => void;

readonly namefilter_new: () => number;
readonly __wbg_privatenode_free: (a: number) => void;
readonly privatenode_asDir: (a: number, b: number) => void;
readonly privatenode_isDir: (a: number) => number;
readonly privatenode_getId: (a: number, b: number) => void;
readonly __wbg_foreignblockstore_free: (a: number) => void;

@@ -504,7 +514,7 @@ readonly __wbg_privatedirectory_free: (a: number) => void;

readonly __wbindgen_export_2: WebAssembly.Table;
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hef379fb000518d80: (a: number, b: number, c: number) => void;
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h6b1a796c6f52f561: (a: number, b: number, c: number) => void;
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
readonly __wbindgen_free: (a: number, b: number) => void;
readonly __wbindgen_exn_store: (a: number) => void;
readonly wasm_bindgen__convert__closures__invoke2_mut__hbf8ddbe16f1cb1a9: (a: number, b: number, c: number, d: number) => void;
readonly wasm_bindgen__convert__closures__invoke2_mut__h84e2f35b9400c2bc: (a: number, b: number, c: number, d: number) => void;
}

@@ -511,0 +521,0 @@

@@ -212,5 +212,12 @@

function __wbg_adapter_20(arg0, arg1, arg2) {
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hef379fb000518d80(arg0, arg1, addHeapObject(arg2));
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h6b1a796c6f52f561(arg0, arg1, addHeapObject(arg2));
}
function passArray8ToWasm0(arg, malloc) {
const ptr = malloc(arg.length * 1);
getUint8Memory0().set(arg, ptr / 1);
WASM_VECTOR_LEN = arg.length;
return ptr;
}
let stack_pointer = 32;

@@ -224,9 +231,2 @@

function passArray8ToWasm0(arg, malloc) {
const ptr = malloc(arg.length * 1);
getUint8Memory0().set(arg, ptr / 1);
WASM_VECTOR_LEN = arg.length;
return ptr;
}
function _assertClass(instance, klass) {

@@ -278,4 +278,4 @@ if (!(instance instanceof klass)) {

}
function __wbg_adapter_114(arg0, arg1, arg2, arg3) {
wasm.wasm_bindgen__convert__closures__invoke2_mut__hbf8ddbe16f1cb1a9(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
function __wbg_adapter_116(arg0, arg1, arg2, arg3) {
wasm.wasm_bindgen__convert__closures__invoke2_mut__h84e2f35b9400c2bc(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
}

@@ -934,2 +934,20 @@

/**
* @returns {PrivateFile}
*/
asFile() {
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
wasm.privatenode_asFile(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
var r2 = getInt32Memory0()[retptr / 4 + 2];
if (r2) {
throw takeObject(r1);
}
return PrivateFile.__wrap(r0);
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
}
}
/**
* @returns {boolean}

@@ -942,2 +960,9 @@ */

/**
* @returns {boolean}
*/
isFile() {
const ret = wasm.privatenode_isFile(this.ptr);
return ret !== 0;
}
/**
* @returns {string}

@@ -1605,5 +1630,32 @@ */

imports.wbg = {};
imports.wbg.__wbg_privateforest_new = function(arg0) {
const ret = PrivateForest.__wrap(arg0);
return addHeapObject(ret);
};
imports.wbg.__wbg_publicnode_new = function(arg0) {
const ret = PublicNode.__wrap(arg0);
return addHeapObject(ret);
};
imports.wbg.__wbg_privatenode_new = function(arg0) {
const ret = PrivateNode.__wrap(arg0);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
takeObject(arg0);
};
imports.wbg.__wbg_publicdirectory_new = function(arg0) {
const ret = PublicDirectory.__wrap(arg0);
return addHeapObject(ret);
};
imports.wbg.__wbg_randomBytes_9cc92add688762a1 = function(arg0, arg1, arg2) {
const ret = getObject(arg1).randomBytes(arg2 >>> 0);
const ptr0 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
const len0 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len0;
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
};
imports.wbg.__wbg_privatefile_new = function(arg0) {
const ret = PrivateFile.__wrap(arg0);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_cb_drop = function(arg0) {

@@ -1618,6 +1670,2 @@ const obj = takeObject(arg0).original;

};
imports.wbg.__wbg_publicdirectory_new = function(arg0) {
const ret = PublicDirectory.__wrap(arg0);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {

@@ -1631,21 +1679,2 @@ const obj = getObject(arg1);

};
imports.wbg.__wbg_privatefile_new = function(arg0) {
const ret = PrivateFile.__wrap(arg0);
return addHeapObject(ret);
};
imports.wbg.__wbg_randomBytes_ec3eec3a39698d3f = function(arg0, arg1, arg2) {
const ret = getObject(arg1).randomBytes(arg2 >>> 0);
const ptr0 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
const len0 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len0;
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
};
imports.wbg.__wbg_privateforest_new = function(arg0) {
const ret = PrivateForest.__wrap(arg0);
return addHeapObject(ret);
};
imports.wbg.__wbg_publicnode_new = function(arg0) {
const ret = PublicNode.__wrap(arg0);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {

@@ -1663,6 +1692,2 @@ const ret = getStringFromWasm0(arg0, arg1);

};
imports.wbg.__wbg_privatenode_new = function(arg0) {
const ret = PrivateNode.__wrap(arg0);
return addHeapObject(ret);
};
imports.wbg.__wbg_publicfile_new = function(arg0) {

@@ -1672,7 +1697,3 @@ const ret = PublicFile.__wrap(arg0);

};
imports.wbg.__wbindgen_number_new = function(arg0) {
const ret = arg0;
return addHeapObject(ret);
};
imports.wbg.__wbg_getBlock_8e906523199d38a2 = function(arg0, arg1, arg2) {
imports.wbg.__wbg_getBlock_b30b46ca787e9251 = function(arg0, arg1, arg2) {
var v0 = getArrayU8FromWasm0(arg1, arg2).slice();

@@ -1683,3 +1704,3 @@ wasm.__wbindgen_free(arg1, arg2 * 1);

};
imports.wbg.__wbg_putBlock_e4ff48654798302c = function(arg0, arg1, arg2, arg3) {
imports.wbg.__wbg_putBlock_b259b9f426881e18 = function(arg0, arg1, arg2, arg3) {
var v0 = getArrayU8FromWasm0(arg1, arg2).slice();

@@ -1690,2 +1711,6 @@ wasm.__wbindgen_free(arg1, arg2 * 1);

};
imports.wbg.__wbindgen_number_new = function(arg0) {
const ret = arg0;
return addHeapObject(ret);
};
imports.wbg.__wbg_new_abda76e883ba8a5f = function() {

@@ -1748,3 +1773,3 @@ const ret = new Error();

try {
return __wbg_adapter_114(a, state0.b, arg0, arg1);
return __wbg_adapter_116(a, state0.b, arg0, arg1);
} finally {

@@ -1809,4 +1834,4 @@ state0.a = a;

};
imports.wbg.__wbindgen_closure_wrapper1585 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 656, __wbg_adapter_20);
imports.wbg.__wbindgen_closure_wrapper1628 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 676, __wbg_adapter_20);
return addHeapObject(ret);

@@ -1813,0 +1838,0 @@ };

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