pouchdb-fetch
Advanced tools
Comparing version 8.0.1 to 9.0.0
@@ -1,10 +0,4 @@ | ||
// AbortController was introduced quite a while after fetch and | ||
// isnt required for PouchDB to function so polyfill if needed | ||
var a = (typeof AbortController !== 'undefined') | ||
? AbortController | ||
: function () { return {abort: function () {}}; }; | ||
var f = fetch; | ||
var h = Headers; | ||
export { f as fetch, h as Headers, a as AbortController }; | ||
export { f as fetch, h as Headers }; |
@@ -5,8 +5,2 @@ 'use strict'; | ||
// AbortController was introduced quite a while after fetch and | ||
// isnt required for PouchDB to function so polyfill if needed | ||
var a = (typeof AbortController !== 'undefined') | ||
? AbortController | ||
: function () { return {abort: function () {}}; }; | ||
var f = fetch; | ||
@@ -17,2 +11,1 @@ var h = Headers; | ||
exports.Headers = h; | ||
exports.AbortController = a; |
import nodeFetch from 'node-fetch'; | ||
export { Headers } from 'node-fetch'; | ||
import fetchCookie from 'fetch-cookie'; | ||
export { default as AbortController } from 'abort-controller'; | ||
@@ -6,0 +5,0 @@ var fetch = fetchCookie(nodeFetch); |
@@ -10,3 +10,2 @@ 'use strict'; | ||
var fetchCookie = _interopDefault(require('fetch-cookie')); | ||
var abortController = _interopDefault(require('abort-controller')); | ||
@@ -16,3 +15,2 @@ var fetch = fetchCookie(nodeFetch__default); | ||
exports.Headers = nodeFetch.Headers; | ||
exports.AbortController = abortController; | ||
exports.fetch = fetch; |
{ | ||
"name": "pouchdb-fetch", | ||
"version": "8.0.1", | ||
"version": "9.0.0", | ||
"description": "PouchDB's fetch() method.", | ||
@@ -14,3 +14,3 @@ "main": "./lib/index.js", | ||
}, | ||
"jsnext:main": "./lib/index.es.js", | ||
"module": "./lib/index.es.js", | ||
"browser": { | ||
@@ -21,12 +21,9 @@ "./lib/index.js": "./lib/index-browser.js", | ||
"dependencies": { | ||
"abort-controller": "3.0.0", | ||
"fetch-cookie": "0.11.0", | ||
"node-fetch": "2.6.7" | ||
"fetch-cookie": "2.2.0", | ||
"node-fetch": "2.6.9" | ||
}, | ||
"module": "./lib/index.es.js", | ||
"files": [ | ||
"lib", | ||
"dist", | ||
"tonic-example.js" | ||
"dist" | ||
] | ||
} |
2
13597
23
+ Addedfetch-cookie@2.2.0(transitive)
+ Addednode-fetch@2.6.9(transitive)
+ Addedset-cookie-parser@2.7.1(transitive)
- Removedabort-controller@3.0.0
- Removedabort-controller@3.0.0(transitive)
- Removedevent-target-shim@5.0.1(transitive)
- Removedfetch-cookie@0.11.0(transitive)
- Removednode-fetch@2.6.7(transitive)
Updatedfetch-cookie@2.2.0
Updatednode-fetch@2.6.9