Socket
Socket
Sign inDemoInstall

cross-fetch

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cross-fetch - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

7

dist/browser-ponyfill.js

@@ -470,8 +470,7 @@ var __root__ = (function (root) {

var fetch = __root__.fetch;
fetch.fetch = fetch;
fetch.Response = __root__.Response;
fetch.Headers = __root__.Headers;
fetch.Request = __root__.Request;
var Response = fetch.Response = __root__.Response;
var Request = fetch.Request = __root__.Request;
var Headers = fetch.Headers = __root__.Headers;
if (typeof module === 'object' && module.exports) {
module.exports = fetch;
}

@@ -12,1 +12,2 @@ var fetchNode = require('./node-ponyfill');

}

@@ -13,7 +13,7 @@ var realFetch = require('node-fetch');

fetch.fetch = fetch;
fetch.Response = realFetch.Response,
fetch.Headers = realFetch.Headers,
fetch.Request = realFetch.Request,
fetch.Response = realFetch.Response;
fetch.Headers = realFetch.Headers;
fetch.Request = realFetch.Request;
fetch.polyfill = false;
module.exports = fetch;
{
"name": "cross-fetch",
"version": "2.0.0",
"version": "2.1.0",
"description": "Universal WHATWG Fetch API for Node, Browsers and React Native",

@@ -9,11 +9,20 @@ "homepage": "https://github.com/lquixada/cross-fetch",

"scripts": {
"prebuild": "npm test -s",
"prepush": "npm test -s",
"precommit": "lint-staged",
"build": "rollup -c",
"test": "npm run -s test:node && npm run -s test:browser && npm run -s lint",
"test:browser": "mocha-headless-chrome -f test/browser/index.html -a no-sandbox -a disable-setuid-sandbox",
"deploy": "git push --no-verify && git push --tags --no-verify && npm publish",
"lint": "eslint .",
"release": "release-it",
"test": "run-p -s test:node test:headless lint",
"test:browser": "opn test/browser/index.html",
"test:ci": "npm test -s && npm run -s test:sauce",
"test:headless": "mocha-headless-chrome -f test/browser/index.html -a no-sandbox -a disable-setuid-sandbox",
"test:node": "mocha --check-leaks test/node/index.js",
"lint": "eslint .",
"release:major": "npm run -s build && npm version major && git push --no-verify && npm publish"
"test:sauce": "./tasks/sauce"
},
"lint-staged": {
"*.js": [
"eslint --fix",
"git add"
]
},
"repository": {

@@ -29,3 +38,3 @@ "type": "git",

"dependencies": {
"node-fetch": "2.0.0",
"node-fetch": "2.1.1",
"whatwg-fetch": "2.0.3"

@@ -35,8 +44,12 @@ },

"chai": "4.1.2",
"eslint": "4.18.1",
"eslint": "4.18.2",
"husky": "0.14.3",
"mocha": "5.0.1",
"lint-staged": "7.0.0",
"mocha": "5.0.4",
"mocha-headless-chrome": "1.8.2",
"nock": "9.2.1",
"rollup": "0.56.3",
"nock": "9.2.3",
"npm-run-all": "4.1.2",
"opn-cli": "3.1.0",
"release-it": "7.2.1",
"rollup": "0.56.5",
"rollup-plugin-copy": "0.2.3",

@@ -43,0 +56,0 @@ "rollup-plugin-uglify": "3.0.0",

@@ -25,6 +25,6 @@ cross-fetch

- [Supported environments](#supported-environments)
- [Sponsors](#sponsors)
- [Thanks](#thanks)
- [License](#license)
- [Author](#author)
- [Sponsors](#sponsors)

@@ -163,16 +163,6 @@ * * *

* React-Native
* Browsers
- Chrome
- Firefox
- Safari 6.1+
- Internet Explorer 10+
[![Build Status](https://saucelabs.com/browser-matrix/cross-fetch.svg)](https://saucelabs.com/beta/builds/f40519e32776466bacdc855ee3ecf267)
## Sponsors
Manual cross-browser testing is provided by the following sponsor:
[![BrowserStack](./assets/browserstack-logo.png)](https://www.browserstack.com/)
## Thanks

@@ -193,1 +183,8 @@

|[@lquixada](http://www.github.com/lquixada)|
## Sponsors
Manual cross-browser testing is provided by the following sponsor:
[![BrowserStack](./assets/browserstack-logo.png)](https://www.browserstack.com/)
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