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.3.0 to 2.3.1

14

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

@@ -49,9 +49,9 @@ "main": "src/index.js",

"devDependencies": {
"@ostai/eslint-config": "^3.2.0",
"ava": "^2.1.0",
"codecov": "^3.5.0",
"eslint": "^5.16.0",
"eslint-plugin-import": "^2.17.3",
"@ostai/eslint-config": "^3.5.0",
"ava": "^2.4.0",
"codecov": "^3.6.1",
"eslint": "^6.6.0",
"eslint-plugin-import": "^2.18.2",
"nyc": "^14.1.1",
"test-fixture": "^2.4.0"
"test-fixture": "^2.4.1"
},

@@ -58,0 +58,0 @@ "dependencies": {

@@ -134,7 +134,20 @@ [![Build Status](https://travis-ci.org/kaelzhang/node-comment-json.svg?branch=master)](https://travis-ci.org/kaelzhang/node-comment-json)

value: '\n before-all\n ',
inline: false
inline: false,
loc: {
// The start location of `/**`
start: {
line: 1,
column: 0
},
// The end location of `*/`
end: {
line: 3,
column: 3
}
}
}, {
type: 'LineComment',
value: ' before-all',
inline: false
inline: false,
loc: ...
}],

@@ -146,3 +159,4 @@ ...

value: ' after-prop:foo ',
inline: true
inline: true,
loc: ...
}],

@@ -160,3 +174,4 @@

value: ' after-value:0',
inline: true
inline: true,
loc: ...
}, ...],

@@ -274,3 +289,4 @@ ...

value: ' comment',
inline: false
inline: false,
loc: ...
}]

@@ -300,3 +316,4 @@ ```

value: ' comment ',
inline: true
inline: true,
loc: ...
}]

@@ -303,0 +320,0 @@ ```

@@ -26,3 +26,3 @@ const {

// eslint-disable-next-line no-control-regex
// eslint-disable-next-line no-control-regex, no-misleading-character-class
const ESCAPABLE = /[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g

@@ -29,0 +29,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