GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — deps: update undici to 5.26.4 · nodejs/node@7ccb478

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • deps/undici
    • src
      • docs/api
        • DispatchInterceptor.md
      • lib
        • api
          • api-stream.js
          • readable.js
        • client.js
      • package-lock.json
      • package.json
      • scripts
        • esbuild-build.mjs
    • undici.js
  • doc/contributing/maintaining
    • maintaining-dependencies.md
  • src
    • undici_version.h
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎deps/undici/src/docs/api/DispatchInterceptor.md‎

Copy file name to clipboardExpand all lines: deps/undici/src/docs/api/DispatchInterceptor.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Interface: DispatchInterceptor
1+
# Interface: DispatchInterceptor
22

33
Extends: `Function`
44

Collapse file

‎deps/undici/src/lib/api/api-stream.js‎

Copy file name to clipboardExpand all lines: deps/undici/src/lib/api/api-stream.js
+9-1Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ class StreamHandler extends AsyncResource {
104104
{ callback, body: res, contentType, statusCode, statusMessage, headers }
105105
)
106106
} else {
107+
if (factory === null) {
108+
return
109+
}
110+
107111
res = this.runInAsyncScope(factory, null, {
108112
statusCode,
109113
headers,
@@ -152,14 +156,18 @@ class StreamHandler extends AsyncResource {
152156
onData (chunk) {
153157
const { res } = this
154158

155-
return res.write(chunk)
159+
return res ? res.write(chunk) : true
156160
}
157161

158162
onComplete (trailers) {
159163
const { res } = this
160164

161165
removeSignal(this)
162166

167+
if (!res) {
168+
return
169+
}
170+
163171
this.trailers = util.parseHeaders(trailers)
164172

165173
res.end()
Collapse file

‎deps/undici/src/lib/api/readable.js‎

Copy file name to clipboardExpand all lines: deps/undici/src/lib/api/readable.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ function consumeEnd (consume) {
265265
pos += buf.byteLength
266266
}
267267

268-
resolve(dst)
268+
resolve(dst.buffer)
269269
} else if (type === 'blob') {
270270
if (!Blob) {
271271
Blob = require('buffer').Blob
Collapse file

‎deps/undici/src/lib/client.js‎

Copy file name to clipboardExpand all lines: deps/undici/src/lib/client.js
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1070,7 +1070,9 @@ function onParserTimeout (parser) {
10701070

10711071
function onSocketReadable () {
10721072
const { [kParser]: parser } = this
1073-
parser.readMore()
1073+
if (parser) {
1074+
parser.readMore()
1075+
}
10741076
}
10751077

10761078
function onSocketError (err) {

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.