Skip to content

Commit

Permalink
Updated imports
Browse files Browse the repository at this point in the history
  • Loading branch information
james-pre committed Nov 12, 2024
1 parent 08f82bb commit 54a8926
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ZipFS.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
4 changes: 2 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
@@ -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`.
Expand Down Expand Up @@ -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('');
}
Expand Down

0 comments on commit 54a8926

Please sign in to comment.