cspell-config-lib
Advanced tools
Comparing version 6.6.1 to 6.7.0
@@ -13,3 +13,3 @@ "use strict"; | ||
const cspell = (0, comment_json_1.parse)(content); | ||
if (!cspell || typeof cspell !== 'object' || Array.isArray(cspell)) { | ||
if (!isCSpellSettings(cspell)) { | ||
throw new Error(`Unable to parse ${uri}`); | ||
@@ -23,3 +23,6 @@ } | ||
} | ||
function isCSpellSettings(cfg) { | ||
return !(!cfg || typeof cfg !== 'object' || Array.isArray(cfg)); | ||
} | ||
exports.deserializerCSpellJson = _deserializerCSpellJson; | ||
//# sourceMappingURL=cspellJson.js.map |
@@ -35,3 +35,3 @@ "use strict"; | ||
const testState = expect.getState(); | ||
return path.join(__dirname, '../../temp', testState.currentTestName, file); | ||
return path.join(__dirname, '../../temp', testState.currentTestName || 'test', file); | ||
} | ||
@@ -38,0 +38,0 @@ exports.tempPath = tempPath; |
{ | ||
"name": "cspell-config-lib", | ||
"version": "6.6.1", | ||
"version": "6.7.0", | ||
"description": "CSpell Config library", | ||
@@ -45,4 +45,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@cspell/cspell-types": "^6.6.1", | ||
"comment-json": "^4.2.2", | ||
"@cspell/cspell-types": "^6.7.0", | ||
"comment-json": "^4.2.3", | ||
"vscode-uri": "^3.0.3", | ||
@@ -52,7 +52,7 @@ "yaml": "^1.10.2" | ||
"devDependencies": { | ||
"@types/node": "^18.6.5", | ||
"@types/node": "^18.7.6", | ||
"jest": "^28.1.3", | ||
"rimraf": "^3.0.2" | ||
}, | ||
"gitHead": "3c9c24d1cebd558ac3729d3fbf441e6ed751d8cf" | ||
"gitHead": "3a7312a15d2df1507d9e01863ec5842f5a99e0cc" | ||
} |
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
18513
367
Updated@cspell/cspell-types@^6.7.0
Updatedcomment-json@^4.2.3