1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00

chore(node/stream): unbundle/unminify readable-streams (#19045)

This commit is contained in:
Levente Kurusa 2023-05-10 12:30:02 +02:00 committed by GitHub
parent 50618fc0bc
commit 3dc745c881
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5723 additions and 21 deletions

File diff suppressed because one or more lines are too long

View file

@ -13,7 +13,7 @@
* ERR_INVALID_PACKAGE_CONFIG // package.json stuff, probably useless
*/
import { inspect } from "ext:deno_node/internal/util/inspect.mjs";
import { format, inspect } from "ext:deno_node/internal/util/inspect.mjs";
import { codes } from "ext:deno_node/internal/error_codes.ts";
import {
codeMap,
@ -2065,7 +2065,7 @@ export class ERR_UNKNOWN_CREDENTIAL extends NodeError {
}
export class ERR_UNKNOWN_ENCODING extends NodeTypeError {
constructor(x: string) {
super("ERR_UNKNOWN_ENCODING", `Unknown encoding: ${x}`);
super("ERR_UNKNOWN_ENCODING", format("Unknown encoding: %s", x));
}
}
export class ERR_UNKNOWN_FILE_EXTENSION extends NodeTypeError {

View file

@ -1,9 +1,7 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
// Copyright Joyent and Node contributors. All rights reserved. MIT license.
import stream from "ext:deno_node/_stream.mjs";
const { finished, pipeline } = stream.promises;
import { finished, pipeline } from "ext:deno_node/_stream.mjs";
export default {
finished,