Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@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 4.0.11 to 4.0.12

2

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

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

@@ -449,2 +449,11 @@ <div align="center">

### Use h2c (http2 cleartext w/prior-knowledge) protocol
```javascript
import { fetch } from '@adobe/fetch';
const resp = await fetch('http2://nghttp2.org');
console.log(`Http version: ${resp.httpVersion}`);
```
### Force HTTP/1(.1) protocol

@@ -451,0 +460,0 @@

@@ -22,3 +22,3 @@ /*

const debug = debugFactory('helix-fetch:utils');
const debug = debugFactory('adobe/fetch:utils');
const { MAX_LENGTH: maxBufferLength } = bufferConstants;

@@ -25,0 +25,0 @@ const { Z_SYNC_FLUSH } = zlibConstants;

@@ -22,3 +22,3 @@ /*

const debug = debugFactory('helix-fetch:h1');
const debug = debugFactory('adobe/fetch:h1');

@@ -25,0 +25,0 @@ const getAgent = (ctx, protocol) => {

@@ -21,3 +21,3 @@ /*

const debug = debugFactory('helix-fetch:h2');
const debug = debugFactory('adobe/fetch:h2');

@@ -24,0 +24,0 @@ const { NGHTTP2_CANCEL } = constants;

@@ -26,3 +26,3 @@ /*

const debug = debugFactory('helix-fetch:core');
const debug = debugFactory('adobe/fetch:core');

@@ -29,0 +29,0 @@ class RequestContext {

@@ -35,3 +35,3 @@ /*

const debug = debugFactory('helix-fetch:core');
const debug = debugFactory('adobe/fetch:core');

@@ -38,0 +38,0 @@ const ALPN_HTTP2 = 'h2';

@@ -33,3 +33,3 @@ /*

const { context, RequestAbortedError } = core;
const debug = debugFactory('helix-fetch');
const debug = debugFactory('adobe/fetch');

@@ -36,0 +36,0 @@ const CACHEABLE_METHODS = ['GET', 'HEAD'];

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