wonderful-fetch
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -24,3 +24,3 @@ (function (root, factory) { | ||
var SOURCE = 'library'; | ||
var VERSION = '1.3.1'; | ||
var VERSION = '1.3.2'; | ||
@@ -31,5 +31,7 @@ function WonderfulFetch(url, options) { | ||
// Fix url | ||
url = url || options.url; | ||
// Fix options | ||
options = options || {}; | ||
url = url || options.url; | ||
options.timeout = options.timeout || 60000; | ||
@@ -281,3 +283,3 @@ options.tries = typeof options.tries === 'undefined' ? 1 : options.tries; | ||
var type = res.headers.get('content-type'); | ||
var ext = mime.extension(type) | ||
var ext = (mime.extension(type) || '') | ||
.replace('jpeg', 'jpg') | ||
@@ -284,0 +286,0 @@ // .replace('tiff', 'tif') |
{ | ||
"name": "wonderful-fetch", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "A wrapper around fetch.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
23663
343