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.15 to 0.1.16

2

package.json

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

"description": "WebNative Filesystem API (WebAssembly)",
"version": "0.1.15",
"version": "0.1.16",
"license": "Apache-2.0",

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

/* tslint:disable */
/* eslint-disable */
/**
* Panic hook lets us get better error messages if our Rust code ever panics.
*
* This function needs to be called at least once during initialisation.
* https://rustwasm.github.io/docs/wasm-pack/tutorials/npm-browser-packages/template-deep-dive/src-utils-rs.html#2-what-is-console_error_panic_hook
*/
export function setPanicHook(): void;
/**
* @param {SharePayload} share_payload

@@ -47,2 +40,9 @@ * @param {number} share_count

/**
* Panic hook lets us get better error messages if our Rust code ever panics.
*
* This function needs to be called at least once during initialisation.
* https://rustwasm.github.io/docs/wasm-pack/tutorials/npm-browser-packages/template-deep-dive/src-utils-rs.html#2-what-is-console_error_panic_hook
*/
export function setPanicHook(): void;
/**
* Represents the format the content a CID points to.

@@ -287,2 +287,7 @@ *

getId(): string;
/**
* Converts this file to a node.
* @returns {PrivateNode}
*/
asNode(): PrivateNode;
}

@@ -299,8 +304,14 @@ /**

/**
* @param {Uint8Array} saturated_namefilter_hash
* @param {Uint8Array} revision_key
* @param {PrivateRef} private_ref
* @param {BlockStore} store
* @returns {Promise<any>}
*/
get(saturated_namefilter_hash: Uint8Array, revision_key: Uint8Array, store: BlockStore): Promise<any>;
get(private_ref: PrivateRef, store: BlockStore): Promise<any>;
/**
* @param {PrivateNode} node
* @param {BlockStore} store
* @param {Rng} rng
* @returns {Promise<any>}
*/
put(node: PrivateNode, store: BlockStore, rng: Rng): Promise<any>;
}

@@ -334,2 +345,25 @@ /**

/**
*/
export class PrivateRef {
free(): void;
/**
* @param {Uint8Array} label
* @param {Uint8Array} temporal_key
* @param {Uint8Array} content_cid
*/
constructor(label: Uint8Array, temporal_key: Uint8Array, content_cid: Uint8Array);
/**
* @returns {Uint8Array}
*/
getLabel(): Uint8Array;
/**
* @returns {Uint8Array}
*/
getTemporalKey(): Uint8Array;
/**
* @returns {Uint8Array}
*/
getContentCid(): Uint8Array;
}
/**
* A directory in a WNFS public file system.

@@ -499,2 +533,7 @@ */

contentCid(): Uint8Array;
/**
* Converts this directory to a node.
* @returns {PublicNode}
*/
asNode(): PublicNode;
}

@@ -550,2 +589,38 @@ /**

readonly memory: WebAssembly.Memory;
readonly __wbg_foreignblockstore_free: (a: number) => void;
readonly __wbg_privatedirectory_free: (a: number) => void;
readonly privatedirectory_new: (a: number, b: number, c: number, d: number) => void;
readonly privatedirectory_withSeed: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
readonly privatedirectory_newAndStore: (a: number, b: number, c: number, d: number, e: number) => number;
readonly privatedirectory_newWithSeedAndStore: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
readonly privatedirectory_getNode: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
readonly privatedirectory_lookupNode: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
readonly privatedirectory_read: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
readonly privatedirectory_ls: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
readonly privatedirectory_rm: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
readonly privatedirectory_write: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
readonly privatedirectory_basicMv: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
readonly privatedirectory_cp: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
readonly privatedirectory_mkdir: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
readonly privatedirectory_metadata: (a: number, b: number) => void;
readonly privatedirectory_asNode: (a: number) => number;
readonly privatedirectory_getId: (a: number, b: number) => void;
readonly __wbg_privatefile_free: (a: number) => void;
readonly privatefile_new: (a: number, b: number, c: number, d: number) => void;
readonly privatefile_withContent: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
readonly privatefile_getContent: (a: number, b: number, c: number, d: number) => void;
readonly privatefile_metadata: (a: number, b: number) => void;
readonly privatefile_getId: (a: number, b: number) => void;
readonly privatefile_asNode: (a: number) => number;
readonly __wbg_privateforest_free: (a: number) => void;
readonly __wbg_privateref_free: (a: number) => void;
readonly privateforest_new: () => number;
readonly privateforest_get: (a: number, b: number, c: number, d: number) => void;
readonly privateforest_put: (a: number, b: number, c: number, d: number, e: number) => void;
readonly privateref_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
readonly privateref_getLabel: (a: number, b: number) => void;
readonly privateref_getTemporalKey: (a: number, b: number) => void;
readonly privateref_getContentCid: (a: number, b: number) => void;
readonly __wbg_namefilter_free: (a: number) => void;
readonly namefilter_new: () => number;
readonly __wbg_privatenode_free: (a: number) => void;

@@ -557,8 +632,9 @@ readonly privatenode_asDir: (a: number, b: number) => void;

readonly privatenode_getId: (a: number, b: number) => void;
readonly __wbg_publicnode_free: (a: number) => void;
readonly publicnode_asDir: (a: number, b: number) => void;
readonly publicnode_asFile: (a: number, b: number) => void;
readonly publicnode_isDir: (a: number) => number;
readonly publicnode_isFile: (a: number) => number;
readonly publicnode_getId: (a: number, b: number) => void;
readonly __wbg_sharepayload_free: (a: number) => void;
readonly sharepayload_fromNode: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
readonly sharepayload_getLabel: (a: number, b: number) => void;
readonly share: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
readonly createShareLabel: (a: number, b: number, c: number, d: number, e: number) => number;
readonly findShare: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
readonly receiveShare: (a: number, b: number, c: number, d: number, e: number) => void;
readonly __wbg_publicdirectory_free: (a: number) => void;

@@ -581,32 +657,2 @@ readonly publicdirectory_new: (a: number) => number;

readonly publicdirectory_getId: (a: number, b: number) => void;
readonly __wbg_foreignblockstore_free: (a: number) => void;
readonly setPanicHook: () => 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_sharepayload_free: (a: number) => void;
readonly sharepayload_fromNode: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
readonly sharepayload_getLabel: (a: number, b: number) => void;
readonly share: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
readonly createShareLabel: (a: number, b: number, c: number, d: number, e: number) => number;
readonly findShare: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
readonly receiveShare: (a: number, b: number, c: number, d: number, e: number) => void;
readonly __wbg_privatedirectory_free: (a: number) => void;
readonly privatedirectory_new: (a: number, b: number, c: number, d: number) => void;
readonly privatedirectory_withSeed: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
readonly privatedirectory_newAndStore: (a: number, b: number, c: number, d: number, e: number) => number;
readonly privatedirectory_newWithSeedAndStore: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
readonly privatedirectory_getNode: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
readonly privatedirectory_lookupNode: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
readonly privatedirectory_read: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
readonly privatedirectory_ls: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
readonly privatedirectory_rm: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
readonly privatedirectory_write: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
readonly privatedirectory_basicMv: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
readonly privatedirectory_cp: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
readonly privatedirectory_mkdir: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
readonly privatedirectory_metadata: (a: number, b: number) => void;
readonly privatedirectory_asNode: (a: number) => number;
readonly privatedirectory_getId: (a: number, b: number) => void;
readonly __wbg_foreignexchangekey_free: (a: number) => void;
readonly __wbg_publicfile_free: (a: number) => void;

@@ -620,11 +666,12 @@ readonly publicfile_new: (a: number, b: number, c: number, d: number) => void;

readonly publicfile_contentCid: (a: number, b: number) => void;
readonly publicfile_asNode: (a: number) => number;
readonly __wbg_publicnode_free: (a: number) => void;
readonly publicnode_asDir: (a: number, b: number) => void;
readonly publicnode_asFile: (a: number, b: number) => void;
readonly publicnode_isDir: (a: number) => number;
readonly publicnode_isFile: (a: number) => number;
readonly publicnode_getId: (a: number, b: number) => void;
readonly setPanicHook: () => void;
readonly __wbg_foreignprivatekey_free: (a: number) => void;
readonly __wbg_privatefile_free: (a: number) => void;
readonly privatefile_new: (a: number, b: number, c: number, d: number) => void;
readonly privatefile_withContent: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
readonly privatefile_getContent: (a: number, b: number, c: number, d: number) => void;
readonly privatefile_metadata: (a: number, b: number) => void;
readonly privatefile_getId: (a: number, b: number) => void;
readonly __wbg_namefilter_free: (a: number) => void;
readonly namefilter_new: () => number;
readonly __wbg_foreignexchangekey_free: (a: number) => void;
readonly __wbindgen_malloc: (a: number) => number;

@@ -634,4 +681,4 @@ readonly __wbindgen_realloc: (a: number, b: number, c: number) => number;

readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd03129a7a87ad93d: (a: number, b: number, c: number) => void;
readonly __wbindgen_free: (a: number, b: 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;

@@ -638,0 +685,0 @@ readonly wasm_bindgen__convert__closures__invoke2_mut__h037abeb1b70edeec: (a: number, b: number, c: number, d: number) => void;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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