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

comment-json

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

comment-json - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

2

package.json
{
"name": "comment-json",
"version": "2.1.0",
"version": "2.2.0",
"description": "Parse and stringify JSON with comments. It will retain comments even after saved!",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -99,2 +99,3 @@ // JSON formatting

// Move the reader to the next
const next = () => {

@@ -212,2 +213,6 @@ const new_token = tokens[++ index]

parse_comments()
if (is(CURLY_BRACKET_CLOSE)) {
break
}
}

@@ -266,2 +271,6 @@

parse_comments()
if (is(BRACKET_CLOSE)) {
break
}
}

@@ -332,2 +341,3 @@

const parse = (code, rev, no_comments) => {
// Clean variables in closure
clean()

@@ -334,0 +344,0 @@

@@ -53,2 +53,3 @@ const {

ESCAPABLE.lastIndex = 0
if (!ESCAPABLE.test(string)) {

@@ -55,0 +56,0 @@ return string

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