@hapi/bourne
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -87,1 +87,12 @@ 'use strict'; | ||
}; | ||
exports.safeParse = function (text, reviver) { | ||
try { | ||
return exports.parse(text, reviver); | ||
} | ||
catch (ignoreError) { | ||
return null; | ||
} | ||
}; |
{ | ||
"name": "@hapi/bourne", | ||
"description": "JSON parse with prototype poisoning protection", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"repository": "git://github.com/hapijs/bourne", | ||
@@ -15,11 +15,11 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"benchmark": "^2.1.4", | ||
"code": "5.x.x", | ||
"lab": "18.x.x" | ||
"@hapi/code": "5.x.x", | ||
"@hapi/lab": "18.x.x", | ||
"benchmark": "^2.1.4" | ||
}, | ||
"scripts": { | ||
"test": "lab -a code -t 100 -L", | ||
"test-cov-html": "lab -a code -r html -o coverage.html" | ||
"test": "lab -a @hapi/code -t 100 -L", | ||
"test-cov-html": "lab -a @hapi/code -r html -o coverage.html" | ||
}, | ||
"license": "BSD-3-Clause" | ||
} |
@@ -0,1 +1,3 @@ | ||
<a href="http://hapijs.com"><img src="https://raw.githubusercontent.com/hapijs/assets/master/images/family.png" width="180px" align="right" /></a> | ||
# Bourne. JSON Bourne. | ||
@@ -5,4 +7,2 @@ | ||
Lead Maintainer: [Eran Hammer](https://github.com/hueniverse) | ||
[![Build Status](https://travis-ci.org/hapijs/bourne.svg)](https://travis-ci.org/hapijs/bourne) | ||
@@ -9,0 +9,0 @@ |
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
5886
66