New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

wonderful-fetch

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wonderful-fetch - npm Package Compare versions

Comparing version 0.0.13 to 0.0.14

14

dist/index.js

@@ -17,3 +17,3 @@ (function (root, factory) {

var JSON5;
var JSONParser;
var jetpack;

@@ -24,3 +24,3 @@

var SOURCE = 'library';
var VERSION = '0.0.13';
var VERSION = '0.0.14';

@@ -169,5 +169,11 @@ function WonderfulFetch(url, options) {

if (options.response === 'json') {
JSON5 = JSON5 || require('json5');
if (environment === 'node') {
JSONParser = JSONParser || require('json5');
} else {
JSONParser = typeof JSON5 === 'undefined' ? JSON : JSON5;
}
try {
return _resolve(JSON5.parse(text));
return _resolve(JSONParser.parse(text));
} catch (e) {

@@ -174,0 +180,0 @@ throw new Error(new Error('Response is not JSON: ' + e))

{
"name": "wonderful-fetch",
"version": "0.0.13",
"version": "0.0.14",
"description": "A wrapper around fetch.",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc