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.14 to 0.1.15

2

package.json

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

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

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

@@ -11,2 +11,38 @@ /* tslint:disable */

/**
* @param {SharePayload} share_payload
* @param {number} share_count
* @param {string} sharer_root_did
* @param {PrivateForest} sharer_forest
* @param {BlockStore} sharer_store
* @param {Uint8Array} recipient_exchange_root
* @param {BlockStore} recipient_store
* @returns {Promise<any>}
*/
export function share(share_payload: SharePayload, share_count: number, sharer_root_did: string, sharer_forest: PrivateForest, sharer_store: BlockStore, recipient_exchange_root: Uint8Array, recipient_store: BlockStore): Promise<any>;
/**
* @param {number} share_count
* @param {string} sharer_root_did
* @param {Uint8Array} recipient_exchange_key
* @returns {Namefilter}
*/
export function createShareLabel(share_count: number, sharer_root_did: string, recipient_exchange_key: Uint8Array): Namefilter;
/**
* @param {number} share_count
* @param {number} limit
* @param {Uint8Array} recipient_exchange_key
* @param {string} sharer_root_did
* @param {PrivateForest} sharer_forest
* @param {BlockStore} sharer_store
* @returns {Promise<any>}
*/
export function findShare(share_count: number, limit: number, recipient_exchange_key: Uint8Array, sharer_root_did: string, sharer_forest: PrivateForest, sharer_store: BlockStore): Promise<any>;
/**
* @param {Namefilter} share_label
* @param {PrivateKey} recipient_key
* @param {PrivateForest} sharer_forest
* @param {BlockStore} sharer_store
* @returns {Promise<any>}
*/
export function receiveShare(share_label: Namefilter, recipient_key: PrivateKey, sharer_forest: PrivateForest, sharer_store: BlockStore): Promise<any>;
/**
* Represents the format the content a CID points to.

@@ -20,6 +56,6 @@ *

export enum Code {
DagProtobuf,
DagCbor,
DagJson,
Raw,
DagProtobuf = 112,
DagCbor = 113,
DagJson = 297,
Raw = 85,
}

@@ -41,2 +77,12 @@

*/
export class ForeignExchangeKey {
free(): void;
}
/**
*/
export class ForeignPrivateKey {
free(): void;
}
/**
*/
export class Namefilter {

@@ -71,2 +117,24 @@ free(): void;

/**
* This contstructor creates a new private directory and stores it in a provided `PrivateForest`.
* @param {Namefilter} parent_bare_name
* @param {Date} time
* @param {PrivateForest} forest
* @param {BlockStore} store
* @param {Rng} rng
* @returns {Promise<Promise<any>>}
*/
static newAndStore(parent_bare_name: Namefilter, time: Date, forest: PrivateForest, store: BlockStore, rng: Rng): Promise<Promise<any>>;
/**
* This contstructor creates a new private directory and stores it in a provided `PrivateForest`.
* @param {Namefilter} parent_bare_name
* @param {Date} time
* @param {Uint8Array} ratchet_seed
* @param {Uint8Array} inumber
* @param {PrivateForest} forest
* @param {BlockStore} store
* @param {Rng} rng
* @returns {Promise<Promise<any>>}
*/
static newWithSeedAndStore(parent_bare_name: Namefilter, time: Date, ratchet_seed: Uint8Array, inumber: Uint8Array, forest: PrivateForest, store: BlockStore, rng: Rng): Promise<Promise<any>>;
/**
* Follows a path and fetches the node at the end of the path.

@@ -458,2 +526,20 @@ * @param {Array<any>} path_segments

}
/**
*/
export class SharePayload {
free(): void;
/**
* @param {PrivateNode} node
* @param {boolean} temporal
* @param {PrivateForest} forest
* @param {BlockStore} store
* @param {Rng} rng
* @returns {Promise<any>}
*/
static fromNode(node: PrivateNode, temporal: boolean, forest: PrivateForest, store: BlockStore, rng: Rng): Promise<any>;
/**
* @returns {Uint8Array}
*/
getLabel(): Uint8Array;
}

@@ -464,6 +550,14 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;

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_foreignblockstore_free: (a: 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;
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_publicdirectory_free: (a: number) => void;

@@ -486,28 +580,19 @@ readonly publicdirectory_new: (a: number) => number;

readonly publicdirectory_getId: (a: number, b: 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;
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_foreignblockstore_free: (a: number) => void;
readonly setPanicHook: () => void;
readonly __wbg_publicfile_free: (a: number) => void;
readonly publicfile_new: (a: number, b: number, c: number, d: number) => void;
readonly publicfile_getId: (a: number, b: number) => void;
readonly publicfile_store: (a: number, b: number, c: number) => void;
readonly publicfile_load: (a: number, b: number, c: number, d: number) => void;
readonly publicfile_previousCids: (a: number, b: number) => void;
readonly publicfile_metadata: (a: number, b: number) => void;
readonly publicfile_contentCid: (a: number, b: number) => void;
readonly __wbg_namefilter_free: (a: number) => void;
readonly namefilter_new: () => number;
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;

@@ -525,2 +610,12 @@ readonly privatedirectory_lookupNode: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;

readonly privatedirectory_getId: (a: number, b: number) => void;
readonly __wbg_foreignexchangekey_free: (a: number) => void;
readonly __wbg_publicfile_free: (a: number) => void;
readonly publicfile_new: (a: number, b: number, c: number, d: number) => void;
readonly publicfile_getId: (a: number, b: number) => void;
readonly publicfile_store: (a: number, b: number, c: number) => void;
readonly publicfile_load: (a: number, b: number, c: number, d: number) => void;
readonly publicfile_previousCids: (a: number, b: number) => void;
readonly publicfile_metadata: (a: number, b: number) => void;
readonly publicfile_contentCid: (a: number, b: number) => void;
readonly __wbg_foreignprivatekey_free: (a: number) => void;
readonly __wbg_privatefile_free: (a: number) => void;

@@ -532,10 +627,12 @@ readonly privatefile_new: (a: number, b: number, c: number, d: number) => void;

readonly privatefile_getId: (a: number, b: number) => void;
readonly __wbg_namefilter_free: (a: number) => void;
readonly namefilter_new: () => number;
readonly __wbindgen_malloc: (a: number) => number;
readonly __wbindgen_realloc: (a: number, b: number, c: number) => number;
readonly __wbindgen_export_2: WebAssembly.Table;
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h40d5889872b0fe32: (a: number, b: number, c: number) => void;
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_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__h2445a878fa467344: (a: number, b: number, c: number, d: number) => void;
readonly wasm_bindgen__convert__closures__invoke2_mut__h037abeb1b70edeec: (a: number, b: number, c: number, d: number) => void;
}

@@ -542,0 +639,0 @@

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