Skip to content
This repository was archived by the owner on Dec 10, 2024. It is now read-only.

Commit 645c025

Browse files
committed
Update to work with core 0.18
1 parent 370fc94 commit 645c025

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"typescript": "5.2.2"
5555
},
5656
"peerDependencies": {
57-
"@zenfs/core": "^0.12.0"
57+
"@zenfs/core": ">=0.12.0"
5858
},
5959
"dependencies": {
6060
"utilium": ">=0.6.0"

src/IsoFS.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type { Backend } from '@zenfs/core/backends/backend.js';
2-
import type { Cred } from '@zenfs/core/cred.js';
32
import { S_IFDIR, S_IFREG } from '@zenfs/core/emulation/constants.js';
43
import { resolve } from '@zenfs/core/emulation/path.js';
54
import { Errno, ErrnoError } from '@zenfs/core/error.js';
@@ -97,7 +96,7 @@ export class IsoFS extends Readonly(Sync(FileSystem)) {
9796
return this._getStats(path, record)!;
9897
}
9998

100-
public openFileSync(path: string, flag: string, cred: Cred): NoSyncFile<this> {
99+
public openFileSync(path: string, flag: string): NoSyncFile<this> {
101100
if (isWriteable(flag)) {
102101
// Cannot write to RO file systems.
103102
throw new ErrnoError(Errno.EPERM, path);
@@ -109,7 +108,7 @@ export class IsoFS extends Readonly(Sync(FileSystem)) {
109108
}
110109

111110
if (record.isSymlink(this._data)) {
112-
return this.openFileSync(resolve(path, record.getSymlinkPath(this._data)), flag, cred);
111+
return this.openFileSync(resolve(path, record.getSymlinkPath(this._data)), flag);
113112
}
114113
const data = !record.isDirectory(this._data) ? record.getFile(this._data) : undefined;
115114
const stats = this._getStats(path, record)!;

0 commit comments

Comments
 (0)