zen-fs-config 0.5.7 → 0.5.8

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
@@ -460,7 +460,7 @@ function versionPathFor(configFilePath) {
460
460
  if (fileName.endsWith(".version")) {
461
461
  return null;
462
462
  }
463
- const versionFileName = `.${fileName}.version`;
463
+ const versionFileName = fileName.startsWith(".") ? `${fileName}.version` : `.${fileName}.version`;
464
464
  return dir ? `${dir}/${versionFileName}` : versionFileName;
465
465
  }
466
466
  async function sha256(data) {
package/dist/index.mjs CHANGED
@@ -403,7 +403,7 @@ function versionPathFor(configFilePath) {
403
403
  if (fileName.endsWith(".version")) {
404
404
  return null;
405
405
  }
406
- const versionFileName = `.${fileName}.version`;
406
+ const versionFileName = fileName.startsWith(".") ? `${fileName}.version` : `.${fileName}.version`;
407
407
  return dir ? `${dir}/${versionFileName}` : versionFileName;
408
408
  }
409
409
  async function sha256(data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zen-fs-config",
3
- "version": "0.5.7",
3
+ "version": "0.5.8",
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",