🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

comment-json

Package Overview
Dependencies
Maintainers
1
Versions
64
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
4.5.0
to
4.5.1
+1
-1
package.json
{
"name": "comment-json",
"version": "4.5.0",
"version": "4.5.1",
"description": "Parse and stringify JSON with comments. It will retain comments even after saved!",

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

@@ -555,4 +555,4 @@ [![Build Status](https://github.com/kaelzhang/node-comment-json/actions/workflows/nodejs.yml/badge.svg)](https://github.com/kaelzhang/node-comment-json/actions/workflows/nodejs.yml)

moveComments(obj, obj,
{ kind: 'before-all' },
{ kind: 'after-all' }
{ where: 'before-all' },
{ where: 'after-all' }
)

@@ -578,4 +578,4 @@

moveComments(source, target,
{ kind: 'after-value', key: 'foo' },
{ kind: 'before', key: 'bar' }
{ where: 'after-value', key: 'foo' },
{ where: 'before', key: 'bar' }
)

@@ -601,4 +601,4 @@

moveComments(obj, obj,
{ kind: 'after-value', key: 'foo' },
{ kind: 'before', key: 'foo' }
{ where: 'after-value', key: 'foo' },
{ where: 'before', key: 'foo' }
)

@@ -616,4 +616,4 @@

moveComments(obj, obj,
{ kind: 'before', key: 'bar' },
{ kind: 'before', key: 'foo' },
{ where: 'before', key: 'bar' },
{ where: 'before', key: 'foo' },
true // override existing comments

@@ -620,0 +620,0 @@ )