json-parser
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -37,4 +37,9 @@ 'use strict'; | ||
if (Object(result) === result) { | ||
result['//^'] = tokens.head_comments; | ||
result['//$'] = tokens.foot_comments; | ||
if (tokens.head_comments.length) { | ||
result['//^'] = tokens.head_comments; | ||
} | ||
if (tokens.foot_comments.length) { | ||
result['//$'] = tokens.foot_comments; | ||
} | ||
} | ||
@@ -41,0 +46,0 @@ |
{ | ||
"name": "json-parser", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "JSON parser to parse JSON object and MAINTAIN comments.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
9752
277