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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
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) {
|