From 54a8926577c67219b971faeefa3223c8a23d3aed Mon Sep 17 00:00:00 2001 From: James Prevett Date: Mon, 11 Nov 2024 23:22:02 -0600 Subject: [PATCH] Updated imports --- src/ZipFS.ts | 2 +- src/utils.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ZipFS.ts b/src/ZipFS.ts index abedd3c..87a540b 100644 --- a/src/ZipFS.ts +++ b/src/ZipFS.ts @@ -1,5 +1,5 @@ import { NoSyncFile, Stats, isWriteable } from '@zenfs/core'; -import { type Backend } from '@zenfs/core/backends/backend.js'; +import type { Backend } from '@zenfs/core/backends/backend.js'; import { S_IFDIR } from '@zenfs/core/emulation/constants.js'; import { parse } from '@zenfs/core/path'; import { Errno, ErrnoError } from '@zenfs/core/error.js'; diff --git a/src/utils.ts b/src/utils.ts index bb19bbb..a2bb4f9 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1,4 +1,4 @@ -import { decode } from '@zenfs/core/utils.js'; +import { decodeUTF8 } from '@zenfs/core/utils.js'; /** * Converts the input `time` and `date` in MS-DOS format into a `Date`. @@ -169,7 +169,7 @@ export function safeDecode(buffer: ArrayBufferLike | ArrayBufferView, utf8: bool const uintArray = new Uint8Array('buffer' in buffer ? buffer.buffer : buffer).slice(start, start + length); if (utf8) { - return decode(uintArray); + return decodeUTF8(uintArray); } else { return [...uintArray].map(char => (char > 127 ? extendedASCIIChars[char - 128] : String.fromCharCode(char))).join(''); }