Socket
Socket
Sign inDemoInstall

cjson

Package Overview
Dependencies
0
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.5 to 0.0.6

test/fixtures/conf8.json

2

lib/cjson.js

@@ -29,3 +29,3 @@ /*

// it's either closing or opening inString and it is not escaped
if (curChar === '"' && str.charAt(i - 1) !== '\\') {
if (!inComment && curChar === '"' && str.charAt(i - 1) !== '\\') {
inString = !inString;

@@ -32,0 +32,0 @@ }

{
"name": "cjson",
"description": "cjson - Commented Javascript Object Notation. It is a json loader, which parses only valide json files, but with comments enabled. Usefull for loading configs.",
"version": "0.0.5",
"version": "0.0.6",
"repository": "git://github.com/kof/node-cjson.git",

@@ -6,0 +6,0 @@ "keywords": [ "json", "parser", "comments", "config", "loader"],

@@ -17,4 +17,4 @@ var a = require('assert');

conf6: {"key\"/*test*/": "value\"//test"},
conf7: {"key": "{{root}}/src"}
conf7: {"key": "{{root}}/src"},
conf8: {}
};

@@ -40,2 +40,4 @@

a.deepEqual(cjson.load(fixtures + '/conf8.json'), data.conf8, 'string-like comment');
var data1 = {

@@ -42,0 +44,0 @@ conf1: {key: 'value'},

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc