REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 2.83 KB
Close
/opt/alt/alt-nodejs19/root/lib/node_modules/npm/node_modules/readable-stream/lib/internal/streams/legacy.js
Text
Base64
'use strict' const { ArrayIsArray, ObjectSetPrototypeOf } = require('../../ours/primordials') const { EventEmitter: EE } = require('events') function Stream(opts) { EE.call(this, opts) } ObjectSetPrototypeOf(Stream.prototype, EE.prototype) ObjectSetPrototypeOf(Stream, EE) Stream.prototype.pipe = function (dest, options) { const source = this function ondata(chunk) { if (dest.writable && dest.write(chunk) === false && source.pause) { source.pause() } } source.on('data', ondata) function ondrain() { if (source.readable && source.resume) { source.resume() } } dest.on('drain', ondrain) // If the 'end' option is not supplied, dest.end() will be called when // source gets the 'end' or 'close' events. Only dest.end() once. if (!dest._isStdio && (!options || options.end !== false)) { source.on('end', onend) source.on('close', onclose) } let didOnEnd = false function onend() { if (didOnEnd) return didOnEnd = true dest.end() } function onclose() { if (didOnEnd) return didOnEnd = true if (typeof dest.destroy === 'function') dest.destroy() } // Don't leave dangling pipes when there are errors. function onerror(er) { cleanup() if (EE.listenerCount(this, 'error') === 0) { this.emit('error', er) } } prependListener(source, 'error', onerror) prependListener(dest, 'error', onerror) // Remove all the event listeners that were added. function cleanup() { source.removeListener('data', ondata) dest.removeListener('drain', ondrain) source.removeListener('end', onend) source.removeListener('close', onclose) source.removeListener('error', onerror) dest.removeListener('error', onerror) source.removeListener('end', cleanup) source.removeListener('close', cleanup) dest.removeListener('close', cleanup) } source.on('end', cleanup) source.on('close', cleanup) dest.on('close', cleanup) dest.emit('pipe', source) // Allow for unix-like usage: A.pipe(B).pipe(C) return dest } function prependListener(emitter, event, fn) { // Sadly this is not cacheable as some libraries bundle their own // event emitter implementation with them. if (typeof emitter.prependListener === 'function') return emitter.prependListener(event, fn) // This is a hack to make sure that our error handler is attached before any // userland ones. NEVER DO THIS. This is here only because this code needs // to continue to work with older versions of Node.js that do not include // the prependListener() method. The goal is to eventually remove this hack. if (!emitter._events || !emitter._events[event]) emitter.on(event, fn) else if (ArrayIsArray(emitter._events[event])) emitter._events[event].unshift(fn) else emitter._events[event] = [fn, emitter._events[event]] } module.exports = { Stream, prependListener }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 18
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
add-abort-signal.js
1.32 KB
lrw-r--r--
2023-12-06 18:07:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
buffer_list.js
3.77 KB
lrw-r--r--
2023-12-06 18:07:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
compose.js
3.31 KB
lrw-r--r--
2023-12-06 18:07:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
destroy.js
6.61 KB
lrw-r--r--
2023-12-06 18:07:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
duplex.js
4.73 KB
lrw-r--r--
2023-12-06 18:07:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
duplexify.js
8.89 KB
lrw-r--r--
2023-12-06 18:07:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
end-of-stream.js
6.70 KB
lrw-r--r--
2023-12-06 18:07:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
from.js
2.54 KB
lrw-r--r--
2023-12-06 18:07:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
lazy_transform.js
1.54 KB
lrw-r--r--
2023-12-06 18:07:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
legacy.js
2.83 KB
lrw-r--r--
2023-12-06 18:07:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
operators.js
11.57 KB
lrw-r--r--
2023-12-06 18:07:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
passthrough.js
1.71 KB
lrw-r--r--
2023-12-06 18:07:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
pipeline.js
10.23 KB
lrw-r--r--
2023-12-06 18:07:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
readable.js
39.85 KB
lrw-r--r--
2023-12-06 18:07:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
state.js
901 B
lrw-r--r--
2023-12-06 18:07:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
transform.js
6.93 KB
lrw-r--r--
2023-12-06 18:07:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
utils.js
9.81 KB
lrw-r--r--
2023-12-06 18:07:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
writable.js
25.31 KB
lrw-r--r--
2023-12-06 18:07:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).