Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"url": "https://github.com/pouchdb/pouchdb.git"
},
"dependencies": {
"abort-controller": "3.0.0",
"clone-buffer": "1.0.0",
"double-ended-queue": "2.1.0-0",
"fetch-cookie": "2.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/node_modules/pouchdb-adapter-http/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import pool from './promise-pool';

import { fetch, Headers, AbortController } from 'pouchdb-fetch';
import { fetch, Headers } from 'pouchdb-fetch';

import {
createError,
Expand Down
8 changes: 1 addition & 7 deletions packages/node_modules/pouchdb-fetch/src/fetch-browser.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
'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;
var h = Headers;

export {f as fetch, h as Headers, a as AbortController};
export { f as fetch, h as Headers };
3 changes: 1 addition & 2 deletions packages/node_modules/pouchdb-fetch/src/fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

import nodeFetch, {Headers} from 'node-fetch';
import fetchCookie from 'fetch-cookie';
import AbortController from 'abort-controller';

var fetch = fetchCookie(nodeFetch);

export {fetch, Headers, AbortController};
export { fetch, Headers };
2 changes: 1 addition & 1 deletion packages/node_modules/pouchdb-fetch/src/index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export {fetch, Headers, AbortController} from './fetch';
export { fetch, Headers } from './fetch';