zen-fs-config 0.5.37 → 0.5.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,7 +4,8 @@ var metadataRegistry = /* @__PURE__ */ new Map();
|
|
|
4
4
|
function registerBackend(type, factory, metadata) {
|
|
5
5
|
registry.set(type, factory);
|
|
6
6
|
if (metadata) {
|
|
7
|
-
metadataRegistry.
|
|
7
|
+
const existing = metadataRegistry.get(type);
|
|
8
|
+
metadataRegistry.set(type, { ...existing, ...metadata });
|
|
8
9
|
}
|
|
9
10
|
}
|
|
10
11
|
function unregisterBackend(type) {
|
package/dist/index.js
CHANGED
|
@@ -47,7 +47,8 @@ __export(backend_registry_exports, {
|
|
|
47
47
|
function registerBackend(type, factory, metadata) {
|
|
48
48
|
registry.set(type, factory);
|
|
49
49
|
if (metadata) {
|
|
50
|
-
metadataRegistry.
|
|
50
|
+
const existing = metadataRegistry.get(type);
|
|
51
|
+
metadataRegistry.set(type, { ...existing, ...metadata });
|
|
51
52
|
}
|
|
52
53
|
}
|
|
53
54
|
function unregisterBackend(type) {
|
package/dist/index.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
registerBackend,
|
|
10
10
|
unregisterBackend,
|
|
11
11
|
wrapZenFSFileSystem
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-6OS2F54Z.mjs";
|
|
13
13
|
|
|
14
14
|
// src/config-repo.ts
|
|
15
15
|
import {
|
|
@@ -351,7 +351,7 @@ function registerFolderBackend() {
|
|
|
351
351
|
const pathMod = await import("path");
|
|
352
352
|
const dir = options.path;
|
|
353
353
|
const store = new FolderStore({ path: dir, label: options.label, fs, pathMod });
|
|
354
|
-
return (await import("./backend-registry-
|
|
354
|
+
return (await import("./backend-registry-3FVPYPZL.mjs")).wrapZenFSFileSystem({ backend: FolderBackend, path: dir, label: options.label });
|
|
355
355
|
},
|
|
356
356
|
{
|
|
357
357
|
type: "Folder",
|
package/dist/zen-fs-config.js
CHANGED
|
@@ -24360,7 +24360,8 @@ var ZenFSConfig = (() => {
|
|
|
24360
24360
|
function registerBackend(type, factory, metadata) {
|
|
24361
24361
|
registry.set(type, factory);
|
|
24362
24362
|
if (metadata) {
|
|
24363
|
-
metadataRegistry.
|
|
24363
|
+
const existing = metadataRegistry.get(type);
|
|
24364
|
+
metadataRegistry.set(type, { ...existing, ...metadata });
|
|
24364
24365
|
}
|
|
24365
24366
|
}
|
|
24366
24367
|
function unregisterBackend(type) {
|