mirror of
https://github.com/denoland/deno.git
synced 2024-11-30 16:40:57 -05:00
49e3ee010c
This commit adds: - `addAbortListener` in `node:events` - `aborted` in `node:util` - `execPath` and `execvArgs` named export from `node:process` - `getDefaultHighWaterMark` from `node:stream` The `execPath` is very hacky - because module namespaces can not have real getters, `execPath` is an object with a `toString()` method that on call returns the actual `execPath`, and replaces the `execPath` binding with the string. This is done so that we don't require the `execPath` permission on startup.
41 lines
797 B
TypeScript
41 lines
797 B
TypeScript
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
// compose, destroy and isDisturbed are experimental APIs without
|
|
// typings. They can be exposed once they are released as stable in Node
|
|
|
|
// @deno-types="./_stream.d.ts"
|
|
import {
|
|
_isUint8Array,
|
|
_uint8ArrayToBuffer,
|
|
addAbortSignal,
|
|
// compose,
|
|
// destroy,
|
|
Duplex,
|
|
finished,
|
|
// isDisturbed,
|
|
PassThrough,
|
|
pipeline,
|
|
Readable,
|
|
Stream,
|
|
Transform,
|
|
Writable,
|
|
} from "ext:deno_node/_stream.mjs";
|
|
import {
|
|
getDefaultHighWaterMark,
|
|
} from "ext:deno_node/internal/streams/state.mjs";
|
|
|
|
export {
|
|
_isUint8Array,
|
|
_uint8ArrayToBuffer,
|
|
addAbortSignal,
|
|
Duplex,
|
|
finished,
|
|
getDefaultHighWaterMark,
|
|
PassThrough,
|
|
pipeline,
|
|
Readable,
|
|
Stream,
|
|
Transform,
|
|
Writable,
|
|
};
|
|
|
|
export default Stream;
|