cloudstructs 0.6.11 → 0.6.12

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 (35) hide show
  1. package/.jsii +2 -2
  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/package.json +2 -2
  17. package/node_modules/@slack/logger/node_modules/@types/node/test.d.ts +62 -2
  18. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/test.d.ts +62 -2
  19. package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
  20. package/node_modules/@slack/web-api/node_modules/@types/node/package.json +2 -2
  21. package/node_modules/@slack/web-api/node_modules/@types/node/test.d.ts +62 -2
  22. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/test.d.ts +62 -2
  23. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
  24. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +2 -2
  25. package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +62 -2
  26. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/test.d.ts +62 -2
  27. package/node_modules/@types/is-stream/node_modules/@types/node/README.md +1 -1
  28. package/node_modules/@types/is-stream/node_modules/@types/node/package.json +2 -2
  29. package/node_modules/@types/is-stream/node_modules/@types/node/test.d.ts +62 -2
  30. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/test.d.ts +62 -2
  31. package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
  32. package/node_modules/@types/responselike/node_modules/@types/node/package.json +2 -2
  33. package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +62 -2
  34. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/test.d.ts +62 -2
  35. package/package.json +4 -6
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * The `node:test` module provides a standalone testing module.
3
- * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/test.js)
3
+ * @see [source](https://github.com/nodejs/node/blob/v18.8.0/lib/test.js)
4
4
  */
5
5
  declare module 'node:test' {
6
6
  /**
@@ -310,5 +310,65 @@ declare module 'node:test' {
310
310
  todo?: boolean | string;
311
311
  }
312
312
 
313
- export { test as default, run, test, describe, it };
313
+ /**
314
+ * This function is used to create a hook running before running a suite.
315
+ * @param fn The hook function. If the hook uses callbacks, the callback function is passed as
316
+ * the second argument. Default: A no-op function.
317
+ * @param options Configuration options for the hook.
318
+ * @since v18.8.0
319
+ */
320
+ function before(fn?: HookFn, options?: HookOptions): void;
321
+
322
+ /**
323
+ * This function is used to create a hook running after running a suite.
324
+ * @param fn The hook function. If the hook uses callbacks, the callback function is passed as
325
+ * the second argument. Default: A no-op function.
326
+ * @param options Configuration options for the hook.
327
+ * @since v18.8.0
328
+ */
329
+ function after(fn?: HookFn, options?: HookOptions): void;
330
+
331
+ /**
332
+ * This function is used to create a hook running before each subtest of the current suite.
333
+ * @param fn The hook function. If the hook uses callbacks, the callback function is passed as
334
+ * the second argument. Default: A no-op function.
335
+ * @param options Configuration options for the hook.
336
+ * @since v18.8.0
337
+ */
338
+ function beforeEach(fn?: HookFn, options?: HookOptions): void;
339
+
340
+ /**
341
+ * This function is used to create a hook running after each subtest of the current test.
342
+ * @param fn The hook function. If the hook uses callbacks, the callback function is passed as
343
+ * the second argument. Default: A no-op function.
344
+ * @param options Configuration options for the hook.
345
+ * @since v18.8.0
346
+ */
347
+ function afterEach(fn?: HookFn, options?: HookOptions): void;
348
+
349
+ /**
350
+ * The hook function. If the hook uses callbacks, the callback function is passed as the
351
+ * second argument.
352
+ */
353
+ type HookFn = (done: (result?: any) => void) => any;
354
+
355
+ /**
356
+ * Configuration options for hooks.
357
+ * @since v18.8.0
358
+ */
359
+ interface HookOptions {
360
+ /**
361
+ * Allows aborting an in-progress hook.
362
+ */
363
+ signal?: AbortSignal;
364
+
365
+ /**
366
+ * A number of milliseconds the hook will fail after. If unspecified, subtests inherit this
367
+ * value from their parent.
368
+ * @default Infinity
369
+ */
370
+ timeout?: number;
371
+ }
372
+
373
+ export { test as default, run, test, describe, it, before, after, beforeEach, afterEach };
314
374
  }
@@ -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: Sun, 30 Oct 2022 19:32:58 GMT
11
+ * Last updated: Tue, 01 Nov 2022 09:32:58 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
14
14
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "18.11.8",
3
+ "version": "18.11.9",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -227,6 +227,6 @@
227
227
  },
228
228
  "scripts": {},
229
229
  "dependencies": {},
230
- "typesPublisherContentHash": "a23a6d5ceb48ac0215ccd7cba47e75f2a3ae678b228d576c89294138777a2847",
230
+ "typesPublisherContentHash": "c4994f0d5655c5ba44d4248f7f2765c3b1f8319a258377d18d73093af02d11b3",
231
231
  "typeScriptVersion": "4.1"
232
232
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * The `node:test` module provides a standalone testing module.
3
- * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/test.js)
3
+ * @see [source](https://github.com/nodejs/node/blob/v18.8.0/lib/test.js)
4
4
  */
5
5
  declare module 'node:test' {
6
6
  /**
@@ -310,5 +310,65 @@ declare module 'node:test' {
310
310
  todo?: boolean | string;
311
311
  }
312
312
 
313
- export { test as default, run, test, describe, it };
313
+ /**
314
+ * This function is used to create a hook running before running a suite.
315
+ * @param fn The hook function. If the hook uses callbacks, the callback function is passed as
316
+ * the second argument. Default: A no-op function.
317
+ * @param options Configuration options for the hook.
318
+ * @since v18.8.0
319
+ */
320
+ function before(fn?: HookFn, options?: HookOptions): void;
321
+
322
+ /**
323
+ * This function is used to create a hook running after running a suite.
324
+ * @param fn The hook function. If the hook uses callbacks, the callback function is passed as
325
+ * the second argument. Default: A no-op function.
326
+ * @param options Configuration options for the hook.
327
+ * @since v18.8.0
328
+ */
329
+ function after(fn?: HookFn, options?: HookOptions): void;
330
+
331
+ /**
332
+ * This function is used to create a hook running before each subtest of the current suite.
333
+ * @param fn The hook function. If the hook uses callbacks, the callback function is passed as
334
+ * the second argument. Default: A no-op function.
335
+ * @param options Configuration options for the hook.
336
+ * @since v18.8.0
337
+ */
338
+ function beforeEach(fn?: HookFn, options?: HookOptions): void;
339
+
340
+ /**
341
+ * This function is used to create a hook running after each subtest of the current test.
342
+ * @param fn The hook function. If the hook uses callbacks, the callback function is passed as
343
+ * the second argument. Default: A no-op function.
344
+ * @param options Configuration options for the hook.
345
+ * @since v18.8.0
346
+ */
347
+ function afterEach(fn?: HookFn, options?: HookOptions): void;
348
+
349
+ /**
350
+ * The hook function. If the hook uses callbacks, the callback function is passed as the
351
+ * second argument.
352
+ */
353
+ type HookFn = (done: (result?: any) => void) => any;
354
+
355
+ /**
356
+ * Configuration options for hooks.
357
+ * @since v18.8.0
358
+ */
359
+ interface HookOptions {
360
+ /**
361
+ * Allows aborting an in-progress hook.
362
+ */
363
+ signal?: AbortSignal;
364
+
365
+ /**
366
+ * A number of milliseconds the hook will fail after. If unspecified, subtests inherit this
367
+ * value from their parent.
368
+ * @default Infinity
369
+ */
370
+ timeout?: number;
371
+ }
372
+
373
+ export { test as default, run, test, describe, it, before, after, beforeEach, afterEach };
314
374
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * The `node:test` module provides a standalone testing module.
3
- * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/test.js)
3
+ * @see [source](https://github.com/nodejs/node/blob/v18.8.0/lib/test.js)
4
4
  */
5
5
  declare module 'node:test' {
6
6
  /**
@@ -310,5 +310,65 @@ declare module 'node:test' {
310
310
  todo?: boolean | string;
311
311
  }
312
312
 
313
- export { test as default, run, test, describe, it };
313
+ /**
314
+ * This function is used to create a hook running before running a suite.
315
+ * @param fn The hook function. If the hook uses callbacks, the callback function is passed as
316
+ * the second argument. Default: A no-op function.
317
+ * @param options Configuration options for the hook.
318
+ * @since v18.8.0
319
+ */
320
+ function before(fn?: HookFn, options?: HookOptions): void;
321
+
322
+ /**
323
+ * This function is used to create a hook running after running a suite.
324
+ * @param fn The hook function. If the hook uses callbacks, the callback function is passed as
325
+ * the second argument. Default: A no-op function.
326
+ * @param options Configuration options for the hook.
327
+ * @since v18.8.0
328
+ */
329
+ function after(fn?: HookFn, options?: HookOptions): void;
330
+
331
+ /**
332
+ * This function is used to create a hook running before each subtest of the current suite.
333
+ * @param fn The hook function. If the hook uses callbacks, the callback function is passed as
334
+ * the second argument. Default: A no-op function.
335
+ * @param options Configuration options for the hook.
336
+ * @since v18.8.0
337
+ */
338
+ function beforeEach(fn?: HookFn, options?: HookOptions): void;
339
+
340
+ /**
341
+ * This function is used to create a hook running after each subtest of the current test.
342
+ * @param fn The hook function. If the hook uses callbacks, the callback function is passed as
343
+ * the second argument. Default: A no-op function.
344
+ * @param options Configuration options for the hook.
345
+ * @since v18.8.0
346
+ */
347
+ function afterEach(fn?: HookFn, options?: HookOptions): void;
348
+
349
+ /**
350
+ * The hook function. If the hook uses callbacks, the callback function is passed as the
351
+ * second argument.
352
+ */
353
+ type HookFn = (done: (result?: any) => void) => any;
354
+
355
+ /**
356
+ * Configuration options for hooks.
357
+ * @since v18.8.0
358
+ */
359
+ interface HookOptions {
360
+ /**
361
+ * Allows aborting an in-progress hook.
362
+ */
363
+ signal?: AbortSignal;
364
+
365
+ /**
366
+ * A number of milliseconds the hook will fail after. If unspecified, subtests inherit this
367
+ * value from their parent.
368
+ * @default Infinity
369
+ */
370
+ timeout?: number;
371
+ }
372
+
373
+ export { test as default, run, test, describe, it, before, after, beforeEach, afterEach };
314
374
  }
@@ -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: Sun, 30 Oct 2022 19:32:58 GMT
11
+ * Last updated: Tue, 01 Nov 2022 09:32:58 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
14
14
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "18.11.8",
3
+ "version": "18.11.9",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -227,6 +227,6 @@
227
227
  },
228
228
  "scripts": {},
229
229
  "dependencies": {},
230
- "typesPublisherContentHash": "a23a6d5ceb48ac0215ccd7cba47e75f2a3ae678b228d576c89294138777a2847",
230
+ "typesPublisherContentHash": "c4994f0d5655c5ba44d4248f7f2765c3b1f8319a258377d18d73093af02d11b3",
231
231
  "typeScriptVersion": "4.1"
232
232
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * The `node:test` module provides a standalone testing module.
3
- * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/test.js)
3
+ * @see [source](https://github.com/nodejs/node/blob/v18.8.0/lib/test.js)
4
4
  */
5
5
  declare module 'node:test' {
6
6
  /**
@@ -310,5 +310,65 @@ declare module 'node:test' {
310
310
  todo?: boolean | string;
311
311
  }
312
312
 
313
- export { test as default, run, test, describe, it };
313
+ /**
314
+ * This function is used to create a hook running before running a suite.
315
+ * @param fn The hook function. If the hook uses callbacks, the callback function is passed as
316
+ * the second argument. Default: A no-op function.
317
+ * @param options Configuration options for the hook.
318
+ * @since v18.8.0
319
+ */
320
+ function before(fn?: HookFn, options?: HookOptions): void;
321
+
322
+ /**
323
+ * This function is used to create a hook running after running a suite.
324
+ * @param fn The hook function. If the hook uses callbacks, the callback function is passed as
325
+ * the second argument. Default: A no-op function.
326
+ * @param options Configuration options for the hook.
327
+ * @since v18.8.0
328
+ */
329
+ function after(fn?: HookFn, options?: HookOptions): void;
330
+
331
+ /**
332
+ * This function is used to create a hook running before each subtest of the current suite.
333
+ * @param fn The hook function. If the hook uses callbacks, the callback function is passed as
334
+ * the second argument. Default: A no-op function.
335
+ * @param options Configuration options for the hook.
336
+ * @since v18.8.0
337
+ */
338
+ function beforeEach(fn?: HookFn, options?: HookOptions): void;
339
+
340
+ /**
341
+ * This function is used to create a hook running after each subtest of the current test.
342
+ * @param fn The hook function. If the hook uses callbacks, the callback function is passed as
343
+ * the second argument. Default: A no-op function.
344
+ * @param options Configuration options for the hook.
345
+ * @since v18.8.0
346
+ */
347
+ function afterEach(fn?: HookFn, options?: HookOptions): void;
348
+
349
+ /**
350
+ * The hook function. If the hook uses callbacks, the callback function is passed as the
351
+ * second argument.
352
+ */
353
+ type HookFn = (done: (result?: any) => void) => any;
354
+
355
+ /**
356
+ * Configuration options for hooks.
357
+ * @since v18.8.0
358
+ */
359
+ interface HookOptions {
360
+ /**
361
+ * Allows aborting an in-progress hook.
362
+ */
363
+ signal?: AbortSignal;
364
+
365
+ /**
366
+ * A number of milliseconds the hook will fail after. If unspecified, subtests inherit this
367
+ * value from their parent.
368
+ * @default Infinity
369
+ */
370
+ timeout?: number;
371
+ }
372
+
373
+ export { test as default, run, test, describe, it, before, after, beforeEach, afterEach };
314
374
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * The `node:test` module provides a standalone testing module.
3
- * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/test.js)
3
+ * @see [source](https://github.com/nodejs/node/blob/v18.8.0/lib/test.js)
4
4
  */
5
5
  declare module 'node:test' {
6
6
  /**
@@ -310,5 +310,65 @@ declare module 'node:test' {
310
310
  todo?: boolean | string;
311
311
  }
312
312
 
313
- export { test as default, run, test, describe, it };
313
+ /**
314
+ * This function is used to create a hook running before running a suite.
315
+ * @param fn The hook function. If the hook uses callbacks, the callback function is passed as
316
+ * the second argument. Default: A no-op function.
317
+ * @param options Configuration options for the hook.
318
+ * @since v18.8.0
319
+ */
320
+ function before(fn?: HookFn, options?: HookOptions): void;
321
+
322
+ /**
323
+ * This function is used to create a hook running after running a suite.
324
+ * @param fn The hook function. If the hook uses callbacks, the callback function is passed as
325
+ * the second argument. Default: A no-op function.
326
+ * @param options Configuration options for the hook.
327
+ * @since v18.8.0
328
+ */
329
+ function after(fn?: HookFn, options?: HookOptions): void;
330
+
331
+ /**
332
+ * This function is used to create a hook running before each subtest of the current suite.
333
+ * @param fn The hook function. If the hook uses callbacks, the callback function is passed as
334
+ * the second argument. Default: A no-op function.
335
+ * @param options Configuration options for the hook.
336
+ * @since v18.8.0
337
+ */
338
+ function beforeEach(fn?: HookFn, options?: HookOptions): void;
339
+
340
+ /**
341
+ * This function is used to create a hook running after each subtest of the current test.
342
+ * @param fn The hook function. If the hook uses callbacks, the callback function is passed as
343
+ * the second argument. Default: A no-op function.
344
+ * @param options Configuration options for the hook.
345
+ * @since v18.8.0
346
+ */
347
+ function afterEach(fn?: HookFn, options?: HookOptions): void;
348
+
349
+ /**
350
+ * The hook function. If the hook uses callbacks, the callback function is passed as the
351
+ * second argument.
352
+ */
353
+ type HookFn = (done: (result?: any) => void) => any;
354
+
355
+ /**
356
+ * Configuration options for hooks.
357
+ * @since v18.8.0
358
+ */
359
+ interface HookOptions {
360
+ /**
361
+ * Allows aborting an in-progress hook.
362
+ */
363
+ signal?: AbortSignal;
364
+
365
+ /**
366
+ * A number of milliseconds the hook will fail after. If unspecified, subtests inherit this
367
+ * value from their parent.
368
+ * @default Infinity
369
+ */
370
+ timeout?: number;
371
+ }
372
+
373
+ export { test as default, run, test, describe, it, before, after, beforeEach, afterEach };
314
374
  }
@@ -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: Sun, 30 Oct 2022 19:32:58 GMT
11
+ * Last updated: Tue, 01 Nov 2022 09:32:58 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
14
14
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "18.11.8",
3
+ "version": "18.11.9",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -227,6 +227,6 @@
227
227
  },
228
228
  "scripts": {},
229
229
  "dependencies": {},
230
- "typesPublisherContentHash": "a23a6d5ceb48ac0215ccd7cba47e75f2a3ae678b228d576c89294138777a2847",
230
+ "typesPublisherContentHash": "c4994f0d5655c5ba44d4248f7f2765c3b1f8319a258377d18d73093af02d11b3",
231
231
  "typeScriptVersion": "4.1"
232
232
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * The `node:test` module provides a standalone testing module.
3
- * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/test.js)
3
+ * @see [source](https://github.com/nodejs/node/blob/v18.8.0/lib/test.js)
4
4
  */
5
5
  declare module 'node:test' {
6
6
  /**
@@ -310,5 +310,65 @@ declare module 'node:test' {
310
310
  todo?: boolean | string;
311
311
  }
312
312
 
313
- export { test as default, run, test, describe, it };
313
+ /**
314
+ * This function is used to create a hook running before running a suite.
315
+ * @param fn The hook function. If the hook uses callbacks, the callback function is passed as
316
+ * the second argument. Default: A no-op function.
317
+ * @param options Configuration options for the hook.
318
+ * @since v18.8.0
319
+ */
320
+ function before(fn?: HookFn, options?: HookOptions): void;
321
+
322
+ /**
323
+ * This function is used to create a hook running after running a suite.
324
+ * @param fn The hook function. If the hook uses callbacks, the callback function is passed as
325
+ * the second argument. Default: A no-op function.
326
+ * @param options Configuration options for the hook.
327
+ * @since v18.8.0
328
+ */
329
+ function after(fn?: HookFn, options?: HookOptions): void;
330
+
331
+ /**
332
+ * This function is used to create a hook running before each subtest of the current suite.
333
+ * @param fn The hook function. If the hook uses callbacks, the callback function is passed as
334
+ * the second argument. Default: A no-op function.
335
+ * @param options Configuration options for the hook.
336
+ * @since v18.8.0
337
+ */
338
+ function beforeEach(fn?: HookFn, options?: HookOptions): void;
339
+
340
+ /**
341
+ * This function is used to create a hook running after each subtest of the current test.
342
+ * @param fn The hook function. If the hook uses callbacks, the callback function is passed as
343
+ * the second argument. Default: A no-op function.
344
+ * @param options Configuration options for the hook.
345
+ * @since v18.8.0
346
+ */
347
+ function afterEach(fn?: HookFn, options?: HookOptions): void;
348
+
349
+ /**
350
+ * The hook function. If the hook uses callbacks, the callback function is passed as the
351
+ * second argument.
352
+ */
353
+ type HookFn = (done: (result?: any) => void) => any;
354
+
355
+ /**
356
+ * Configuration options for hooks.
357
+ * @since v18.8.0
358
+ */
359
+ interface HookOptions {
360
+ /**
361
+ * Allows aborting an in-progress hook.
362
+ */
363
+ signal?: AbortSignal;
364
+
365
+ /**
366
+ * A number of milliseconds the hook will fail after. If unspecified, subtests inherit this
367
+ * value from their parent.
368
+ * @default Infinity
369
+ */
370
+ timeout?: number;
371
+ }
372
+
373
+ export { test as default, run, test, describe, it, before, after, beforeEach, afterEach };
314
374
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * The `node:test` module provides a standalone testing module.
3
- * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/test.js)
3
+ * @see [source](https://github.com/nodejs/node/blob/v18.8.0/lib/test.js)
4
4
  */
5
5
  declare module 'node:test' {
6
6
  /**
@@ -310,5 +310,65 @@ declare module 'node:test' {
310
310
  todo?: boolean | string;
311
311
  }
312
312
 
313
- export { test as default, run, test, describe, it };
313
+ /**
314
+ * This function is used to create a hook running before running a suite.
315
+ * @param fn The hook function. If the hook uses callbacks, the callback function is passed as
316
+ * the second argument. Default: A no-op function.
317
+ * @param options Configuration options for the hook.
318
+ * @since v18.8.0
319
+ */
320
+ function before(fn?: HookFn, options?: HookOptions): void;
321
+
322
+ /**
323
+ * This function is used to create a hook running after running a suite.
324
+ * @param fn The hook function. If the hook uses callbacks, the callback function is passed as
325
+ * the second argument. Default: A no-op function.
326
+ * @param options Configuration options for the hook.
327
+ * @since v18.8.0
328
+ */
329
+ function after(fn?: HookFn, options?: HookOptions): void;
330
+
331
+ /**
332
+ * This function is used to create a hook running before each subtest of the current suite.
333
+ * @param fn The hook function. If the hook uses callbacks, the callback function is passed as
334
+ * the second argument. Default: A no-op function.
335
+ * @param options Configuration options for the hook.
336
+ * @since v18.8.0
337
+ */
338
+ function beforeEach(fn?: HookFn, options?: HookOptions): void;
339
+
340
+ /**
341
+ * This function is used to create a hook running after each subtest of the current test.
342
+ * @param fn The hook function. If the hook uses callbacks, the callback function is passed as
343
+ * the second argument. Default: A no-op function.
344
+ * @param options Configuration options for the hook.
345
+ * @since v18.8.0
346
+ */
347
+ function afterEach(fn?: HookFn, options?: HookOptions): void;
348
+
349
+ /**
350
+ * The hook function. If the hook uses callbacks, the callback function is passed as the
351
+ * second argument.
352
+ */
353
+ type HookFn = (done: (result?: any) => void) => any;
354
+
355
+ /**
356
+ * Configuration options for hooks.
357
+ * @since v18.8.0
358
+ */
359
+ interface HookOptions {
360
+ /**
361
+ * Allows aborting an in-progress hook.
362
+ */
363
+ signal?: AbortSignal;
364
+
365
+ /**
366
+ * A number of milliseconds the hook will fail after. If unspecified, subtests inherit this
367
+ * value from their parent.
368
+ * @default Infinity
369
+ */
370
+ timeout?: number;
371
+ }
372
+
373
+ export { test as default, run, test, describe, it, before, after, beforeEach, afterEach };
314
374
  }
package/package.json CHANGED
@@ -98,10 +98,10 @@
98
98
  "@typescript-eslint/parser": "^5",
99
99
  "aws-cdk": "^2",
100
100
  "aws-cdk-lib": "2.1.0",
101
- "aws-sdk": "^2.1244.0",
101
+ "aws-sdk": "^2.1247.0",
102
102
  "aws-sdk-mock": "^5.8.0",
103
103
  "constructs": "10.0.5",
104
- "esbuild": "^0.15.12",
104
+ "esbuild": "^0.15.13",
105
105
  "eslint": "^8",
106
106
  "eslint-import-resolver-node": "^0.3.6",
107
107
  "eslint-import-resolver-typescript": "^2.7.1",
@@ -115,7 +115,7 @@
115
115
  "json-schema": "^0.4.0",
116
116
  "nock": "^13.2.9",
117
117
  "npm-check-updates": "^16",
118
- "projen": "^0.65.7",
118
+ "projen": "^0.65.13",
119
119
  "standard-version": "^9",
120
120
  "ts-jest": "^27",
121
121
  "ts-node": "^10.9.1",
@@ -140,7 +140,7 @@
140
140
  ],
141
141
  "main": "lib/index.js",
142
142
  "license": "Apache-2.0",
143
- "version": "0.6.11",
143
+ "version": "0.6.12",
144
144
  "jest": {
145
145
  "testMatch": [
146
146
  "<rootDir>/src/**/__tests__/**/*.ts?(x)",
@@ -207,8 +207,6 @@
207
207
  }
208
208
  },
209
209
  "resolutions": {
210
- "@types/responselike": "1.0.0",
211
- "got": "12.3.1",
212
210
  "@types/prettier": "2.6.0"
213
211
  },
214
212
  "exports": {