@rio-cloud/cdk-v2-constructs 8.2.0-alpha.0 → 8.2.1-alpha.0

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 (179) hide show
  1. package/.jsii +2 -2
  2. package/node_modules/@types/node/README.md +3 -3
  3. package/node_modules/@types/node/assert/strict.d.ts +105 -2
  4. package/node_modules/@types/node/assert.d.ts +211 -92
  5. package/node_modules/@types/node/async_hooks.d.ts +103 -19
  6. package/node_modules/@types/node/buffer.buffer.d.ts +472 -0
  7. package/node_modules/@types/node/buffer.d.ts +88 -516
  8. package/node_modules/@types/node/child_process.d.ts +167 -231
  9. package/node_modules/@types/node/cluster.d.ts +172 -26
  10. package/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
  11. package/node_modules/@types/node/console.d.ts +66 -28
  12. package/node_modules/@types/node/constants.d.ts +14 -12
  13. package/node_modules/@types/node/crypto.d.ts +1458 -497
  14. package/node_modules/@types/node/dgram.d.ts +44 -30
  15. package/node_modules/@types/node/diagnostics_channel.d.ts +389 -4
  16. package/node_modules/@types/node/dns/promises.d.ts +120 -42
  17. package/node_modules/@types/node/dns.d.ts +209 -95
  18. package/node_modules/@types/node/domain.d.ts +14 -18
  19. package/node_modules/@types/node/events.d.ts +245 -113
  20. package/node_modules/@types/node/fs/promises.d.ts +194 -96
  21. package/node_modules/@types/node/fs.d.ts +695 -270
  22. package/node_modules/@types/node/globals.d.ts +97 -308
  23. package/node_modules/@types/node/globals.typedarray.d.ts +41 -0
  24. package/node_modules/@types/node/http.d.ts +363 -97
  25. package/node_modules/@types/node/http2.d.ts +684 -231
  26. package/node_modules/@types/node/https.d.ts +122 -87
  27. package/node_modules/@types/node/index.d.ts +24 -11
  28. package/node_modules/@types/node/inspector.d.ts +220 -2690
  29. package/node_modules/@types/node/inspector.generated.d.ts +4239 -0
  30. package/node_modules/@types/node/module.d.ts +705 -149
  31. package/node_modules/@types/node/net.d.ts +178 -54
  32. package/node_modules/@types/node/os.d.ts +47 -17
  33. package/node_modules/@types/node/package.json +22 -97
  34. package/node_modules/@types/node/path.d.ts +12 -3
  35. package/node_modules/@types/node/perf_hooks.d.ts +500 -97
  36. package/node_modules/@types/node/process.d.ts +657 -87
  37. package/node_modules/@types/node/punycode.d.ts +5 -5
  38. package/node_modules/@types/node/querystring.d.ts +24 -13
  39. package/node_modules/@types/node/readline/promises.d.ts +25 -14
  40. package/node_modules/@types/node/readline.d.ts +102 -41
  41. package/node_modules/@types/node/repl.d.ts +38 -30
  42. package/node_modules/@types/node/sea.d.ts +162 -0
  43. package/node_modules/@types/node/sqlite.d.ts +1040 -0
  44. package/node_modules/@types/node/stream/consumers.d.ts +33 -7
  45. package/node_modules/@types/node/stream/promises.d.ts +8 -1
  46. package/node_modules/@types/node/stream/web.d.ts +251 -28
  47. package/node_modules/@types/node/stream.d.ts +1060 -1055
  48. package/node_modules/@types/node/string_decoder.d.ts +8 -8
  49. package/node_modules/@types/node/test.d.ts +2133 -1166
  50. package/node_modules/@types/node/timers/promises.d.ts +31 -16
  51. package/node_modules/@types/node/timers.d.ts +159 -114
  52. package/node_modules/@types/node/tls.d.ts +232 -163
  53. package/node_modules/@types/node/trace_events.d.ts +43 -28
  54. package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +468 -0
  55. package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
  56. package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +36 -0
  57. package/node_modules/@types/node/ts5.6/index.d.ts +103 -0
  58. package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
  59. package/node_modules/@types/node/ts5.7/index.d.ts +103 -0
  60. package/node_modules/@types/node/tty.d.ts +9 -9
  61. package/node_modules/@types/node/url.d.ts +236 -84
  62. package/node_modules/@types/node/util.d.ts +562 -412
  63. package/node_modules/@types/node/v8.d.ts +368 -21
  64. package/node_modules/@types/node/vm.d.ts +443 -149
  65. package/node_modules/@types/node/wasi.d.ts +62 -18
  66. package/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
  67. package/node_modules/@types/node/web-globals/crypto.d.ts +32 -0
  68. package/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  69. package/node_modules/@types/node/web-globals/events.d.ts +97 -0
  70. package/node_modules/@types/node/web-globals/fetch.d.ts +62 -0
  71. package/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
  72. package/node_modules/@types/node/web-globals/storage.d.ts +24 -0
  73. package/node_modules/@types/node/web-globals/streams.d.ts +22 -0
  74. package/node_modules/@types/node/worker_threads.d.ts +310 -107
  75. package/node_modules/@types/node/zlib.d.ts +301 -73
  76. package/node_modules/undici-types/LICENSE +21 -0
  77. package/node_modules/undici-types/agent.d.ts +13 -12
  78. package/node_modules/undici-types/api.d.ts +26 -26
  79. package/node_modules/undici-types/balanced-pool.d.ts +19 -7
  80. package/node_modules/undici-types/cache-interceptor.d.ts +173 -0
  81. package/node_modules/undici-types/client-stats.d.ts +15 -0
  82. package/node_modules/undici-types/client.d.ts +26 -15
  83. package/node_modules/undici-types/connector.d.ts +2 -2
  84. package/node_modules/undici-types/cookies.d.ts +2 -0
  85. package/node_modules/undici-types/diagnostics-channel.d.ts +19 -12
  86. package/node_modules/undici-types/dispatcher.d.ts +148 -113
  87. package/node_modules/undici-types/env-http-proxy-agent.d.ts +22 -0
  88. package/node_modules/undici-types/errors.d.ts +79 -46
  89. package/node_modules/undici-types/eventsource.d.ts +66 -0
  90. package/node_modules/undici-types/fetch.d.ts +41 -39
  91. package/node_modules/undici-types/formdata.d.ts +8 -8
  92. package/node_modules/undici-types/global-dispatcher.d.ts +4 -4
  93. package/node_modules/undici-types/global-origin.d.ts +5 -5
  94. package/node_modules/undici-types/h2c-client.d.ts +73 -0
  95. package/node_modules/undici-types/handlers.d.ts +11 -5
  96. package/node_modules/undici-types/header.d.ts +157 -1
  97. package/node_modules/undici-types/index.d.ts +68 -43
  98. package/node_modules/undici-types/interceptors.d.ts +71 -3
  99. package/node_modules/undici-types/mock-agent.d.ts +36 -18
  100. package/node_modules/undici-types/mock-call-history.d.ts +111 -0
  101. package/node_modules/undici-types/mock-client.d.ts +6 -4
  102. package/node_modules/undici-types/mock-errors.d.ts +3 -3
  103. package/node_modules/undici-types/mock-interceptor.d.ts +24 -23
  104. package/node_modules/undici-types/mock-pool.d.ts +6 -4
  105. package/node_modules/undici-types/package.json +1 -1
  106. package/node_modules/undici-types/patch.d.ts +0 -42
  107. package/node_modules/undici-types/pool-stats.d.ts +8 -8
  108. package/node_modules/undici-types/pool.d.ts +21 -8
  109. package/node_modules/undici-types/proxy-agent.d.ts +5 -6
  110. package/node_modules/undici-types/readable.d.ts +24 -17
  111. package/node_modules/undici-types/retry-agent.d.ts +8 -0
  112. package/node_modules/undici-types/retry-handler.d.ts +125 -0
  113. package/node_modules/undici-types/round-robin-pool.d.ts +41 -0
  114. package/node_modules/undici-types/snapshot-agent.d.ts +109 -0
  115. package/node_modules/undici-types/util.d.ts +18 -0
  116. package/node_modules/undici-types/utility.d.ts +7 -0
  117. package/node_modules/undici-types/webidl.d.ts +157 -36
  118. package/node_modules/undici-types/websocket.d.ts +67 -12
  119. package/package.json +9 -60
  120. package/version.json +1 -1
  121. package/node_modules/@types/node/dom-events.d.ts +0 -122
  122. package/node_modules/@types/node/globals.global.d.ts +0 -1
  123. package/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
  124. package/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
  125. package/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
  126. package/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2362
  127. package/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
  128. package/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
  129. package/node_modules/@types/node/ts4.8/console.d.ts +0 -415
  130. package/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
  131. package/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4455
  132. package/node_modules/@types/node/ts4.8/dgram.d.ts +0 -586
  133. package/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -191
  134. package/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
  135. package/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
  136. package/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
  137. package/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
  138. package/node_modules/@types/node/ts4.8/events.d.ts +0 -796
  139. package/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1232
  140. package/node_modules/@types/node/ts4.8/fs.d.ts +0 -4289
  141. package/node_modules/@types/node/ts4.8/globals.d.ts +0 -381
  142. package/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
  143. package/node_modules/@types/node/ts4.8/http.d.ts +0 -1888
  144. package/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
  145. package/node_modules/@types/node/ts4.8/https.d.ts +0 -550
  146. package/node_modules/@types/node/ts4.8/index.d.ts +0 -88
  147. package/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
  148. package/node_modules/@types/node/ts4.8/module.d.ts +0 -287
  149. package/node_modules/@types/node/ts4.8/net.d.ts +0 -949
  150. package/node_modules/@types/node/ts4.8/os.d.ts +0 -477
  151. package/node_modules/@types/node/ts4.8/path.d.ts +0 -191
  152. package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -639
  153. package/node_modules/@types/node/ts4.8/process.d.ts +0 -1532
  154. package/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
  155. package/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
  156. package/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
  157. package/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
  158. package/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
  159. package/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
  160. package/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
  161. package/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -350
  162. package/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
  163. package/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
  164. package/node_modules/@types/node/ts4.8/test.d.ts +0 -1382
  165. package/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
  166. package/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
  167. package/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
  168. package/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
  169. package/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
  170. package/node_modules/@types/node/ts4.8/url.d.ts +0 -927
  171. package/node_modules/@types/node/ts4.8/util.d.ts +0 -2186
  172. package/node_modules/@types/node/ts4.8/v8.d.ts +0 -635
  173. package/node_modules/@types/node/ts4.8/vm.d.ts +0 -901
  174. package/node_modules/@types/node/ts4.8/wasi.d.ts +0 -158
  175. package/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
  176. package/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
  177. package/node_modules/argparse/CHANGELOG.md +0 -216
  178. package/node_modules/undici-types/file.d.ts +0 -39
  179. package/node_modules/undici-types/filereader.d.ts +0 -54
@@ -23,10 +23,11 @@
23
23
  * server.bind(41234);
24
24
  * // Prints: server listening 0.0.0.0:41234
25
25
  * ```
26
- * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/dgram.js)
26
+ * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/dgram.js)
27
27
  */
28
28
  declare module "dgram" {
29
- import { AddressInfo } from "node:net";
29
+ import { NonSharedBuffer } from "node:buffer";
30
+ import { AddressInfo, BlockList } from "node:net";
30
31
  import * as dns from "node:dns";
31
32
  import { Abortable, EventEmitter } from "node:events";
32
33
  interface RemoteInfo {
@@ -45,6 +46,7 @@ declare module "dgram" {
45
46
  interface SocketOptions extends Abortable {
46
47
  type: SocketType;
47
48
  reuseAddr?: boolean | undefined;
49
+ reusePort?: boolean | undefined;
48
50
  /**
49
51
  * @default false
50
52
  */
@@ -58,6 +60,8 @@ declare module "dgram" {
58
60
  callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void,
59
61
  ) => void)
60
62
  | undefined;
63
+ receiveBlockList?: BlockList | undefined;
64
+ sendBlockList?: BlockList | undefined;
61
65
  }
62
66
  /**
63
67
  * Creates a `dgram.Socket` object. Once the socket is created, calling `socket.bind()` will instruct the socket to begin listening for datagram
@@ -66,7 +70,7 @@ declare module "dgram" {
66
70
  * (it does the right thing for both `udp4` and `udp6` sockets). The bound address
67
71
  * and port can be retrieved using `socket.address().address` and `socket.address().port`.
68
72
  *
69
- * If the `signal` option is enabled, calling `.abort()` on the corresponding`AbortController` is similar to calling `.close()` on the socket:
73
+ * If the `signal` option is enabled, calling `.abort()` on the corresponding `AbortController` is similar to calling `.close()` on the socket:
70
74
  *
71
75
  * ```js
72
76
  * const controller = new AbortController();
@@ -82,8 +86,8 @@ declare module "dgram" {
82
86
  * @param options Available options are:
83
87
  * @param callback Attached as a listener for `'message'` events. Optional.
84
88
  */
85
- function createSocket(type: SocketType, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket;
86
- function createSocket(options: SocketOptions, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket;
89
+ function createSocket(type: SocketType, callback?: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): Socket;
90
+ function createSocket(options: SocketOptions, callback?: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): Socket;
87
91
  /**
88
92
  * Encapsulates the datagram functionality.
89
93
  *
@@ -93,7 +97,7 @@ declare module "dgram" {
93
97
  */
94
98
  class Socket extends EventEmitter {
95
99
  /**
96
- * Tells the kernel to join a multicast group at the given `multicastAddress` and`multicastInterface` using the `IP_ADD_MEMBERSHIP` socket option. If the`multicastInterface` argument is not
100
+ * Tells the kernel to join a multicast group at the given `multicastAddress` and `multicastInterface` using the `IP_ADD_MEMBERSHIP` socket option. If the `multicastInterface` argument is not
97
101
  * specified, the operating system will choose
98
102
  * one interface and will add membership to it. To add membership to every
99
103
  * available interface, call `addMembership` multiple times, once per interface.
@@ -122,7 +126,7 @@ declare module "dgram" {
122
126
  addMembership(multicastAddress: string, multicastInterface?: string): void;
123
127
  /**
124
128
  * Returns an object containing the address information for a socket.
125
- * For UDP sockets, this object will contain `address`, `family`, and `port`properties.
129
+ * For UDP sockets, this object will contain `address`, `family`, and `port` properties.
126
130
  *
127
131
  * This method throws `EBADF` if called on an unbound socket.
128
132
  * @since v0.1.99
@@ -133,10 +137,10 @@ declare module "dgram" {
133
137
  * messages on a named `port` and optional `address`. If `port` is not
134
138
  * specified or is `0`, the operating system will attempt to bind to a
135
139
  * random port. If `address` is not specified, the operating system will
136
- * attempt to listen on all addresses. Once binding is complete, a`'listening'` event is emitted and the optional `callback` function is
140
+ * attempt to listen on all addresses. Once binding is complete, a `'listening'` event is emitted and the optional `callback` function is
137
141
  * called.
138
142
  *
139
- * Specifying both a `'listening'` event listener and passing a`callback` to the `socket.bind()` method is not harmful but not very
143
+ * Specifying both a `'listening'` event listener and passing a `callback` to the `socket.bind()` method is not harmful but not very
140
144
  * useful.
141
145
  *
142
146
  * A bound datagram socket keeps the Node.js process running to receive
@@ -206,7 +210,7 @@ declare module "dgram" {
206
210
  */
207
211
  disconnect(): void;
208
212
  /**
209
- * Instructs the kernel to leave a multicast group at `multicastAddress` using the`IP_DROP_MEMBERSHIP` socket option. This method is automatically called by the
213
+ * Instructs the kernel to leave a multicast group at `multicastAddress` using the `IP_DROP_MEMBERSHIP` socket option. This method is automatically called by the
210
214
  * kernel when the socket is closed or the process terminates, so most apps will
211
215
  * never have reason to call this.
212
216
  *
@@ -227,6 +231,16 @@ declare module "dgram" {
227
231
  * @return the `SO_SNDBUF` socket send buffer size in bytes.
228
232
  */
229
233
  getSendBufferSize(): number;
234
+ /**
235
+ * @since v18.8.0, v16.19.0
236
+ * @return Number of bytes queued for sending.
237
+ */
238
+ getSendQueueSize(): number;
239
+ /**
240
+ * @since v18.8.0, v16.19.0
241
+ * @return Number of send requests currently in the queue awaiting to be processed.
242
+ */
243
+ getSendQueueCount(): number;
230
244
  /**
231
245
  * By default, binding a socket will cause it to block the Node.js process from
232
246
  * exiting as long as the socket is open. The `socket.unref()` method can be used
@@ -259,14 +273,14 @@ declare module "dgram" {
259
273
  * any `TypedArray` or a `DataView`,
260
274
  * the `offset` and `length` specify the offset within the `Buffer` where the
261
275
  * message begins and the number of bytes in the message, respectively.
262
- * If `msg` is a `String`, then it is automatically converted to a `Buffer`with `'utf8'` encoding. With messages that
276
+ * If `msg` is a `String`, then it is automatically converted to a `Buffer` with `'utf8'` encoding. With messages that
263
277
  * contain multi-byte characters, `offset` and `length` will be calculated with
264
278
  * respect to `byte length` and not the character position.
265
279
  * If `msg` is an array, `offset` and `length` must not be specified.
266
280
  *
267
281
  * The `address` argument is a string. If the value of `address` is a host name,
268
282
  * DNS will be used to resolve the address of the host. If `address` is not
269
- * provided or otherwise nullish, `'127.0.0.1'` (for `udp4` sockets) or `'::1'`(for `udp6` sockets) will be used by default.
283
+ * provided or otherwise nullish, `'127.0.0.1'` (for `udp4` sockets) or `'::1'` (for `udp6` sockets) will be used by default.
270
284
  *
271
285
  * If the socket has not been previously bound with a call to `bind`, the socket
272
286
  * is assigned a random port number and is bound to the "all interfaces" address
@@ -277,7 +291,7 @@ declare module "dgram" {
277
291
  * DNS lookups delay the time to send for at least one tick of the
278
292
  * Node.js event loop.
279
293
  *
280
- * The only way to know for sure that the datagram has been sent is by using a`callback`. If an error occurs and a `callback` is given, the error will be
294
+ * The only way to know for sure that the datagram has been sent is by using a `callback`. If an error occurs and a `callback` is given, the error will be
281
295
  * passed as the first argument to the `callback`. If a `callback` is not given,
282
296
  * the error is emitted as an `'error'` event on the `socket` object.
283
297
  *
@@ -319,7 +333,7 @@ declare module "dgram" {
319
333
  * determine the optimal strategy on a case-by-case basis. Generally speaking,
320
334
  * however, sending multiple buffers is faster.
321
335
  *
322
- * Example of sending a UDP packet using a socket connected to a port on`localhost`:
336
+ * Example of sending a UDP packet using a socket connected to a port on `localhost`:
323
337
  *
324
338
  * ```js
325
339
  * import dgram from 'node:dgram';
@@ -342,22 +356,22 @@ declare module "dgram" {
342
356
  * @param callback Called when the message has been sent.
343
357
  */
344
358
  send(
345
- msg: string | Uint8Array | readonly any[],
359
+ msg: string | NodeJS.ArrayBufferView | readonly any[],
346
360
  port?: number,
347
361
  address?: string,
348
362
  callback?: (error: Error | null, bytes: number) => void,
349
363
  ): void;
350
364
  send(
351
- msg: string | Uint8Array | readonly any[],
365
+ msg: string | NodeJS.ArrayBufferView | readonly any[],
352
366
  port?: number,
353
367
  callback?: (error: Error | null, bytes: number) => void,
354
368
  ): void;
355
369
  send(
356
- msg: string | Uint8Array | readonly any[],
370
+ msg: string | NodeJS.ArrayBufferView | readonly any[],
357
371
  callback?: (error: Error | null, bytes: number) => void,
358
372
  ): void;
359
373
  send(
360
- msg: string | Uint8Array,
374
+ msg: string | NodeJS.ArrayBufferView,
361
375
  offset: number,
362
376
  length: number,
363
377
  port?: number,
@@ -365,14 +379,14 @@ declare module "dgram" {
365
379
  callback?: (error: Error | null, bytes: number) => void,
366
380
  ): void;
367
381
  send(
368
- msg: string | Uint8Array,
382
+ msg: string | NodeJS.ArrayBufferView,
369
383
  offset: number,
370
384
  length: number,
371
385
  port?: number,
372
386
  callback?: (error: Error | null, bytes: number) => void,
373
387
  ): void;
374
388
  send(
375
- msg: string | Uint8Array,
389
+ msg: string | NodeJS.ArrayBufferView,
376
390
  offset: number,
377
391
  length: number,
378
392
  callback?: (error: Error | null, bytes: number) => void,
@@ -501,7 +515,7 @@ declare module "dgram" {
501
515
  * process active, allowing the process to exit even if the socket is still
502
516
  * listening.
503
517
  *
504
- * Calling `socket.unref()` multiple times will have no addition effect.
518
+ * Calling `socket.unref()` multiple times will have no additional effect.
505
519
  *
506
520
  * The `socket.unref()` method returns a reference to the socket so calls can be
507
521
  * chained.
@@ -509,10 +523,10 @@ declare module "dgram" {
509
523
  */
510
524
  unref(): this;
511
525
  /**
512
- * Tells the kernel to join a source-specific multicast channel at the given`sourceAddress` and `groupAddress`, using the `multicastInterface` with the`IP_ADD_SOURCE_MEMBERSHIP` socket
526
+ * Tells the kernel to join a source-specific multicast channel at the given `sourceAddress` and `groupAddress`, using the `multicastInterface` with the `IP_ADD_SOURCE_MEMBERSHIP` socket
513
527
  * option. If the `multicastInterface` argument
514
528
  * is not specified, the operating system will choose one interface and will add
515
- * membership to it. To add membership to every available interface, call`socket.addSourceSpecificMembership()` multiple times, once per interface.
529
+ * membership to it. To add membership to every available interface, call `socket.addSourceSpecificMembership()` multiple times, once per interface.
516
530
  *
517
531
  * When called on an unbound socket, this method will implicitly bind to a random
518
532
  * port, listening on all interfaces.
@@ -520,7 +534,7 @@ declare module "dgram" {
520
534
  */
521
535
  addSourceSpecificMembership(sourceAddress: string, groupAddress: string, multicastInterface?: string): void;
522
536
  /**
523
- * Instructs the kernel to leave a source-specific multicast channel at the given`sourceAddress` and `groupAddress` using the `IP_DROP_SOURCE_MEMBERSHIP`socket option. This method is
537
+ * Instructs the kernel to leave a source-specific multicast channel at the given `sourceAddress` and `groupAddress` using the `IP_DROP_SOURCE_MEMBERSHIP` socket option. This method is
524
538
  * automatically called by the kernel when the
525
539
  * socket is closed or the process terminates, so most apps will never have
526
540
  * reason to call this.
@@ -543,37 +557,37 @@ declare module "dgram" {
543
557
  addListener(event: "connect", listener: () => void): this;
544
558
  addListener(event: "error", listener: (err: Error) => void): this;
545
559
  addListener(event: "listening", listener: () => void): this;
546
- addListener(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
560
+ addListener(event: "message", listener: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): this;
547
561
  emit(event: string | symbol, ...args: any[]): boolean;
548
562
  emit(event: "close"): boolean;
549
563
  emit(event: "connect"): boolean;
550
564
  emit(event: "error", err: Error): boolean;
551
565
  emit(event: "listening"): boolean;
552
- emit(event: "message", msg: Buffer, rinfo: RemoteInfo): boolean;
566
+ emit(event: "message", msg: NonSharedBuffer, rinfo: RemoteInfo): boolean;
553
567
  on(event: string, listener: (...args: any[]) => void): this;
554
568
  on(event: "close", listener: () => void): this;
555
569
  on(event: "connect", listener: () => void): this;
556
570
  on(event: "error", listener: (err: Error) => void): this;
557
571
  on(event: "listening", listener: () => void): this;
558
- on(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
572
+ on(event: "message", listener: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): this;
559
573
  once(event: string, listener: (...args: any[]) => void): this;
560
574
  once(event: "close", listener: () => void): this;
561
575
  once(event: "connect", listener: () => void): this;
562
576
  once(event: "error", listener: (err: Error) => void): this;
563
577
  once(event: "listening", listener: () => void): this;
564
- once(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
578
+ once(event: "message", listener: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): this;
565
579
  prependListener(event: string, listener: (...args: any[]) => void): this;
566
580
  prependListener(event: "close", listener: () => void): this;
567
581
  prependListener(event: "connect", listener: () => void): this;
568
582
  prependListener(event: "error", listener: (err: Error) => void): this;
569
583
  prependListener(event: "listening", listener: () => void): this;
570
- prependListener(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
584
+ prependListener(event: "message", listener: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): this;
571
585
  prependOnceListener(event: string, listener: (...args: any[]) => void): this;
572
586
  prependOnceListener(event: "close", listener: () => void): this;
573
587
  prependOnceListener(event: "connect", listener: () => void): this;
574
588
  prependOnceListener(event: "error", listener: (err: Error) => void): this;
575
589
  prependOnceListener(event: "listening", listener: () => void): this;
576
- prependOnceListener(event: "message", listener: (msg: Buffer, rinfo: RemoteInfo) => void): this;
590
+ prependOnceListener(event: "message", listener: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): this;
577
591
  /**
578
592
  * Calls `socket.close()` and returns a promise that fulfills when the socket has closed.
579
593
  * @since v20.5.0