@zenfs/core
Advanced tools
Comparing version 0.3.2 to 0.3.3
@@ -183,5 +183,5 @@ import type { Cred } from './cred.js'; | ||
protected abstract statFileInode(inode: IndexFileInode<TIndex>): Promise<Stats>; | ||
protected abstract fileForFileInode(inode: IndexFileInode<TIndex>): Promise<NoSyncFile<this>>; | ||
protected abstract statFileInodeSync(inode: IndexFileInode<TIndex>): Stats; | ||
protected abstract fileForFileInodeSync(inode: IndexFileInode<TIndex>): NoSyncFile<this>; | ||
protected abstract fileForFileInode(inode: IndexFileInode<TIndex>, path: string, flag: FileFlag): Promise<NoSyncFile<this>>; | ||
protected abstract fileForFileInodeSync(inode: IndexFileInode<TIndex>, path: string, flag: FileFlag): NoSyncFile<this>; | ||
} | ||
@@ -216,3 +216,3 @@ declare const SyncFileIndexFS_base: (abstract new (...args: any[]) => { | ||
protected statFileInode(inode: IndexFileInode<TIndex>): Promise<Stats>; | ||
protected fileForFileInode(inode: IndexFileInode<TIndex>): Promise<NoSyncFile<this>>; | ||
protected fileForFileInode(inode: IndexFileInode<TIndex>, path: string, flag: FileFlag): Promise<NoSyncFile<this>>; | ||
} | ||
@@ -219,0 +219,0 @@ declare const AsyncFileIndexFS_base: (abstract new (...args: any[]) => { |
@@ -349,3 +349,3 @@ import { ApiError, ErrorCode } from './ApiError.js'; | ||
} | ||
return this.fileForFileInode(inode); | ||
return this.fileForFileInode(inode, path, flag); | ||
} | ||
@@ -369,3 +369,3 @@ openFileSync(path, flag, cred) { | ||
} | ||
return this.fileForFileInodeSync(inode); | ||
return this.fileForFileInodeSync(inode, path, flag); | ||
} | ||
@@ -399,4 +399,4 @@ async readdir(path) { | ||
} | ||
async fileForFileInode(inode) { | ||
return this.fileForFileInodeSync(inode); | ||
async fileForFileInode(inode, path, flag) { | ||
return this.fileForFileInodeSync(inode, path, flag); | ||
} | ||
@@ -403,0 +403,0 @@ } |
@@ -36,2 +36,3 @@ /** | ||
export * from './filesystem.js'; | ||
export * from './FileIndex.js'; | ||
export * from './inode.js'; | ||
@@ -38,0 +39,0 @@ export * from './mutex.js'; |
@@ -51,2 +51,3 @@ /** | ||
export * from './filesystem.js'; | ||
export * from './FileIndex.js'; | ||
export * from './inode.js'; | ||
@@ -53,0 +54,0 @@ export * from './mutex.js'; |
{ | ||
"name": "@zenfs/core", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"description": "A filesystem in your browser", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1476852
11231