@adobe/fetch
Advanced tools
Comparing version 3.2.1 to 3.3.0
{ | ||
"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 { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
144028
3328