From 113c9b65f43c0a8854dd209f7bc2bb1dbe637e7c Mon Sep 17 00:00:00 2001 From: James Prevett Date: Thu, 3 Oct 2024 14:40:03 -0500 Subject: [PATCH] Updated to work with core ^1.0.0 --- package-lock.json | 8 ++++---- package.json | 2 +- src/backend.ts | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index f815914..e495710 100644 --- a/package-lock.json +++ b/package-lock.json @@ -26,7 +26,7 @@ "node": ">= 18" }, "peerDependencies": { - "@zenfs/core": ">=0.18.0" + "@zenfs/core": "^1.0.0" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -529,9 +529,9 @@ "license": "ISC" }, "node_modules/@zenfs/core": { - "version": "0.18.0", - "resolved": "https://registry.npmjs.org/@zenfs/core/-/core-0.18.0.tgz", - "integrity": "sha512-ZcKBTbytztoMNq+GywBpN/TGUjQ5WpmQx7VBT48smSVezzzsOCgNlqps+Gp8hdRwytPbPMwV2hinKmewvvcUQA==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@zenfs/core/-/core-1.0.0.tgz", + "integrity": "sha512-i/z39VtM5UKAhdGdh8eTUz7yBE9TJoCZVWUdoXyhCPUQW6OeGrL4P2r1gb5jOlPrIPnOa2g1tgWOTm8dRBzkZA==", "license": "MIT", "peer": true, "dependencies": { diff --git a/package.json b/package.json index f3e9adf..795db3f 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "typescript": "^5.5.0" }, "peerDependencies": { - "@zenfs/core": ">=0.18.0" + "@zenfs/core": "^1.0.0" }, "dependencies": { "utilium": ">=0.4.0" diff --git a/src/backend.ts b/src/backend.ts index 88678f6..2348cdb 100644 --- a/src/backend.ts +++ b/src/backend.ts @@ -26,12 +26,12 @@ function convertError(e: unknown, path: string = ''): ErrnoError { export class EmscriptenFile extends File { public constructor( - protected fs: EmscriptenFS, + public fs: EmscriptenFS, protected em: typeof FS, public readonly path: string, protected stream: FS.FSStream ) { - super(); + super(fs, path); } public get position(): number {