Socket
Socket
Sign inDemoInstall

node-fetch

Package Overview
Dependencies
Maintainers
1
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-fetch - npm Package Compare versions

Comparing version 1.1.2 to 1.2.0

6

CHANGELOG.md

@@ -8,4 +8,8 @@

## v1.1.2 (master)
## v1.2.0 (master)
- Enhance: now fetch.Headers and fetch.Response are exposed, making testing easier
## v1.1.2
- Fix: `Headers` should only support `String` and `Array` properties, and ignore others

@@ -12,0 +16,0 @@

@@ -193,1 +193,3 @@

Fetch.Promise = global.Promise;
Fetch.Response = Response;
Fetch.Headers = Headers;

6

LIMITS.md
Known limits
============
Known differences
=================

@@ -19,2 +19,4 @@ *As of 1.x release*

- Only expose `Response` and `Headers` constructors at the moment, we don't see a good use-case for `Request` interface yet.
- There is currently no built-in caching, as server-side caching varies by use-cases.
{
"name": "node-fetch",
"version": "1.1.2",
"version": "1.2.0",
"description": "A light-weight module that brings window.fetch to node.js and io.js",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -33,3 +33,3 @@

- See [Known limits](https://github.com/bitinn/node-fetch/blob/master/LIMITS.md) for details.
- See [Known Differences](https://github.com/bitinn/node-fetch/blob/master/LIMITS.md) for details.
- If you happen to use a missing feature that `window.fetch` offers, feel free to open an issue.

@@ -36,0 +36,0 @@ - Pull requests are welcomed too!

@@ -62,2 +62,7 @@

it('should expose Headers and Response constructors', function() {
expect(fetch.Headers).to.equal(Headers);
expect(fetch.Response).to.equal(Response);
});
it('should reject with error if url is protocol relative', function() {

@@ -64,0 +69,0 @@ url = '//example.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