1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-24 08:09:08 -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 David Sherret
parent 69aea93d54
commit 8278df52e4
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 * 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 { codes } from "ext:deno_node/internal/error_codes.ts";
import { import {
codeMap, codeMap,
@ -2065,7 +2065,7 @@ export class ERR_UNKNOWN_CREDENTIAL extends NodeError {
} }
export class ERR_UNKNOWN_ENCODING extends NodeTypeError { export class ERR_UNKNOWN_ENCODING extends NodeTypeError {
constructor(x: string) { 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 { 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 2018-2023 the Deno authors. All rights reserved. MIT license.
// Copyright Joyent and Node contributors. All rights reserved. MIT license. // Copyright Joyent and Node contributors. All rights reserved. MIT license.
import stream from "ext:deno_node/_stream.mjs"; import { finished, pipeline } from "ext:deno_node/_stream.mjs";
const { finished, pipeline } = stream.promises;
export default { export default {
finished, finished,