typespeed 2.3.6 → 2.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (258) hide show
  1. package/app/src/config-development.json +3 -2
  2. package/app/src/test-socket.class.ts +56 -0
  3. package/app/src/views/socket.html +23 -0
  4. package/dist/introduction/decorator/example-import.class.js +17 -0
  5. package/dist/introduction/decorator/main-app.js +14 -0
  6. package/dist/introduction/decorator/main-decorator.js +127 -0
  7. package/dist/introduction/decorator/main-import.js +1 -0
  8. package/dist/introduction/decorator/main-reflect.js +38 -0
  9. package/dist/introduction/web-services/db-init.js +33 -0
  10. package/dist/introduction/web-services/db-singleton.js +49 -0
  11. package/dist/introduction/web-services/http-if.js +12 -0
  12. package/dist/introduction/web-services/http-init.js +7 -0
  13. package/dist/introduction/web-services/http-router.js +23 -0
  14. package/dist/{database.decorator.js → src/database.decorator.js} +2 -4
  15. package/dist/{default → src/default}/express-server.class.js +20 -5
  16. package/dist/{default → src/default}/rabbitmq.class.js +3 -3
  17. package/dist/{default → src/default}/redis.class.js +1 -1
  18. package/dist/src/default/socket-io.class.js +64 -0
  19. package/dist/{typespeed.js → src/typespeed.js} +6 -3
  20. package/dist/typespeed.d.ts +19 -1
  21. package/package.json +8 -8
  22. package/src/database.decorator.ts +2 -4
  23. package/src/default/express-server.class.ts +18 -7
  24. package/src/default/rabbitmq.class.ts +3 -3
  25. package/src/default/redis.class.ts +1 -1
  26. package/src/default/socket-io.class.ts +68 -0
  27. package/src/factory/server-factory.class.ts +1 -1
  28. package/src/typespeed.d.ts +19 -1
  29. package/src/typespeed.ts +7 -4
  30. package/test/socket.test.ts +60 -0
  31. package/tsconfig.json +2 -1
  32. package/app/node_modules/.package-lock.json +0 -134
  33. package/app/node_modules/@types/body-parser/LICENSE +0 -21
  34. package/app/node_modules/@types/body-parser/README.md +0 -16
  35. package/app/node_modules/@types/body-parser/index.d.ts +0 -107
  36. package/app/node_modules/@types/body-parser/package.json +0 -58
  37. package/app/node_modules/@types/connect/LICENSE +0 -21
  38. package/app/node_modules/@types/connect/README.md +0 -16
  39. package/app/node_modules/@types/connect/index.d.ts +0 -93
  40. package/app/node_modules/@types/connect/package.json +0 -32
  41. package/app/node_modules/@types/express/LICENSE +0 -21
  42. package/app/node_modules/@types/express/README.md +0 -16
  43. package/app/node_modules/@types/express/index.d.ts +0 -136
  44. package/app/node_modules/@types/express/package.json +0 -45
  45. package/app/node_modules/@types/express-serve-static-core/LICENSE +0 -21
  46. package/app/node_modules/@types/express-serve-static-core/README.md +0 -16
  47. package/app/node_modules/@types/express-serve-static-core/index.d.ts +0 -1281
  48. package/app/node_modules/@types/express-serve-static-core/package.json +0 -55
  49. package/app/node_modules/@types/mime/LICENSE +0 -21
  50. package/app/node_modules/@types/mime/Mime.d.ts +0 -10
  51. package/app/node_modules/@types/mime/README.md +0 -16
  52. package/app/node_modules/@types/mime/index.d.ts +0 -35
  53. package/app/node_modules/@types/mime/lite.d.ts +0 -7
  54. package/app/node_modules/@types/mime/package.json +0 -29
  55. package/app/node_modules/@types/node/LICENSE +0 -21
  56. package/app/node_modules/@types/node/README.md +0 -16
  57. package/app/node_modules/@types/node/assert/strict.d.ts +0 -8
  58. package/app/node_modules/@types/node/assert.d.ts +0 -961
  59. package/app/node_modules/@types/node/async_hooks.d.ts +0 -518
  60. package/app/node_modules/@types/node/buffer.d.ts +0 -2323
  61. package/app/node_modules/@types/node/child_process.d.ts +0 -1399
  62. package/app/node_modules/@types/node/cluster.d.ts +0 -410
  63. package/app/node_modules/@types/node/console.d.ts +0 -412
  64. package/app/node_modules/@types/node/constants.d.ts +0 -18
  65. package/app/node_modules/@types/node/crypto.d.ts +0 -3973
  66. package/app/node_modules/@types/node/dgram.d.ts +0 -545
  67. package/app/node_modules/@types/node/diagnostics_channel.d.ts +0 -192
  68. package/app/node_modules/@types/node/dns/promises.d.ts +0 -370
  69. package/app/node_modules/@types/node/dns.d.ts +0 -660
  70. package/app/node_modules/@types/node/dom-events.d.ts +0 -126
  71. package/app/node_modules/@types/node/domain.d.ts +0 -170
  72. package/app/node_modules/@types/node/events.d.ts +0 -682
  73. package/app/node_modules/@types/node/fs/promises.d.ts +0 -1159
  74. package/app/node_modules/@types/node/fs.d.ts +0 -3976
  75. package/app/node_modules/@types/node/globals.d.ts +0 -303
  76. package/app/node_modules/@types/node/globals.global.d.ts +0 -1
  77. package/app/node_modules/@types/node/http.d.ts +0 -1714
  78. package/app/node_modules/@types/node/http2.d.ts +0 -2133
  79. package/app/node_modules/@types/node/https.d.ts +0 -542
  80. package/app/node_modules/@types/node/index.d.ts +0 -134
  81. package/app/node_modules/@types/node/inspector.d.ts +0 -2741
  82. package/app/node_modules/@types/node/module.d.ts +0 -115
  83. package/app/node_modules/@types/node/net.d.ts +0 -883
  84. package/app/node_modules/@types/node/os.d.ts +0 -473
  85. package/app/node_modules/@types/node/package.json +0 -237
  86. package/app/node_modules/@types/node/path.d.ts +0 -191
  87. package/app/node_modules/@types/node/perf_hooks.d.ts +0 -625
  88. package/app/node_modules/@types/node/process.d.ts +0 -1488
  89. package/app/node_modules/@types/node/punycode.d.ts +0 -117
  90. package/app/node_modules/@types/node/querystring.d.ts +0 -131
  91. package/app/node_modules/@types/node/readline/promises.d.ts +0 -143
  92. package/app/node_modules/@types/node/readline.d.ts +0 -653
  93. package/app/node_modules/@types/node/repl.d.ts +0 -424
  94. package/app/node_modules/@types/node/stream/consumers.d.ts +0 -12
  95. package/app/node_modules/@types/node/stream/promises.d.ts +0 -42
  96. package/app/node_modules/@types/node/stream/web.d.ts +0 -330
  97. package/app/node_modules/@types/node/stream.d.ts +0 -1440
  98. package/app/node_modules/@types/node/string_decoder.d.ts +0 -67
  99. package/app/node_modules/@types/node/test.d.ts +0 -783
  100. package/app/node_modules/@types/node/timers/promises.d.ts +0 -93
  101. package/app/node_modules/@types/node/timers.d.ts +0 -101
  102. package/app/node_modules/@types/node/tls.d.ts +0 -1111
  103. package/app/node_modules/@types/node/trace_events.d.ts +0 -171
  104. package/app/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
  105. package/app/node_modules/@types/node/ts4.8/assert.d.ts +0 -961
  106. package/app/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -518
  107. package/app/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2323
  108. package/app/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1399
  109. package/app/node_modules/@types/node/ts4.8/cluster.d.ts +0 -410
  110. package/app/node_modules/@types/node/ts4.8/console.d.ts +0 -412
  111. package/app/node_modules/@types/node/ts4.8/constants.d.ts +0 -18
  112. package/app/node_modules/@types/node/ts4.8/crypto.d.ts +0 -3972
  113. package/app/node_modules/@types/node/ts4.8/dgram.d.ts +0 -545
  114. package/app/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -192
  115. package/app/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -370
  116. package/app/node_modules/@types/node/ts4.8/dns.d.ts +0 -660
  117. package/app/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -126
  118. package/app/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
  119. package/app/node_modules/@types/node/ts4.8/events.d.ts +0 -682
  120. package/app/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1138
  121. package/app/node_modules/@types/node/ts4.8/fs.d.ts +0 -3875
  122. package/app/node_modules/@types/node/ts4.8/globals.d.ts +0 -302
  123. package/app/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
  124. package/app/node_modules/@types/node/ts4.8/http.d.ts +0 -1651
  125. package/app/node_modules/@types/node/ts4.8/http2.d.ts +0 -2133
  126. package/app/node_modules/@types/node/ts4.8/https.d.ts +0 -542
  127. package/app/node_modules/@types/node/ts4.8/index.d.ts +0 -88
  128. package/app/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2741
  129. package/app/node_modules/@types/node/ts4.8/module.d.ts +0 -115
  130. package/app/node_modules/@types/node/ts4.8/net.d.ts +0 -883
  131. package/app/node_modules/@types/node/ts4.8/os.d.ts +0 -473
  132. package/app/node_modules/@types/node/ts4.8/path.d.ts +0 -191
  133. package/app/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -625
  134. package/app/node_modules/@types/node/ts4.8/process.d.ts +0 -1488
  135. package/app/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
  136. package/app/node_modules/@types/node/ts4.8/querystring.d.ts +0 -131
  137. package/app/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -143
  138. package/app/node_modules/@types/node/ts4.8/readline.d.ts +0 -653
  139. package/app/node_modules/@types/node/ts4.8/repl.d.ts +0 -424
  140. package/app/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
  141. package/app/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -42
  142. package/app/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -330
  143. package/app/node_modules/@types/node/ts4.8/stream.d.ts +0 -1440
  144. package/app/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
  145. package/app/node_modules/@types/node/ts4.8/test.d.ts +0 -784
  146. package/app/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
  147. package/app/node_modules/@types/node/ts4.8/timers.d.ts +0 -94
  148. package/app/node_modules/@types/node/ts4.8/tls.d.ts +0 -1111
  149. package/app/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -171
  150. package/app/node_modules/@types/node/ts4.8/tty.d.ts +0 -206
  151. package/app/node_modules/@types/node/ts4.8/url.d.ts +0 -902
  152. package/app/node_modules/@types/node/ts4.8/util.d.ts +0 -2017
  153. package/app/node_modules/@types/node/ts4.8/v8.d.ts +0 -541
  154. package/app/node_modules/@types/node/ts4.8/vm.d.ts +0 -644
  155. package/app/node_modules/@types/node/ts4.8/wasi.d.ts +0 -158
  156. package/app/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -695
  157. package/app/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
  158. package/app/node_modules/@types/node/tty.d.ts +0 -206
  159. package/app/node_modules/@types/node/url.d.ts +0 -902
  160. package/app/node_modules/@types/node/util.d.ts +0 -2017
  161. package/app/node_modules/@types/node/v8.d.ts +0 -541
  162. package/app/node_modules/@types/node/vm.d.ts +0 -644
  163. package/app/node_modules/@types/node/wasi.d.ts +0 -158
  164. package/app/node_modules/@types/node/worker_threads.d.ts +0 -695
  165. package/app/node_modules/@types/node/zlib.d.ts +0 -517
  166. package/app/node_modules/@types/qs/LICENSE +0 -21
  167. package/app/node_modules/@types/qs/README.md +0 -16
  168. package/app/node_modules/@types/qs/index.d.ts +0 -62
  169. package/app/node_modules/@types/qs/package.json +0 -65
  170. package/app/node_modules/@types/range-parser/LICENSE +0 -21
  171. package/app/node_modules/@types/range-parser/README.md +0 -55
  172. package/app/node_modules/@types/range-parser/index.d.ts +0 -35
  173. package/app/node_modules/@types/range-parser/package.json +0 -25
  174. package/app/node_modules/@types/send/LICENSE +0 -21
  175. package/app/node_modules/@types/send/README.md +0 -16
  176. package/app/node_modules/@types/send/index.d.ts +0 -231
  177. package/app/node_modules/@types/send/package.json +0 -33
  178. package/app/node_modules/@types/serve-static/LICENSE +0 -21
  179. package/app/node_modules/@types/serve-static/README.md +0 -16
  180. package/app/node_modules/@types/serve-static/index.d.ts +0 -113
  181. package/app/node_modules/@types/serve-static/package.json +0 -38
  182. package/app/node_modules/colors/LICENSE +0 -25
  183. package/app/node_modules/colors/README.md +0 -221
  184. package/app/node_modules/colors/examples/normal-usage.js +0 -82
  185. package/app/node_modules/colors/examples/safe-string.js +0 -79
  186. package/app/node_modules/colors/index.d.ts +0 -136
  187. package/app/node_modules/colors/lib/colors.js +0 -211
  188. package/app/node_modules/colors/lib/custom/trap.js +0 -46
  189. package/app/node_modules/colors/lib/custom/zalgo.js +0 -110
  190. package/app/node_modules/colors/lib/extendStringPrototype.js +0 -110
  191. package/app/node_modules/colors/lib/index.js +0 -13
  192. package/app/node_modules/colors/lib/maps/america.js +0 -10
  193. package/app/node_modules/colors/lib/maps/rainbow.js +0 -12
  194. package/app/node_modules/colors/lib/maps/random.js +0 -11
  195. package/app/node_modules/colors/lib/maps/zebra.js +0 -5
  196. package/app/node_modules/colors/lib/styles.js +0 -95
  197. package/app/node_modules/colors/lib/system/has-flag.js +0 -35
  198. package/app/node_modules/colors/lib/system/supports-colors.js +0 -151
  199. package/app/node_modules/colors/package.json +0 -45
  200. package/app/node_modules/colors/safe.d.ts +0 -48
  201. package/app/node_modules/colors/safe.js +0 -10
  202. package/app/node_modules/colors/themes/generic-logging.js +0 -12
  203. package/app/node_modules/dateformat/LICENSE +0 -20
  204. package/app/node_modules/dateformat/Readme.md +0 -204
  205. package/app/node_modules/dateformat/lib/dateformat.js +0 -1
  206. package/app/node_modules/dateformat/package.json +0 -38
  207. package/app/node_modules/mkdirp/CHANGELOG.md +0 -15
  208. package/app/node_modules/mkdirp/LICENSE +0 -21
  209. package/app/node_modules/mkdirp/bin/cmd.js +0 -68
  210. package/app/node_modules/mkdirp/index.js +0 -31
  211. package/app/node_modules/mkdirp/lib/find-made.js +0 -29
  212. package/app/node_modules/mkdirp/lib/mkdirp-manual.js +0 -64
  213. package/app/node_modules/mkdirp/lib/mkdirp-native.js +0 -39
  214. package/app/node_modules/mkdirp/lib/opts-arg.js +0 -23
  215. package/app/node_modules/mkdirp/lib/path-arg.js +0 -29
  216. package/app/node_modules/mkdirp/lib/use-native.js +0 -10
  217. package/app/node_modules/mkdirp/package.json +0 -44
  218. package/app/node_modules/mkdirp/readme.markdown +0 -266
  219. package/app/node_modules/tinytim/.travis.yml +0 -5
  220. package/app/node_modules/tinytim/README.md +0 -212
  221. package/app/node_modules/tinytim/index.js +0 -1
  222. package/app/node_modules/tinytim/lib/index.js +0 -55
  223. package/app/node_modules/tinytim/lib/tinytim.js +0 -50
  224. package/app/node_modules/tinytim/package.json +0 -24
  225. package/app/node_modules/tinytim/test/files/html.tim +0 -1
  226. package/app/node_modules/tinytim/test/files/string.tim +0 -1
  227. package/app/node_modules/tinytim/test/files/string2.tim +0 -1
  228. package/app/node_modules/tinytim/test/render-file-replace.js +0 -39
  229. package/app/node_modules/tinytim/test/render-replace.js +0 -94
  230. package/app/node_modules/tinytim/test/tim-replace.js +0 -95
  231. package/app/node_modules/tracer/README.md +0 -747
  232. package/app/node_modules/tracer/lib/color_console.js +0 -15
  233. package/app/node_modules/tracer/lib/console.js +0 -165
  234. package/app/node_modules/tracer/lib/dailyfile.js +0 -92
  235. package/app/node_modules/tracer/lib/index.js +0 -10
  236. package/app/node_modules/tracer/lib/settings.js +0 -25
  237. package/app/node_modules/tracer/lib/utils.js +0 -58
  238. package/app/node_modules/tracer/package.json +0 -53
  239. package/app/node_modules/tracer/types/index.d.ts +0 -189
  240. package/dist/scaffold/templates/front-page.class.ts.tpl +0 -12
  241. package/dist/scaffold/templates/main.ts.tpl +0 -13
  242. package/dist/scaffold/templates/nodemon.json.tpl +0 -7
  243. package/dist/scaffold/templates/package.json.tpl +0 -16
  244. package/dist/scaffold/templates/tsconfig.json.tpl +0 -20
  245. /package/dist/{core.decorator.js → src/core.decorator.js} +0 -0
  246. /package/dist/{default → src/default}/default-authentication.class.js +0 -0
  247. /package/dist/{default → src/default}/log-default.class.js +0 -0
  248. /package/dist/{default → src/default}/node-cache.class.js +0 -0
  249. /package/dist/{default → src/default}/pages/404.html +0 -0
  250. /package/dist/{default → src/default}/pages/500.html +0 -0
  251. /package/dist/{default → src/default}/read-write-db.class.js +0 -0
  252. /package/dist/{factory → src/factory}/authentication-factory.class.js +0 -0
  253. /package/dist/{factory → src/factory}/cache-factory.class.js +0 -0
  254. /package/dist/{factory → src/factory}/data-source-factory.class.js +0 -0
  255. /package/dist/{factory → src/factory}/log-factory.class.js +0 -0
  256. /package/dist/{factory → src/factory}/server-factory.class.js +0 -0
  257. /package/dist/{route.decorator.js → src/route.decorator.js} +0 -0
  258. /package/dist/{scaffold → src/scaffold}/command.js +0 -0
@@ -1,542 +0,0 @@
1
- /**
2
- * HTTPS is the HTTP protocol over TLS/SSL. In Node.js this is implemented as a
3
- * separate module.
4
- * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/https.js)
5
- */
6
- declare module 'https' {
7
- import { Duplex } from 'node:stream';
8
- import * as tls from 'node:tls';
9
- import * as http from 'node:http';
10
- import { URL } from 'node:url';
11
- type ServerOptions<
12
- Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
13
- Response extends typeof http.ServerResponse = typeof http.ServerResponse,
14
- > = tls.SecureContextOptions & tls.TlsOptions & http.ServerOptions<Request, Response>;
15
- type RequestOptions = http.RequestOptions &
16
- tls.SecureContextOptions & {
17
- checkServerIdentity?: typeof tls.checkServerIdentity | undefined;
18
- rejectUnauthorized?: boolean | undefined; // Defaults to true
19
- servername?: string | undefined; // SNI TLS Extension
20
- };
21
- interface AgentOptions extends http.AgentOptions, tls.ConnectionOptions {
22
- rejectUnauthorized?: boolean | undefined;
23
- maxCachedSessions?: number | undefined;
24
- }
25
- /**
26
- * An `Agent` object for HTTPS similar to `http.Agent`. See {@link request} for more information.
27
- * @since v0.4.5
28
- */
29
- class Agent extends http.Agent {
30
- constructor(options?: AgentOptions);
31
- options: AgentOptions;
32
- }
33
- interface Server<
34
- Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
35
- Response extends typeof http.ServerResponse = typeof http.ServerResponse,
36
- > extends http.Server<Request, Response> {}
37
- /**
38
- * See `http.Server` for more information.
39
- * @since v0.3.4
40
- */
41
- class Server<
42
- Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
43
- Response extends typeof http.ServerResponse = typeof http.ServerResponse,
44
- > extends tls.Server {
45
- constructor(requestListener?: http.RequestListener<Request, Response>);
46
- constructor(
47
- options: ServerOptions<Request, Response>,
48
- requestListener?: http.RequestListener<Request, Response>,
49
- );
50
- /**
51
- * Closes all connections connected to this server.
52
- * @since v18.2.0
53
- */
54
- closeAllConnections(): void;
55
- /**
56
- * Closes all connections connected to this server which are not sending a request or waiting for a response.
57
- * @since v18.2.0
58
- */
59
- closeIdleConnections(): void;
60
- addListener(event: string, listener: (...args: any[]) => void): this;
61
- addListener(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
62
- addListener(
63
- event: 'newSession',
64
- listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void,
65
- ): this;
66
- addListener(
67
- event: 'OCSPRequest',
68
- listener: (
69
- certificate: Buffer,
70
- issuer: Buffer,
71
- callback: (err: Error | null, resp: Buffer) => void,
72
- ) => void,
73
- ): this;
74
- addListener(
75
- event: 'resumeSession',
76
- listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void,
77
- ): this;
78
- addListener(event: 'secureConnection', listener: (tlsSocket: tls.TLSSocket) => void): this;
79
- addListener(event: 'tlsClientError', listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
80
- addListener(event: 'close', listener: () => void): this;
81
- addListener(event: 'connection', listener: (socket: Duplex) => void): this;
82
- addListener(event: 'error', listener: (err: Error) => void): this;
83
- addListener(event: 'listening', listener: () => void): this;
84
- addListener(event: 'checkContinue', listener: http.RequestListener<Request, Response>): this;
85
- addListener(event: 'checkExpectation', listener: http.RequestListener<Request, Response>): this;
86
- addListener(event: 'clientError', listener: (err: Error, socket: Duplex) => void): this;
87
- addListener(
88
- event: 'connect',
89
- listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
90
- ): this;
91
- addListener(event: 'request', listener: http.RequestListener<Request, Response>): this;
92
- addListener(
93
- event: 'upgrade',
94
- listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
95
- ): this;
96
- emit(event: string, ...args: any[]): boolean;
97
- emit(event: 'keylog', line: Buffer, tlsSocket: tls.TLSSocket): boolean;
98
- emit(
99
- event: 'newSession',
100
- sessionId: Buffer,
101
- sessionData: Buffer,
102
- callback: (err: Error, resp: Buffer) => void,
103
- ): boolean;
104
- emit(
105
- event: 'OCSPRequest',
106
- certificate: Buffer,
107
- issuer: Buffer,
108
- callback: (err: Error | null, resp: Buffer) => void,
109
- ): boolean;
110
- emit(event: 'resumeSession', sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void): boolean;
111
- emit(event: 'secureConnection', tlsSocket: tls.TLSSocket): boolean;
112
- emit(event: 'tlsClientError', err: Error, tlsSocket: tls.TLSSocket): boolean;
113
- emit(event: 'close'): boolean;
114
- emit(event: 'connection', socket: Duplex): boolean;
115
- emit(event: 'error', err: Error): boolean;
116
- emit(event: 'listening'): boolean;
117
- emit(
118
- event: 'checkContinue',
119
- req: InstanceType<Request>,
120
- res: InstanceType<Response> & { req: InstanceType<Request> },
121
- ): boolean;
122
- emit(
123
- event: 'checkExpectation',
124
- req: InstanceType<Request>,
125
- res: InstanceType<Response> & { req: InstanceType<Request> },
126
- ): boolean;
127
- emit(event: 'clientError', err: Error, socket: Duplex): boolean;
128
- emit(event: 'connect', req: InstanceType<Request>, socket: Duplex, head: Buffer): boolean;
129
- emit(
130
- event: 'request',
131
- req: InstanceType<Request>,
132
- res: InstanceType<Response> & { req: InstanceType<Request> },
133
- ): boolean;
134
- emit(event: 'upgrade', req: InstanceType<Request>, socket: Duplex, head: Buffer): boolean;
135
- on(event: string, listener: (...args: any[]) => void): this;
136
- on(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
137
- on(
138
- event: 'newSession',
139
- listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void,
140
- ): this;
141
- on(
142
- event: 'OCSPRequest',
143
- listener: (
144
- certificate: Buffer,
145
- issuer: Buffer,
146
- callback: (err: Error | null, resp: Buffer) => void,
147
- ) => void,
148
- ): this;
149
- on(
150
- event: 'resumeSession',
151
- listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void,
152
- ): this;
153
- on(event: 'secureConnection', listener: (tlsSocket: tls.TLSSocket) => void): this;
154
- on(event: 'tlsClientError', listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
155
- on(event: 'close', listener: () => void): this;
156
- on(event: 'connection', listener: (socket: Duplex) => void): this;
157
- on(event: 'error', listener: (err: Error) => void): this;
158
- on(event: 'listening', listener: () => void): this;
159
- on(event: 'checkContinue', listener: http.RequestListener<Request, Response>): this;
160
- on(event: 'checkExpectation', listener: http.RequestListener<Request, Response>): this;
161
- on(event: 'clientError', listener: (err: Error, socket: Duplex) => void): this;
162
- on(event: 'connect', listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void): this;
163
- on(event: 'request', listener: http.RequestListener<Request, Response>): this;
164
- on(event: 'upgrade', listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void): this;
165
- once(event: string, listener: (...args: any[]) => void): this;
166
- once(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
167
- once(
168
- event: 'newSession',
169
- listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void,
170
- ): this;
171
- once(
172
- event: 'OCSPRequest',
173
- listener: (
174
- certificate: Buffer,
175
- issuer: Buffer,
176
- callback: (err: Error | null, resp: Buffer) => void,
177
- ) => void,
178
- ): this;
179
- once(
180
- event: 'resumeSession',
181
- listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void,
182
- ): this;
183
- once(event: 'secureConnection', listener: (tlsSocket: tls.TLSSocket) => void): this;
184
- once(event: 'tlsClientError', listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
185
- once(event: 'close', listener: () => void): this;
186
- once(event: 'connection', listener: (socket: Duplex) => void): this;
187
- once(event: 'error', listener: (err: Error) => void): this;
188
- once(event: 'listening', listener: () => void): this;
189
- once(event: 'checkContinue', listener: http.RequestListener<Request, Response>): this;
190
- once(event: 'checkExpectation', listener: http.RequestListener<Request, Response>): this;
191
- once(event: 'clientError', listener: (err: Error, socket: Duplex) => void): this;
192
- once(event: 'connect', listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void): this;
193
- once(event: 'request', listener: http.RequestListener<Request, Response>): this;
194
- once(event: 'upgrade', listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void): this;
195
- prependListener(event: string, listener: (...args: any[]) => void): this;
196
- prependListener(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
197
- prependListener(
198
- event: 'newSession',
199
- listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void,
200
- ): this;
201
- prependListener(
202
- event: 'OCSPRequest',
203
- listener: (
204
- certificate: Buffer,
205
- issuer: Buffer,
206
- callback: (err: Error | null, resp: Buffer) => void,
207
- ) => void,
208
- ): this;
209
- prependListener(
210
- event: 'resumeSession',
211
- listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void,
212
- ): this;
213
- prependListener(event: 'secureConnection', listener: (tlsSocket: tls.TLSSocket) => void): this;
214
- prependListener(event: 'tlsClientError', listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
215
- prependListener(event: 'close', listener: () => void): this;
216
- prependListener(event: 'connection', listener: (socket: Duplex) => void): this;
217
- prependListener(event: 'error', listener: (err: Error) => void): this;
218
- prependListener(event: 'listening', listener: () => void): this;
219
- prependListener(event: 'checkContinue', listener: http.RequestListener<Request, Response>): this;
220
- prependListener(event: 'checkExpectation', listener: http.RequestListener<Request, Response>): this;
221
- prependListener(event: 'clientError', listener: (err: Error, socket: Duplex) => void): this;
222
- prependListener(
223
- event: 'connect',
224
- listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
225
- ): this;
226
- prependListener(event: 'request', listener: http.RequestListener<Request, Response>): this;
227
- prependListener(
228
- event: 'upgrade',
229
- listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
230
- ): this;
231
- prependOnceListener(event: string, listener: (...args: any[]) => void): this;
232
- prependOnceListener(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
233
- prependOnceListener(
234
- event: 'newSession',
235
- listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void,
236
- ): this;
237
- prependOnceListener(
238
- event: 'OCSPRequest',
239
- listener: (
240
- certificate: Buffer,
241
- issuer: Buffer,
242
- callback: (err: Error | null, resp: Buffer) => void,
243
- ) => void,
244
- ): this;
245
- prependOnceListener(
246
- event: 'resumeSession',
247
- listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void,
248
- ): this;
249
- prependOnceListener(event: 'secureConnection', listener: (tlsSocket: tls.TLSSocket) => void): this;
250
- prependOnceListener(event: 'tlsClientError', listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
251
- prependOnceListener(event: 'close', listener: () => void): this;
252
- prependOnceListener(event: 'connection', listener: (socket: Duplex) => void): this;
253
- prependOnceListener(event: 'error', listener: (err: Error) => void): this;
254
- prependOnceListener(event: 'listening', listener: () => void): this;
255
- prependOnceListener(event: 'checkContinue', listener: http.RequestListener<Request, Response>): this;
256
- prependOnceListener(event: 'checkExpectation', listener: http.RequestListener<Request, Response>): this;
257
- prependOnceListener(event: 'clientError', listener: (err: Error, socket: Duplex) => void): this;
258
- prependOnceListener(
259
- event: 'connect',
260
- listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
261
- ): this;
262
- prependOnceListener(event: 'request', listener: http.RequestListener<Request, Response>): this;
263
- prependOnceListener(
264
- event: 'upgrade',
265
- listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
266
- ): this;
267
- }
268
- /**
269
- * ```js
270
- * // curl -k https://localhost:8000/
271
- * const https = require('https');
272
- * const fs = require('fs');
273
- *
274
- * const options = {
275
- * key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'),
276
- * cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem')
277
- * };
278
- *
279
- * https.createServer(options, (req, res) => {
280
- * res.writeHead(200);
281
- * res.end('hello world\n');
282
- * }).listen(8000);
283
- * ```
284
- *
285
- * Or
286
- *
287
- * ```js
288
- * const https = require('https');
289
- * const fs = require('fs');
290
- *
291
- * const options = {
292
- * pfx: fs.readFileSync('test/fixtures/test_cert.pfx'),
293
- * passphrase: 'sample'
294
- * };
295
- *
296
- * https.createServer(options, (req, res) => {
297
- * res.writeHead(200);
298
- * res.end('hello world\n');
299
- * }).listen(8000);
300
- * ```
301
- * @since v0.3.4
302
- * @param options Accepts `options` from `createServer`, `createSecureContext` and `createServer`.
303
- * @param requestListener A listener to be added to the `'request'` event.
304
- */
305
- function createServer<
306
- Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
307
- Response extends typeof http.ServerResponse = typeof http.ServerResponse,
308
- >(requestListener?: http.RequestListener<Request, Response>): Server<Request, Response>;
309
- function createServer<
310
- Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
311
- Response extends typeof http.ServerResponse = typeof http.ServerResponse,
312
- >(
313
- options: ServerOptions<Request, Response>,
314
- requestListener?: http.RequestListener<Request, Response>,
315
- ): Server<Request, Response>;
316
- /**
317
- * Makes a request to a secure web server.
318
- *
319
- * The following additional `options` from `tls.connect()` are also accepted:`ca`, `cert`, `ciphers`, `clientCertEngine`, `crl`, `dhparam`, `ecdhCurve`,`honorCipherOrder`, `key`, `passphrase`,
320
- * `pfx`, `rejectUnauthorized`,`secureOptions`, `secureProtocol`, `servername`, `sessionIdContext`,`highWaterMark`.
321
- *
322
- * `options` can be an object, a string, or a `URL` object. If `options` is a
323
- * string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object.
324
- *
325
- * `https.request()` returns an instance of the `http.ClientRequest` class. The `ClientRequest` instance is a writable stream. If one needs to
326
- * upload a file with a POST request, then write to the `ClientRequest` object.
327
- *
328
- * ```js
329
- * const https = require('https');
330
- *
331
- * const options = {
332
- * hostname: 'encrypted.google.com',
333
- * port: 443,
334
- * path: '/',
335
- * method: 'GET'
336
- * };
337
- *
338
- * const req = https.request(options, (res) => {
339
- * console.log('statusCode:', res.statusCode);
340
- * console.log('headers:', res.headers);
341
- *
342
- * res.on('data', (d) => {
343
- * process.stdout.write(d);
344
- * });
345
- * });
346
- *
347
- * req.on('error', (e) => {
348
- * console.error(e);
349
- * });
350
- * req.end();
351
- * ```
352
- *
353
- * Example using options from `tls.connect()`:
354
- *
355
- * ```js
356
- * const options = {
357
- * hostname: 'encrypted.google.com',
358
- * port: 443,
359
- * path: '/',
360
- * method: 'GET',
361
- * key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'),
362
- * cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem')
363
- * };
364
- * options.agent = new https.Agent(options);
365
- *
366
- * const req = https.request(options, (res) => {
367
- * // ...
368
- * });
369
- * ```
370
- *
371
- * Alternatively, opt out of connection pooling by not using an `Agent`.
372
- *
373
- * ```js
374
- * const options = {
375
- * hostname: 'encrypted.google.com',
376
- * port: 443,
377
- * path: '/',
378
- * method: 'GET',
379
- * key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'),
380
- * cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem'),
381
- * agent: false
382
- * };
383
- *
384
- * const req = https.request(options, (res) => {
385
- * // ...
386
- * });
387
- * ```
388
- *
389
- * Example using a `URL` as `options`:
390
- *
391
- * ```js
392
- * const options = new URL('https://abc:xyz@example.com');
393
- *
394
- * const req = https.request(options, (res) => {
395
- * // ...
396
- * });
397
- * ```
398
- *
399
- * Example pinning on certificate fingerprint, or the public key (similar to`pin-sha256`):
400
- *
401
- * ```js
402
- * const tls = require('tls');
403
- * const https = require('https');
404
- * const crypto = require('crypto');
405
- *
406
- * function sha256(s) {
407
- * return crypto.createHash('sha256').update(s).digest('base64');
408
- * }
409
- * const options = {
410
- * hostname: 'github.com',
411
- * port: 443,
412
- * path: '/',
413
- * method: 'GET',
414
- * checkServerIdentity: function(host, cert) {
415
- * // Make sure the certificate is issued to the host we are connected to
416
- * const err = tls.checkServerIdentity(host, cert);
417
- * if (err) {
418
- * return err;
419
- * }
420
- *
421
- * // Pin the public key, similar to HPKP pin-sha25 pinning
422
- * const pubkey256 = 'pL1+qb9HTMRZJmuC/bB/ZI9d302BYrrqiVuRyW+DGrU=';
423
- * if (sha256(cert.pubkey) !== pubkey256) {
424
- * const msg = 'Certificate verification error: ' +
425
- * `The public key of '${cert.subject.CN}' ` +
426
- * 'does not match our pinned fingerprint';
427
- * return new Error(msg);
428
- * }
429
- *
430
- * // Pin the exact certificate, rather than the pub key
431
- * const cert256 = '25:FE:39:32:D9:63:8C:8A:FC:A1:9A:29:87:' +
432
- * 'D8:3E:4C:1D:98:DB:71:E4:1A:48:03:98:EA:22:6A:BD:8B:93:16';
433
- * if (cert.fingerprint256 !== cert256) {
434
- * const msg = 'Certificate verification error: ' +
435
- * `The certificate of '${cert.subject.CN}' ` +
436
- * 'does not match our pinned fingerprint';
437
- * return new Error(msg);
438
- * }
439
- *
440
- * // This loop is informational only.
441
- * // Print the certificate and public key fingerprints of all certs in the
442
- * // chain. Its common to pin the public key of the issuer on the public
443
- * // internet, while pinning the public key of the service in sensitive
444
- * // environments.
445
- * do {
446
- * console.log('Subject Common Name:', cert.subject.CN);
447
- * console.log(' Certificate SHA256 fingerprint:', cert.fingerprint256);
448
- *
449
- * hash = crypto.createHash('sha256');
450
- * console.log(' Public key ping-sha256:', sha256(cert.pubkey));
451
- *
452
- * lastprint256 = cert.fingerprint256;
453
- * cert = cert.issuerCertificate;
454
- * } while (cert.fingerprint256 !== lastprint256);
455
- *
456
- * },
457
- * };
458
- *
459
- * options.agent = new https.Agent(options);
460
- * const req = https.request(options, (res) => {
461
- * console.log('All OK. Server matched our pinned cert or public key');
462
- * console.log('statusCode:', res.statusCode);
463
- * // Print the HPKP values
464
- * console.log('headers:', res.headers['public-key-pins']);
465
- *
466
- * res.on('data', (d) => {});
467
- * });
468
- *
469
- * req.on('error', (e) => {
470
- * console.error(e.message);
471
- * });
472
- * req.end();
473
- * ```
474
- *
475
- * Outputs for example:
476
- *
477
- * ```text
478
- * Subject Common Name: github.com
479
- * Certificate SHA256 fingerprint: 25:FE:39:32:D9:63:8C:8A:FC:A1:9A:29:87:D8:3E:4C:1D:98:DB:71:E4:1A:48:03:98:EA:22:6A:BD:8B:93:16
480
- * Public key ping-sha256: pL1+qb9HTMRZJmuC/bB/ZI9d302BYrrqiVuRyW+DGrU=
481
- * Subject Common Name: DigiCert SHA2 Extended Validation Server CA
482
- * Certificate SHA256 fingerprint: 40:3E:06:2A:26:53:05:91:13:28:5B:AF:80:A0:D4:AE:42:2C:84:8C:9F:78:FA:D0:1F:C9:4B:C5:B8:7F:EF:1A
483
- * Public key ping-sha256: RRM1dGqnDFsCJXBTHky16vi1obOlCgFFn/yOhI/y+ho=
484
- * Subject Common Name: DigiCert High Assurance EV Root CA
485
- * Certificate SHA256 fingerprint: 74:31:E5:F4:C3:C1:CE:46:90:77:4F:0B:61:E0:54:40:88:3B:A9:A0:1E:D0:0B:A6:AB:D7:80:6E:D3:B1:18:CF
486
- * Public key ping-sha256: WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18=
487
- * All OK. Server matched our pinned cert or public key
488
- * statusCode: 200
489
- * headers: max-age=0; pin-sha256="WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18="; pin-sha256="RRM1dGqnDFsCJXBTHky16vi1obOlCgFFn/yOhI/y+ho=";
490
- * pin-sha256="k2v657xBsOVe1PQRwOsHsw3bsGT2VzIqz5K+59sNQws="; pin-sha256="K87oWBWM9UZfyddvDfoxL+8lpNyoUB2ptGtn0fv6G2Q="; pin-sha256="IQBnNBEiFuhj+8x6X8XLgh01V9Ic5/V3IRQLNFFc7v4=";
491
- * pin-sha256="iie1VXtL7HzAMF+/PVPR9xzT80kQxdZeJ+zduCB3uj0="; pin-sha256="LvRiGEjRqfzurezaWuj8Wie2gyHMrW5Q06LspMnox7A="; includeSubDomains
492
- * ```
493
- * @since v0.3.6
494
- * @param options Accepts all `options` from `request`, with some differences in default values:
495
- */
496
- function request(
497
- options: RequestOptions | string | URL,
498
- callback?: (res: http.IncomingMessage) => void,
499
- ): http.ClientRequest;
500
- function request(
501
- url: string | URL,
502
- options: RequestOptions,
503
- callback?: (res: http.IncomingMessage) => void,
504
- ): http.ClientRequest;
505
- /**
506
- * Like `http.get()` but for HTTPS.
507
- *
508
- * `options` can be an object, a string, or a `URL` object. If `options` is a
509
- * string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object.
510
- *
511
- * ```js
512
- * const https = require('https');
513
- *
514
- * https.get('https://encrypted.google.com/', (res) => {
515
- * console.log('statusCode:', res.statusCode);
516
- * console.log('headers:', res.headers);
517
- *
518
- * res.on('data', (d) => {
519
- * process.stdout.write(d);
520
- * });
521
- *
522
- * }).on('error', (e) => {
523
- * console.error(e);
524
- * });
525
- * ```
526
- * @since v0.3.6
527
- * @param options Accepts the same `options` as {@link request}, with the `method` always set to `GET`.
528
- */
529
- function get(
530
- options: RequestOptions | string | URL,
531
- callback?: (res: http.IncomingMessage) => void,
532
- ): http.ClientRequest;
533
- function get(
534
- url: string | URL,
535
- options: RequestOptions,
536
- callback?: (res: http.IncomingMessage) => void,
537
- ): http.ClientRequest;
538
- let globalAgent: Agent;
539
- }
540
- declare module 'node:https' {
541
- export * from 'https';
542
- }
@@ -1,134 +0,0 @@
1
- // Type definitions for non-npm package Node.js 18.16
2
- // Project: https://nodejs.org/
3
- // Definitions by: Microsoft TypeScript <https://github.com/Microsoft>
4
- // DefinitelyTyped <https://github.com/DefinitelyTyped>
5
- // Alberto Schiabel <https://github.com/jkomyno>
6
- // Alvis HT Tang <https://github.com/alvis>
7
- // Andrew Makarov <https://github.com/r3nya>
8
- // Benjamin Toueg <https://github.com/btoueg>
9
- // Chigozirim C. <https://github.com/smac89>
10
- // David Junger <https://github.com/touffy>
11
- // Deividas Bakanas <https://github.com/DeividasBakanas>
12
- // Eugene Y. Q. Shen <https://github.com/eyqs>
13
- // Hannes Magnusson <https://github.com/Hannes-Magnusson-CK>
14
- // Huw <https://github.com/hoo29>
15
- // Kelvin Jin <https://github.com/kjin>
16
- // Klaus Meinhardt <https://github.com/ajafff>
17
- // Lishude <https://github.com/islishude>
18
- // Mariusz Wiktorczyk <https://github.com/mwiktorczyk>
19
- // Mohsen Azimi <https://github.com/mohsen1>
20
- // Nicolas Even <https://github.com/n-e>
21
- // Nikita Galkin <https://github.com/galkin>
22
- // Parambir Singh <https://github.com/parambirs>
23
- // Sebastian Silbermann <https://github.com/eps1lon>
24
- // Simon Schick <https://github.com/SimonSchick>
25
- // Thomas den Hollander <https://github.com/ThomasdenH>
26
- // Wilco Bakker <https://github.com/WilcoBakker>
27
- // wwwy3y3 <https://github.com/wwwy3y3>
28
- // Samuel Ainsworth <https://github.com/samuela>
29
- // Kyle Uehlein <https://github.com/kuehlein>
30
- // Thanik Bhongbhibhat <https://github.com/bhongy>
31
- // Marcin Kopacz <https://github.com/chyzwar>
32
- // Trivikram Kamat <https://github.com/trivikr>
33
- // Junxiao Shi <https://github.com/yoursunny>
34
- // Ilia Baryshnikov <https://github.com/qwelias>
35
- // ExE Boss <https://github.com/ExE-Boss>
36
- // Piotr Błażejewicz <https://github.com/peterblazejewicz>
37
- // Anna Henningsen <https://github.com/addaleax>
38
- // Victor Perin <https://github.com/victorperin>
39
- // Yongsheng Zhang <https://github.com/ZYSzys>
40
- // NodeJS Contributors <https://github.com/NodeJS>
41
- // Linus Unnebäck <https://github.com/LinusU>
42
- // wafuwafu13 <https://github.com/wafuwafu13>
43
- // Matteo Collina <https://github.com/mcollina>
44
- // Dmitry Semigradsky <https://github.com/Semigradsky>
45
- // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
46
-
47
- /**
48
- * License for programmatically and manually incorporated
49
- * documentation aka. `JSDoc` from https://github.com/nodejs/node/tree/master/doc
50
- *
51
- * Copyright Node.js contributors. All rights reserved.
52
- * Permission is hereby granted, free of charge, to any person obtaining a copy
53
- * of this software and associated documentation files (the "Software"), to
54
- * deal in the Software without restriction, including without limitation the
55
- * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
56
- * sell copies of the Software, and to permit persons to whom the Software is
57
- * furnished to do so, subject to the following conditions:
58
- *
59
- * The above copyright notice and this permission notice shall be included in
60
- * all copies or substantial portions of the Software.
61
- *
62
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
63
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
64
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
65
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
66
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
67
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
68
- * IN THE SOFTWARE.
69
- */
70
-
71
- // NOTE: These definitions support NodeJS and TypeScript 4.9+.
72
-
73
- // Reference required types from the default lib:
74
- /// <reference lib="es2020" />
75
- /// <reference lib="esnext.asynciterable" />
76
- /// <reference lib="esnext.intl" />
77
- /// <reference lib="esnext.bigint" />
78
-
79
- // Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
80
- /// <reference path="assert.d.ts" />
81
- /// <reference path="assert/strict.d.ts" />
82
- /// <reference path="globals.d.ts" />
83
- /// <reference path="async_hooks.d.ts" />
84
- /// <reference path="buffer.d.ts" />
85
- /// <reference path="child_process.d.ts" />
86
- /// <reference path="cluster.d.ts" />
87
- /// <reference path="console.d.ts" />
88
- /// <reference path="constants.d.ts" />
89
- /// <reference path="crypto.d.ts" />
90
- /// <reference path="dgram.d.ts" />
91
- /// <reference path="diagnostics_channel.d.ts" />
92
- /// <reference path="dns.d.ts" />
93
- /// <reference path="dns/promises.d.ts" />
94
- /// <reference path="dns/promises.d.ts" />
95
- /// <reference path="domain.d.ts" />
96
- /// <reference path="dom-events.d.ts" />
97
- /// <reference path="events.d.ts" />
98
- /// <reference path="fs.d.ts" />
99
- /// <reference path="fs/promises.d.ts" />
100
- /// <reference path="http.d.ts" />
101
- /// <reference path="http2.d.ts" />
102
- /// <reference path="https.d.ts" />
103
- /// <reference path="inspector.d.ts" />
104
- /// <reference path="module.d.ts" />
105
- /// <reference path="net.d.ts" />
106
- /// <reference path="os.d.ts" />
107
- /// <reference path="path.d.ts" />
108
- /// <reference path="perf_hooks.d.ts" />
109
- /// <reference path="process.d.ts" />
110
- /// <reference path="punycode.d.ts" />
111
- /// <reference path="querystring.d.ts" />
112
- /// <reference path="readline.d.ts" />
113
- /// <reference path="readline/promises.d.ts" />
114
- /// <reference path="repl.d.ts" />
115
- /// <reference path="stream.d.ts" />
116
- /// <reference path="stream/promises.d.ts" />
117
- /// <reference path="stream/consumers.d.ts" />
118
- /// <reference path="stream/web.d.ts" />
119
- /// <reference path="string_decoder.d.ts" />
120
- /// <reference path="test.d.ts" />
121
- /// <reference path="timers.d.ts" />
122
- /// <reference path="timers/promises.d.ts" />
123
- /// <reference path="tls.d.ts" />
124
- /// <reference path="trace_events.d.ts" />
125
- /// <reference path="tty.d.ts" />
126
- /// <reference path="url.d.ts" />
127
- /// <reference path="util.d.ts" />
128
- /// <reference path="v8.d.ts" />
129
- /// <reference path="vm.d.ts" />
130
- /// <reference path="wasi.d.ts" />
131
- /// <reference path="worker_threads.d.ts" />
132
- /// <reference path="zlib.d.ts" />
133
-
134
- /// <reference path="globals.global.d.ts" />