Comparing version 0.1.29-alpha1 to 0.2.0
@@ -34,2 +34,3 @@ /* tslint:disable */ | ||
export function privatefile_metadata(a: number, b: number): void; | ||
export function privatefile_readAt(a: number, b: number, c: number, d: number, e: number, f: number): void; | ||
export function privatefile_getId(a: number, b: number): void; | ||
@@ -83,3 +84,2 @@ export function privatefile_asNode(a: number): number; | ||
export function publicdirectory_metadata(a: number, b: number): void; | ||
export function publicdirectory_asNode(a: number): number; | ||
export function publicdirectory_getId(a: number, b: number): void; | ||
@@ -92,11 +92,10 @@ export function __wbg_publicfile_free(a: number): void; | ||
export function publicfile_previousCids(a: number, b: number): void; | ||
export function publicfile_getContent(a: number, b: number, c: number): void; | ||
export function publicfile_metadata(a: number, b: number): void; | ||
export function publicfile_getRawContentCid(a: number, b: number, c: number): void; | ||
export function publicfile_readAt(a: number, b: number, c: number, d: number, e: number): void; | ||
export function publicfile_setContent(a: number, b: number, c: number, d: number, e: number, f: number): void; | ||
export function publicfile_asNode(a: number): number; | ||
export function __wbg_publicnode_free(a: number): void; | ||
export function publicnode_asDir(a: number, b: number): void; | ||
export function publicnode_asFile(a: number, b: number): void; | ||
export function publicnode_isDir(a: number): number; | ||
export function publicnode_isFile(a: number): number; | ||
export function publicnode_getId(a: number, b: number): void; | ||
@@ -106,2 +105,6 @@ export function setPanicHook(): void; | ||
export function __wbg_foreignexchangekey_free(a: number): void; | ||
export function publicfile_asNode(a: number): number; | ||
export function publicnode_isFile(a: number): number; | ||
export function publicnode_isDir(a: number): number; | ||
export function publicdirectory_asNode(a: number): number; | ||
export function __wbindgen_export_0(a: number, b: number): number; | ||
@@ -108,0 +111,0 @@ export function __wbindgen_export_1(a: number, b: number, c: number, d: number): number; |
@@ -48,4 +48,5 @@ /* tslint:disable */ | ||
export interface BlockStore { | ||
putBlock(bytes: Uint8Array, code: number): Promise<Uint8Array>; | ||
putBlockKeyed(cid: Uint8Array, bytes: Uint8Array): Promise<void>; | ||
getBlock(cid: Uint8Array): Promise<Uint8Array | undefined>; | ||
hasBlock(cid: Uint8Array): Promise<boolean>; | ||
} | ||
@@ -351,2 +352,11 @@ | ||
/** | ||
* Gets the content of the file at given offset & with an optional byte limit. | ||
* @param {number} byte_offset | ||
* @param {number | undefined} limit | ||
* @param {PrivateForest} forest | ||
* @param {BlockStore} store | ||
* @returns {Promise<any>} | ||
*/ | ||
readAt(byte_offset: number, limit: number | undefined, forest: PrivateForest, store: BlockStore): Promise<any>; | ||
/** | ||
* Gets a unique id for node. | ||
@@ -613,2 +623,8 @@ * @returns {string} | ||
/** | ||
* Gets the entire content of a file. | ||
* @param {BlockStore} store | ||
* @returns {Promise<any>} | ||
*/ | ||
getContent(store: BlockStore): Promise<any>; | ||
/** | ||
* Gets the metadata of this file. | ||
@@ -619,2 +635,8 @@ * @returns {any} | ||
/** | ||
* Gets the content cid of the file. | ||
* @param {BlockStore} store | ||
* @returns {Promise<any>} | ||
*/ | ||
getRawContentCid(store: BlockStore): Promise<any>; | ||
/** | ||
* Gets the content of the file at given offset & with an optional byte limit. | ||
@@ -621,0 +643,0 @@ * @param {number} byte_offset |
@@ -34,2 +34,3 @@ /* tslint:disable */ | ||
export function privatefile_metadata(a: number, b: number): void; | ||
export function privatefile_readAt(a: number, b: number, c: number, d: number, e: number, f: number): void; | ||
export function privatefile_getId(a: number, b: number): void; | ||
@@ -83,3 +84,2 @@ export function privatefile_asNode(a: number): number; | ||
export function publicdirectory_metadata(a: number, b: number): void; | ||
export function publicdirectory_asNode(a: number): number; | ||
export function publicdirectory_getId(a: number, b: number): void; | ||
@@ -92,11 +92,10 @@ export function __wbg_publicfile_free(a: number): void; | ||
export function publicfile_previousCids(a: number, b: number): void; | ||
export function publicfile_getContent(a: number, b: number, c: number): void; | ||
export function publicfile_metadata(a: number, b: number): void; | ||
export function publicfile_getRawContentCid(a: number, b: number, c: number): void; | ||
export function publicfile_readAt(a: number, b: number, c: number, d: number, e: number): void; | ||
export function publicfile_setContent(a: number, b: number, c: number, d: number, e: number, f: number): void; | ||
export function publicfile_asNode(a: number): number; | ||
export function __wbg_publicnode_free(a: number): void; | ||
export function publicnode_asDir(a: number, b: number): void; | ||
export function publicnode_asFile(a: number, b: number): void; | ||
export function publicnode_isDir(a: number): number; | ||
export function publicnode_isFile(a: number): number; | ||
export function publicnode_getId(a: number, b: number): void; | ||
@@ -106,2 +105,6 @@ export function setPanicHook(): void; | ||
export function __wbg_foreignexchangekey_free(a: number): void; | ||
export function publicfile_asNode(a: number): number; | ||
export function publicnode_isFile(a: number): number; | ||
export function publicnode_isDir(a: number): number; | ||
export function publicdirectory_asNode(a: number): number; | ||
export function __wbindgen_export_0(a: number, b: number): number; | ||
@@ -108,0 +111,0 @@ export function __wbindgen_export_1(a: number, b: number, c: number, d: number): number; |
@@ -48,4 +48,5 @@ /* tslint:disable */ | ||
export interface BlockStore { | ||
putBlock(bytes: Uint8Array, code: number): Promise<Uint8Array>; | ||
putBlockKeyed(cid: Uint8Array, bytes: Uint8Array): Promise<void>; | ||
getBlock(cid: Uint8Array): Promise<Uint8Array | undefined>; | ||
hasBlock(cid: Uint8Array): Promise<boolean>; | ||
} | ||
@@ -351,2 +352,11 @@ | ||
/** | ||
* Gets the content of the file at given offset & with an optional byte limit. | ||
* @param {number} byte_offset | ||
* @param {number | undefined} limit | ||
* @param {PrivateForest} forest | ||
* @param {BlockStore} store | ||
* @returns {Promise<any>} | ||
*/ | ||
readAt(byte_offset: number, limit: number | undefined, forest: PrivateForest, store: BlockStore): Promise<any>; | ||
/** | ||
* Gets a unique id for node. | ||
@@ -613,2 +623,8 @@ * @returns {string} | ||
/** | ||
* Gets the entire content of a file. | ||
* @param {BlockStore} store | ||
* @returns {Promise<any>} | ||
*/ | ||
getContent(store: BlockStore): Promise<any>; | ||
/** | ||
* Gets the metadata of this file. | ||
@@ -619,2 +635,8 @@ * @returns {any} | ||
/** | ||
* Gets the content cid of the file. | ||
* @param {BlockStore} store | ||
* @returns {Promise<any>} | ||
*/ | ||
getRawContentCid(store: BlockStore): Promise<any>; | ||
/** | ||
* Gets the content of the file at given offset & with an optional byte limit. | ||
@@ -621,0 +643,0 @@ * @param {number} byte_offset |
@@ -34,2 +34,3 @@ /* tslint:disable */ | ||
export function privatefile_metadata(a: number, b: number): void; | ||
export function privatefile_readAt(a: number, b: number, c: number, d: number, e: number, f: number): void; | ||
export function privatefile_getId(a: number, b: number): void; | ||
@@ -83,3 +84,2 @@ export function privatefile_asNode(a: number): number; | ||
export function publicdirectory_metadata(a: number, b: number): void; | ||
export function publicdirectory_asNode(a: number): number; | ||
export function publicdirectory_getId(a: number, b: number): void; | ||
@@ -92,11 +92,10 @@ export function __wbg_publicfile_free(a: number): void; | ||
export function publicfile_previousCids(a: number, b: number): void; | ||
export function publicfile_getContent(a: number, b: number, c: number): void; | ||
export function publicfile_metadata(a: number, b: number): void; | ||
export function publicfile_getRawContentCid(a: number, b: number, c: number): void; | ||
export function publicfile_readAt(a: number, b: number, c: number, d: number, e: number): void; | ||
export function publicfile_setContent(a: number, b: number, c: number, d: number, e: number, f: number): void; | ||
export function publicfile_asNode(a: number): number; | ||
export function __wbg_publicnode_free(a: number): void; | ||
export function publicnode_asDir(a: number, b: number): void; | ||
export function publicnode_asFile(a: number, b: number): void; | ||
export function publicnode_isDir(a: number): number; | ||
export function publicnode_isFile(a: number): number; | ||
export function publicnode_getId(a: number, b: number): void; | ||
@@ -106,2 +105,6 @@ export function setPanicHook(): void; | ||
export function __wbg_foreignexchangekey_free(a: number): void; | ||
export function publicfile_asNode(a: number): number; | ||
export function publicnode_isFile(a: number): number; | ||
export function publicnode_isDir(a: number): number; | ||
export function publicdirectory_asNode(a: number): number; | ||
export function __wbindgen_export_0(a: number, b: number): number; | ||
@@ -108,0 +111,0 @@ export function __wbindgen_export_1(a: number, b: number, c: number, d: number): number; |
@@ -48,4 +48,5 @@ /* tslint:disable */ | ||
export interface BlockStore { | ||
putBlock(bytes: Uint8Array, code: number): Promise<Uint8Array>; | ||
putBlockKeyed(cid: Uint8Array, bytes: Uint8Array): Promise<void>; | ||
getBlock(cid: Uint8Array): Promise<Uint8Array | undefined>; | ||
hasBlock(cid: Uint8Array): Promise<boolean>; | ||
} | ||
@@ -351,2 +352,11 @@ | ||
/** | ||
* Gets the content of the file at given offset & with an optional byte limit. | ||
* @param {number} byte_offset | ||
* @param {number | undefined} limit | ||
* @param {PrivateForest} forest | ||
* @param {BlockStore} store | ||
* @returns {Promise<any>} | ||
*/ | ||
readAt(byte_offset: number, limit: number | undefined, forest: PrivateForest, store: BlockStore): Promise<any>; | ||
/** | ||
* Gets a unique id for node. | ||
@@ -613,2 +623,8 @@ * @returns {string} | ||
/** | ||
* Gets the entire content of a file. | ||
* @param {BlockStore} store | ||
* @returns {Promise<any>} | ||
*/ | ||
getContent(store: BlockStore): Promise<any>; | ||
/** | ||
* Gets the metadata of this file. | ||
@@ -619,2 +635,8 @@ * @returns {any} | ||
/** | ||
* Gets the content cid of the file. | ||
* @param {BlockStore} store | ||
* @returns {Promise<any>} | ||
*/ | ||
getRawContentCid(store: BlockStore): Promise<any>; | ||
/** | ||
* Gets the content of the file at given offset & with an optional byte limit. | ||
@@ -702,2 +724,3 @@ * @param {number} byte_offset | ||
readonly privatefile_metadata: (a: number, b: number) => void; | ||
readonly privatefile_readAt: (a: number, b: number, c: number, d: number, e: number, f: number) => void; | ||
readonly privatefile_getId: (a: number, b: number) => void; | ||
@@ -751,3 +774,2 @@ readonly privatefile_asNode: (a: number) => number; | ||
readonly publicdirectory_metadata: (a: number, b: number) => void; | ||
readonly publicdirectory_asNode: (a: number) => number; | ||
readonly publicdirectory_getId: (a: number, b: number) => void; | ||
@@ -760,11 +782,10 @@ readonly __wbg_publicfile_free: (a: number) => void; | ||
readonly publicfile_previousCids: (a: number, b: number) => void; | ||
readonly publicfile_getContent: (a: number, b: number, c: number) => void; | ||
readonly publicfile_metadata: (a: number, b: number) => void; | ||
readonly publicfile_getRawContentCid: (a: number, b: number, c: number) => void; | ||
readonly publicfile_readAt: (a: number, b: number, c: number, d: number, e: number) => void; | ||
readonly publicfile_setContent: (a: number, b: number, c: number, d: number, e: number, f: 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; | ||
@@ -774,2 +795,6 @@ readonly setPanicHook: () => void; | ||
readonly __wbg_foreignexchangekey_free: (a: number) => void; | ||
readonly publicfile_asNode: (a: number) => number; | ||
readonly publicnode_isFile: (a: number) => number; | ||
readonly publicnode_isDir: (a: number) => number; | ||
readonly publicdirectory_asNode: (a: number) => number; | ||
readonly __wbindgen_export_0: (a: number, b: number) => number; | ||
@@ -776,0 +801,0 @@ readonly __wbindgen_export_1: (a: number, b: number, c: number, d: number) => number; |
@@ -7,3 +7,3 @@ { | ||
"description": "WebNative Filesystem API (WebAssembly)", | ||
"version": "0.1.29-alpha1", | ||
"version": "0.2.0", | ||
"license": "Apache-2.0", | ||
@@ -132,3 +132,3 @@ "homepage": "https://fission.codes", | ||
"move-file-cli": "^3.0.0", | ||
"multiformats": "^12.0.1", | ||
"multiformats": "^13.0.0", | ||
"style-loader": "^3.3.3", | ||
@@ -138,3 +138,3 @@ "text-encoding": "^0.7.0", | ||
"typescript": "^5.1.6", | ||
"uint8arrays": "^4.0.4", | ||
"uint8arrays": "^5.0.0", | ||
"webpack": "^5.88.2", | ||
@@ -141,0 +141,0 @@ "webpack-cli": "^5.1.4", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3221582
10393