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

pouchdb-fetch

Package Overview
Dependencies
Maintainers
0
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pouchdb-fetch - npm Package Compare versions

Comparing version 8.0.1 to 9.0.0

8

lib/index-browser.es.js

@@ -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;

13

package.json
{
"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"
]
}
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