This repository has been archived by the owner on Aug 18, 2022. It is now read-only.
forked from iarna/node-fetch
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(json): improve JSON parse error reporting
It's not uncommon for services to send back bad JSON on errors, specially things like proxies, or if you get the wrong URI. This way, we can actually find out what the bad JSON was.
- Loading branch information
Showing
3 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,6 +69,7 @@ | |
}, | ||
"dependencies": { | ||
"encoding": "^0.1.11", | ||
"json-parse-helpfulerror": "^1.0.3", | ||
"safe-buffer": "^5.0.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters