jsonc-parser
Advanced tools
Comparing version 0.4.2 to 1.0.0
1.0.0 | ||
================== | ||
* remove nls dependency (remove getParseErrorMessage) | ||
0.4.2 / 2017-05-05 | ||
================== | ||
* added ParseError.offset & ParseError.length | ||
0.4.1 / 2017-04-02 | ||
================== | ||
* added ParseOptions.allowTrailingComma | ||
0.4.0 / 2017-02-23 | ||
@@ -3,0 +15,0 @@ ================== |
@@ -93,3 +93,2 @@ export declare enum ScanError { | ||
} | ||
export declare function getParseErrorMessage(errorCode: ParseErrorCode): string; | ||
export declare type NodeType = 'object' | 'array' | 'property' | 'string' | 'number' | 'boolean' | 'null'; | ||
@@ -96,0 +95,0 @@ export interface Node { |
@@ -7,3 +7,3 @@ (function (factory) { | ||
else if (typeof define === "function" && define.amd) { | ||
define(["require", "exports", "vscode-nls"], factory); | ||
define(["require", "exports"], factory); | ||
} | ||
@@ -16,4 +16,2 @@ })(function (require, exports) { | ||
'use strict'; | ||
var nls = require("vscode-nls"); | ||
var localize = nls.loadMessageBundle(); | ||
var ScanError; | ||
@@ -431,18 +429,2 @@ (function (ScanError) { | ||
})(ParseErrorCode = exports.ParseErrorCode || (exports.ParseErrorCode = {})); | ||
function getParseErrorMessage(errorCode) { | ||
switch (errorCode) { | ||
case ParseErrorCode.InvalidSymbol: return localize('error.invalidSymbol', 'Invalid symbol'); | ||
case ParseErrorCode.InvalidNumberFormat: return localize('error.invalidNumberFormat', 'Invalid number format'); | ||
case ParseErrorCode.PropertyNameExpected: return localize('error.propertyNameExpected', 'Property name expected'); | ||
case ParseErrorCode.ValueExpected: return localize('error.valueExpected', 'Value expected'); | ||
case ParseErrorCode.ColonExpected: return localize('error.colonExpected', 'Colon expected'); | ||
case ParseErrorCode.CommaExpected: return localize('error.commaExpected', 'Comma expected'); | ||
case ParseErrorCode.CloseBraceExpected: return localize('error.closeBraceExpected', 'Closing brace expected'); | ||
case ParseErrorCode.CloseBracketExpected: return localize('error.closeBracketExpected', 'Closing bracket expected'); | ||
case ParseErrorCode.EndOfFileExpected: return localize('error.endOfFileExpected', 'End of file expected'); | ||
default: | ||
return ''; | ||
} | ||
} | ||
exports.getParseErrorMessage = getParseErrorMessage; | ||
function getLiteralNodeType(value) { | ||
@@ -449,0 +431,0 @@ switch (typeof value) { |
{ | ||
"name": "jsonc-parser", | ||
"version": "0.4.2", | ||
"version": "1.0.0", | ||
"description": "Scanner and parser for JSON with comments.", | ||
@@ -22,5 +22,2 @@ "main": "./lib/main.js", | ||
}, | ||
"dependencies": { | ||
"vscode-nls": "^2.0.2" | ||
}, | ||
"scripts": { | ||
@@ -27,0 +24,0 @@ "prepublish": "tsc -p ./src", |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
1
56824
1100
- Removedvscode-nls@^2.0.2
- Removedvscode-nls@2.0.2(transitive)