comment-json
Advanced tools
Comparing version 2.4.1 to 2.4.2
{ | ||
"name": "comment-json", | ||
"version": "2.4.1", | ||
"version": "2.4.2", | ||
"description": "Parse and stringify JSON with comments. It will retain comments even after saved!", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -144,8 +144,10 @@ const hasOwnProperty = require('has-own-prop') | ||
// If no element removed, just skip moving comments. | ||
// This is also used as argument type checking | ||
if (!ret.length) { | ||
return ret | ||
} | ||
// #16 | ||
// If no element removed, we might still need to move comments, | ||
// because splice could add new items | ||
// if (!ret.length) { | ||
// return ret | ||
// } | ||
// JavaScript syntax is silly | ||
@@ -152,0 +154,0 @@ // eslint-disable-next-line prefer-const |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38123
898