You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

cspell-config-lib

Package Overview
Dependencies
Maintainers
1
Versions
156
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cspell-config-lib - npm Package Compare versions

Comparing version

to
9.1.1

10

dist/CSpellConfigFile/CSpellConfigFileJson.js

@@ -41,3 +41,3 @@ import { parse, stringify } from 'comment-json';

try {
const cspell = parse(file.content);
const cspell = parseJson(file.content);
if (!isCSpellSettings(cspell)) {

@@ -59,2 +59,10 @@ throw new ParseError(file.url);

}
function parseJson(content) {
try {
return JSON.parse(content);
}
catch {
return parse(content);
}
}
export function parseCSpellConfigFileJson(file) {

@@ -61,0 +69,0 @@ return CSpellConfigFileJson.parse(file);

6

package.json

@@ -7,3 +7,3 @@ {

},
"version": "9.1.0",
"version": "9.1.1",
"description": "CSpell Config library",

@@ -55,7 +55,7 @@ "keywords": [

"dependencies": {
"@cspell/cspell-types": "9.1.0",
"@cspell/cspell-types": "9.1.1",
"comment-json": "^4.2.5",
"yaml": "^2.8.0"
},
"gitHead": "a7ed42a31debbc86faa4a4ac2c686bdffe5b26b6"
"gitHead": "40c6e1a331f38a0c008aacf2cb527270752c35ad"
}