jsonc-parser
Advanced tools
Comparing version 0.2.3 to 0.3.0
(function (factory) { | ||
if (typeof module === 'object' && typeof module.exports === 'object') { | ||
var v = factory(require, exports); if (v !== undefined) module.exports = v; | ||
if (typeof module === "object" && typeof module.exports === "object") { | ||
var v = factory(require, exports); | ||
if (v !== undefined) module.exports = v; | ||
} | ||
else if (typeof define === 'function' && define.amd) { | ||
define(["require", "exports", 'vscode-nls'], factory); | ||
else if (typeof define === "function" && define.amd) { | ||
define(["require", "exports", "vscode-nls"], factory); | ||
} | ||
@@ -14,4 +15,5 @@ })(function (require, exports) { | ||
'use strict'; | ||
var nls = require('vscode-nls'); | ||
var nls = require("vscode-nls"); | ||
var localize = nls.loadMessageBundle(); | ||
var ScanError; | ||
(function (ScanError) { | ||
@@ -24,4 +26,4 @@ ScanError[ScanError["None"] = 0] = "None"; | ||
ScanError[ScanError["InvalidEscapeCharacter"] = 5] = "InvalidEscapeCharacter"; | ||
})(exports.ScanError || (exports.ScanError = {})); | ||
var ScanError = exports.ScanError; | ||
})(ScanError = exports.ScanError || (exports.ScanError = {})); | ||
var SyntaxKind; | ||
(function (SyntaxKind) { | ||
@@ -45,4 +47,3 @@ SyntaxKind[SyntaxKind["Unknown"] = 0] = "Unknown"; | ||
SyntaxKind[SyntaxKind["EOF"] = 16] = "EOF"; | ||
})(exports.SyntaxKind || (exports.SyntaxKind = {})); | ||
var SyntaxKind = exports.SyntaxKind; | ||
})(SyntaxKind = exports.SyntaxKind || (exports.SyntaxKind = {})); | ||
/** | ||
@@ -541,2 +542,3 @@ * Creates a JSON scanner on the given text. | ||
exports.stripComments = stripComments; | ||
var ParseErrorCode; | ||
(function (ParseErrorCode) { | ||
@@ -552,4 +554,3 @@ ParseErrorCode[ParseErrorCode["InvalidSymbol"] = 0] = "InvalidSymbol"; | ||
ParseErrorCode[ParseErrorCode["EndOfFileExpected"] = 8] = "EndOfFileExpected"; | ||
})(exports.ParseErrorCode || (exports.ParseErrorCode = {})); | ||
var ParseErrorCode = exports.ParseErrorCode; | ||
})(ParseErrorCode = exports.ParseErrorCode || (exports.ParseErrorCode = {})); | ||
function getParseErrorMessage(errorCode) { | ||
@@ -556,0 +557,0 @@ switch (errorCode) { |
{ | ||
"name": "jsonc-parser", | ||
"version": "0.2.3", | ||
"version": "0.3.0", | ||
"description": "Scanner and parser for JSON with comments.", | ||
@@ -18,6 +18,8 @@ "main": "./lib/main.js", | ||
"mocha": "^2.4.5", | ||
"typescript": "^1.8.9" | ||
"typescript": "^2.1.5", | ||
"@types/node": "^6.0.46", | ||
"@types/mocha": "^2.2.32" | ||
}, | ||
"dependencies": { | ||
"vscode-nls": "^1.0.4" | ||
"vscode-nls": "^2.0.2" | ||
}, | ||
@@ -24,0 +26,0 @@ "scripts": { |
@@ -6,2 +6,3 @@ # jsonc-parser | ||
[![NPM Downloads](https://img.shields.io/npm/dm/jsonc-parser.svg)](https://npmjs.org/package/jsonc-parser) | ||
[![Build Status](https://travis-ci.org/Microsoft/node-jsonc-parser.svg?branch=master)](https://travis-ci.org/Microsoft/node-jsonc-parser) | ||
@@ -8,0 +9,0 @@ Why? |
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
65544
8
1234
189
4
+ Addedvscode-nls@2.0.2(transitive)
- Removedvscode-nls@1.0.7(transitive)
Updatedvscode-nls@^2.0.2