Socket
Socket
Sign inDemoInstall

@adobe/fetch

Package Overview
Dependencies
Maintainers
23
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adobe/fetch - npm Package Compare versions

Comparing version 4.1.1 to 4.1.2

20

package.json
{
"name": "@adobe/fetch",
"version": "4.1.1",
"version": "4.1.2",
"description": "Light-weight Fetch implementation transparently supporting both HTTP/1(.1) and HTTP/2",

@@ -61,20 +61,20 @@ "main": "./src/index.js",

"c8": "8.0.1",
"chai": "4.3.10",
"chai": "4.4.1",
"chai-as-promised": "7.1.1",
"chai-bytes": "0.1.2",
"chai-iterator": "3.0.2",
"eslint": "8.52.0",
"eslint": "8.57.0",
"eslint-config-airbnb-base": "15.0.0",
"eslint-plugin-header": "3.1.1",
"eslint-plugin-import": "2.29.0",
"formdata-node": "5.0.1",
"eslint-plugin-import": "2.29.1",
"formdata-node": "6.0.3",
"husky": "8.0.3",
"lint-staged": "15.0.2",
"mocha": "10.2.0",
"lint-staged": "15.2.2",
"mocha": "10.4.0",
"mocha-multi-reporters": "1.5.1",
"nock": "13.3.6",
"nock": "13.5.4",
"parse-cache-control": "1.0.1",
"parse-multipart-data": "1.5.0",
"semantic-release": "22.0.5",
"sinon": "17.0.0",
"semantic-release": "22.0.12",
"sinon": "17.0.1",
"stream-buffers": "3.0.2"

@@ -81,0 +81,0 @@ },

@@ -278,3 +278,5 @@ /*

const { code, message } = err;
if (code === 'ERR_HTTP2_ERROR' && message === 'Protocol error') {
/* c8 ignore next 2 */
if ((code === 'ERR_HTTP2_ERROR' && message === 'Protocol error')
|| code === 'ERR_HTTP2_STREAM_CANCEL') {
// server potentially downgraded from h2 to h1: clear alpn cache entry

@@ -281,0 +283,0 @@ ctx.alpnCache.delete(`${url.protocol}//${url.host}`);

@@ -445,4 +445,5 @@ /*

/**
* Convenience function which creates a new context with enforced HTTP/1.1 protocol,
* the equivalent of `context({ alpnProtocols: [ALPN_HTTP1_1] })`.
* Convenience function which creates a new context with enforced HTTP/1.1 protocol
* and disabled persistent connections (keep-alive), the equivalent of
* `context({ alpnProtocols: [ALPN_HTTP1_1], h1: { keepAlive: false } })`.
*

@@ -454,3 +455,5 @@ * The optional `options` parameter allows to specify further options.

h1: (options = {}) => new FetchContext({
...options, alpnProtocols: [this.context.ALPN_HTTP1_1],
...options,
alpnProtocols: [this.context.ALPN_HTTP1_1],
h1: { keepAlive: false },
}).api(),

@@ -460,3 +463,3 @@

* Convenience function which creates a new context with enforced HTTP/1.1 protocol
* and persistent connections (keep-alive), the equivalent of
* with persistent connections (keep-alive), the equivalent of
* `context({ alpnProtocols: [ALPN_HTTP1_1], h1: { keepAlive: true } })`.

@@ -469,8 +472,11 @@ *

keepAlive: (options = {}) => new FetchContext({
...options, alpnProtocols: [this.context.ALPN_HTTP1_1], h1: { keepAlive: true },
...options,
alpnProtocols: [this.context.ALPN_HTTP1_1],
h1: { keepAlive: true },
}).api(),
/**
* Convenience function which creates a new context with disabled caching
* and enforced HTTP/1.1 protocol, a combination of `h1()` and `noCache()`.
* Convenience function which creates a new context with disabled caching,
* enforced HTTP/1.1 protocol and disabled persistent connections (keep-alive),
* a combination of `h1()` and `noCache()`.
*

@@ -482,3 +488,6 @@ * The optional `options` parameter allows to specify further options.

h1NoCache: (options = {}) => new FetchContext({
...options, maxCacheSize: 0, alpnProtocols: [this.context.ALPN_HTTP1_1],
...options,
maxCacheSize: 0,
alpnProtocols: [this.context.ALPN_HTTP1_1],
h1: { keepAlive: false },
}).api(),

@@ -485,0 +494,0 @@

@@ -39,4 +39,5 @@ /*

/**
* Convenience function which creates a new context with enforced HTTP/1.1 protocol,
* the equivalent of `context({ alpnProtocols: [ALPN_HTTP1_1] })`.
* Convenience function which creates a new context with enforced HTTP/1.1 protocol
* and disabled persistent connections (keep-alive), the equivalent of
* `context({ alpnProtocols: [ALPN_HTTP1_1], h1: { keepAlive: false } })`.
*

@@ -61,4 +62,5 @@ * The optional `options` parameter allows to specify further options.

/**
* Convenience function which creates a new context with disabled caching
* and enforced HTTP/1.1 protocol, a combination of `h1()` and `noCache()`.
* Convenience function which creates a new context with disabled caching,
* and enforced HTTP/1.1 protocol with disabled persistent connections (keep-alive),
* a combination of `h1()` and `noCache()`.
*

@@ -65,0 +67,0 @@ * The optional `options` parameter allows to specify further options.

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