Socket
Socket
Sign inDemoInstall

json-parser

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-parser - npm Package Compare versions

Comparing version 1.1.0 to 1.1.2

4

package.json
{
"name": "json-parser",
"version": "1.1.0",
"version": "1.1.2",
"description": "JSON parser to parse JSON object and MAINTAIN comments.",

@@ -36,4 +36,4 @@ "main": "index.js",

"dependencies": {
"esprima": "^2.4.1"
"esprima": "~2.6.0"
}
}

@@ -82,7 +82,11 @@ 'use strict';

describe("parse()", function(){
it(c.d, function(){
var _it = c.only
? it.only
: it;
_it(c.d, function(){
c.e(parser.parse(c.s));
});
it(c.d + ', removes comments', function(){
_it(c.d + ', removes comments', function(){
expect(parser.parse(c.s, null, true)).to.deep.equal(parser.parse(c.o));

@@ -89,0 +93,0 @@ });

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