-
Notifications
You must be signed in to change notification settings - Fork 578
/
module_all.ts
190 lines (188 loc) · 6.62 KB
/
module_all.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
// This aliases are used in some node tests and represent a legacy alias
// for the stream modules
// deno-lint-ignore camelcase
import _http_agent from "./_http_agent.mjs";
// deno-lint-ignore camelcase
import _http_outgoing from "./_http_outgoing.ts";
// deno-lint-ignore camelcase
import _stream_duplex from "./internal/streams/duplex.mjs";
// deno-lint-ignore camelcase
import _stream_passthrough from "./internal/streams/passthrough.mjs";
// deno-lint-ignore camelcase
import _stream_readable from "./internal/streams/readable.mjs";
// deno-lint-ignore camelcase
import _stream_transform from "./internal/streams/transform.mjs";
// deno-lint-ignore camelcase
import _stream_writable from "./internal/streams/writable.mjs";
import assert from "./assert.ts";
import assertStrict from "./assert/strict.ts";
// deno-lint-ignore camelcase
import async_hooks from "./async_hooks.ts";
import buffer from "./buffer.ts";
import childProcess from "./child_process.ts";
import cluster from "./cluster.ts";
import console from "./console.ts";
import constants from "./constants.ts";
import crypto from "./crypto.ts";
import dgram from "./dgram.ts";
import dns from "./dns.ts";
import dnsPromises from "./dns/promises.ts";
import domain from "./domain.ts";
import events from "./events.ts";
import fs from "./fs.ts";
import fsPromises from "./fs/promises.ts";
import internalFsUtils from "./internal/fs/utils.mjs";
import http from "./http.ts";
import http2 from "./http2.ts";
import https from "./https.ts";
import inspector from "./inspector.ts";
import internalCryptoCertificate from "./internal/crypto/certificate.ts";
import internalCryptoCipher from "./internal/crypto/cipher.ts";
import internalCryptoDiffiehellman from "./internal/crypto/diffiehellman.ts";
import internalCryptoHash from "./internal/crypto/hash.ts";
import internalCryptoHkdf from "./internal/crypto/hkdf.ts";
import internalCryptoKeygen from "./internal/crypto/keygen.ts";
import internalCryptoKeys from "./internal/crypto/keys.ts";
import internalCryptoPbkdf2 from "./internal/crypto/pbkdf2.ts";
import internalCryptoRandom from "./internal/crypto/random.ts";
import internalCryptoScrypt from "./internal/crypto/scrypt.ts";
import internalCryptoSig from "./internal/crypto/sig.ts";
import internalCryptoUtil from "./internal/crypto/util.ts";
import internalCryptoX509 from "./internal/crypto/x509.ts";
import internalDgram from "./internal/dgram.ts";
import internalDnsPromises from "./internal/dns/promises.ts";
import internalErrors from "./internal/errors.ts";
import internalEventTarget from "./internal/event_target.mjs";
import internalHttp from "./internal/http.ts";
import internalReadlineUtils from "./internal/readline/utils.mjs";
import internalStreamsAddAbortSignal from "./internal/streams/add-abort-signal.mjs";
import internalStreamsAddBufferList from "./internal/streams/buffer_list.mjs";
import internalStreamsState from "./internal/streams/state.mjs";
import internalTestBinding from "./internal/test/binding.ts";
import internalTimers from "./internal/timers.mjs";
import internalUtilInspect from "./internal/util/inspect.mjs";
import internalUtil from "./internal/util.mjs";
import net from "./net.ts";
import os from "./os.ts";
import pathPosix from "./path/posix.ts";
import pathWin32 from "./path/win32.ts";
import path from "./path.ts";
import perfHooks from "./perf_hooks.ts";
import punycode from "./punycode.ts";
import process from "./process.ts";
import querystring from "./querystring.ts";
import readline from "./readline.ts";
import repl from "./repl.ts";
import stream from "./stream.ts";
import streamConsumers from "./stream/consumers.mjs";
import streamPromises from "./stream/promises.mjs";
import streamWeb from "./stream/web.ts";
import stringDecoder from "./string_decoder.ts";
import sys from "./sys.ts";
import timers from "./timers.ts";
import timersPromises from "./timers/promises.ts";
import tls from "./tls.ts";
import tty from "./tty.ts";
import url from "./url.ts";
import utilTypes from "./util/types.mjs";
import util from "./util.ts";
import v8 from "./v8.ts";
import vm from "./vm.ts";
import workerThreads from "./worker_threads.ts";
import wasi from "./wasi.ts";
import zlib from "./zlib.ts";
// Canonical mapping of supported modules
export default {
_http_agent,
_http_outgoing,
_stream_duplex,
_stream_passthrough,
_stream_readable,
_stream_transform,
_stream_writable,
assert,
"assert/strict": assertStrict,
async_hooks,
buffer,
crypto,
console,
constants,
child_process: childProcess,
cluster,
dgram,
dns,
"dns/promises": dnsPromises,
domain,
events,
fs,
"fs/promises": fsPromises,
http,
http2,
https,
inspector,
"internal/crypto/certificate": internalCryptoCertificate,
"internal/crypto/cipher": internalCryptoCipher,
"internal/crypto/diffiehellman": internalCryptoDiffiehellman,
"internal/crypto/hash": internalCryptoHash,
"internal/crypto/hkdf": internalCryptoHkdf,
"internal/crypto/keygen": internalCryptoKeygen,
"internal/crypto/keys": internalCryptoKeys,
"internal/crypto/pbkdf2": internalCryptoPbkdf2,
"internal/crypto/random": internalCryptoRandom,
"internal/crypto/scrypt": internalCryptoScrypt,
"internal/crypto/sig": internalCryptoSig,
"internal/crypto/util": internalCryptoUtil,
"internal/crypto/x509": internalCryptoX509,
"internal/dgram": internalDgram,
"internal/dns/promises": internalDnsPromises,
"internal/errors": internalErrors,
"internal/event_target": internalEventTarget,
"internal/fs/utils": internalFsUtils,
"internal/http": internalHttp,
"internal/readline/utils": internalReadlineUtils,
"internal/streams/add-abort-signal": internalStreamsAddAbortSignal,
"internal/streams/buffer_list": internalStreamsAddBufferList,
"internal/streams/state": internalStreamsState,
"internal/test/binding": internalTestBinding,
"internal/timers": internalTimers,
"internal/util/inspect": internalUtilInspect,
"internal/util": internalUtil,
net,
os,
"path/posix": pathPosix,
"path/win32": pathWin32,
path,
perf_hooks: perfHooks,
process,
get punycode() {
process.emitWarning(
"The `punycode` module is deprecated. Please use a userland " +
"alternative instead.",
"DeprecationWarning",
"DEP0040",
);
return punycode;
},
querystring,
readline,
repl,
stream,
"stream/consumers": streamConsumers,
"stream/promises": streamPromises,
"stream/web": streamWeb,
string_decoder: stringDecoder,
sys,
timers,
"timers/promises": timersPromises,
tls,
tty,
url,
"util/types": utilTypes,
util,
v8,
vm,
wasi,
worker_threads: workerThreads,
zlib,
} as Record<string, unknown>;