Comparing version 1.7.0 to 1.7.1
@@ -80,7 +80,10 @@ "use strict"; | ||
if (fileVersion === 0x83 || fileVersion === 0x8b) { | ||
memoPath = path.slice(0, -path_1.extname(path).length) + '.dbt'; | ||
let isMemoFileMissing = await utils_1.stat(memoPath).catch(() => 'missing') === 'missing'; | ||
if (isMemoFileMissing) | ||
for (const ext of ['.dbt', '.DBT']) { | ||
memoPath = path.slice(0, -path_1.extname(path).length) + ext; | ||
let foundMemoFile = await utils_1.stat(memoPath).catch(() => 'missing') !== 'missing'; | ||
if (foundMemoFile) | ||
break; | ||
memoPath = undefined; | ||
if (options.readMode !== 'loose' && isMemoFileMissing) { | ||
} | ||
if (options.readMode !== 'loose' && !memoPath) { | ||
throw new Error(`Memo file not found for file '${path}'.`); | ||
@@ -87,0 +90,0 @@ } |
{ | ||
"name": "dbffile", | ||
"version": "1.7.0", | ||
"version": "1.7.1", | ||
"description": "Read and write .dbf (dBase III & Visual FoxPro) files in Node.js", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
181377
869