From 21b9e3f5271e37e0c0668efc3a7321e439f7ddb3 Mon Sep 17 00:00:00 2001 From: Vortex Date: Fri, 15 Mar 2024 17:22:57 -0500 Subject: [PATCH] Changed LockedFS to named export --- src/backends/Locked.ts | 2 +- src/backends/Overlay.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backends/Locked.ts b/src/backends/Locked.ts index 009e588ea..1c839b431 100644 --- a/src/backends/Locked.ts +++ b/src/backends/Locked.ts @@ -14,7 +14,7 @@ import { Cred } from '../cred.js'; * LockedFS to avoid having to reason about the correctness of * multiple requests interleaving. */ -export default class LockedFS implements FileSystem { +export class LockedFS implements FileSystem { private _mu: Mutex = new Mutex(); constructor(public readonly fs: T) {} diff --git a/src/backends/Overlay.ts b/src/backends/Overlay.ts index 8be73d7e1..476923c84 100644 --- a/src/backends/Overlay.ts +++ b/src/backends/Overlay.ts @@ -2,7 +2,7 @@ import { FileSystem, FileSystemMetadata } from '../filesystem.js'; import { ApiError, ErrorCode } from '../ApiError.js'; import { File, FileFlag, PreloadFile } from '../file.js'; import { Stats } from '../stats.js'; -import LockedFS from './Locked.js'; +import { LockedFS } from './Locked.js'; import { dirname } from '../emulation/path.js'; import { Cred } from '../cred.js'; import { decode, encode } from '../utils.js';