jsonc-parser
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -76,2 +76,5 @@ export declare enum ScanError { | ||
export declare function stripComments(text: string, replaceCh?: string): string; | ||
export interface ParseError { | ||
error: ParseErrorCode; | ||
} | ||
export declare enum ParseErrorCode { | ||
@@ -114,5 +117,3 @@ InvalidSymbol = 0, | ||
*/ | ||
export declare function parse(text: string, errors?: { | ||
error: ParseErrorCode; | ||
}[], options?: ParseOptions): any; | ||
export declare function parse(text: string, errors?: ParseError[], options?: ParseOptions): any; | ||
/** | ||
@@ -119,0 +120,0 @@ * Parses the given text and invokes the visitor functions for each object, array and literal reached. |
@@ -376,5 +376,2 @@ /*--------------------------------------------------------------------------------------------- | ||
} | ||
function isLetter(ch) { | ||
return ch >= CharacterCodes.a && ch <= CharacterCodes.z || ch >= CharacterCodes.A && ch <= CharacterCodes.Z; | ||
} | ||
var CharacterCodes; | ||
@@ -381,0 +378,0 @@ (function (CharacterCodes) { |
{ | ||
"name": "jsonc-parser", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Scanner and parser for JSON with comments.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/main.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
53757
1083