@zenfs/core
Advanced tools
Comparing version 0.16.2 to 0.16.3
@@ -44,5 +44,3 @@ import { checkOptions, isBackend, isBackendConfig } from './backends/backend.js'; | ||
const mount = (await backend.create(config)); | ||
if ('_disableSync' in mount) { | ||
mount._disableSync = config.disableAsyncCache || false; | ||
} | ||
mount._disableSync = config.disableAsyncCache || false; | ||
await mount.ready(); | ||
@@ -49,0 +47,0 @@ return mount; |
{ | ||
"name": "@zenfs/core", | ||
"version": "0.16.2", | ||
"version": "0.16.3", | ||
"description": "A filesystem, anywhere", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -65,5 +65,3 @@ #!/usr/bin/env node | ||
if (watch && !quiet) { | ||
onEnd(() => { | ||
console.log(`--------------- Built #${buildCount}`); | ||
}); | ||
onEnd(() => console.log(`--------------- Built #${buildCount}`)); | ||
} | ||
@@ -70,0 +68,0 @@ }, |
@@ -7,3 +7,3 @@ import type { Backend, BackendConfiguration, FilesystemOf, SharedConfig } from './backends/backend.js'; | ||
import { Errno, ErrnoError } from './error.js'; | ||
import { FileSystem, type Async } from './filesystem.js'; | ||
import { FileSystem } from './filesystem.js'; | ||
@@ -63,6 +63,3 @@ /** | ||
const mount = (await backend.create(config)) as FilesystemOf<T>; | ||
if ('_disableSync' in mount) { | ||
type AsyncFS = InstanceType<ReturnType<typeof Async<new () => FilesystemOf<T>>>>; | ||
(mount as AsyncFS)._disableSync = config.disableAsyncCache || false; | ||
} | ||
mount._disableSync = config.disableAsyncCache || false; | ||
await mount.ready(); | ||
@@ -69,0 +66,0 @@ return mount; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1903410
21359