Socket
Socket
Sign inDemoInstall

undici

Package Overview
Dependencies
1
Maintainers
3
Versions
205
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.26.3 to 5.26.4

2

docs/api/DispatchInterceptor.md

@@ -1,2 +0,2 @@

#Interface: DispatchInterceptor
# Interface: DispatchInterceptor

@@ -3,0 +3,0 @@ Extends: `Function`

@@ -107,2 +107,6 @@ 'use strict'

} else {
if (factory === null) {
return
}
res = this.runInAsyncScope(factory, null, {

@@ -156,3 +160,3 @@ statusCode,

return res.write(chunk)
return res ? res.write(chunk) : true
}

@@ -165,2 +169,6 @@

if (!res) {
return
}
this.trailers = util.parseHeaders(trailers)

@@ -167,0 +175,0 @@

@@ -271,3 +271,3 @@ // Ported from https://github.com/nodejs/undici/pull/907

resolve(dst)
resolve(dst.buffer)
} else if (type === 'blob') {

@@ -274,0 +274,0 @@ if (!Blob) {

@@ -1073,3 +1073,5 @@ // @ts-check

const { [kParser]: parser } = this
parser.readMore()
if (parser) {
parser.readMore()
}
}

@@ -1076,0 +1078,0 @@

{
"name": "undici",
"version": "5.26.3",
"version": "5.26.4",
"description": "An HTTP/1.1 client, written from scratch for Node.js",

@@ -70,7 +70,6 @@ "homepage": "https://undici.nodejs.org",

"types",
"docs",
"scripts/esbuild-build.mjs"
"docs"
],
"scripts": {
"build:node": "node scripts/esbuild-build.mjs",
"build:node": "npx esbuild@0.19.4 index-fetch.js --bundle --platform=node --outfile=undici-fetch.js --define:esbuildDetection=1 --keep-names",
"prebuild:wasm": "node build/wasm.js --prebuild",

@@ -89,3 +88,3 @@ "build:wasm": "node build/wasm.js --docker",

"test:websocket": "node scripts/verifyVersion.js 18 || tap test/websocket/*.js",
"test:wpt": "node scripts/verifyVersion 18 || (node test/wpt/start-fetch.mjs && node test/wpt/start-FileAPI.mjs && node test/wpt/start-mimesniff.mjs && node test/wpt/start-xhr.mjs && node --no-warnings test/wpt/start-websockets.mjs)",
"test:wpt": "node scripts/verifyVersion 18 || (node test/wpt/start-fetch.mjs && node test/wpt/start-FileAPI.mjs && node test/wpt/start-mimesniff.mjs && node test/wpt/start-xhr.mjs && node --no-warnings --expose-internals test/wpt/start-websockets.mjs)",
"coverage": "nyc --reporter=text --reporter=html npm run test",

@@ -115,3 +114,2 @@ "coverage:ci": "nyc --reporter=lcov npm run test",

"docsify-cli": "^4.4.3",
"esbuild": "^0.19.4",
"form-data": "^4.0.0",

@@ -118,0 +116,0 @@ "formdata-node": "^4.3.1",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc