Socket
Socket
Sign inDemoInstall

@adobe/fetch

Package Overview
Dependencies
Maintainers
21
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 3.2.1 to 3.3.0

6

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

@@ -64,3 +64,3 @@ "main": "src/index.js",

"chai-iterator": "3.0.2",
"eslint": "8.25.0",
"eslint": "8.26.0",
"eslint-config-airbnb-base": "15.0.0",

@@ -72,3 +72,3 @@ "eslint-plugin-header": "3.1.1",

"lint-staged": "13.0.3",
"mocha": "10.0.0",
"mocha": "10.1.0",
"mocha-multi-reporters": "1.5.1",

@@ -75,0 +75,0 @@ "nock": "13.2.9",

@@ -108,2 +108,3 @@ /*

delete opts.socket;
/* istanbul ignore next */
if (!socket.assigned) {

@@ -110,0 +111,0 @@ socket.assigned = true;

@@ -148,2 +148,10 @@ /*

if (ctx.alpnProtocols.length === 1
&& (ctx.alpnProtocols[0] === ALPN_HTTP1_1 || ctx.alpnProtocols[0] === ALPN_HTTP1_0)) {
// shortcut: forced HTTP/1.X, default to HTTP/1.1 (no need to use ALPN to negotiate protocol)
protocol = ALPN_HTTP1_1;
ctx.alpnCache.set(origin, protocol);
return { protocol };
}
// negotioate via ALPN

@@ -150,0 +158,0 @@ const {

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