zen-fs-config 0.5.11 → 0.5.12
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 +5 -1
- package/dist/index.mjs +5 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1852,7 +1852,11 @@ async function createConfigRepo(appId, options = {}) {
|
|
|
1852
1852
|
await primaryInstance.mkdir(META_DIR);
|
|
1853
1853
|
console.log(`[createConfigRepo] /.meta/ ready`);
|
|
1854
1854
|
} catch (err) {
|
|
1855
|
-
|
|
1855
|
+
const msg = err.message || "";
|
|
1856
|
+
if (msg.includes("File exists") || msg.includes("EEXIST") || err.code === "EEXIST") {
|
|
1857
|
+
} else {
|
|
1858
|
+
console.error(`[createConfigRepo] Failed to ensure /.meta/:`, err.message);
|
|
1859
|
+
}
|
|
1856
1860
|
}
|
|
1857
1861
|
try {
|
|
1858
1862
|
const groupTypeBytes = new TextEncoder().encode("config-sync");
|
package/dist/index.mjs
CHANGED
|
@@ -1762,7 +1762,11 @@ async function createConfigRepo(appId, options = {}) {
|
|
|
1762
1762
|
await primaryInstance.mkdir(META_DIR);
|
|
1763
1763
|
console.log(`[createConfigRepo] /.meta/ ready`);
|
|
1764
1764
|
} catch (err) {
|
|
1765
|
-
|
|
1765
|
+
const msg = err.message || "";
|
|
1766
|
+
if (msg.includes("File exists") || msg.includes("EEXIST") || err.code === "EEXIST") {
|
|
1767
|
+
} else {
|
|
1768
|
+
console.error(`[createConfigRepo] Failed to ensure /.meta/:`, err.message);
|
|
1769
|
+
}
|
|
1766
1770
|
}
|
|
1767
1771
|
try {
|
|
1768
1772
|
const groupTypeBytes = new TextEncoder().encode("config-sync");
|