@zenfs/core
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -11,2 +11,2 @@ import { AsyncMirror } from './AsyncMirror'; | ||
export { AsyncMirror, FolderAdapter, InMemory, OverlayFS }; | ||
export declare function registerBackend(name: string, fs: BackendConstructor): void; | ||
export declare function registerBackend(..._backends: BackendConstructor[]): void; |
@@ -5,12 +5,10 @@ import { AsyncMirror } from './AsyncMirror'; | ||
import { OverlayFS } from './OverlayFS'; | ||
export const backends = { | ||
AsyncMirror, | ||
FolderAdapter, | ||
InMemory, | ||
OverlayFS, | ||
}; | ||
export const backends = {}; | ||
export default backends; | ||
export { AsyncMirror, FolderAdapter, InMemory, OverlayFS }; | ||
export function registerBackend(name, fs) { | ||
backends[name] = fs; | ||
export function registerBackend(..._backends) { | ||
for (const backend of _backends) { | ||
backends[backend.Name] = backend; | ||
} | ||
} | ||
registerBackend(AsyncMirror, FolderAdapter, InMemory, OverlayFS); |
{ | ||
"name": "@zenfs/core", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "A filesystem in your browser", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
997383
9979