Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jsonc-parser

Package Overview
Dependencies
Maintainers
11
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsonc-parser - npm Package Compare versions

Comparing version 0.2.3 to 0.3.0

.travis.yml

23

lib/main.js
(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?

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc