update, text, response

This commit is contained in:
2025-11-02 11:09:14 +01:00
parent 14776c86b0
commit eed8a4ddcf
2794 changed files with 156786 additions and 129204 deletions

View File

@@ -2,6 +2,8 @@ var once = require('once');
var noop = function() {};
var qnt = global.Bare ? queueMicrotask : process.nextTick.bind(process);
var isRequest = function(stream) {
return stream.setHeader && typeof stream.abort === 'function';
};
@@ -45,7 +47,7 @@ var eos = function(stream, opts, callback) {
};
var onclose = function() {
process.nextTick(onclosenexttick);
qnt(onclosenexttick);
};
var onclosenexttick = function() {

View File

@@ -1,6 +1,6 @@
{
"name": "end-of-stream",
"version": "1.4.4",
"version": "1.4.5",
"description": "Call a callback when a readable/writable/duplex stream has completed or failed.",
"repository": {
"type": "git",