wonderful-fetch
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -23,3 +23,3 @@ (function (root, factory) { | ||
var SOURCE = 'library'; | ||
var VERSION = '1.1.2'; | ||
var VERSION = '1.1.3'; | ||
@@ -127,7 +127,8 @@ function WonderfulFetch(url, options) { | ||
if (!isError) { | ||
return; | ||
} | ||
// Add bm-properties to error object | ||
if ( | ||
(key === 'bm-properties' || options.attachResponseHeaders) | ||
&& isError | ||
) { | ||
if (key === 'bm-properties') { | ||
try { | ||
@@ -140,2 +141,4 @@ Object.keys(headers[key]).forEach(function (k) { | ||
} | ||
} else if (options.attachResponseHeaders) { | ||
result[key] = headers[key]; | ||
} | ||
@@ -142,0 +145,0 @@ }); |
{ | ||
"name": "wonderful-fetch", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "A wrapper around fetch.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
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
16972
234