m06_task3.js 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (204) hide show
  1. package/.idea/.name +1 -0
  2. package/.idea/inspectionProfiles/Project_Default.xml +10 -0
  3. package/.idea/jsLibraryMappings.xml +6 -0
  4. package/.idea/modules.xml +8 -0
  5. package/.idea/node_lab_6.iml +12 -0
  6. package/06_task2.html +73 -0
  7. package/06_task2.js +52 -0
  8. package/06_task3.js +3 -0
  9. package/06_task4.js +3 -0
  10. package/m06_task3.js +28 -0
  11. package/package/index.js +28 -0
  12. package/package/node_modules/.package-lock.json +31 -0
  13. package/package/node_modules/@types/node/LICENSE +21 -0
  14. package/package/node_modules/@types/node/README.md +16 -0
  15. package/package/node_modules/@types/node/assert/strict.d.ts +8 -0
  16. package/package/node_modules/@types/node/assert.d.ts +961 -0
  17. package/package/node_modules/@types/node/async_hooks.d.ts +501 -0
  18. package/package/node_modules/@types/node/buffer.d.ts +2258 -0
  19. package/package/node_modules/@types/node/child_process.d.ts +1369 -0
  20. package/package/node_modules/@types/node/cluster.d.ts +410 -0
  21. package/package/node_modules/@types/node/console.d.ts +412 -0
  22. package/package/node_modules/@types/node/constants.d.ts +18 -0
  23. package/package/node_modules/@types/node/crypto.d.ts +3964 -0
  24. package/package/node_modules/@types/node/dgram.d.ts +545 -0
  25. package/package/node_modules/@types/node/diagnostics_channel.d.ts +153 -0
  26. package/package/node_modules/@types/node/dns/promises.d.ts +370 -0
  27. package/package/node_modules/@types/node/dns.d.ts +659 -0
  28. package/package/node_modules/@types/node/dom-events.d.ts +126 -0
  29. package/package/node_modules/@types/node/domain.d.ts +170 -0
  30. package/package/node_modules/@types/node/events.d.ts +678 -0
  31. package/package/node_modules/@types/node/fs/promises.d.ts +1138 -0
  32. package/package/node_modules/@types/node/fs.d.ts +3872 -0
  33. package/package/node_modules/@types/node/globals.d.ts +300 -0
  34. package/package/node_modules/@types/node/globals.global.d.ts +1 -0
  35. package/package/node_modules/@types/node/http.d.ts +1614 -0
  36. package/package/node_modules/@types/node/http2.d.ts +2134 -0
  37. package/package/node_modules/@types/node/https.d.ts +541 -0
  38. package/package/node_modules/@types/node/index.d.ts +133 -0
  39. package/package/node_modules/@types/node/inspector.d.ts +2741 -0
  40. package/package/node_modules/@types/node/module.d.ts +114 -0
  41. package/package/node_modules/@types/node/net.d.ts +869 -0
  42. package/package/node_modules/@types/node/os.d.ts +466 -0
  43. package/package/node_modules/@types/node/package.json +232 -0
  44. package/package/node_modules/@types/node/path.d.ts +191 -0
  45. package/package/node_modules/@types/node/perf_hooks.d.ts +625 -0
  46. package/package/node_modules/@types/node/process.d.ts +1482 -0
  47. package/package/node_modules/@types/node/punycode.d.ts +117 -0
  48. package/package/node_modules/@types/node/querystring.d.ts +131 -0
  49. package/package/node_modules/@types/node/readline/promises.d.ts +143 -0
  50. package/package/node_modules/@types/node/readline.d.ts +653 -0
  51. package/package/node_modules/@types/node/repl.d.ts +424 -0
  52. package/package/node_modules/@types/node/stream/consumers.d.ts +12 -0
  53. package/package/node_modules/@types/node/stream/promises.d.ts +42 -0
  54. package/package/node_modules/@types/node/stream/web.d.ts +330 -0
  55. package/package/node_modules/@types/node/stream.d.ts +1340 -0
  56. package/package/node_modules/@types/node/string_decoder.d.ts +67 -0
  57. package/package/node_modules/@types/node/test.d.ts +314 -0
  58. package/package/node_modules/@types/node/timers/promises.d.ts +68 -0
  59. package/package/node_modules/@types/node/timers.d.ts +94 -0
  60. package/package/node_modules/@types/node/tls.d.ts +1028 -0
  61. package/package/node_modules/@types/node/trace_events.d.ts +171 -0
  62. package/package/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
  63. package/package/node_modules/@types/node/ts4.8/assert.d.ts +961 -0
  64. package/package/node_modules/@types/node/ts4.8/async_hooks.d.ts +501 -0
  65. package/package/node_modules/@types/node/ts4.8/buffer.d.ts +2259 -0
  66. package/package/node_modules/@types/node/ts4.8/child_process.d.ts +1369 -0
  67. package/package/node_modules/@types/node/ts4.8/cluster.d.ts +410 -0
  68. package/package/node_modules/@types/node/ts4.8/console.d.ts +412 -0
  69. package/package/node_modules/@types/node/ts4.8/constants.d.ts +18 -0
  70. package/package/node_modules/@types/node/ts4.8/crypto.d.ts +3964 -0
  71. package/package/node_modules/@types/node/ts4.8/dgram.d.ts +545 -0
  72. package/package/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +153 -0
  73. package/package/node_modules/@types/node/ts4.8/dns/promises.d.ts +370 -0
  74. package/package/node_modules/@types/node/ts4.8/dns.d.ts +659 -0
  75. package/package/node_modules/@types/node/ts4.8/dom-events.d.ts +126 -0
  76. package/package/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
  77. package/package/node_modules/@types/node/ts4.8/events.d.ts +678 -0
  78. package/package/node_modules/@types/node/ts4.8/fs/promises.d.ts +1138 -0
  79. package/package/node_modules/@types/node/ts4.8/fs.d.ts +3872 -0
  80. package/package/node_modules/@types/node/ts4.8/globals.d.ts +294 -0
  81. package/package/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
  82. package/package/node_modules/@types/node/ts4.8/http.d.ts +1614 -0
  83. package/package/node_modules/@types/node/ts4.8/http2.d.ts +2134 -0
  84. package/package/node_modules/@types/node/ts4.8/https.d.ts +541 -0
  85. package/package/node_modules/@types/node/ts4.8/index.d.ts +88 -0
  86. package/package/node_modules/@types/node/ts4.8/inspector.d.ts +2741 -0
  87. package/package/node_modules/@types/node/ts4.8/module.d.ts +114 -0
  88. package/package/node_modules/@types/node/ts4.8/net.d.ts +869 -0
  89. package/package/node_modules/@types/node/ts4.8/os.d.ts +466 -0
  90. package/package/node_modules/@types/node/ts4.8/path.d.ts +191 -0
  91. package/package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +625 -0
  92. package/package/node_modules/@types/node/ts4.8/process.d.ts +1482 -0
  93. package/package/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
  94. package/package/node_modules/@types/node/ts4.8/querystring.d.ts +131 -0
  95. package/package/node_modules/@types/node/ts4.8/readline/promises.d.ts +143 -0
  96. package/package/node_modules/@types/node/ts4.8/readline.d.ts +653 -0
  97. package/package/node_modules/@types/node/ts4.8/repl.d.ts +424 -0
  98. package/package/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
  99. package/package/node_modules/@types/node/ts4.8/stream/promises.d.ts +42 -0
  100. package/package/node_modules/@types/node/ts4.8/stream/web.d.ts +330 -0
  101. package/package/node_modules/@types/node/ts4.8/stream.d.ts +1340 -0
  102. package/package/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
  103. package/package/node_modules/@types/node/ts4.8/test.d.ts +314 -0
  104. package/package/node_modules/@types/node/ts4.8/timers/promises.d.ts +68 -0
  105. package/package/node_modules/@types/node/ts4.8/timers.d.ts +94 -0
  106. package/package/node_modules/@types/node/ts4.8/tls.d.ts +1028 -0
  107. package/package/node_modules/@types/node/ts4.8/trace_events.d.ts +171 -0
  108. package/package/node_modules/@types/node/ts4.8/tty.d.ts +206 -0
  109. package/package/node_modules/@types/node/ts4.8/url.d.ts +897 -0
  110. package/package/node_modules/@types/node/ts4.8/util.d.ts +1850 -0
  111. package/package/node_modules/@types/node/ts4.8/v8.d.ts +396 -0
  112. package/package/node_modules/@types/node/ts4.8/vm.d.ts +509 -0
  113. package/package/node_modules/@types/node/ts4.8/wasi.d.ts +158 -0
  114. package/package/node_modules/@types/node/ts4.8/worker_threads.d.ts +689 -0
  115. package/package/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
  116. package/package/node_modules/@types/node/tty.d.ts +206 -0
  117. package/package/node_modules/@types/node/url.d.ts +897 -0
  118. package/package/node_modules/@types/node/util.d.ts +1850 -0
  119. package/package/node_modules/@types/node/v8.d.ts +396 -0
  120. package/package/node_modules/@types/node/vm.d.ts +509 -0
  121. package/package/node_modules/@types/node/wasi.d.ts +158 -0
  122. package/package/node_modules/@types/node/worker_threads.d.ts +689 -0
  123. package/package/node_modules/@types/node/zlib.d.ts +517 -0
  124. package/package/node_modules/@types/nodemailer/LICENSE +21 -0
  125. package/package/node_modules/@types/nodemailer/README.md +16 -0
  126. package/package/node_modules/@types/nodemailer/index.d.ts +83 -0
  127. package/package/node_modules/@types/nodemailer/lib/addressparser/index.d.ts +31 -0
  128. package/package/node_modules/@types/nodemailer/lib/base64/index.d.ts +22 -0
  129. package/package/node_modules/@types/nodemailer/lib/dkim/index.d.ts +45 -0
  130. package/package/node_modules/@types/nodemailer/lib/dkim/message-parser.d.ts +75 -0
  131. package/package/node_modules/@types/nodemailer/lib/dkim/relaxed-body.d.ts +75 -0
  132. package/package/node_modules/@types/nodemailer/lib/dkim/sign.d.ts +11 -0
  133. package/package/node_modules/@types/nodemailer/lib/fetch/cookies.d.ts +54 -0
  134. package/package/node_modules/@types/nodemailer/lib/fetch/index.d.ts +38 -0
  135. package/package/node_modules/@types/nodemailer/lib/json-transport/index.d.ts +50 -0
  136. package/package/node_modules/@types/nodemailer/lib/mail-composer/index.d.ts +25 -0
  137. package/package/node_modules/@types/nodemailer/lib/mailer/index.d.ts +230 -0
  138. package/package/node_modules/@types/nodemailer/lib/mailer/mail-message.d.ts +28 -0
  139. package/package/node_modules/@types/nodemailer/lib/mime-funcs/index.d.ts +87 -0
  140. package/package/node_modules/@types/nodemailer/lib/mime-funcs/mime-types.d.ts +2 -0
  141. package/package/node_modules/@types/nodemailer/lib/mime-node/index.d.ts +137 -0
  142. package/package/node_modules/@types/nodemailer/lib/mime-node/last-newline.d.ts +9 -0
  143. package/package/node_modules/@types/nodemailer/lib/qp/index.d.ts +23 -0
  144. package/package/node_modules/@types/nodemailer/lib/sendmail-transport/index.d.ts +53 -0
  145. package/package/node_modules/@types/nodemailer/lib/sendmail-transport/le-unix.d.ts +7 -0
  146. package/package/node_modules/@types/nodemailer/lib/sendmail-transport/le-windows.d.ts +7 -0
  147. package/package/node_modules/@types/nodemailer/lib/ses-transport/index.d.ts +136 -0
  148. package/package/node_modules/@types/nodemailer/lib/shared/index.d.ts +51 -0
  149. package/package/node_modules/@types/nodemailer/lib/smtp-connection/data-stream.d.ts +11 -0
  150. package/package/node_modules/@types/nodemailer/lib/smtp-connection/http-proxy-client.d.ts +11 -0
  151. package/package/node_modules/@types/nodemailer/lib/smtp-connection/index.d.ts +254 -0
  152. package/package/node_modules/@types/nodemailer/lib/smtp-pool/index.d.ts +90 -0
  153. package/package/node_modules/@types/nodemailer/lib/smtp-pool/pool-resource.d.ts +66 -0
  154. package/package/node_modules/@types/nodemailer/lib/smtp-transport/index.d.ts +115 -0
  155. package/package/node_modules/@types/nodemailer/lib/stream-transport/index.d.ts +56 -0
  156. package/package/node_modules/@types/nodemailer/lib/well-known/index.d.ts +6 -0
  157. package/package/node_modules/@types/nodemailer/lib/xoauth2/index.d.ts +110 -0
  158. package/package/node_modules/@types/nodemailer/package.json +37 -0
  159. package/package/node_modules/nodemailer/.gitattributes +6 -0
  160. package/package/node_modules/nodemailer/.prettierrc.js +8 -0
  161. package/package/node_modules/nodemailer/CHANGELOG.md +715 -0
  162. package/package/node_modules/nodemailer/CODE_OF_CONDUCT.md +76 -0
  163. package/package/node_modules/nodemailer/CONTRIBUTING.md +67 -0
  164. package/package/node_modules/nodemailer/LICENSE +16 -0
  165. package/package/node_modules/nodemailer/README.md +93 -0
  166. package/package/node_modules/nodemailer/SECURITY.txt +22 -0
  167. package/package/node_modules/nodemailer/lib/addressparser/index.js +313 -0
  168. package/package/node_modules/nodemailer/lib/base64/index.js +142 -0
  169. package/package/node_modules/nodemailer/lib/dkim/index.js +251 -0
  170. package/package/node_modules/nodemailer/lib/dkim/message-parser.js +155 -0
  171. package/package/node_modules/nodemailer/lib/dkim/relaxed-body.js +154 -0
  172. package/package/node_modules/nodemailer/lib/dkim/sign.js +117 -0
  173. package/package/node_modules/nodemailer/lib/fetch/cookies.js +281 -0
  174. package/package/node_modules/nodemailer/lib/fetch/index.js +269 -0
  175. package/package/node_modules/nodemailer/lib/json-transport/index.js +82 -0
  176. package/package/node_modules/nodemailer/lib/mail-composer/index.js +558 -0
  177. package/package/node_modules/nodemailer/lib/mailer/index.js +427 -0
  178. package/package/node_modules/nodemailer/lib/mailer/mail-message.js +315 -0
  179. package/package/node_modules/nodemailer/lib/mime-funcs/index.js +619 -0
  180. package/package/node_modules/nodemailer/lib/mime-funcs/mime-types.js +2102 -0
  181. package/package/node_modules/nodemailer/lib/mime-node/index.js +1290 -0
  182. package/package/node_modules/nodemailer/lib/mime-node/last-newline.js +33 -0
  183. package/package/node_modules/nodemailer/lib/mime-node/le-unix.js +43 -0
  184. package/package/node_modules/nodemailer/lib/mime-node/le-windows.js +52 -0
  185. package/package/node_modules/nodemailer/lib/nodemailer.js +143 -0
  186. package/package/node_modules/nodemailer/lib/qp/index.js +219 -0
  187. package/package/node_modules/nodemailer/lib/sendmail-transport/index.js +210 -0
  188. package/package/node_modules/nodemailer/lib/ses-transport/index.js +349 -0
  189. package/package/node_modules/nodemailer/lib/shared/index.js +639 -0
  190. package/package/node_modules/nodemailer/lib/smtp-connection/data-stream.js +108 -0
  191. package/package/node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js +143 -0
  192. package/package/node_modules/nodemailer/lib/smtp-connection/index.js +1786 -0
  193. package/package/node_modules/nodemailer/lib/smtp-pool/index.js +648 -0
  194. package/package/node_modules/nodemailer/lib/smtp-pool/pool-resource.js +253 -0
  195. package/package/node_modules/nodemailer/lib/smtp-transport/index.js +416 -0
  196. package/package/node_modules/nodemailer/lib/stream-transport/index.js +135 -0
  197. package/package/node_modules/nodemailer/lib/well-known/index.js +47 -0
  198. package/package/node_modules/nodemailer/lib/well-known/services.json +286 -0
  199. package/package/node_modules/nodemailer/lib/xoauth2/index.js +376 -0
  200. package/package/node_modules/nodemailer/package.json +46 -0
  201. package/package/node_modules/nodemailer/postinstall.js +101 -0
  202. package/package/package-lock.json +60 -0
  203. package/package/package.json +6 -0
  204. package/package.json +19 -0
@@ -0,0 +1,541 @@
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
+ rejectUnauthorized?: boolean | undefined; // Defaults to true
18
+ servername?: string | undefined; // SNI TLS Extension
19
+ };
20
+ interface AgentOptions extends http.AgentOptions, tls.ConnectionOptions {
21
+ rejectUnauthorized?: boolean | undefined;
22
+ maxCachedSessions?: number | undefined;
23
+ }
24
+ /**
25
+ * An `Agent` object for HTTPS similar to `http.Agent`. See {@link request} for more information.
26
+ * @since v0.4.5
27
+ */
28
+ class Agent extends http.Agent {
29
+ constructor(options?: AgentOptions);
30
+ options: AgentOptions;
31
+ }
32
+ interface Server<
33
+ Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
34
+ Response extends typeof http.ServerResponse = typeof http.ServerResponse,
35
+ > extends http.Server<Request, Response> {}
36
+ /**
37
+ * See `http.Server` for more information.
38
+ * @since v0.3.4
39
+ */
40
+ class Server<
41
+ Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
42
+ Response extends typeof http.ServerResponse = typeof http.ServerResponse,
43
+ > extends tls.Server {
44
+ constructor(requestListener?: http.RequestListener<Request, Response>);
45
+ constructor(
46
+ options: ServerOptions<Request, Response>,
47
+ requestListener?: http.RequestListener<Request, Response>,
48
+ );
49
+ /**
50
+ * Closes all connections connected to this server.
51
+ * @since v18.2.0
52
+ */
53
+ closeAllConnections(): void;
54
+ /**
55
+ * Closes all connections connected to this server which are not sending a request or waiting for a response.
56
+ * @since v18.2.0
57
+ */
58
+ closeIdleConnections(): void;
59
+ addListener(event: string, listener: (...args: any[]) => void): this;
60
+ addListener(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
61
+ addListener(
62
+ event: 'newSession',
63
+ listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void,
64
+ ): this;
65
+ addListener(
66
+ event: 'OCSPRequest',
67
+ listener: (
68
+ certificate: Buffer,
69
+ issuer: Buffer,
70
+ callback: (err: Error | null, resp: Buffer) => void,
71
+ ) => void,
72
+ ): this;
73
+ addListener(
74
+ event: 'resumeSession',
75
+ listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void,
76
+ ): this;
77
+ addListener(event: 'secureConnection', listener: (tlsSocket: tls.TLSSocket) => void): this;
78
+ addListener(event: 'tlsClientError', listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
79
+ addListener(event: 'close', listener: () => void): this;
80
+ addListener(event: 'connection', listener: (socket: Duplex) => void): this;
81
+ addListener(event: 'error', listener: (err: Error) => void): this;
82
+ addListener(event: 'listening', listener: () => void): this;
83
+ addListener(event: 'checkContinue', listener: http.RequestListener<Request, Response>): this;
84
+ addListener(event: 'checkExpectation', listener: http.RequestListener<Request, Response>): this;
85
+ addListener(event: 'clientError', listener: (err: Error, socket: Duplex) => void): this;
86
+ addListener(
87
+ event: 'connect',
88
+ listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
89
+ ): this;
90
+ addListener(event: 'request', listener: http.RequestListener<Request, Response>): this;
91
+ addListener(
92
+ event: 'upgrade',
93
+ listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
94
+ ): this;
95
+ emit(event: string, ...args: any[]): boolean;
96
+ emit(event: 'keylog', line: Buffer, tlsSocket: tls.TLSSocket): boolean;
97
+ emit(
98
+ event: 'newSession',
99
+ sessionId: Buffer,
100
+ sessionData: Buffer,
101
+ callback: (err: Error, resp: Buffer) => void,
102
+ ): boolean;
103
+ emit(
104
+ event: 'OCSPRequest',
105
+ certificate: Buffer,
106
+ issuer: Buffer,
107
+ callback: (err: Error | null, resp: Buffer) => void,
108
+ ): boolean;
109
+ emit(event: 'resumeSession', sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void): boolean;
110
+ emit(event: 'secureConnection', tlsSocket: tls.TLSSocket): boolean;
111
+ emit(event: 'tlsClientError', err: Error, tlsSocket: tls.TLSSocket): boolean;
112
+ emit(event: 'close'): boolean;
113
+ emit(event: 'connection', socket: Duplex): boolean;
114
+ emit(event: 'error', err: Error): boolean;
115
+ emit(event: 'listening'): boolean;
116
+ emit(
117
+ event: 'checkContinue',
118
+ req: InstanceType<Request>,
119
+ res: InstanceType<Response> & { req: InstanceType<Request> },
120
+ ): boolean;
121
+ emit(
122
+ event: 'checkExpectation',
123
+ req: InstanceType<Request>,
124
+ res: InstanceType<Response> & { req: InstanceType<Request> },
125
+ ): boolean;
126
+ emit(event: 'clientError', err: Error, socket: Duplex): boolean;
127
+ emit(event: 'connect', req: InstanceType<Request>, socket: Duplex, head: Buffer): boolean;
128
+ emit(
129
+ event: 'request',
130
+ req: InstanceType<Request>,
131
+ res: InstanceType<Response> & { req: InstanceType<Request> },
132
+ ): boolean;
133
+ emit(event: 'upgrade', req: InstanceType<Request>, socket: Duplex, head: Buffer): boolean;
134
+ on(event: string, listener: (...args: any[]) => void): this;
135
+ on(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
136
+ on(
137
+ event: 'newSession',
138
+ listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void,
139
+ ): this;
140
+ on(
141
+ event: 'OCSPRequest',
142
+ listener: (
143
+ certificate: Buffer,
144
+ issuer: Buffer,
145
+ callback: (err: Error | null, resp: Buffer) => void,
146
+ ) => void,
147
+ ): this;
148
+ on(
149
+ event: 'resumeSession',
150
+ listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void,
151
+ ): this;
152
+ on(event: 'secureConnection', listener: (tlsSocket: tls.TLSSocket) => void): this;
153
+ on(event: 'tlsClientError', listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
154
+ on(event: 'close', listener: () => void): this;
155
+ on(event: 'connection', listener: (socket: Duplex) => void): this;
156
+ on(event: 'error', listener: (err: Error) => void): this;
157
+ on(event: 'listening', listener: () => void): this;
158
+ on(event: 'checkContinue', listener: http.RequestListener<Request, Response>): this;
159
+ on(event: 'checkExpectation', listener: http.RequestListener<Request, Response>): this;
160
+ on(event: 'clientError', listener: (err: Error, socket: Duplex) => void): this;
161
+ on(event: 'connect', listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void): this;
162
+ on(event: 'request', listener: http.RequestListener<Request, Response>): this;
163
+ on(event: 'upgrade', listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void): this;
164
+ once(event: string, listener: (...args: any[]) => void): this;
165
+ once(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
166
+ once(
167
+ event: 'newSession',
168
+ listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void,
169
+ ): this;
170
+ once(
171
+ event: 'OCSPRequest',
172
+ listener: (
173
+ certificate: Buffer,
174
+ issuer: Buffer,
175
+ callback: (err: Error | null, resp: Buffer) => void,
176
+ ) => void,
177
+ ): this;
178
+ once(
179
+ event: 'resumeSession',
180
+ listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void,
181
+ ): this;
182
+ once(event: 'secureConnection', listener: (tlsSocket: tls.TLSSocket) => void): this;
183
+ once(event: 'tlsClientError', listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
184
+ once(event: 'close', listener: () => void): this;
185
+ once(event: 'connection', listener: (socket: Duplex) => void): this;
186
+ once(event: 'error', listener: (err: Error) => void): this;
187
+ once(event: 'listening', listener: () => void): this;
188
+ once(event: 'checkContinue', listener: http.RequestListener<Request, Response>): this;
189
+ once(event: 'checkExpectation', listener: http.RequestListener<Request, Response>): this;
190
+ once(event: 'clientError', listener: (err: Error, socket: Duplex) => void): this;
191
+ once(event: 'connect', listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void): this;
192
+ once(event: 'request', listener: http.RequestListener<Request, Response>): this;
193
+ once(event: 'upgrade', listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void): this;
194
+ prependListener(event: string, listener: (...args: any[]) => void): this;
195
+ prependListener(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
196
+ prependListener(
197
+ event: 'newSession',
198
+ listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void,
199
+ ): this;
200
+ prependListener(
201
+ event: 'OCSPRequest',
202
+ listener: (
203
+ certificate: Buffer,
204
+ issuer: Buffer,
205
+ callback: (err: Error | null, resp: Buffer) => void,
206
+ ) => void,
207
+ ): this;
208
+ prependListener(
209
+ event: 'resumeSession',
210
+ listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void,
211
+ ): this;
212
+ prependListener(event: 'secureConnection', listener: (tlsSocket: tls.TLSSocket) => void): this;
213
+ prependListener(event: 'tlsClientError', listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
214
+ prependListener(event: 'close', listener: () => void): this;
215
+ prependListener(event: 'connection', listener: (socket: Duplex) => void): this;
216
+ prependListener(event: 'error', listener: (err: Error) => void): this;
217
+ prependListener(event: 'listening', listener: () => void): this;
218
+ prependListener(event: 'checkContinue', listener: http.RequestListener<Request, Response>): this;
219
+ prependListener(event: 'checkExpectation', listener: http.RequestListener<Request, Response>): this;
220
+ prependListener(event: 'clientError', listener: (err: Error, socket: Duplex) => void): this;
221
+ prependListener(
222
+ event: 'connect',
223
+ listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
224
+ ): this;
225
+ prependListener(event: 'request', listener: http.RequestListener<Request, Response>): this;
226
+ prependListener(
227
+ event: 'upgrade',
228
+ listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
229
+ ): this;
230
+ prependOnceListener(event: string, listener: (...args: any[]) => void): this;
231
+ prependOnceListener(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
232
+ prependOnceListener(
233
+ event: 'newSession',
234
+ listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void,
235
+ ): this;
236
+ prependOnceListener(
237
+ event: 'OCSPRequest',
238
+ listener: (
239
+ certificate: Buffer,
240
+ issuer: Buffer,
241
+ callback: (err: Error | null, resp: Buffer) => void,
242
+ ) => void,
243
+ ): this;
244
+ prependOnceListener(
245
+ event: 'resumeSession',
246
+ listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void,
247
+ ): this;
248
+ prependOnceListener(event: 'secureConnection', listener: (tlsSocket: tls.TLSSocket) => void): this;
249
+ prependOnceListener(event: 'tlsClientError', listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
250
+ prependOnceListener(event: 'close', listener: () => void): this;
251
+ prependOnceListener(event: 'connection', listener: (socket: Duplex) => void): this;
252
+ prependOnceListener(event: 'error', listener: (err: Error) => void): this;
253
+ prependOnceListener(event: 'listening', listener: () => void): this;
254
+ prependOnceListener(event: 'checkContinue', listener: http.RequestListener<Request, Response>): this;
255
+ prependOnceListener(event: 'checkExpectation', listener: http.RequestListener<Request, Response>): this;
256
+ prependOnceListener(event: 'clientError', listener: (err: Error, socket: Duplex) => void): this;
257
+ prependOnceListener(
258
+ event: 'connect',
259
+ listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
260
+ ): this;
261
+ prependOnceListener(event: 'request', listener: http.RequestListener<Request, Response>): this;
262
+ prependOnceListener(
263
+ event: 'upgrade',
264
+ listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
265
+ ): this;
266
+ }
267
+ /**
268
+ * ```js
269
+ * // curl -k https://localhost:8000/
270
+ * const https = require('https');
271
+ * const fs = require('fs');
272
+ *
273
+ * const options = {
274
+ * key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'),
275
+ * cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem')
276
+ * };
277
+ *
278
+ * https.createServer(options, (req, res) => {
279
+ * res.writeHead(200);
280
+ * res.end('hello world\n');
281
+ * }).listen(8000);
282
+ * ```
283
+ *
284
+ * Or
285
+ *
286
+ * ```js
287
+ * const https = require('https');
288
+ * const fs = require('fs');
289
+ *
290
+ * const options = {
291
+ * pfx: fs.readFileSync('test/fixtures/test_cert.pfx'),
292
+ * passphrase: 'sample'
293
+ * };
294
+ *
295
+ * https.createServer(options, (req, res) => {
296
+ * res.writeHead(200);
297
+ * res.end('hello world\n');
298
+ * }).listen(8000);
299
+ * ```
300
+ * @since v0.3.4
301
+ * @param options Accepts `options` from `createServer`, `createSecureContext` and `createServer`.
302
+ * @param requestListener A listener to be added to the `'request'` event.
303
+ */
304
+ function createServer<
305
+ Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
306
+ Response extends typeof http.ServerResponse = typeof http.ServerResponse,
307
+ >(requestListener?: http.RequestListener<Request, Response>): Server<Request, Response>;
308
+ function createServer<
309
+ Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
310
+ Response extends typeof http.ServerResponse = typeof http.ServerResponse,
311
+ >(
312
+ options: ServerOptions<Request, Response>,
313
+ requestListener?: http.RequestListener<Request, Response>,
314
+ ): Server<Request, Response>;
315
+ /**
316
+ * Makes a request to a secure web server.
317
+ *
318
+ * The following additional `options` from `tls.connect()` are also accepted:`ca`, `cert`, `ciphers`, `clientCertEngine`, `crl`, `dhparam`, `ecdhCurve`,`honorCipherOrder`, `key`, `passphrase`,
319
+ * `pfx`, `rejectUnauthorized`,`secureOptions`, `secureProtocol`, `servername`, `sessionIdContext`,`highWaterMark`.
320
+ *
321
+ * `options` can be an object, a string, or a `URL` object. If `options` is a
322
+ * string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object.
323
+ *
324
+ * `https.request()` returns an instance of the `http.ClientRequest` class. The `ClientRequest` instance is a writable stream. If one needs to
325
+ * upload a file with a POST request, then write to the `ClientRequest` object.
326
+ *
327
+ * ```js
328
+ * const https = require('https');
329
+ *
330
+ * const options = {
331
+ * hostname: 'encrypted.google.com',
332
+ * port: 443,
333
+ * path: '/',
334
+ * method: 'GET'
335
+ * };
336
+ *
337
+ * const req = https.request(options, (res) => {
338
+ * console.log('statusCode:', res.statusCode);
339
+ * console.log('headers:', res.headers);
340
+ *
341
+ * res.on('data', (d) => {
342
+ * process.stdout.write(d);
343
+ * });
344
+ * });
345
+ *
346
+ * req.on('error', (e) => {
347
+ * console.error(e);
348
+ * });
349
+ * req.end();
350
+ * ```
351
+ *
352
+ * Example using options from `tls.connect()`:
353
+ *
354
+ * ```js
355
+ * const options = {
356
+ * hostname: 'encrypted.google.com',
357
+ * port: 443,
358
+ * path: '/',
359
+ * method: 'GET',
360
+ * key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'),
361
+ * cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem')
362
+ * };
363
+ * options.agent = new https.Agent(options);
364
+ *
365
+ * const req = https.request(options, (res) => {
366
+ * // ...
367
+ * });
368
+ * ```
369
+ *
370
+ * Alternatively, opt out of connection pooling by not using an `Agent`.
371
+ *
372
+ * ```js
373
+ * const options = {
374
+ * hostname: 'encrypted.google.com',
375
+ * port: 443,
376
+ * path: '/',
377
+ * method: 'GET',
378
+ * key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'),
379
+ * cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem'),
380
+ * agent: false
381
+ * };
382
+ *
383
+ * const req = https.request(options, (res) => {
384
+ * // ...
385
+ * });
386
+ * ```
387
+ *
388
+ * Example using a `URL` as `options`:
389
+ *
390
+ * ```js
391
+ * const options = new URL('https://abc:xyz@example.com');
392
+ *
393
+ * const req = https.request(options, (res) => {
394
+ * // ...
395
+ * });
396
+ * ```
397
+ *
398
+ * Example pinning on certificate fingerprint, or the public key (similar to`pin-sha256`):
399
+ *
400
+ * ```js
401
+ * const tls = require('tls');
402
+ * const https = require('https');
403
+ * const crypto = require('crypto');
404
+ *
405
+ * function sha256(s) {
406
+ * return crypto.createHash('sha256').update(s).digest('base64');
407
+ * }
408
+ * const options = {
409
+ * hostname: 'github.com',
410
+ * port: 443,
411
+ * path: '/',
412
+ * method: 'GET',
413
+ * checkServerIdentity: function(host, cert) {
414
+ * // Make sure the certificate is issued to the host we are connected to
415
+ * const err = tls.checkServerIdentity(host, cert);
416
+ * if (err) {
417
+ * return err;
418
+ * }
419
+ *
420
+ * // Pin the public key, similar to HPKP pin-sha25 pinning
421
+ * const pubkey256 = 'pL1+qb9HTMRZJmuC/bB/ZI9d302BYrrqiVuRyW+DGrU=';
422
+ * if (sha256(cert.pubkey) !== pubkey256) {
423
+ * const msg = 'Certificate verification error: ' +
424
+ * `The public key of '${cert.subject.CN}' ` +
425
+ * 'does not match our pinned fingerprint';
426
+ * return new Error(msg);
427
+ * }
428
+ *
429
+ * // Pin the exact certificate, rather than the pub key
430
+ * const cert256 = '25:FE:39:32:D9:63:8C:8A:FC:A1:9A:29:87:' +
431
+ * 'D8:3E:4C:1D:98:DB:71:E4:1A:48:03:98:EA:22:6A:BD:8B:93:16';
432
+ * if (cert.fingerprint256 !== cert256) {
433
+ * const msg = 'Certificate verification error: ' +
434
+ * `The certificate of '${cert.subject.CN}' ` +
435
+ * 'does not match our pinned fingerprint';
436
+ * return new Error(msg);
437
+ * }
438
+ *
439
+ * // This loop is informational only.
440
+ * // Print the certificate and public key fingerprints of all certs in the
441
+ * // chain. Its common to pin the public key of the issuer on the public
442
+ * // internet, while pinning the public key of the service in sensitive
443
+ * // environments.
444
+ * do {
445
+ * console.log('Subject Common Name:', cert.subject.CN);
446
+ * console.log(' Certificate SHA256 fingerprint:', cert.fingerprint256);
447
+ *
448
+ * hash = crypto.createHash('sha256');
449
+ * console.log(' Public key ping-sha256:', sha256(cert.pubkey));
450
+ *
451
+ * lastprint256 = cert.fingerprint256;
452
+ * cert = cert.issuerCertificate;
453
+ * } while (cert.fingerprint256 !== lastprint256);
454
+ *
455
+ * },
456
+ * };
457
+ *
458
+ * options.agent = new https.Agent(options);
459
+ * const req = https.request(options, (res) => {
460
+ * console.log('All OK. Server matched our pinned cert or public key');
461
+ * console.log('statusCode:', res.statusCode);
462
+ * // Print the HPKP values
463
+ * console.log('headers:', res.headers['public-key-pins']);
464
+ *
465
+ * res.on('data', (d) => {});
466
+ * });
467
+ *
468
+ * req.on('error', (e) => {
469
+ * console.error(e.message);
470
+ * });
471
+ * req.end();
472
+ * ```
473
+ *
474
+ * Outputs for example:
475
+ *
476
+ * ```text
477
+ * Subject Common Name: github.com
478
+ * 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
479
+ * Public key ping-sha256: pL1+qb9HTMRZJmuC/bB/ZI9d302BYrrqiVuRyW+DGrU=
480
+ * Subject Common Name: DigiCert SHA2 Extended Validation Server CA
481
+ * 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
482
+ * Public key ping-sha256: RRM1dGqnDFsCJXBTHky16vi1obOlCgFFn/yOhI/y+ho=
483
+ * Subject Common Name: DigiCert High Assurance EV Root CA
484
+ * 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
485
+ * Public key ping-sha256: WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18=
486
+ * All OK. Server matched our pinned cert or public key
487
+ * statusCode: 200
488
+ * headers: max-age=0; pin-sha256="WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18="; pin-sha256="RRM1dGqnDFsCJXBTHky16vi1obOlCgFFn/yOhI/y+ho=";
489
+ * pin-sha256="k2v657xBsOVe1PQRwOsHsw3bsGT2VzIqz5K+59sNQws="; pin-sha256="K87oWBWM9UZfyddvDfoxL+8lpNyoUB2ptGtn0fv6G2Q="; pin-sha256="IQBnNBEiFuhj+8x6X8XLgh01V9Ic5/V3IRQLNFFc7v4=";
490
+ * pin-sha256="iie1VXtL7HzAMF+/PVPR9xzT80kQxdZeJ+zduCB3uj0="; pin-sha256="LvRiGEjRqfzurezaWuj8Wie2gyHMrW5Q06LspMnox7A="; includeSubDomains
491
+ * ```
492
+ * @since v0.3.6
493
+ * @param options Accepts all `options` from `request`, with some differences in default values:
494
+ */
495
+ function request(
496
+ options: RequestOptions | string | URL,
497
+ callback?: (res: http.IncomingMessage) => void,
498
+ ): http.ClientRequest;
499
+ function request(
500
+ url: string | URL,
501
+ options: RequestOptions,
502
+ callback?: (res: http.IncomingMessage) => void,
503
+ ): http.ClientRequest;
504
+ /**
505
+ * Like `http.get()` but for HTTPS.
506
+ *
507
+ * `options` can be an object, a string, or a `URL` object. If `options` is a
508
+ * string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object.
509
+ *
510
+ * ```js
511
+ * const https = require('https');
512
+ *
513
+ * https.get('https://encrypted.google.com/', (res) => {
514
+ * console.log('statusCode:', res.statusCode);
515
+ * console.log('headers:', res.headers);
516
+ *
517
+ * res.on('data', (d) => {
518
+ * process.stdout.write(d);
519
+ * });
520
+ *
521
+ * }).on('error', (e) => {
522
+ * console.error(e);
523
+ * });
524
+ * ```
525
+ * @since v0.3.6
526
+ * @param options Accepts the same `options` as {@link request}, with the `method` always set to `GET`.
527
+ */
528
+ function get(
529
+ options: RequestOptions | string | URL,
530
+ callback?: (res: http.IncomingMessage) => void,
531
+ ): http.ClientRequest;
532
+ function get(
533
+ url: string | URL,
534
+ options: RequestOptions,
535
+ callback?: (res: http.IncomingMessage) => void,
536
+ ): http.ClientRequest;
537
+ let globalAgent: Agent;
538
+ }
539
+ declare module 'node:https' {
540
+ export * from 'https';
541
+ }
@@ -0,0 +1,133 @@
1
+ // Type definitions for non-npm package Node.js 18.11
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
+ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
45
+
46
+ /**
47
+ * License for programmatically and manually incorporated
48
+ * documentation aka. `JSDoc` from https://github.com/nodejs/node/tree/master/doc
49
+ *
50
+ * Copyright Node.js contributors. All rights reserved.
51
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
52
+ * of this software and associated documentation files (the "Software"), to
53
+ * deal in the Software without restriction, including without limitation the
54
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
55
+ * sell copies of the Software, and to permit persons to whom the Software is
56
+ * furnished to do so, subject to the following conditions:
57
+ *
58
+ * The above copyright notice and this permission notice shall be included in
59
+ * all copies or substantial portions of the Software.
60
+ *
61
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
62
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
63
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
64
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
65
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
66
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
67
+ * IN THE SOFTWARE.
68
+ */
69
+
70
+ // NOTE: These definitions support NodeJS and TypeScript 4.9+.
71
+
72
+ // Reference required types from the default lib:
73
+ /// <reference lib="es2020" />
74
+ /// <reference lib="esnext.asynciterable" />
75
+ /// <reference lib="esnext.intl" />
76
+ /// <reference lib="esnext.bigint" />
77
+
78
+ // Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
79
+ /// <reference path="assert.d.ts" />
80
+ /// <reference path="assert/strict.d.ts" />
81
+ /// <reference path="globals.d.ts" />
82
+ /// <reference path="async_hooks.d.ts" />
83
+ /// <reference path="buffer.d.ts" />
84
+ /// <reference path="child_process.d.ts" />
85
+ /// <reference path="cluster.d.ts" />
86
+ /// <reference path="console.d.ts" />
87
+ /// <reference path="constants.d.ts" />
88
+ /// <reference path="crypto.d.ts" />
89
+ /// <reference path="dgram.d.ts" />
90
+ /// <reference path="diagnostics_channel.d.ts" />
91
+ /// <reference path="dns.d.ts" />
92
+ /// <reference path="dns/promises.d.ts" />
93
+ /// <reference path="dns/promises.d.ts" />
94
+ /// <reference path="domain.d.ts" />
95
+ /// <reference path="dom-events.d.ts" />
96
+ /// <reference path="events.d.ts" />
97
+ /// <reference path="fs.d.ts" />
98
+ /// <reference path="fs/promises.d.ts" />
99
+ /// <reference path="http.d.ts" />
100
+ /// <reference path="http2.d.ts" />
101
+ /// <reference path="https.d.ts" />
102
+ /// <reference path="inspector.d.ts" />
103
+ /// <reference path="module.d.ts" />
104
+ /// <reference path="net.d.ts" />
105
+ /// <reference path="os.d.ts" />
106
+ /// <reference path="path.d.ts" />
107
+ /// <reference path="perf_hooks.d.ts" />
108
+ /// <reference path="process.d.ts" />
109
+ /// <reference path="punycode.d.ts" />
110
+ /// <reference path="querystring.d.ts" />
111
+ /// <reference path="readline.d.ts" />
112
+ /// <reference path="readline/promises.d.ts" />
113
+ /// <reference path="repl.d.ts" />
114
+ /// <reference path="stream.d.ts" />
115
+ /// <reference path="stream/promises.d.ts" />
116
+ /// <reference path="stream/consumers.d.ts" />
117
+ /// <reference path="stream/web.d.ts" />
118
+ /// <reference path="string_decoder.d.ts" />
119
+ /// <reference path="test.d.ts" />
120
+ /// <reference path="timers.d.ts" />
121
+ /// <reference path="timers/promises.d.ts" />
122
+ /// <reference path="tls.d.ts" />
123
+ /// <reference path="trace_events.d.ts" />
124
+ /// <reference path="tty.d.ts" />
125
+ /// <reference path="url.d.ts" />
126
+ /// <reference path="util.d.ts" />
127
+ /// <reference path="v8.d.ts" />
128
+ /// <reference path="vm.d.ts" />
129
+ /// <reference path="wasi.d.ts" />
130
+ /// <reference path="worker_threads.d.ts" />
131
+ /// <reference path="zlib.d.ts" />
132
+
133
+ /// <reference path="globals.global.d.ts" />