@everymundo/json-utils
Advanced tools
Comparing version 1.0.1 to 1.1.0
'use strict' | ||
const parseJson = (json) => { | ||
const parseJson = (json, customFunction) => { | ||
try { | ||
return JSON.parse(json) | ||
return JSON.parse(json, customFunction) | ||
} catch (e) { | ||
@@ -7,0 +7,0 @@ return e |
{ | ||
"name": "@everymundo/json-utils", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "JSON Utilities such as safe JSON parser and pretty JSON stringifier.", | ||
@@ -9,4 +9,4 @@ "main": "index.js", | ||
"check-coverage": "nyc check-coverage --statements 100 --branches 100 --functions 100 --lines 100", | ||
"check-lint": "standard *.js lib/*.js spec/*.js spec/lib/*.js", | ||
"fix-lint": "standard --fix *.js lib/*.js test/*.js", | ||
"check-lint": "standard --env=mocha *.js lib/*.js spec/*.js spec/lib/*.js", | ||
"fix-lint": "standard --env=mocha --fix *.js lib/*.js test/*.js", | ||
"test": "mocha $@" | ||
@@ -35,6 +35,6 @@ }, | ||
"chai": "^4.2.0", | ||
"mocha": "^6.1.4", | ||
"nyc": "^14.1.1", | ||
"standard": "^12.0.1" | ||
"mocha": "^7.1.1", | ||
"nyc": "^15.0.0", | ||
"standard": "^14.3.3" | ||
} | ||
} |
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
4846