cloudstructs 0.4.21 → 0.4.24

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 (134) hide show
  1. package/.gitattributes +0 -1
  2. package/.jsii +3 -3
  3. package/assets/email-receiver/s3.lambda/index.js +8 -13
  4. package/assets/email-receiver/whitelist.lambda/index.js +8 -13
  5. package/assets/slack-app/provider.lambda/index.js +196 -33
  6. package/assets/slack-events/events.lambda/index.js +9 -16
  7. package/assets/slack-textract/detect.lambda/index.js +272 -44
  8. package/assets/toolkit-cleaner/clean-images.lambda/index.js +8 -13
  9. package/assets/toolkit-cleaner/clean-objects.lambda/index.js +9 -16
  10. package/assets/toolkit-cleaner/extract-template-hashes.lambda/index.js +8 -13
  11. package/assets/toolkit-cleaner/get-stack-names.lambda/index.js +8 -13
  12. package/assets/url-shortener/shortener.lambda/index.js +8 -13
  13. package/changelog.md +1 -1
  14. package/lib/codecommit-mirror/index.js +2 -2
  15. package/lib/ecs-service-roller/index.js +2 -2
  16. package/lib/email-receiver/receiver.js +1 -1
  17. package/lib/saml-identity-provider/index.js +2 -2
  18. package/lib/slack-app/manifest.js +1 -1
  19. package/lib/slack-app/slack-app.js +2 -2
  20. package/lib/slack-events/index.js +1 -1
  21. package/lib/slack-textract/index.js +1 -1
  22. package/lib/state-machine-cr-provider/index.js +1 -1
  23. package/lib/static-website/index.js +14 -3
  24. package/lib/toolkit-cleaner/index.js +1 -1
  25. package/lib/url-shortener/index.js +1 -1
  26. package/node_modules/@slack/logger/node_modules/@types/node/README.md +2 -2
  27. package/node_modules/@slack/logger/node_modules/@types/node/async_hooks.d.ts +1 -1
  28. package/node_modules/@slack/logger/node_modules/@types/node/buffer.d.ts +1 -1
  29. package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +41 -10
  30. package/node_modules/@slack/logger/node_modules/@types/node/diagnostics_channel.d.ts +19 -1
  31. package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +48 -14
  32. package/node_modules/@slack/logger/node_modules/@types/node/globals.d.ts +12 -2
  33. package/node_modules/@slack/logger/node_modules/@types/node/http2.d.ts +1 -0
  34. package/node_modules/@slack/logger/node_modules/@types/node/net.d.ts +7 -0
  35. package/node_modules/@slack/logger/node_modules/@types/node/package.json +3 -3
  36. package/node_modules/@slack/logger/node_modules/@types/node/tls.d.ts +1 -1
  37. package/node_modules/@slack/web-api/node_modules/@types/node/README.md +2 -2
  38. package/node_modules/@slack/web-api/node_modules/@types/node/async_hooks.d.ts +1 -1
  39. package/node_modules/@slack/web-api/node_modules/@types/node/buffer.d.ts +1 -1
  40. package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +41 -10
  41. package/node_modules/@slack/web-api/node_modules/@types/node/diagnostics_channel.d.ts +19 -1
  42. package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +48 -14
  43. package/node_modules/@slack/web-api/node_modules/@types/node/globals.d.ts +12 -2
  44. package/node_modules/@slack/web-api/node_modules/@types/node/http2.d.ts +1 -0
  45. package/node_modules/@slack/web-api/node_modules/@types/node/net.d.ts +7 -0
  46. package/node_modules/@slack/web-api/node_modules/@types/node/package.json +3 -3
  47. package/node_modules/@slack/web-api/node_modules/@types/node/tls.d.ts +1 -1
  48. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +2 -2
  49. package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +1 -1
  50. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +1 -1
  51. package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +41 -10
  52. package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +19 -1
  53. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +48 -14
  54. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +12 -2
  55. package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +1 -0
  56. package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +7 -0
  57. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +3 -3
  58. package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +1 -1
  59. package/node_modules/@types/is-stream/node_modules/@types/node/README.md +2 -2
  60. package/node_modules/@types/is-stream/node_modules/@types/node/async_hooks.d.ts +1 -1
  61. package/node_modules/@types/is-stream/node_modules/@types/node/buffer.d.ts +1 -1
  62. package/node_modules/@types/is-stream/node_modules/@types/node/crypto.d.ts +41 -10
  63. package/node_modules/@types/is-stream/node_modules/@types/node/diagnostics_channel.d.ts +19 -1
  64. package/node_modules/@types/is-stream/node_modules/@types/node/fs.d.ts +48 -14
  65. package/node_modules/@types/is-stream/node_modules/@types/node/globals.d.ts +12 -2
  66. package/node_modules/@types/is-stream/node_modules/@types/node/http2.d.ts +1 -0
  67. package/node_modules/@types/is-stream/node_modules/@types/node/net.d.ts +7 -0
  68. package/node_modules/@types/is-stream/node_modules/@types/node/package.json +3 -3
  69. package/node_modules/@types/is-stream/node_modules/@types/node/tls.d.ts +1 -1
  70. package/node_modules/@types/json-buffer/LICENSE +21 -0
  71. package/node_modules/@types/json-buffer/README.md +16 -0
  72. package/node_modules/@types/json-buffer/index.d.ts +19 -0
  73. package/node_modules/@types/json-buffer/package.json +24 -0
  74. package/node_modules/@types/keyv/README.md +1 -1
  75. package/node_modules/@types/keyv/index.d.ts +16 -3
  76. package/node_modules/@types/keyv/node_modules/@types/node/README.md +2 -2
  77. package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +1 -1
  78. package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +1 -1
  79. package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +41 -10
  80. package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +19 -1
  81. package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +48 -14
  82. package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +12 -2
  83. package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +1 -0
  84. package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +7 -0
  85. package/node_modules/@types/keyv/node_modules/@types/node/package.json +3 -3
  86. package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +1 -1
  87. package/node_modules/@types/keyv/package.json +3 -3
  88. package/node_modules/@types/responselike/node_modules/@types/node/README.md +2 -2
  89. package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +1 -1
  90. package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +1 -1
  91. package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +41 -10
  92. package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +19 -1
  93. package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +48 -14
  94. package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +12 -2
  95. package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +1 -0
  96. package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +7 -0
  97. package/node_modules/@types/responselike/node_modules/@types/node/package.json +3 -3
  98. package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +1 -1
  99. package/node_modules/@types/retry/LICENSE +21 -21
  100. package/node_modules/@types/retry/README.md +4 -4
  101. package/node_modules/@types/retry/index.d.ts +9 -9
  102. package/node_modules/@types/retry/package.json +5 -7
  103. package/node_modules/compress-brotli/LICENSE.md +21 -0
  104. package/node_modules/compress-brotli/README.md +125 -0
  105. package/node_modules/compress-brotli/package.json +97 -0
  106. package/node_modules/compress-brotli/src/index.d.ts +36 -0
  107. package/node_modules/compress-brotli/src/index.js +45 -0
  108. package/node_modules/compress-brotli/src/merge-options.js +18 -0
  109. package/node_modules/follow-redirects/README.md +8 -1
  110. package/node_modules/follow-redirects/index.js +23 -4
  111. package/node_modules/follow-redirects/package.json +1 -1
  112. package/node_modules/keyv/package.json +55 -46
  113. package/node_modules/keyv/src/index.d.ts +89 -0
  114. package/node_modules/keyv/src/index.js +177 -25
  115. package/node_modules/mime-db/HISTORY.md +8 -0
  116. package/node_modules/mime-db/LICENSE +19 -18
  117. package/node_modules/mime-db/README.md +1 -1
  118. package/node_modules/mime-db/db.json +54 -6
  119. package/node_modules/mime-db/index.js +1 -0
  120. package/node_modules/mime-db/package.json +5 -4
  121. package/node_modules/mime-types/HISTORY.md +9 -0
  122. package/node_modules/mime-types/README.md +1 -1
  123. package/node_modules/mime-types/package.json +5 -5
  124. package/node_modules/p-retry/package.json +2 -2
  125. package/package.json +14 -14
  126. package/releasetag.txt +1 -1
  127. package/version.txt +1 -1
  128. package/node_modules/keyv/.nyc_output/5d6b8dd1-67cf-42ee-8492-c8ae62ce826c.json +0 -1
  129. package/node_modules/keyv/.nyc_output/ce27532e-5888-46d4-ae10-5a71058d3f0c.json +0 -1
  130. package/node_modules/keyv/.nyc_output/processinfo/5d6b8dd1-67cf-42ee-8492-c8ae62ce826c.json +0 -1
  131. package/node_modules/keyv/.nyc_output/processinfo/ce27532e-5888-46d4-ae10-5a71058d3f0c.json +0 -1
  132. package/node_modules/keyv/.nyc_output/processinfo/index.json +0 -1
  133. package/node_modules/keyv/test/test.js +0 -130
  134. package/node_modules/keyv/test/testdb.sqlite +0 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "17.0.21",
3
+ "version": "17.0.31",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -215,6 +215,6 @@
215
215
  },
216
216
  "scripts": {},
217
217
  "dependencies": {},
218
- "typesPublisherContentHash": "6e1f9bf207ef50d030685f014289b031aec80ada5d2510b91e8936256f960cde",
219
- "typeScriptVersion": "3.8"
218
+ "typesPublisherContentHash": "187e51e75f3e87938751363254f337ef4fab9306b9bb5a7d36cb895b7c95c5e2",
219
+ "typeScriptVersion": "3.9"
220
220
  }
@@ -723,7 +723,7 @@ declare module 'tls' {
723
723
  * object.passphrase is optional. Encrypted keys will be decrypted with
724
724
  * object.passphrase if provided, or options.passphrase if it is not.
725
725
  */
726
- key?: string | Buffer | Array<Buffer | KeyObject> | undefined;
726
+ key?: string | Buffer | Array<string | Buffer | KeyObject> | undefined;
727
727
  /**
728
728
  * Name of an OpenSSL engine to get private key from. Should be used
729
729
  * together with privateKeyIdentifier.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/keyv",
3
- "version": "3.1.3",
3
+ "version": "3.1.4",
4
4
  "description": "TypeScript definitions for keyv",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/keyv",
6
6
  "license": "MIT",
@@ -27,6 +27,6 @@
27
27
  "dependencies": {
28
28
  "@types/node": "*"
29
29
  },
30
- "typesPublisherContentHash": "f8d3aab62b87448dca0f22f85932aed615f961053f7cc2604aad6c374e62c692",
31
- "typeScriptVersion": "3.7"
30
+ "typesPublisherContentHash": "e83393e0860475d12e960cede22532e18e129cf659f31f2a0298a88cb5d02d36",
31
+ "typeScriptVersion": "3.9"
32
32
  }
@@ -8,9 +8,9 @@ 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: Wed, 23 Feb 2022 16:31:42 GMT
11
+ * Last updated: Sun, 01 May 2022 20:31:38 GMT
12
12
  * Dependencies: none
13
- * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
13
+ * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
14
14
 
15
15
  # Credits
16
16
  These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), and [wafuwafu13](https://github.com/wafuwafu13).
@@ -258,7 +258,7 @@ declare module 'async_hooks' {
258
258
  * @param type The type of async event.
259
259
  * @param triggerAsyncId The ID of the execution context that created
260
260
  * this async event (default: `executionAsyncId()`), or an
261
- * AsyncResourceOptions object (since 9.3)
261
+ * AsyncResourceOptions object (since v9.3.0)
262
262
  */
263
263
  constructor(type: string, triggerAsyncId?: number | AsyncResourceOptions);
264
264
  /**
@@ -443,7 +443,7 @@ declare module 'buffer' {
443
443
  * Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_INVALID_ARG_VALUE` is thrown.
444
444
  *
445
445
  * The underlying memory for `Buffer` instances created in this way is _not_
446
- * _initialized_. The contents of the newly created `Buffer` are unknown and_may contain sensitive data_. Use `Buffer.alloc()` instead to initialize`Buffer` instances with zeroes.
446
+ * _initialized_. The contents of the newly created `Buffer` are unknown and _may contain sensitive data_. Use `Buffer.alloc()` instead to initialize`Buffer` instances with zeroes.
447
447
  *
448
448
  * ```js
449
449
  * import { Buffer } from 'buffer';
@@ -646,6 +646,7 @@ declare module 'crypto' {
646
646
  }
647
647
  type CipherCCMTypes = 'aes-128-ccm' | 'aes-192-ccm' | 'aes-256-ccm' | 'chacha20-poly1305';
648
648
  type CipherGCMTypes = 'aes-128-gcm' | 'aes-192-gcm' | 'aes-256-gcm';
649
+ type CipherOCBTypes = 'aes-128-ocb' | 'aes-192-ocb' | 'aes-256-ocb';
649
650
  type BinaryLike = string | NodeJS.ArrayBufferView;
650
651
  type CipherKey = BinaryLike | KeyObject;
651
652
  interface CipherCCMOptions extends stream.TransformOptions {
@@ -654,6 +655,9 @@ declare module 'crypto' {
654
655
  interface CipherGCMOptions extends stream.TransformOptions {
655
656
  authTagLength?: number | undefined;
656
657
  }
658
+ interface CipherOCBOptions extends stream.TransformOptions {
659
+ authTagLength: number;
660
+ }
657
661
  /**
658
662
  * Creates and returns a `Cipher` object that uses the given `algorithm` and`password`.
659
663
  *
@@ -720,8 +724,9 @@ declare module 'crypto' {
720
724
  * @since v0.1.94
721
725
  * @param options `stream.transform` options
722
726
  */
723
- function createCipheriv(algorithm: CipherCCMTypes, key: CipherKey, iv: BinaryLike | null, options: CipherCCMOptions): CipherCCM;
724
- function createCipheriv(algorithm: CipherGCMTypes, key: CipherKey, iv: BinaryLike | null, options?: CipherGCMOptions): CipherGCM;
727
+ function createCipheriv(algorithm: CipherCCMTypes, key: CipherKey, iv: BinaryLike, options: CipherCCMOptions): CipherCCM;
728
+ function createCipheriv(algorithm: CipherOCBTypes, key: CipherKey, iv: BinaryLike, options: CipherOCBOptions): CipherOCB;
729
+ function createCipheriv(algorithm: CipherGCMTypes, key: CipherKey, iv: BinaryLike, options?: CipherGCMOptions): CipherGCM;
725
730
  function createCipheriv(algorithm: string, key: CipherKey, iv: BinaryLike | null, options?: stream.TransformOptions): Cipher;
726
731
  /**
727
732
  * Instances of the `Cipher` class are used to encrypt data. The class can be
@@ -907,6 +912,15 @@ declare module 'crypto' {
907
912
  ): this;
908
913
  getAuthTag(): Buffer;
909
914
  }
915
+ interface CipherOCB extends Cipher {
916
+ setAAD(
917
+ buffer: NodeJS.ArrayBufferView,
918
+ options?: {
919
+ plaintextLength: number;
920
+ }
921
+ ): this;
922
+ getAuthTag(): Buffer;
923
+ }
910
924
  /**
911
925
  * Creates and returns a `Decipher` object that uses the given `algorithm` and`password` (key).
912
926
  *
@@ -961,8 +975,9 @@ declare module 'crypto' {
961
975
  * @since v0.1.94
962
976
  * @param options `stream.transform` options
963
977
  */
964
- function createDecipheriv(algorithm: CipherCCMTypes, key: CipherKey, iv: BinaryLike | null, options: CipherCCMOptions): DecipherCCM;
965
- function createDecipheriv(algorithm: CipherGCMTypes, key: CipherKey, iv: BinaryLike | null, options?: CipherGCMOptions): DecipherGCM;
978
+ function createDecipheriv(algorithm: CipherCCMTypes, key: CipherKey, iv: BinaryLike, options: CipherCCMOptions): DecipherCCM;
979
+ function createDecipheriv(algorithm: CipherOCBTypes, key: CipherKey, iv: BinaryLike, options: CipherOCBOptions): DecipherOCB;
980
+ function createDecipheriv(algorithm: CipherGCMTypes, key: CipherKey, iv: BinaryLike, options?: CipherGCMOptions): DecipherGCM;
966
981
  function createDecipheriv(algorithm: string, key: CipherKey, iv: BinaryLike | null, options?: stream.TransformOptions): Decipher;
967
982
  /**
968
983
  * Instances of the `Decipher` class are used to decrypt data. The class can be
@@ -1133,6 +1148,15 @@ declare module 'crypto' {
1133
1148
  }
1134
1149
  ): this;
1135
1150
  }
1151
+ interface DecipherOCB extends Decipher {
1152
+ setAuthTag(buffer: NodeJS.ArrayBufferView): this;
1153
+ setAAD(
1154
+ buffer: NodeJS.ArrayBufferView,
1155
+ options?: {
1156
+ plaintextLength: number;
1157
+ }
1158
+ ): this;
1159
+ }
1136
1160
  interface PrivateKeyInput {
1137
1161
  key: string | Buffer;
1138
1162
  format?: KeyFormat | undefined;
@@ -3084,21 +3108,28 @@ declare module 'crypto' {
3084
3108
  * @since v15.6.0
3085
3109
  */
3086
3110
  readonly fingerprint256: string;
3111
+ /**
3112
+ * The SHA-512 fingerprint of this certificate.
3113
+ * @since v16.14.0
3114
+ */
3115
+ readonly fingerprint512: string;
3087
3116
  /**
3088
3117
  * The complete subject of this certificate.
3089
3118
  * @since v15.6.0
3090
3119
  */
3091
3120
  readonly subject: string;
3092
3121
  /**
3093
- * The subject alternative name specified for this certificate.
3122
+ * The subject alternative name specified for this certificate or `undefined`
3123
+ * if not available.
3094
3124
  * @since v15.6.0
3095
3125
  */
3096
- readonly subjectAltName: string;
3126
+ readonly subjectAltName: string | undefined;
3097
3127
  /**
3098
- * The information access content of this certificate.
3128
+ * The information access content of this certificate or `undefined` if not
3129
+ * available.
3099
3130
  * @since v15.6.0
3100
3131
  */
3101
- readonly infoAccess: string;
3132
+ readonly infoAccess: string | undefined;
3102
3133
  /**
3103
3134
  * An array detailing the key usages for this certificate.
3104
3135
  * @since v15.6.0
@@ -3146,7 +3177,7 @@ declare module 'crypto' {
3146
3177
  * @since v15.6.0
3147
3178
  * @return Returns `email` if the certificate matches, `undefined` if it does not.
3148
3179
  */
3149
- checkEmail(email: string, options?: X509CheckOptions): string | undefined;
3180
+ checkEmail(email: string, options?: Pick<X509CheckOptions, 'subject'>): string | undefined;
3150
3181
  /**
3151
3182
  * Checks whether the certificate matches the given host name.
3152
3183
  * @since v15.6.0
@@ -3158,7 +3189,7 @@ declare module 'crypto' {
3158
3189
  * @since v15.6.0
3159
3190
  * @return Returns `ip` if the certificate matches, `undefined` if it does not.
3160
3191
  */
3161
- checkIP(ip: string, options?: X509CheckOptions): string | undefined;
3192
+ checkIP(ip: string): string | undefined;
3162
3193
  /**
3163
3194
  * Checks whether this certificate was issued by the given `otherCert`.
3164
3195
  * @since v15.6.0
@@ -57,7 +57,7 @@ declare module 'diagnostics_channel' {
57
57
  * @return The named channel object
58
58
  */
59
59
  function channel(name: string): Channel;
60
- type ChannelListener = (name: string, message: unknown) => void;
60
+ type ChannelListener = (message: unknown, name: string) => void;
61
61
  /**
62
62
  * The class `Channel` represents an individual named channel within the data
63
63
  * pipeline. It is use to track subscribers and to publish messages when there
@@ -89,6 +89,24 @@ declare module 'diagnostics_channel' {
89
89
  */
90
90
  readonly hasSubscribers: boolean;
91
91
  private constructor(name: string);
92
+ /**
93
+ * Publish a message to any subscribers to the channel. This will
94
+ * trigger message handlers synchronously so they will execute within
95
+ * the same context.
96
+ *
97
+ * ```js
98
+ * import diagnostics_channel from 'diagnostics_channel';
99
+ *
100
+ * const channel = diagnostics_channel.channel('my-channel');
101
+ *
102
+ * channel.publish({
103
+ * some: 'message'
104
+ * });
105
+ * ```
106
+ * @since v15.1.0, v14.17.0
107
+ * @param message The message to send to the channel subscribers
108
+ */
109
+ publish(message: unknown): void;
92
110
  /**
93
111
  * Register a message handler to subscribe to this channel. This message handler
94
112
  * will be run synchronously whenever a message is published to the channel. Any
@@ -2233,6 +2233,23 @@ declare module 'fs' {
2233
2233
  */
2234
2234
  export function writeSync(fd: number, string: string, position?: number | null, encoding?: BufferEncoding | null): number;
2235
2235
  export type ReadPosition = number | bigint;
2236
+ export interface ReadSyncOptions {
2237
+ /**
2238
+ * @default 0
2239
+ */
2240
+ offset?: number | undefined;
2241
+ /**
2242
+ * @default `length of buffer`
2243
+ */
2244
+ length?: number | undefined;
2245
+ /**
2246
+ * @default null
2247
+ */
2248
+ position?: ReadPosition | null | undefined;
2249
+ }
2250
+ export interface ReadAsyncOptions<TBuffer extends NodeJS.ArrayBufferView> extends ReadSyncOptions {
2251
+ buffer?: TBuffer;
2252
+ }
2236
2253
  /**
2237
2254
  * Read data from the file specified by `fd`.
2238
2255
  *
@@ -2258,6 +2275,24 @@ declare module 'fs' {
2258
2275
  position: ReadPosition | null,
2259
2276
  callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void
2260
2277
  ): void;
2278
+ /**
2279
+ * Similar to the above `fs.read` function, this version takes an optional `options` object.
2280
+ * If not otherwise specified in an `options` object,
2281
+ * `buffer` defaults to `Buffer.alloc(16384)`,
2282
+ * `offset` defaults to `0`,
2283
+ * `length` defaults to `buffer.byteLength`, `- offset` as of Node 17.6.0
2284
+ * `position` defaults to `null`
2285
+ * @since v12.17.0, 13.11.0
2286
+ */
2287
+ export function read<TBuffer extends NodeJS.ArrayBufferView>(
2288
+ fd: number,
2289
+ options: ReadAsyncOptions<TBuffer>,
2290
+ callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void
2291
+ ): void;
2292
+ export function read(
2293
+ fd: number,
2294
+ callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: NodeJS.ArrayBufferView) => void
2295
+ ): void;
2261
2296
  export namespace read {
2262
2297
  /**
2263
2298
  * @param fd A file descriptor.
@@ -2276,20 +2311,19 @@ declare module 'fs' {
2276
2311
  bytesRead: number;
2277
2312
  buffer: TBuffer;
2278
2313
  }>;
2279
- }
2280
- export interface ReadSyncOptions {
2281
- /**
2282
- * @default 0
2283
- */
2284
- offset?: number | undefined;
2285
- /**
2286
- * @default `length of buffer`
2287
- */
2288
- length?: number | undefined;
2289
- /**
2290
- * @default null
2291
- */
2292
- position?: ReadPosition | null | undefined;
2314
+ function __promisify__<TBuffer extends NodeJS.ArrayBufferView>(
2315
+ fd: number,
2316
+ options: ReadAsyncOptions<TBuffer>
2317
+ ): Promise<{
2318
+ bytesRead: number;
2319
+ buffer: TBuffer;
2320
+ }>;
2321
+ function __promisify__(
2322
+ fd: number
2323
+ ): Promise<{
2324
+ bytesRead: number;
2325
+ buffer: NodeJS.ArrayBufferView;
2326
+ }>;
2293
2327
  }
2294
2328
  /**
2295
2329
  * Returns the number of `bytesRead`.
@@ -100,6 +100,16 @@ interface BigInt64Array extends RelativeIndexable<bigint> {}
100
100
  interface BigUint64Array extends RelativeIndexable<bigint> {}
101
101
  //#endregion ArrayLike.at() end
102
102
 
103
+ /**
104
+ * @since v17.0.0
105
+ *
106
+ * Creates a deep clone of an object.
107
+ */
108
+ declare function structuredClone<T>(
109
+ value: T,
110
+ transfer?: { transfer: ReadonlyArray<import('worker_threads').TransferListItem> },
111
+ ): T;
112
+
103
113
  /*----------------------------------------------*
104
114
  * *
105
115
  * GLOBAL INTERFACES *
@@ -262,11 +272,11 @@ declare namespace NodeJS {
262
272
  id: string;
263
273
  filename: string;
264
274
  loaded: boolean;
265
- /** @deprecated since 14.6.0 Please use `require.main` and `module.children` instead. */
275
+ /** @deprecated since v14.6.0 Please use `require.main` and `module.children` instead. */
266
276
  parent: Module | null | undefined;
267
277
  children: Module[];
268
278
  /**
269
- * @since 11.14.0
279
+ * @since v11.14.0
270
280
  *
271
281
  * The directory name of the module. This is usually the same as the path.dirname() of the module.id.
272
282
  */
@@ -580,6 +580,7 @@ declare module 'http2' {
580
580
  parent?: number | undefined;
581
581
  weight?: number | undefined;
582
582
  waitForTrailers?: boolean | undefined;
583
+ signal?: AbortSignal | undefined;
583
584
  }
584
585
  export interface SessionState {
585
586
  effectiveLocalWindowSize?: number | undefined;
@@ -59,6 +59,7 @@ declare module 'net' {
59
59
  path: string;
60
60
  }
61
61
  type SocketConnectOpts = TcpSocketConnectOpts | IpcSocketConnectOpts;
62
+ type SocketReadyState = 'opening' | 'open' | 'readOnly' | 'writeOnly' | 'closed';
62
63
  /**
63
64
  * This class is an abstraction of a TCP socket or a streaming `IPC` endpoint
64
65
  * (uses named pipes on Windows, and Unix domain sockets otherwise). It is also
@@ -262,6 +263,12 @@ declare module 'net' {
262
263
  * @since v0.9.6
263
264
  */
264
265
  readonly localPort?: number;
266
+ /**
267
+ * This property represents the state of the connection as a string.
268
+ * @see {https://nodejs.org/api/net.html#socketreadystate}
269
+ * @since v0.5.0
270
+ */
271
+ readonly readyState: SocketReadyState;
265
272
  /**
266
273
  * The string representation of the remote IP address. For example,`'74.125.127.100'` or `'2001:4860:a005::68'`. Value may be `undefined` if
267
274
  * the socket is destroyed (for example, if the client disconnected).
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "17.0.21",
3
+ "version": "17.0.31",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -215,6 +215,6 @@
215
215
  },
216
216
  "scripts": {},
217
217
  "dependencies": {},
218
- "typesPublisherContentHash": "6e1f9bf207ef50d030685f014289b031aec80ada5d2510b91e8936256f960cde",
219
- "typeScriptVersion": "3.8"
218
+ "typesPublisherContentHash": "187e51e75f3e87938751363254f337ef4fab9306b9bb5a7d36cb895b7c95c5e2",
219
+ "typeScriptVersion": "3.9"
220
220
  }
@@ -723,7 +723,7 @@ declare module 'tls' {
723
723
  * object.passphrase is optional. Encrypted keys will be decrypted with
724
724
  * object.passphrase if provided, or options.passphrase if it is not.
725
725
  */
726
- key?: string | Buffer | Array<Buffer | KeyObject> | undefined;
726
+ key?: string | Buffer | Array<string | Buffer | KeyObject> | undefined;
727
727
  /**
728
728
  * Name of an OpenSSL engine to get private key from. Should be used
729
729
  * together with privateKeyIdentifier.
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) Microsoft Corporation.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE
1
+ MIT License
2
+
3
+ Copyright (c) Microsoft Corporation. All rights reserved.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE
@@ -5,12 +5,12 @@
5
5
  This package contains type definitions for retry (https://github.com/tim-kos/node-retry).
6
6
 
7
7
  # Details
8
- Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/retry.
8
+ Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/retry
9
9
 
10
- ### Additional Details
11
- * Last updated: Wed, 07 Jul 2021 18:02:26 GMT
10
+ Additional Details
11
+ * Last updated: Thu, 03 Jan 2019 17:45:51 GMT
12
12
  * Dependencies: none
13
13
  * Global values: none
14
14
 
15
15
  # Credits
16
- These definitions were written by [Stan Goldmann](https://github.com/krenor), and [BendingBender](https://github.com/BendingBender).
16
+ These definitions were written by Stan Goldmann <https://github.com/krenor>, BendingBender <https://github.com/BendingBender>.
@@ -59,7 +59,7 @@ export interface AttemptTimeoutOptions {
59
59
  /**
60
60
  * A timeout in milliseconds.
61
61
  */
62
- timeout?: number | undefined;
62
+ timeout?: number;
63
63
  /**
64
64
  * Callback to execute when the operation takes longer than the timeout.
65
65
  */
@@ -85,17 +85,17 @@ export interface OperationOptions extends TimeoutsOptions {
85
85
  * Whether to retry forever.
86
86
  * @default false
87
87
  */
88
- forever?: boolean | undefined;
88
+ forever?: boolean;
89
89
  /**
90
90
  * Whether to [unref](https://nodejs.org/api/timers.html#timers_unref) the setTimeout's.
91
91
  * @default false
92
92
  */
93
- unref?: boolean | undefined;
93
+ unref?: boolean;
94
94
  /**
95
95
  * The maximum time (in milliseconds) that the retried operation is allowed to run.
96
96
  * @default Infinity
97
97
  */
98
- maxRetryTime?: number | undefined;
98
+ maxRetryTime?: number;
99
99
  }
100
100
 
101
101
  /** Get an array with timeouts and their return values in milliseconds. */
@@ -106,7 +106,7 @@ export interface TimeoutsOptions extends CreateTimeoutOptions {
106
106
  * The maximum amount of times to retry the operation.
107
107
  * @default 10
108
108
  */
109
- retries?: number | undefined;
109
+ retries?: number;
110
110
  }
111
111
 
112
112
  /**
@@ -122,22 +122,22 @@ export interface CreateTimeoutOptions {
122
122
  * The exponential factor to use.
123
123
  * @default 2
124
124
  */
125
- factor?: number | undefined;
125
+ factor?: number;
126
126
  /**
127
127
  * The number of milliseconds before starting the first retry.
128
128
  * @default 1000
129
129
  */
130
- minTimeout?: number | undefined;
130
+ minTimeout?: number;
131
131
  /**
132
132
  * The maximum number of milliseconds between two retries.
133
133
  * @default Infinity
134
134
  */
135
- maxTimeout?: number | undefined;
135
+ maxTimeout?: number;
136
136
  /**
137
137
  * Randomizes the timeouts by multiplying a factor between 1-2.
138
138
  * @default false
139
139
  */
140
- randomize?: boolean | undefined;
140
+ randomize?: boolean;
141
141
  }
142
142
 
143
143
  /**
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "name": "@types/retry",
3
- "version": "0.12.1",
3
+ "version": "0.12.0",
4
4
  "description": "TypeScript definitions for retry",
5
- "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/retry",
6
5
  "license": "MIT",
7
6
  "contributors": [
8
7
  {
@@ -17,14 +16,13 @@
17
16
  }
18
17
  ],
19
18
  "main": "",
20
- "types": "index.d.ts",
19
+ "types": "index",
21
20
  "repository": {
22
21
  "type": "git",
23
- "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
24
- "directory": "types/retry"
22
+ "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
25
23
  },
26
24
  "scripts": {},
27
25
  "dependencies": {},
28
- "typesPublisherContentHash": "1f47bb1a205340c2ce3816cbd526a396c6abccdd0aa138a440aa244f7da840e1",
29
- "typeScriptVersion": "3.6"
26
+ "typesPublisherContentHash": "dc8156aa3c27632d2585c45d8951c4a0f7ae9122bd17190d8973018556d174f3",
27
+ "typeScriptVersion": "2.3"
30
28
  }
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright © 2019 Kiko Beats <josefrancisco.verdu@gmail.com> (kikobeats.com)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.