@zenfs/core
Advanced tools
Comparing version 0.3.3 to 0.3.4
@@ -182,6 +182,6 @@ import type { Cred } from './cred.js'; | ||
readdirSync(path: string): string[]; | ||
protected abstract statFileInode(inode: IndexFileInode<TIndex>): Promise<Stats>; | ||
protected abstract statFileInodeSync(inode: IndexFileInode<TIndex>): Stats; | ||
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>; | ||
protected abstract statFileInode(inode: IndexFileInode<TIndex>, path: string): Promise<Stats>; | ||
protected abstract statFileInodeSync(inode: IndexFileInode<TIndex>, path: string): Stats; | ||
protected abstract openFileInode(inode: IndexFileInode<TIndex>, path: string, flag: FileFlag): Promise<NoSyncFile<this>>; | ||
protected abstract openFileInodeSync(inode: IndexFileInode<TIndex>, path: string, flag: FileFlag): NoSyncFile<this>; | ||
} | ||
@@ -215,4 +215,4 @@ declare const SyncFileIndexFS_base: (abstract new (...args: any[]) => { | ||
export declare abstract class SyncFileIndexFS<TIndex> extends SyncFileIndexFS_base { | ||
protected statFileInode(inode: IndexFileInode<TIndex>): Promise<Stats>; | ||
protected fileForFileInode(inode: IndexFileInode<TIndex>, path: string, flag: FileFlag): Promise<NoSyncFile<this>>; | ||
protected statFileInode(inode: IndexFileInode<TIndex>, path: string): Promise<Stats>; | ||
protected openFileInode(inode: IndexFileInode<TIndex>, path: string, flag: FileFlag): Promise<NoSyncFile<this>>; | ||
} | ||
@@ -234,4 +234,4 @@ declare const AsyncFileIndexFS_base: (abstract new (...args: any[]) => { | ||
protected statFileInodeSync(): Stats; | ||
protected fileForFileInodeSync(): NoSyncFile<this>; | ||
protected openFileInodeSync(): NoSyncFile<this>; | ||
} | ||
export {}; |
@@ -315,3 +315,3 @@ import { ApiError, ErrorCode } from './ApiError.js'; | ||
if (inode.isFile()) { | ||
return this.statFileInode(inode); | ||
return this.statFileInode(inode, path); | ||
} | ||
@@ -329,3 +329,3 @@ throw new ApiError(ErrorCode.EINVAL, 'Invalid inode.'); | ||
if (inode.isFile()) { | ||
return this.statFileInodeSync(inode); | ||
return this.statFileInodeSync(inode, path); | ||
} | ||
@@ -351,3 +351,3 @@ throw new ApiError(ErrorCode.EINVAL, 'Invalid inode.'); | ||
} | ||
return this.fileForFileInode(inode, path, flag); | ||
return this.openFileInode(inode, path, flag); | ||
} | ||
@@ -371,3 +371,3 @@ openFileSync(path, flag, cred) { | ||
} | ||
return this.fileForFileInodeSync(inode, path, flag); | ||
return this.openFileInodeSync(inode, path, flag); | ||
} | ||
@@ -398,7 +398,7 @@ async readdir(path) { | ||
export class SyncFileIndexFS extends Sync((FileIndexFS)) { | ||
async statFileInode(inode) { | ||
return this.statFileInodeSync(inode); | ||
async statFileInode(inode, path) { | ||
return this.statFileInodeSync(inode, path); | ||
} | ||
async fileForFileInode(inode, path, flag) { | ||
return this.fileForFileInodeSync(inode, path, flag); | ||
async openFileInode(inode, path, flag) { | ||
return this.openFileInodeSync(inode, path, flag); | ||
} | ||
@@ -410,5 +410,5 @@ } | ||
} | ||
fileForFileInodeSync() { | ||
openFileInodeSync() { | ||
throw new ApiError(ErrorCode.ENOTSUP); | ||
} | ||
} |
{ | ||
"name": "@zenfs/core", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"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
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
1476944