zen-fs-config 0.5.41 → 0.5.42
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.
- package/dist/index.js +6 -2
- package/dist/index.mjs +6 -2
- package/dist/zen-fs-config.js +6 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1427,6 +1427,8 @@ var APP_DATA_GROUPS_DIR = `${META_DIR}/app-data-groups`;
|
|
|
1427
1427
|
var CONFLICTS_DIR = `${META_DIR}/.conflicts`;
|
|
1428
1428
|
var DELETIONS_DIR = `${META_DIR}/.deleted`;
|
|
1429
1429
|
var NODES_DIR = "/nodes";
|
|
1430
|
+
var SHARED_DIR = "/shared";
|
|
1431
|
+
var CONFIG_ONLY_PREFIXES = [META_DIR, NODES_DIR, SHARED_DIR];
|
|
1430
1432
|
var LOCAL_IDB_BACKEND_ID = "local-idb";
|
|
1431
1433
|
function tombstoneFileName(filePath) {
|
|
1432
1434
|
return filePath.replace(/^\//, "").replace(/\//g, "__").replace(/\./g, "++") + ".json";
|
|
@@ -2945,7 +2947,8 @@ var AppDataGroupImpl = class {
|
|
|
2945
2947
|
{
|
|
2946
2948
|
direction: import_zen_fs_sync.SyncDirection.BiDirectional,
|
|
2947
2949
|
conflictStrategy: "source-wins",
|
|
2948
|
-
pollIntervalMs: this._pollIntervalMs
|
|
2950
|
+
pollIntervalMs: this._pollIntervalMs,
|
|
2951
|
+
filter: { excludePrefixes: CONFIG_ONLY_PREFIXES }
|
|
2949
2952
|
},
|
|
2950
2953
|
"/"
|
|
2951
2954
|
);
|
|
@@ -2991,7 +2994,8 @@ var AppDataGroupImpl = class {
|
|
|
2991
2994
|
{
|
|
2992
2995
|
direction: import_zen_fs_sync.SyncDirection.BiDirectional,
|
|
2993
2996
|
conflictStrategy: "source-wins",
|
|
2994
|
-
pollIntervalMs: this._pollIntervalMs
|
|
2997
|
+
pollIntervalMs: this._pollIntervalMs,
|
|
2998
|
+
filter: { excludePrefixes: CONFIG_ONLY_PREFIXES }
|
|
2995
2999
|
},
|
|
2996
3000
|
"/"
|
|
2997
3001
|
);
|
package/dist/index.mjs
CHANGED
|
@@ -887,6 +887,8 @@ var APP_DATA_GROUPS_DIR = `${META_DIR}/app-data-groups`;
|
|
|
887
887
|
var CONFLICTS_DIR = `${META_DIR}/.conflicts`;
|
|
888
888
|
var DELETIONS_DIR = `${META_DIR}/.deleted`;
|
|
889
889
|
var NODES_DIR = "/nodes";
|
|
890
|
+
var SHARED_DIR = "/shared";
|
|
891
|
+
var CONFIG_ONLY_PREFIXES = [META_DIR, NODES_DIR, SHARED_DIR];
|
|
890
892
|
var LOCAL_IDB_BACKEND_ID = "local-idb";
|
|
891
893
|
function tombstoneFileName(filePath) {
|
|
892
894
|
return filePath.replace(/^\//, "").replace(/\//g, "__").replace(/\./g, "++") + ".json";
|
|
@@ -2405,7 +2407,8 @@ var AppDataGroupImpl = class {
|
|
|
2405
2407
|
{
|
|
2406
2408
|
direction: SyncDirection.BiDirectional,
|
|
2407
2409
|
conflictStrategy: "source-wins",
|
|
2408
|
-
pollIntervalMs: this._pollIntervalMs
|
|
2410
|
+
pollIntervalMs: this._pollIntervalMs,
|
|
2411
|
+
filter: { excludePrefixes: CONFIG_ONLY_PREFIXES }
|
|
2409
2412
|
},
|
|
2410
2413
|
"/"
|
|
2411
2414
|
);
|
|
@@ -2451,7 +2454,8 @@ var AppDataGroupImpl = class {
|
|
|
2451
2454
|
{
|
|
2452
2455
|
direction: SyncDirection.BiDirectional,
|
|
2453
2456
|
conflictStrategy: "source-wins",
|
|
2454
|
-
pollIntervalMs: this._pollIntervalMs
|
|
2457
|
+
pollIntervalMs: this._pollIntervalMs,
|
|
2458
|
+
filter: { excludePrefixes: CONFIG_ONLY_PREFIXES }
|
|
2455
2459
|
},
|
|
2456
2460
|
"/"
|
|
2457
2461
|
);
|
package/dist/zen-fs-config.js
CHANGED
|
@@ -27360,6 +27360,8 @@ var ZenFSConfig = (() => {
|
|
|
27360
27360
|
var CONFLICTS_DIR = `${META_DIR}/.conflicts`;
|
|
27361
27361
|
var DELETIONS_DIR = `${META_DIR}/.deleted`;
|
|
27362
27362
|
var NODES_DIR = "/nodes";
|
|
27363
|
+
var SHARED_DIR = "/shared";
|
|
27364
|
+
var CONFIG_ONLY_PREFIXES = [META_DIR, NODES_DIR, SHARED_DIR];
|
|
27363
27365
|
var LOCAL_IDB_BACKEND_ID = "local-idb";
|
|
27364
27366
|
function tombstoneFileName(filePath) {
|
|
27365
27367
|
return filePath.replace(/^\//, "").replace(/\//g, "__").replace(/\./g, "++") + ".json";
|
|
@@ -28878,7 +28880,8 @@ var ZenFSConfig = (() => {
|
|
|
28878
28880
|
{
|
|
28879
28881
|
direction: SyncDirection.BiDirectional,
|
|
28880
28882
|
conflictStrategy: "source-wins",
|
|
28881
|
-
pollIntervalMs: this._pollIntervalMs
|
|
28883
|
+
pollIntervalMs: this._pollIntervalMs,
|
|
28884
|
+
filter: { excludePrefixes: CONFIG_ONLY_PREFIXES }
|
|
28882
28885
|
},
|
|
28883
28886
|
"/"
|
|
28884
28887
|
);
|
|
@@ -28924,7 +28927,8 @@ var ZenFSConfig = (() => {
|
|
|
28924
28927
|
{
|
|
28925
28928
|
direction: SyncDirection.BiDirectional,
|
|
28926
28929
|
conflictStrategy: "source-wins",
|
|
28927
|
-
pollIntervalMs: this._pollIntervalMs
|
|
28930
|
+
pollIntervalMs: this._pollIntervalMs,
|
|
28931
|
+
filter: { excludePrefixes: CONFIG_ONLY_PREFIXES }
|
|
28928
28932
|
},
|
|
28929
28933
|
"/"
|
|
28930
28934
|
);
|