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 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
- console.error(`[createConfigRepo] Failed to ensure /.meta/:`, err.message);
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
- console.error(`[createConfigRepo] Failed to ensure /.meta/:`, err.message);
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");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zen-fs-config",
3
- "version": "0.5.11",
3
+ "version": "0.5.12",
4
4
  "description": "Distributed config management library built on ZenFS, zen-fs-cache, and zen-fs-sync",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",