cloudstructs 0.6.22 → 0.6.23

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 (117) hide show
  1. package/.jsii +3 -3
  2. package/lib/codecommit-mirror/index.js +2 -2
  3. package/lib/ecs-service-roller/index.js +2 -2
  4. package/lib/email-receiver/receiver.js +1 -1
  5. package/lib/saml-identity-provider/index.js +2 -2
  6. package/lib/slack-app/manifest.js +1 -1
  7. package/lib/slack-app/slack-app.js +2 -2
  8. package/lib/slack-events/index.js +1 -1
  9. package/lib/slack-textract/index.js +1 -1
  10. package/lib/ssl-server-test/index.js +1 -1
  11. package/lib/state-machine-cr-provider/index.js +1 -1
  12. package/lib/static-website/index.js +1 -1
  13. package/lib/toolkit-cleaner/index.js +1 -1
  14. package/lib/url-shortener/index.js +1 -1
  15. package/node_modules/@slack/logger/node_modules/@types/node/README.md +1 -1
  16. package/node_modules/@slack/logger/node_modules/@types/node/buffer.d.ts +30 -0
  17. package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +12 -4
  18. package/node_modules/@slack/logger/node_modules/@types/node/fs/promises.d.ts +21 -0
  19. package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +100 -0
  20. package/node_modules/@slack/logger/node_modules/@types/node/globals.d.ts +1 -1
  21. package/node_modules/@slack/logger/node_modules/@types/node/index.d.ts +1 -1
  22. package/node_modules/@slack/logger/node_modules/@types/node/net.d.ts +6 -0
  23. package/node_modules/@slack/logger/node_modules/@types/node/os.d.ts +7 -0
  24. package/node_modules/@slack/logger/node_modules/@types/node/package.json +2 -2
  25. package/node_modules/@slack/logger/node_modules/@types/node/timers.d.ts +7 -0
  26. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/buffer.d.ts +30 -0
  27. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/crypto.d.ts +12 -4
  28. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/globals.d.ts +1 -1
  29. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/net.d.ts +6 -0
  30. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/os.d.ts +7 -0
  31. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/util.d.ts +1 -1
  32. package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
  33. package/node_modules/@slack/web-api/node_modules/@types/node/buffer.d.ts +30 -0
  34. package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +12 -4
  35. package/node_modules/@slack/web-api/node_modules/@types/node/fs/promises.d.ts +21 -0
  36. package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +100 -0
  37. package/node_modules/@slack/web-api/node_modules/@types/node/globals.d.ts +1 -1
  38. package/node_modules/@slack/web-api/node_modules/@types/node/index.d.ts +1 -1
  39. package/node_modules/@slack/web-api/node_modules/@types/node/net.d.ts +6 -0
  40. package/node_modules/@slack/web-api/node_modules/@types/node/os.d.ts +7 -0
  41. package/node_modules/@slack/web-api/node_modules/@types/node/package.json +2 -2
  42. package/node_modules/@slack/web-api/node_modules/@types/node/timers.d.ts +7 -0
  43. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/buffer.d.ts +30 -0
  44. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/crypto.d.ts +12 -4
  45. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/globals.d.ts +1 -1
  46. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/net.d.ts +6 -0
  47. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/os.d.ts +7 -0
  48. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/util.d.ts +1 -1
  49. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
  50. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +30 -0
  51. package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +12 -4
  52. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +21 -0
  53. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +100 -0
  54. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +1 -1
  55. package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +1 -1
  56. package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +6 -0
  57. package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +7 -0
  58. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +2 -2
  59. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +7 -0
  60. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/buffer.d.ts +30 -0
  61. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/crypto.d.ts +12 -4
  62. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/globals.d.ts +1 -1
  63. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/net.d.ts +6 -0
  64. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/os.d.ts +7 -0
  65. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/util.d.ts +1 -1
  66. package/node_modules/@types/is-stream/node_modules/@types/node/README.md +1 -1
  67. package/node_modules/@types/is-stream/node_modules/@types/node/buffer.d.ts +30 -0
  68. package/node_modules/@types/is-stream/node_modules/@types/node/crypto.d.ts +12 -4
  69. package/node_modules/@types/is-stream/node_modules/@types/node/fs/promises.d.ts +21 -0
  70. package/node_modules/@types/is-stream/node_modules/@types/node/fs.d.ts +100 -0
  71. package/node_modules/@types/is-stream/node_modules/@types/node/globals.d.ts +1 -1
  72. package/node_modules/@types/is-stream/node_modules/@types/node/index.d.ts +1 -1
  73. package/node_modules/@types/is-stream/node_modules/@types/node/net.d.ts +6 -0
  74. package/node_modules/@types/is-stream/node_modules/@types/node/os.d.ts +7 -0
  75. package/node_modules/@types/is-stream/node_modules/@types/node/package.json +2 -2
  76. package/node_modules/@types/is-stream/node_modules/@types/node/timers.d.ts +7 -0
  77. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/buffer.d.ts +30 -0
  78. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/crypto.d.ts +12 -4
  79. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/globals.d.ts +1 -1
  80. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/net.d.ts +6 -0
  81. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/os.d.ts +7 -0
  82. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/util.d.ts +1 -1
  83. package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
  84. package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +30 -0
  85. package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +12 -4
  86. package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +21 -0
  87. package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +100 -0
  88. package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +1 -1
  89. package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +1 -1
  90. package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +6 -0
  91. package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +7 -0
  92. package/node_modules/@types/keyv/node_modules/@types/node/package.json +2 -2
  93. package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +7 -0
  94. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/buffer.d.ts +30 -0
  95. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/crypto.d.ts +12 -4
  96. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/globals.d.ts +1 -1
  97. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/net.d.ts +6 -0
  98. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/os.d.ts +7 -0
  99. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/util.d.ts +1 -1
  100. package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
  101. package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +30 -0
  102. package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +12 -4
  103. package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +21 -0
  104. package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +100 -0
  105. package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +1 -1
  106. package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +1 -1
  107. package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +6 -0
  108. package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +7 -0
  109. package/node_modules/@types/responselike/node_modules/@types/node/package.json +2 -2
  110. package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +7 -0
  111. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/buffer.d.ts +30 -0
  112. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/crypto.d.ts +12 -4
  113. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/globals.d.ts +1 -1
  114. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/net.d.ts +6 -0
  115. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/os.d.ts +7 -0
  116. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/util.d.ts +1 -1
  117. package/package.json +8 -8
@@ -14,6 +14,7 @@ declare module 'fs/promises' {
14
14
  import { ReadableStream } from 'node:stream/web';
15
15
  import {
16
16
  BigIntStats,
17
+ BigIntStatsFs,
17
18
  BufferEncodingOption,
18
19
  constants as fsConstants,
19
20
  CopyOptions,
@@ -30,7 +31,9 @@ declare module 'fs/promises' {
30
31
  RmDirOptions,
31
32
  RmOptions,
32
33
  StatOptions,
34
+ StatFsOptions,
33
35
  Stats,
36
+ StatsFs,
34
37
  TimeLike,
35
38
  WatchEventType,
36
39
  WatchOptions,
@@ -745,6 +748,24 @@ declare module 'fs/promises' {
745
748
  }
746
749
  ): Promise<BigIntStats>;
747
750
  function stat(path: PathLike, opts?: StatOptions): Promise<Stats | BigIntStats>;
751
+ /**
752
+ * @since v18.15.0
753
+ * @return Fulfills with an {fs.StatFs} for the file system.
754
+ */
755
+ function statfs(
756
+ path: PathLike,
757
+ opts?: StatFsOptions & {
758
+ bigint?: false | undefined;
759
+ }
760
+ ): Promise<StatsFs>;
761
+ function statfs(
762
+ path: PathLike,
763
+ opts: StatFsOptions & {
764
+ bigint: true;
765
+ }
766
+ ): Promise<BigIntStatsFs>;
767
+ function statfs(path: PathLike, opts?: StatFsOptions): Promise<StatsFs | BigIntStatsFs>;
768
+
748
769
  /**
749
770
  * Creates a new link from the `existingPath` to the `newPath`. See the POSIX [`link(2)`](http://man7.org/linux/man-pages/man2/link.2.html) documentation for more detail.
750
771
  * @since v10.0.0
@@ -131,6 +131,42 @@ declare module 'fs' {
131
131
  * @since v0.1.21
132
132
  */
133
133
  export class Stats {}
134
+
135
+ export interface StatsFsBase<T> {
136
+ /** Type of file system. */
137
+ type: T;
138
+ /** Optimal transfer block size. */
139
+ bsize: T;
140
+ /** Total data blocks in file system. */
141
+ blocks: T;
142
+ /** Free blocks in file system. */
143
+ bfree: T;
144
+ /** Available blocks for unprivileged users */
145
+ bavail: T;
146
+ /** Total file nodes in file system. */
147
+ files: T;
148
+ /** Free file nodes in file system. */
149
+ ffree: T;
150
+ }
151
+
152
+ export interface StatsFs extends StatsFsBase<number> {}
153
+
154
+ /**
155
+ * Provides information about a mounted file system
156
+ *
157
+ * Objects returned from {@link statfs} and {@link statfsSync} are of this type.
158
+ * If `bigint` in the `options` passed to those methods is true, the numeric values
159
+ * will be `bigint` instead of `number`.
160
+ * @since v18.15.0
161
+ */
162
+ export class StatsFs {}
163
+
164
+ export interface BigIntStatsFs extends StatsFsBase<bigint> {}
165
+
166
+ export interface StatFsOptions {
167
+ bigint?: boolean | undefined;
168
+ }
169
+
134
170
  /**
135
171
  * A representation of a directory entry, which can be a file or a subdirectory
136
172
  * within the directory, as returned by reading from an `fs.Dir`. The
@@ -1081,6 +1117,70 @@ declare module 'fs' {
1081
1117
  ): Promise<BigIntStats>;
1082
1118
  function __promisify__(path: PathLike, options?: StatOptions): Promise<Stats | BigIntStats>;
1083
1119
  }
1120
+ /**
1121
+ * Asynchronous statfs(2). Returns information about the mounted file system which contains path. The callback gets two arguments (err, stats) where stats is an <fs.StatFs> object.
1122
+ * In case of an error, the err.code will be one of Common System Errors.
1123
+ * @param path A path to an existing file or directory on the file system to be queried.
1124
+ * @param callback
1125
+ */
1126
+ export function statfs(path: PathLike, callback: (err: NodeJS.ErrnoException | null, stats: StatsFs) => void): void;
1127
+ export function statfs(
1128
+ path: PathLike,
1129
+ options:
1130
+ | (StatFsOptions & {
1131
+ bigint?: false | undefined;
1132
+ })
1133
+ | undefined,
1134
+ callback: (err: NodeJS.ErrnoException | null, stats: StatsFs) => void
1135
+ ): void;
1136
+ export function statfs(
1137
+ path: PathLike,
1138
+ options: StatFsOptions & {
1139
+ bigint: true;
1140
+ },
1141
+ callback: (err: NodeJS.ErrnoException | null, stats: BigIntStatsFs) => void
1142
+ ): void;
1143
+ export function statfs(path: PathLike, options: StatFsOptions | undefined, callback: (err: NodeJS.ErrnoException | null, stats: StatsFs | BigIntStatsFs) => void): void;
1144
+ export namespace statfs {
1145
+ /**
1146
+ * Asynchronous statfs(2) - Returns information about the mounted file system which contains path. The callback gets two arguments (err, stats) where stats is an <fs.StatFs> object.
1147
+ * @param path A path to an existing file or directory on the file system to be queried.
1148
+ */
1149
+ function __promisify__(
1150
+ path: PathLike,
1151
+ options?: StatFsOptions & {
1152
+ bigint?: false | undefined;
1153
+ }
1154
+ ): Promise<StatsFs>;
1155
+ function __promisify__(
1156
+ path: PathLike,
1157
+ options: StatFsOptions & {
1158
+ bigint: true;
1159
+ }
1160
+ ): Promise<BigIntStatsFs>;
1161
+ function __promisify__(path: PathLike, options?: StatFsOptions): Promise<StatsFs | BigIntStatsFs>;
1162
+ }
1163
+
1164
+ /**
1165
+ * Synchronous statfs(2). Returns information about the mounted file system which contains path. The callback gets two arguments (err, stats) where stats is an <fs.StatFs> object.
1166
+ * In case of an error, the err.code will be one of Common System Errors.
1167
+ * @param path A path to an existing file or directory on the file system to be queried.
1168
+ * @param callback
1169
+ */
1170
+ export function statfsSync(
1171
+ path: PathLike,
1172
+ options?: StatFsOptions & {
1173
+ bigint?: false | undefined;
1174
+ }
1175
+ ): StatsFs;
1176
+ export function statfsSync(
1177
+ path: PathLike,
1178
+ options: StatFsOptions & {
1179
+ bigint: true;
1180
+ }
1181
+ ): BigIntStatsFs;
1182
+
1183
+ export function statfsSync(path: PathLike, options?: StatFsOptions): StatsFs | BigIntStatsFs;
1084
1184
  /**
1085
1185
  * Synchronous lstat(2) - Get file status. Does not dereference symbolic links.
1086
1186
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
@@ -53,7 +53,7 @@ interface AbortController {
53
53
  /**
54
54
  * Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.
55
55
  */
56
- abort(): void;
56
+ abort(reason?: any): void;
57
57
  }
58
58
 
59
59
  /** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */
@@ -1,4 +1,4 @@
1
- // Type definitions for non-npm package Node.js 18.14
1
+ // Type definitions for non-npm package Node.js 18.15
2
2
  // Project: https://nodejs.org/
3
3
  // Definitions by: Microsoft TypeScript <https://github.com/Microsoft>
4
4
  // DefinitelyTyped <https://github.com/DefinitelyTyped>
@@ -269,6 +269,12 @@ declare module 'net' {
269
269
  * @since v6.1.0
270
270
  */
271
271
  readonly connecting: boolean;
272
+ /**
273
+ * This is `true` if the socket is not connected yet, either because `.connect()`
274
+ * has not yet been called or because it is still in the process of connecting (see `socket.connecting`).
275
+ * @since v10.16.0
276
+ */
277
+ readonly pending: boolean;
272
278
  /**
273
279
  * See `writable.destroyed` for further details.
274
280
  */
@@ -132,6 +132,13 @@ declare module 'os' {
132
132
  * @since v0.3.3
133
133
  */
134
134
  function cpus(): CpuInfo[];
135
+ /**
136
+ * Returns an estimate of the default amount of parallelism a program should use. Always returns a value greater than zero.
137
+ *
138
+ * This function is a small wrapper about libuv's [`uv_available_parallelism()`](https://docs.libuv.org/en/v1.x/misc.html#c.uv_available_parallelism).
139
+ * @since 18.4.0
140
+ */
141
+ function availableParallelism(): number;
135
142
  /**
136
143
  * Returns the operating system name as returned by [`uname(3)`](https://linux.die.net/man/3/uname). For example, it
137
144
  * returns `'Linux'` on Linux, `'Darwin'` on macOS, and `'Windows_NT'` on Windows.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "18.14.1",
3
+ "version": "18.15.3",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -232,6 +232,6 @@
232
232
  },
233
233
  "scripts": {},
234
234
  "dependencies": {},
235
- "typesPublisherContentHash": "4b700d8e69578ec73360139a785868405bb684e4fe62cd395573dccfde90213e",
235
+ "typesPublisherContentHash": "2b0bdc90cf6594c1dad97a20429a1c7b90e2dc449ce05846f01e2ecc1f0c0467",
236
236
  "typeScriptVersion": "4.2"
237
237
  }
@@ -62,6 +62,13 @@ declare module 'timers' {
62
62
  [Symbol.toPrimitive](): number;
63
63
  }
64
64
  }
65
+ /**
66
+ * Schedules execution of a one-time `callback` after `delay` milliseconds. The `callback` will likely not be invoked in precisely `delay` milliseconds.
67
+ * Node.js makes no guarantees about the exact timing of when callbacks will fire, nor of their ordering. The callback will be called as close as possible to the time specified.
68
+ * When `delay` is larger than `2147483647` or less than `1`, the `delay` will be set to `1`. Non-integer delays are truncated to an integer.
69
+ * If `callback` is not a function, a [TypeError](https://nodejs.org/api/errors.html#class-typeerror) will be thrown.
70
+ * @since v0.0.1
71
+ */
65
72
  function setTimeout<TArgs extends any[]>(callback: (...args: TArgs) => void, ms?: number, ...args: TArgs): NodeJS.Timeout;
66
73
  // util.promisify no rest args compability
67
74
  // tslint:disable-next-line void-return
@@ -47,6 +47,7 @@ declare module 'buffer' {
47
47
  import { BinaryLike } from 'node:crypto';
48
48
  import { ReadableStream as WebReadableStream } from 'node:stream/web';
49
49
  export function isUtf8(input: Buffer | ArrayBuffer | NodeJS.TypedArray): boolean;
50
+ export function isAscii(input: Buffer | ArrayBuffer | NodeJS.TypedArray): boolean;
50
51
  export const INSPECT_MAX_BYTES: number;
51
52
  export const kMaxLength: number;
52
53
  export const kStringMaxLength: number;
@@ -164,6 +165,35 @@ declare module 'buffer' {
164
165
  */
165
166
  stream(): WebReadableStream;
166
167
  }
168
+ export interface FileOptions {
169
+ /**
170
+ * One of either `'transparent'` or `'native'`. When set to `'native'`, line endings in string source parts will be
171
+ * converted to the platform native line-ending as specified by `require('node:os').EOL`.
172
+ */
173
+ endings?: 'native' | 'transparent';
174
+ /** The File content-type. */
175
+ type?: string;
176
+ /** The last modified date of the file. `Default`: Date.now(). */
177
+ lastModified?: number;
178
+ }
179
+ /**
180
+ * A [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File) provides information about files.
181
+ * @experimental
182
+ * @since v18.13.0
183
+ */
184
+ export class File extends Blob {
185
+ constructor(sources: Array<BinaryLike | Blob>, fileName: string, options?: FileOptions);
186
+ /**
187
+ * The name of the `File`.
188
+ * @since v18.13.0
189
+ */
190
+ readonly name: string;
191
+ /**
192
+ * The last modified date of the `File`.
193
+ * @since v18.13.0
194
+ */
195
+ readonly lastModified: number;
196
+ }
167
197
  export import atob = globalThis.atob;
168
198
  export import btoa = globalThis.btoa;
169
199
 
@@ -1190,11 +1190,13 @@ declare module 'crypto' {
1190
1190
  format?: KeyFormat | undefined;
1191
1191
  type?: 'pkcs1' | 'pkcs8' | 'sec1' | undefined;
1192
1192
  passphrase?: string | Buffer | undefined;
1193
+ encoding?: string | undefined;
1193
1194
  }
1194
1195
  interface PublicKeyInput {
1195
1196
  key: string | Buffer;
1196
1197
  format?: KeyFormat | undefined;
1197
1198
  type?: 'pkcs1' | 'spki' | undefined;
1199
+ encoding?: string | undefined;
1198
1200
  }
1199
1201
  /**
1200
1202
  * Asynchronously generates a new random secret key of the given `length`. The`type` will determine which validations will be performed on the `length`.
@@ -1305,6 +1307,7 @@ declare module 'crypto' {
1305
1307
  interface VerifyKeyObjectInput extends SigningOptions {
1306
1308
  key: KeyObject;
1307
1309
  }
1310
+ interface VerifyJsonWebKeyInput extends JsonWebKeyInput, SigningOptions {}
1308
1311
  type KeyLike = string | Buffer | KeyObject;
1309
1312
  /**
1310
1313
  * The `Sign` class is a utility for generating signatures. It can be used in one
@@ -1459,8 +1462,8 @@ declare module 'crypto' {
1459
1462
  * be passed instead of a public key.
1460
1463
  * @since v0.1.92
1461
1464
  */
1462
- verify(object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, signature: NodeJS.ArrayBufferView): boolean;
1463
- verify(object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, signature: string, signature_format?: BinaryToTextEncoding): boolean;
1465
+ verify(object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput, signature: NodeJS.ArrayBufferView): boolean;
1466
+ verify(object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput, signature: string, signature_format?: BinaryToTextEncoding): boolean;
1464
1467
  }
1465
1468
  /**
1466
1469
  * Creates a `DiffieHellman` key exchange object using the supplied `prime` and an
@@ -2968,11 +2971,16 @@ declare module 'crypto' {
2968
2971
  * If the `callback` function is provided this function uses libuv's threadpool.
2969
2972
  * @since v12.0.0
2970
2973
  */
2971
- function verify(algorithm: string | null | undefined, data: NodeJS.ArrayBufferView, key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, signature: NodeJS.ArrayBufferView): boolean;
2972
2974
  function verify(
2973
2975
  algorithm: string | null | undefined,
2974
2976
  data: NodeJS.ArrayBufferView,
2975
- key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput,
2977
+ key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput,
2978
+ signature: NodeJS.ArrayBufferView
2979
+ ): boolean;
2980
+ function verify(
2981
+ algorithm: string | null | undefined,
2982
+ data: NodeJS.ArrayBufferView,
2983
+ key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput,
2976
2984
  signature: NodeJS.ArrayBufferView,
2977
2985
  callback: (error: Error | null, result: boolean) => void
2978
2986
  ): void;
@@ -53,7 +53,7 @@ interface AbortController {
53
53
  /**
54
54
  * Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.
55
55
  */
56
- abort(): void;
56
+ abort(reason?: any): void;
57
57
  }
58
58
 
59
59
  /** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */
@@ -290,6 +290,12 @@ declare module 'net' {
290
290
  * @since v18.8.0
291
291
  */
292
292
  readonly localFamily?: string;
293
+ /**
294
+ * This is `true` if the socket is not connected yet, either because `.connect()`
295
+ * has not yet been called or because it is still in the process of connecting (see `socket.connecting`).
296
+ * @since v10.16.0
297
+ */
298
+ readonly pending: boolean;
293
299
  /**
294
300
  * This property represents the state of the connection as a string.
295
301
  * @see {https://nodejs.org/api/net.html#socketreadystate}
@@ -132,6 +132,13 @@ declare module 'os' {
132
132
  * @since v0.3.3
133
133
  */
134
134
  function cpus(): CpuInfo[];
135
+ /**
136
+ * Returns an estimate of the default amount of parallelism a program should use. Always returns a value greater than zero.
137
+ *
138
+ * This function is a small wrapper about libuv's [`uv_available_parallelism()`](https://docs.libuv.org/en/v1.x/misc.html#c.uv_available_parallelism).
139
+ * @since 18.4.0
140
+ */
141
+ function availableParallelism(): number;
135
142
  /**
136
143
  * Returns the operating system name as returned by [`uname(3)`](https://linux.die.net/man/3/uname). For example, it
137
144
  * returns `'Linux'` on Linux, `'Darwin'` on macOS, and `'Windows_NT'` on Windows.
@@ -1482,7 +1482,7 @@ declare module 'util' {
1482
1482
  /**
1483
1483
  * Returns an iterator over each of the name-value pairs in the parameters.
1484
1484
  */
1485
- entries(): IterableIterator<[name: string, value: string]>;
1485
+ entries(): IterableIterator<[string, string]>;
1486
1486
  /**
1487
1487
  * Returns the value of the first name-value pair whose name is `name`.
1488
1488
  * If there are no such pairs, `null` is returned.
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (https://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Thu, 23 Feb 2023 11:02:31 GMT
11
+ * Last updated: Tue, 14 Mar 2023 06:02:37 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
14
14
 
@@ -47,6 +47,7 @@ declare module 'buffer' {
47
47
  import { BinaryLike } from 'node:crypto';
48
48
  import { ReadableStream as WebReadableStream } from 'node:stream/web';
49
49
  export function isUtf8(input: Buffer | ArrayBuffer | NodeJS.TypedArray): boolean;
50
+ export function isAscii(input: Buffer | ArrayBuffer | NodeJS.TypedArray): boolean;
50
51
  export const INSPECT_MAX_BYTES: number;
51
52
  export const kMaxLength: number;
52
53
  export const kStringMaxLength: number;
@@ -164,6 +165,35 @@ declare module 'buffer' {
164
165
  */
165
166
  stream(): WebReadableStream;
166
167
  }
168
+ export interface FileOptions {
169
+ /**
170
+ * One of either `'transparent'` or `'native'`. When set to `'native'`, line endings in string source parts will be
171
+ * converted to the platform native line-ending as specified by `require('node:os').EOL`.
172
+ */
173
+ endings?: 'native' | 'transparent';
174
+ /** The File content-type. */
175
+ type?: string;
176
+ /** The last modified date of the file. `Default`: Date.now(). */
177
+ lastModified?: number;
178
+ }
179
+ /**
180
+ * A [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File) provides information about files.
181
+ * @experimental
182
+ * @since v18.13.0
183
+ */
184
+ export class File extends Blob {
185
+ constructor(sources: Array<BinaryLike | Blob>, fileName: string, options?: FileOptions);
186
+ /**
187
+ * The name of the `File`.
188
+ * @since v18.13.0
189
+ */
190
+ readonly name: string;
191
+ /**
192
+ * The last modified date of the `File`.
193
+ * @since v18.13.0
194
+ */
195
+ readonly lastModified: number;
196
+ }
167
197
  export import atob = globalThis.atob;
168
198
  export import btoa = globalThis.btoa;
169
199
 
@@ -1190,11 +1190,13 @@ declare module 'crypto' {
1190
1190
  format?: KeyFormat | undefined;
1191
1191
  type?: 'pkcs1' | 'pkcs8' | 'sec1' | undefined;
1192
1192
  passphrase?: string | Buffer | undefined;
1193
+ encoding?: string | undefined;
1193
1194
  }
1194
1195
  interface PublicKeyInput {
1195
1196
  key: string | Buffer;
1196
1197
  format?: KeyFormat | undefined;
1197
1198
  type?: 'pkcs1' | 'spki' | undefined;
1199
+ encoding?: string | undefined;
1198
1200
  }
1199
1201
  /**
1200
1202
  * Asynchronously generates a new random secret key of the given `length`. The`type` will determine which validations will be performed on the `length`.
@@ -1305,6 +1307,7 @@ declare module 'crypto' {
1305
1307
  interface VerifyKeyObjectInput extends SigningOptions {
1306
1308
  key: KeyObject;
1307
1309
  }
1310
+ interface VerifyJsonWebKeyInput extends JsonWebKeyInput, SigningOptions {}
1308
1311
  type KeyLike = string | Buffer | KeyObject;
1309
1312
  /**
1310
1313
  * The `Sign` class is a utility for generating signatures. It can be used in one
@@ -1459,8 +1462,8 @@ declare module 'crypto' {
1459
1462
  * be passed instead of a public key.
1460
1463
  * @since v0.1.92
1461
1464
  */
1462
- verify(object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, signature: NodeJS.ArrayBufferView): boolean;
1463
- verify(object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, signature: string, signature_format?: BinaryToTextEncoding): boolean;
1465
+ verify(object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput, signature: NodeJS.ArrayBufferView): boolean;
1466
+ verify(object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput, signature: string, signature_format?: BinaryToTextEncoding): boolean;
1464
1467
  }
1465
1468
  /**
1466
1469
  * Creates a `DiffieHellman` key exchange object using the supplied `prime` and an
@@ -2968,11 +2971,16 @@ declare module 'crypto' {
2968
2971
  * If the `callback` function is provided this function uses libuv's threadpool.
2969
2972
  * @since v12.0.0
2970
2973
  */
2971
- function verify(algorithm: string | null | undefined, data: NodeJS.ArrayBufferView, key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, signature: NodeJS.ArrayBufferView): boolean;
2972
2974
  function verify(
2973
2975
  algorithm: string | null | undefined,
2974
2976
  data: NodeJS.ArrayBufferView,
2975
- key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput,
2977
+ key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput,
2978
+ signature: NodeJS.ArrayBufferView
2979
+ ): boolean;
2980
+ function verify(
2981
+ algorithm: string | null | undefined,
2982
+ data: NodeJS.ArrayBufferView,
2983
+ key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput,
2976
2984
  signature: NodeJS.ArrayBufferView,
2977
2985
  callback: (error: Error | null, result: boolean) => void
2978
2986
  ): void;
@@ -14,6 +14,7 @@ declare module 'fs/promises' {
14
14
  import { ReadableStream } from 'node:stream/web';
15
15
  import {
16
16
  BigIntStats,
17
+ BigIntStatsFs,
17
18
  BufferEncodingOption,
18
19
  constants as fsConstants,
19
20
  CopyOptions,
@@ -30,7 +31,9 @@ declare module 'fs/promises' {
30
31
  RmDirOptions,
31
32
  RmOptions,
32
33
  StatOptions,
34
+ StatFsOptions,
33
35
  Stats,
36
+ StatsFs,
34
37
  TimeLike,
35
38
  WatchEventType,
36
39
  WatchOptions,
@@ -745,6 +748,24 @@ declare module 'fs/promises' {
745
748
  }
746
749
  ): Promise<BigIntStats>;
747
750
  function stat(path: PathLike, opts?: StatOptions): Promise<Stats | BigIntStats>;
751
+ /**
752
+ * @since v18.15.0
753
+ * @return Fulfills with an {fs.StatFs} for the file system.
754
+ */
755
+ function statfs(
756
+ path: PathLike,
757
+ opts?: StatFsOptions & {
758
+ bigint?: false | undefined;
759
+ }
760
+ ): Promise<StatsFs>;
761
+ function statfs(
762
+ path: PathLike,
763
+ opts: StatFsOptions & {
764
+ bigint: true;
765
+ }
766
+ ): Promise<BigIntStatsFs>;
767
+ function statfs(path: PathLike, opts?: StatFsOptions): Promise<StatsFs | BigIntStatsFs>;
768
+
748
769
  /**
749
770
  * Creates a new link from the `existingPath` to the `newPath`. See the POSIX [`link(2)`](http://man7.org/linux/man-pages/man2/link.2.html) documentation for more detail.
750
771
  * @since v10.0.0
@@ -131,6 +131,42 @@ declare module 'fs' {
131
131
  * @since v0.1.21
132
132
  */
133
133
  export class Stats {}
134
+
135
+ export interface StatsFsBase<T> {
136
+ /** Type of file system. */
137
+ type: T;
138
+ /** Optimal transfer block size. */
139
+ bsize: T;
140
+ /** Total data blocks in file system. */
141
+ blocks: T;
142
+ /** Free blocks in file system. */
143
+ bfree: T;
144
+ /** Available blocks for unprivileged users */
145
+ bavail: T;
146
+ /** Total file nodes in file system. */
147
+ files: T;
148
+ /** Free file nodes in file system. */
149
+ ffree: T;
150
+ }
151
+
152
+ export interface StatsFs extends StatsFsBase<number> {}
153
+
154
+ /**
155
+ * Provides information about a mounted file system
156
+ *
157
+ * Objects returned from {@link statfs} and {@link statfsSync} are of this type.
158
+ * If `bigint` in the `options` passed to those methods is true, the numeric values
159
+ * will be `bigint` instead of `number`.
160
+ * @since v18.15.0
161
+ */
162
+ export class StatsFs {}
163
+
164
+ export interface BigIntStatsFs extends StatsFsBase<bigint> {}
165
+
166
+ export interface StatFsOptions {
167
+ bigint?: boolean | undefined;
168
+ }
169
+
134
170
  /**
135
171
  * A representation of a directory entry, which can be a file or a subdirectory
136
172
  * within the directory, as returned by reading from an `fs.Dir`. The
@@ -1081,6 +1117,70 @@ declare module 'fs' {
1081
1117
  ): Promise<BigIntStats>;
1082
1118
  function __promisify__(path: PathLike, options?: StatOptions): Promise<Stats | BigIntStats>;
1083
1119
  }
1120
+ /**
1121
+ * Asynchronous statfs(2). Returns information about the mounted file system which contains path. The callback gets two arguments (err, stats) where stats is an <fs.StatFs> object.
1122
+ * In case of an error, the err.code will be one of Common System Errors.
1123
+ * @param path A path to an existing file or directory on the file system to be queried.
1124
+ * @param callback
1125
+ */
1126
+ export function statfs(path: PathLike, callback: (err: NodeJS.ErrnoException | null, stats: StatsFs) => void): void;
1127
+ export function statfs(
1128
+ path: PathLike,
1129
+ options:
1130
+ | (StatFsOptions & {
1131
+ bigint?: false | undefined;
1132
+ })
1133
+ | undefined,
1134
+ callback: (err: NodeJS.ErrnoException | null, stats: StatsFs) => void
1135
+ ): void;
1136
+ export function statfs(
1137
+ path: PathLike,
1138
+ options: StatFsOptions & {
1139
+ bigint: true;
1140
+ },
1141
+ callback: (err: NodeJS.ErrnoException | null, stats: BigIntStatsFs) => void
1142
+ ): void;
1143
+ export function statfs(path: PathLike, options: StatFsOptions | undefined, callback: (err: NodeJS.ErrnoException | null, stats: StatsFs | BigIntStatsFs) => void): void;
1144
+ export namespace statfs {
1145
+ /**
1146
+ * Asynchronous statfs(2) - Returns information about the mounted file system which contains path. The callback gets two arguments (err, stats) where stats is an <fs.StatFs> object.
1147
+ * @param path A path to an existing file or directory on the file system to be queried.
1148
+ */
1149
+ function __promisify__(
1150
+ path: PathLike,
1151
+ options?: StatFsOptions & {
1152
+ bigint?: false | undefined;
1153
+ }
1154
+ ): Promise<StatsFs>;
1155
+ function __promisify__(
1156
+ path: PathLike,
1157
+ options: StatFsOptions & {
1158
+ bigint: true;
1159
+ }
1160
+ ): Promise<BigIntStatsFs>;
1161
+ function __promisify__(path: PathLike, options?: StatFsOptions): Promise<StatsFs | BigIntStatsFs>;
1162
+ }
1163
+
1164
+ /**
1165
+ * Synchronous statfs(2). Returns information about the mounted file system which contains path. The callback gets two arguments (err, stats) where stats is an <fs.StatFs> object.
1166
+ * In case of an error, the err.code will be one of Common System Errors.
1167
+ * @param path A path to an existing file or directory on the file system to be queried.
1168
+ * @param callback
1169
+ */
1170
+ export function statfsSync(
1171
+ path: PathLike,
1172
+ options?: StatFsOptions & {
1173
+ bigint?: false | undefined;
1174
+ }
1175
+ ): StatsFs;
1176
+ export function statfsSync(
1177
+ path: PathLike,
1178
+ options: StatFsOptions & {
1179
+ bigint: true;
1180
+ }
1181
+ ): BigIntStatsFs;
1182
+
1183
+ export function statfsSync(path: PathLike, options?: StatFsOptions): StatsFs | BigIntStatsFs;
1084
1184
  /**
1085
1185
  * Synchronous lstat(2) - Get file status. Does not dereference symbolic links.
1086
1186
  * @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
@@ -53,7 +53,7 @@ interface AbortController {
53
53
  /**
54
54
  * Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.
55
55
  */
56
- abort(): void;
56
+ abort(reason?: any): void;
57
57
  }
58
58
 
59
59
  /** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */
@@ -1,4 +1,4 @@
1
- // Type definitions for non-npm package Node.js 18.14
1
+ // Type definitions for non-npm package Node.js 18.15
2
2
  // Project: https://nodejs.org/
3
3
  // Definitions by: Microsoft TypeScript <https://github.com/Microsoft>
4
4
  // DefinitelyTyped <https://github.com/DefinitelyTyped>