parse-json
Advanced tools
Comparing version 5.0.0 to 5.0.1
@@ -27,3 +27,3 @@ 'use strict'; | ||
error.message = error.message.replace(/\n/g, ''); | ||
const indexMatch = error.message.match(/in JSON at position (\d+) while parsing near/); | ||
const indexMatch = error.message.match(/in JSON at position (\d+) while parsing/); | ||
@@ -30,0 +30,0 @@ const jsonError = new JSONError(error); |
{ | ||
"name": "parse-json", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "Parse JSON with more helpful errors", | ||
"license": "MIT", | ||
"repository": "sindresorhus/parse-json", | ||
"funding": "https://github.com/sponsors/sindresorhus", | ||
"author": { | ||
"name": "Sindre Sorhus", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "sindresorhus.com" | ||
"url": "https://sindresorhus.com" | ||
}, | ||
@@ -12,0 +13,0 @@ "engines": { |
@@ -1,6 +0,5 @@ | ||
# parse-json [![Build Status](https://travis-ci.org/sindresorhus/parse-json.svg?branch=master)](https://travis-ci.org/sindresorhus/parse-json) | ||
# parse-json [![Build Status](https://travis-ci.com/sindresorhus/parse-json.svg?branch=master)](https://travis-ci.com/github/sindresorhus/parse-json) | ||
> Parse JSON with more helpful errors | ||
## Install | ||
@@ -12,3 +11,2 @@ | ||
## Usage | ||
@@ -91,3 +89,2 @@ | ||
--- | ||
@@ -94,0 +91,0 @@ |
Sorry, the diff of this file is not supported yet
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
5138
99
1