cloudstructs 0.6.37 → 0.6.38

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 (233) hide show
  1. package/.jsii +3 -3
  2. package/assets/slack-app/provider.lambda/index.js +12 -12
  3. package/assets/slack-textract/detect.lambda/index.js +24 -24
  4. package/assets/ssl-server-test/analyze.lambda/index.js +12 -12
  5. package/lib/codecommit-mirror/index.js +2 -2
  6. package/lib/dmarc/index.js +1 -1
  7. package/lib/ecs-service-roller/index.js +2 -2
  8. package/lib/email-receiver/receiver.js +1 -1
  9. package/lib/saml-identity-provider/index.js +2 -2
  10. package/lib/slack-app/manifest.js +1 -1
  11. package/lib/slack-app/slack-app.js +2 -2
  12. package/lib/slack-events/index.js +1 -1
  13. package/lib/slack-textract/index.js +1 -1
  14. package/lib/ssl-server-test/index.js +1 -1
  15. package/lib/state-machine-cr-provider/index.js +1 -1
  16. package/lib/static-website/index.js +1 -1
  17. package/lib/toolkit-cleaner/index.js +1 -1
  18. package/lib/url-shortener/index.js +1 -1
  19. package/node_modules/@slack/logger/node_modules/@types/node/README.md +2 -2
  20. package/node_modules/@slack/logger/node_modules/@types/node/buffer.d.ts +1 -1
  21. package/node_modules/@slack/logger/node_modules/@types/node/child_process.d.ts +5 -0
  22. package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +9 -1
  23. package/node_modules/@slack/logger/node_modules/@types/node/dgram.d.ts +5 -0
  24. package/node_modules/@slack/logger/node_modules/@types/node/events.d.ts +64 -0
  25. package/node_modules/@slack/logger/node_modules/@types/node/fs/promises.d.ts +13 -1
  26. package/node_modules/@slack/logger/node_modules/@types/node/globals.d.ts +22 -0
  27. package/node_modules/@slack/logger/node_modules/@types/node/http2.d.ts +1 -1
  28. package/node_modules/@slack/logger/node_modules/@types/node/index.d.ts +1 -2
  29. package/node_modules/@slack/logger/node_modules/@types/node/module.d.ts +17 -4
  30. package/node_modules/@slack/logger/node_modules/@types/node/net.d.ts +6 -1
  31. package/node_modules/@slack/logger/node_modules/@types/node/package.json +2 -7
  32. package/node_modules/@slack/logger/node_modules/@types/node/perf_hooks.d.ts +1 -1
  33. package/node_modules/@slack/logger/node_modules/@types/node/stream.d.ts +9 -0
  34. package/node_modules/@slack/logger/node_modules/@types/node/test.d.ts +554 -144
  35. package/node_modules/@slack/logger/node_modules/@types/node/timers.d.ts +12 -2
  36. package/node_modules/@slack/logger/node_modules/@types/node/tls.d.ts +11 -0
  37. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/child_process.d.ts +5 -0
  38. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/crypto.d.ts +9 -1
  39. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/dgram.d.ts +5 -0
  40. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/events.d.ts +64 -0
  41. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/fs/promises.d.ts +15 -2
  42. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/globals.d.ts +22 -0
  43. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/http2.d.ts +1 -1
  44. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/module.d.ts +17 -4
  45. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/net.d.ts +6 -1
  46. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/stream.d.ts +766 -728
  47. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/test.d.ts +553 -143
  48. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/timers.d.ts +12 -2
  49. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/tls.d.ts +11 -0
  50. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/url.d.ts +14 -0
  51. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/util.d.ts +75 -11
  52. package/node_modules/@slack/logger/node_modules/@types/node/url.d.ts +14 -0
  53. package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +75 -11
  54. package/node_modules/@slack/web-api/node_modules/@types/node/README.md +2 -2
  55. package/node_modules/@slack/web-api/node_modules/@types/node/buffer.d.ts +1 -1
  56. package/node_modules/@slack/web-api/node_modules/@types/node/child_process.d.ts +5 -0
  57. package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +9 -1
  58. package/node_modules/@slack/web-api/node_modules/@types/node/dgram.d.ts +5 -0
  59. package/node_modules/@slack/web-api/node_modules/@types/node/events.d.ts +64 -0
  60. package/node_modules/@slack/web-api/node_modules/@types/node/fs/promises.d.ts +13 -1
  61. package/node_modules/@slack/web-api/node_modules/@types/node/globals.d.ts +22 -0
  62. package/node_modules/@slack/web-api/node_modules/@types/node/http2.d.ts +1 -1
  63. package/node_modules/@slack/web-api/node_modules/@types/node/index.d.ts +1 -2
  64. package/node_modules/@slack/web-api/node_modules/@types/node/module.d.ts +17 -4
  65. package/node_modules/@slack/web-api/node_modules/@types/node/net.d.ts +6 -1
  66. package/node_modules/@slack/web-api/node_modules/@types/node/package.json +2 -7
  67. package/node_modules/@slack/web-api/node_modules/@types/node/perf_hooks.d.ts +1 -1
  68. package/node_modules/@slack/web-api/node_modules/@types/node/stream.d.ts +9 -0
  69. package/node_modules/@slack/web-api/node_modules/@types/node/test.d.ts +554 -144
  70. package/node_modules/@slack/web-api/node_modules/@types/node/timers.d.ts +12 -2
  71. package/node_modules/@slack/web-api/node_modules/@types/node/tls.d.ts +11 -0
  72. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/child_process.d.ts +5 -0
  73. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/crypto.d.ts +9 -1
  74. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/dgram.d.ts +5 -0
  75. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/events.d.ts +64 -0
  76. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/fs/promises.d.ts +15 -2
  77. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/globals.d.ts +22 -0
  78. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/http2.d.ts +1 -1
  79. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/module.d.ts +17 -4
  80. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/net.d.ts +6 -1
  81. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/stream.d.ts +766 -728
  82. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/test.d.ts +553 -143
  83. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/timers.d.ts +12 -2
  84. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/tls.d.ts +11 -0
  85. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/url.d.ts +14 -0
  86. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/util.d.ts +75 -11
  87. package/node_modules/@slack/web-api/node_modules/@types/node/url.d.ts +14 -0
  88. package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +75 -11
  89. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +2 -2
  90. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +1 -1
  91. package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +5 -0
  92. package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +9 -1
  93. package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +5 -0
  94. package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +64 -0
  95. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +13 -1
  96. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +22 -0
  97. package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +1 -1
  98. package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +1 -2
  99. package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +17 -4
  100. package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +6 -1
  101. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +2 -7
  102. package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +1 -1
  103. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +9 -0
  104. package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +554 -144
  105. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +12 -2
  106. package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +11 -0
  107. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/child_process.d.ts +5 -0
  108. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/crypto.d.ts +9 -1
  109. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/dgram.d.ts +5 -0
  110. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/events.d.ts +64 -0
  111. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/fs/promises.d.ts +15 -2
  112. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/globals.d.ts +22 -0
  113. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/http2.d.ts +1 -1
  114. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/module.d.ts +17 -4
  115. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/net.d.ts +6 -1
  116. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/stream.d.ts +766 -728
  117. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/test.d.ts +553 -143
  118. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/timers.d.ts +12 -2
  119. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/tls.d.ts +11 -0
  120. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/url.d.ts +14 -0
  121. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/util.d.ts +75 -11
  122. package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +14 -0
  123. package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +75 -11
  124. package/node_modules/@types/is-stream/node_modules/@types/node/README.md +2 -2
  125. package/node_modules/@types/is-stream/node_modules/@types/node/buffer.d.ts +1 -1
  126. package/node_modules/@types/is-stream/node_modules/@types/node/child_process.d.ts +5 -0
  127. package/node_modules/@types/is-stream/node_modules/@types/node/crypto.d.ts +9 -1
  128. package/node_modules/@types/is-stream/node_modules/@types/node/dgram.d.ts +5 -0
  129. package/node_modules/@types/is-stream/node_modules/@types/node/events.d.ts +64 -0
  130. package/node_modules/@types/is-stream/node_modules/@types/node/fs/promises.d.ts +13 -1
  131. package/node_modules/@types/is-stream/node_modules/@types/node/globals.d.ts +22 -0
  132. package/node_modules/@types/is-stream/node_modules/@types/node/http2.d.ts +1 -1
  133. package/node_modules/@types/is-stream/node_modules/@types/node/index.d.ts +1 -2
  134. package/node_modules/@types/is-stream/node_modules/@types/node/module.d.ts +17 -4
  135. package/node_modules/@types/is-stream/node_modules/@types/node/net.d.ts +6 -1
  136. package/node_modules/@types/is-stream/node_modules/@types/node/package.json +2 -7
  137. package/node_modules/@types/is-stream/node_modules/@types/node/perf_hooks.d.ts +1 -1
  138. package/node_modules/@types/is-stream/node_modules/@types/node/stream.d.ts +9 -0
  139. package/node_modules/@types/is-stream/node_modules/@types/node/test.d.ts +554 -144
  140. package/node_modules/@types/is-stream/node_modules/@types/node/timers.d.ts +12 -2
  141. package/node_modules/@types/is-stream/node_modules/@types/node/tls.d.ts +11 -0
  142. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/child_process.d.ts +5 -0
  143. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/crypto.d.ts +9 -1
  144. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/dgram.d.ts +5 -0
  145. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/events.d.ts +64 -0
  146. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/fs/promises.d.ts +15 -2
  147. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/globals.d.ts +22 -0
  148. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/http2.d.ts +1 -1
  149. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/module.d.ts +17 -4
  150. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/net.d.ts +6 -1
  151. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/stream.d.ts +766 -728
  152. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/test.d.ts +553 -143
  153. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/timers.d.ts +12 -2
  154. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/tls.d.ts +11 -0
  155. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/url.d.ts +14 -0
  156. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/util.d.ts +75 -11
  157. package/node_modules/@types/is-stream/node_modules/@types/node/url.d.ts +14 -0
  158. package/node_modules/@types/is-stream/node_modules/@types/node/util.d.ts +75 -11
  159. package/node_modules/@types/keyv/node_modules/@types/node/README.md +2 -2
  160. package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +1 -1
  161. package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +5 -0
  162. package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +9 -1
  163. package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +5 -0
  164. package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +64 -0
  165. package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +13 -1
  166. package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +22 -0
  167. package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +1 -1
  168. package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +1 -2
  169. package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +17 -4
  170. package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +6 -1
  171. package/node_modules/@types/keyv/node_modules/@types/node/package.json +2 -7
  172. package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +1 -1
  173. package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +9 -0
  174. package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +554 -144
  175. package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +12 -2
  176. package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +11 -0
  177. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/child_process.d.ts +5 -0
  178. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/crypto.d.ts +9 -1
  179. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/dgram.d.ts +5 -0
  180. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/events.d.ts +64 -0
  181. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/fs/promises.d.ts +15 -2
  182. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/globals.d.ts +22 -0
  183. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/http2.d.ts +1 -1
  184. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/module.d.ts +17 -4
  185. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/net.d.ts +6 -1
  186. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/stream.d.ts +766 -728
  187. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/test.d.ts +553 -143
  188. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/timers.d.ts +12 -2
  189. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/tls.d.ts +11 -0
  190. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/url.d.ts +14 -0
  191. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/util.d.ts +75 -11
  192. package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +14 -0
  193. package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +75 -11
  194. package/node_modules/@types/responselike/node_modules/@types/node/README.md +2 -2
  195. package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +1 -1
  196. package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +5 -0
  197. package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +9 -1
  198. package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +5 -0
  199. package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +64 -0
  200. package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +13 -1
  201. package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +22 -0
  202. package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +1 -1
  203. package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +1 -2
  204. package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +17 -4
  205. package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +6 -1
  206. package/node_modules/@types/responselike/node_modules/@types/node/package.json +2 -7
  207. package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +1 -1
  208. package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +9 -0
  209. package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +554 -144
  210. package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +12 -2
  211. package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +11 -0
  212. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/child_process.d.ts +5 -0
  213. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/crypto.d.ts +9 -1
  214. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/dgram.d.ts +5 -0
  215. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/events.d.ts +64 -0
  216. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/fs/promises.d.ts +15 -2
  217. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/globals.d.ts +22 -0
  218. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/http2.d.ts +1 -1
  219. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/module.d.ts +17 -4
  220. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/net.d.ts +6 -1
  221. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/stream.d.ts +766 -728
  222. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/test.d.ts +553 -143
  223. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/timers.d.ts +12 -2
  224. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/tls.d.ts +11 -0
  225. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/url.d.ts +14 -0
  226. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/util.d.ts +75 -11
  227. package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +14 -0
  228. package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +75 -11
  229. package/node_modules/keyv/README.md +2 -0
  230. package/node_modules/keyv/package.json +12 -13
  231. package/node_modules/keyv/src/index.d.ts +6 -10
  232. package/node_modules/keyv/src/index.js +1 -1
  233. package/package.json +23 -22
@@ -68,6 +68,11 @@ declare module 'timers' {
68
68
  */
69
69
  hasRef(): boolean;
70
70
  _onImmediate: Function; // to distinguish it from the Timeout class
71
+ /**
72
+ * Cancels the immediate. This is similar to calling `clearImmediate()`.
73
+ * @since v20.5.0
74
+ */
75
+ [Symbol.dispose](): void;
71
76
  }
72
77
  /**
73
78
  * This object is created internally and is returned from `setTimeout()` and `setInterval()`. It can be passed to either `clearTimeout()` or `clearInterval()` in order to cancel the
@@ -114,6 +119,11 @@ declare module 'timers' {
114
119
  */
115
120
  refresh(): this;
116
121
  [Symbol.toPrimitive](): number;
122
+ /**
123
+ * Cancels the timeout.
124
+ * @since v20.5.0
125
+ */
126
+ [Symbol.dispose](): void;
117
127
  }
118
128
  }
119
129
  /**
@@ -163,10 +173,10 @@ declare module 'timers' {
163
173
  * @param args Optional arguments to pass when the `callback` is called.
164
174
  * @return for use with {@link clearInterval}
165
175
  */
166
- function setInterval<TArgs extends any[]>(callback: (...args: TArgs) => void, ms?: number, ...args: TArgs): NodeJS.Timer;
176
+ function setInterval<TArgs extends any[]>(callback: (...args: TArgs) => void, ms?: number, ...args: TArgs): NodeJS.Timeout;
167
177
  // util.promisify no rest args compability
168
178
  // tslint:disable-next-line void-return
169
- function setInterval(callback: (args: void) => void, ms?: number): NodeJS.Timer;
179
+ function setInterval(callback: (args: void) => void, ms?: number): NodeJS.Timeout;
170
180
  namespace setInterval {
171
181
  const __promisify__: typeof setIntervalPromise;
172
182
  }
@@ -728,6 +728,17 @@ declare module 'tls' {
728
728
  }
729
729
  type SecureVersion = 'TLSv1.3' | 'TLSv1.2' | 'TLSv1.1' | 'TLSv1';
730
730
  interface SecureContextOptions {
731
+ /**
732
+ * If set, this will be called when a client opens a connection using the ALPN extension.
733
+ * One argument will be passed to the callback: an object containing `servername` and `protocols` fields,
734
+ * respectively containing the server name from the SNI extension (if any) and an array of
735
+ * ALPN protocol name strings. The callback must return either one of the strings listed in `protocols`,
736
+ * which will be returned to the client as the selected ALPN protocol, or `undefined`,
737
+ * to reject the connection with a fatal alert. If a string is returned that does not match one of
738
+ * the client's ALPN protocols, an error will be thrown.
739
+ * This option cannot be used with the `ALPNProtocols` option, and setting both options will throw an error.
740
+ */
741
+ ALPNCallback?: ((arg: { servername: string; protocols: string[] }) => string | undefined) | undefined;
731
742
  /**
732
743
  * Optionally override the trusted CA certificates. Default is to trust
733
744
  * the well-known CAs curated by Mozilla. Mozilla's CAs are completely
@@ -394,6 +394,20 @@ declare module 'url' {
394
394
  * @param id A `'blob:nodedata:...` URL string returned by a prior call to `URL.createObjectURL()`.
395
395
  */
396
396
  static revokeObjectURL(objectUrl: string): void;
397
+ /**
398
+ * Checks if an `input` relative to the `base` can be parsed to a `URL`.
399
+ *
400
+ * ```js
401
+ * const isValid = URL.canParse('/foo', 'https://example.org/'); // true
402
+ *
403
+ * const isNotValid = URL.canParse('/foo'); // false
404
+ * ```
405
+ * @since v19.9.0
406
+ * @param input The absolute or relative input URL to parse. If `input` is relative, then `base` is required. If `input` is absolute, the `base` is ignored. If `input` is not a string, it is
407
+ * `converted to a string` first.
408
+ * @param base The base URL to resolve against if the `input` is not absolute. If `base` is not a string, it is `converted to a string` first.
409
+ */
410
+ static canParse(input: string, base?: string): boolean;
397
411
  constructor(input: string, base?: string | URL);
398
412
  /**
399
413
  * Gets and sets the fragment portion of the URL.
@@ -1460,32 +1460,72 @@ declare module 'util' {
1460
1460
 
1461
1461
  /**
1462
1462
  * Gets and sets the type portion of the MIME.
1463
+ *
1464
+ * ```js
1465
+ * import { MIMEType } from 'node:util';
1466
+ *
1467
+ * const myMIME = new MIMEType('text/javascript');
1468
+ * console.log(myMIME.type);
1469
+ * // Prints: text
1470
+ * myMIME.type = 'application';
1471
+ * console.log(myMIME.type);
1472
+ * // Prints: application
1473
+ * console.log(String(myMIME));
1474
+ * // Prints: application/javascript
1475
+ * ```
1463
1476
  */
1464
1477
  type: string;
1465
1478
  /**
1466
1479
  * Gets and sets the subtype portion of the MIME.
1480
+ *
1481
+ * ```js
1482
+ * import { MIMEType } from 'node:util';
1483
+ *
1484
+ * const myMIME = new MIMEType('text/ecmascript');
1485
+ * console.log(myMIME.subtype);
1486
+ * // Prints: ecmascript
1487
+ * myMIME.subtype = 'javascript';
1488
+ * console.log(myMIME.subtype);
1489
+ * // Prints: javascript
1490
+ * console.log(String(myMIME));
1491
+ * // Prints: text/javascript
1492
+ * ```
1467
1493
  */
1468
1494
  subtype: string;
1469
1495
  /**
1470
- * Gets the essence of the MIME.
1471
- *
1496
+ * Gets the essence of the MIME. This property is read only.
1472
1497
  * Use `mime.type` or `mime.subtype` to alter the MIME.
1498
+ *
1499
+ * ```js
1500
+ * import { MIMEType } from 'node:util';
1501
+ *
1502
+ * const myMIME = new MIMEType('text/javascript;key=value');
1503
+ * console.log(myMIME.essence);
1504
+ * // Prints: text/javascript
1505
+ * myMIME.type = 'application';
1506
+ * console.log(myMIME.essence);
1507
+ * // Prints: application/javascript
1508
+ * console.log(String(myMIME));
1509
+ * // Prints: application/javascript;key=value
1510
+ * ```
1473
1511
  */
1474
1512
  readonly essence: string;
1475
1513
  /**
1476
- * Gets the `MIMEParams` object representing the parameters of the MIME.
1514
+ * Gets the `MIMEParams` object representing the
1515
+ * parameters of the MIME. This property is read-only. See `MIMEParams` documentation for details.
1477
1516
  */
1478
1517
  readonly params: MIMEParams;
1479
1518
  /**
1480
- * Returns the serialized MIME.
1519
+ * The `toString()` method on the `MIMEType` object returns the serialized MIME.
1481
1520
  *
1482
- * Because of the need for standard compliance, this method
1483
- * does not allow users to customize the serialization process of the MIME.
1521
+ * Because of the need for standard compliance, this method does not allow users
1522
+ * to customize the serialization process of the MIME.
1484
1523
  */
1485
1524
  toString(): string;
1486
1525
  }
1487
1526
  /**
1488
- * @since v18.13.0
1527
+ * The `MIMEParams` API provides read and write access to the parameters of a`MIMEType`.
1528
+ * @since v19.1.0, v18.13.0
1489
1529
  */
1490
1530
  export class MIMEParams {
1491
1531
  /**
@@ -1494,11 +1534,14 @@ declare module 'util' {
1494
1534
  delete(name: string): void;
1495
1535
  /**
1496
1536
  * Returns an iterator over each of the name-value pairs in the parameters.
1537
+ * Each item of the iterator is a JavaScript `Array`. The first item of the array
1538
+ * is the `name`, the second item of the array is the `value`.
1497
1539
  */
1498
1540
  entries(): IterableIterator<[string, string]>;
1499
1541
  /**
1500
- * Returns the value of the first name-value pair whose name is `name`.
1501
- * If there are no such pairs, `null` is returned.
1542
+ * Returns the value of the first name-value pair whose name is `name`. If there
1543
+ * are no such pairs, `null` is returned.
1544
+ * @return or `null` if there is no name-value pair with the given `name`.
1502
1545
  */
1503
1546
  get(name: string): string | null;
1504
1547
  /**
@@ -1507,12 +1550,33 @@ declare module 'util' {
1507
1550
  has(name: string): boolean;
1508
1551
  /**
1509
1552
  * Returns an iterator over the names of each name-value pair.
1553
+ *
1554
+ * ```js
1555
+ * import { MIMEType } from 'node:util';
1556
+ *
1557
+ * const { params } = new MIMEType('text/plain;foo=0;bar=1');
1558
+ * for (const name of params.keys()) {
1559
+ * console.log(name);
1560
+ * }
1561
+ * // Prints:
1562
+ * // foo
1563
+ * // bar
1564
+ * ```
1510
1565
  */
1511
1566
  keys(): IterableIterator<string>;
1512
1567
  /**
1513
- * Sets the value in the `MIMEParams` object associated with `name` to `value`.
1514
- * If there are any pre-existing name-value pairs whose names are `name`,
1568
+ * Sets the value in the `MIMEParams` object associated with `name` to`value`. If there are any pre-existing name-value pairs whose names are `name`,
1515
1569
  * set the first such pair's value to `value`.
1570
+ *
1571
+ * ```js
1572
+ * import { MIMEType } from 'node:util';
1573
+ *
1574
+ * const { params } = new MIMEType('text/plain;foo=0;bar=1');
1575
+ * params.set('foo', 'def');
1576
+ * params.set('baz', 'xyz');
1577
+ * console.log(params.toString());
1578
+ * // Prints: foo=def&#x26;bar=1&#x26;baz=xyz
1579
+ * ```
1516
1580
  */
1517
1581
  set(name: string, value: string): void;
1518
1582
  /**
@@ -394,6 +394,20 @@ declare module 'url' {
394
394
  * @param id A `'blob:nodedata:...` URL string returned by a prior call to `URL.createObjectURL()`.
395
395
  */
396
396
  static revokeObjectURL(objectUrl: string): void;
397
+ /**
398
+ * Checks if an `input` relative to the `base` can be parsed to a `URL`.
399
+ *
400
+ * ```js
401
+ * const isValid = URL.canParse('/foo', 'https://example.org/'); // true
402
+ *
403
+ * const isNotValid = URL.canParse('/foo'); // false
404
+ * ```
405
+ * @since v19.9.0
406
+ * @param input The absolute or relative input URL to parse. If `input` is relative, then `base` is required. If `input` is absolute, the `base` is ignored. If `input` is not a string, it is
407
+ * `converted to a string` first.
408
+ * @param base The base URL to resolve against if the `input` is not absolute. If `base` is not a string, it is `converted to a string` first.
409
+ */
410
+ static canParse(input: string, base?: string): boolean;
397
411
  constructor(input: string, base?: string | URL);
398
412
  /**
399
413
  * Gets and sets the fragment portion of the URL.
@@ -1460,32 +1460,72 @@ declare module 'util' {
1460
1460
 
1461
1461
  /**
1462
1462
  * Gets and sets the type portion of the MIME.
1463
+ *
1464
+ * ```js
1465
+ * import { MIMEType } from 'node:util';
1466
+ *
1467
+ * const myMIME = new MIMEType('text/javascript');
1468
+ * console.log(myMIME.type);
1469
+ * // Prints: text
1470
+ * myMIME.type = 'application';
1471
+ * console.log(myMIME.type);
1472
+ * // Prints: application
1473
+ * console.log(String(myMIME));
1474
+ * // Prints: application/javascript
1475
+ * ```
1463
1476
  */
1464
1477
  type: string;
1465
1478
  /**
1466
1479
  * Gets and sets the subtype portion of the MIME.
1480
+ *
1481
+ * ```js
1482
+ * import { MIMEType } from 'node:util';
1483
+ *
1484
+ * const myMIME = new MIMEType('text/ecmascript');
1485
+ * console.log(myMIME.subtype);
1486
+ * // Prints: ecmascript
1487
+ * myMIME.subtype = 'javascript';
1488
+ * console.log(myMIME.subtype);
1489
+ * // Prints: javascript
1490
+ * console.log(String(myMIME));
1491
+ * // Prints: text/javascript
1492
+ * ```
1467
1493
  */
1468
1494
  subtype: string;
1469
1495
  /**
1470
- * Gets the essence of the MIME.
1471
- *
1496
+ * Gets the essence of the MIME. This property is read only.
1472
1497
  * Use `mime.type` or `mime.subtype` to alter the MIME.
1498
+ *
1499
+ * ```js
1500
+ * import { MIMEType } from 'node:util';
1501
+ *
1502
+ * const myMIME = new MIMEType('text/javascript;key=value');
1503
+ * console.log(myMIME.essence);
1504
+ * // Prints: text/javascript
1505
+ * myMIME.type = 'application';
1506
+ * console.log(myMIME.essence);
1507
+ * // Prints: application/javascript
1508
+ * console.log(String(myMIME));
1509
+ * // Prints: application/javascript;key=value
1510
+ * ```
1473
1511
  */
1474
1512
  readonly essence: string;
1475
1513
  /**
1476
- * Gets the `MIMEParams` object representing the parameters of the MIME.
1514
+ * Gets the `MIMEParams` object representing the
1515
+ * parameters of the MIME. This property is read-only. See `MIMEParams` documentation for details.
1477
1516
  */
1478
1517
  readonly params: MIMEParams;
1479
1518
  /**
1480
- * Returns the serialized MIME.
1519
+ * The `toString()` method on the `MIMEType` object returns the serialized MIME.
1481
1520
  *
1482
- * Because of the need for standard compliance, this method
1483
- * does not allow users to customize the serialization process of the MIME.
1521
+ * Because of the need for standard compliance, this method does not allow users
1522
+ * to customize the serialization process of the MIME.
1484
1523
  */
1485
1524
  toString(): string;
1486
1525
  }
1487
1526
  /**
1488
- * @since v18.13.0
1527
+ * The `MIMEParams` API provides read and write access to the parameters of a`MIMEType`.
1528
+ * @since v19.1.0, v18.13.0
1489
1529
  */
1490
1530
  export class MIMEParams {
1491
1531
  /**
@@ -1494,11 +1534,14 @@ declare module 'util' {
1494
1534
  delete(name: string): void;
1495
1535
  /**
1496
1536
  * Returns an iterator over each of the name-value pairs in the parameters.
1537
+ * Each item of the iterator is a JavaScript `Array`. The first item of the array
1538
+ * is the `name`, the second item of the array is the `value`.
1497
1539
  */
1498
1540
  entries(): IterableIterator<[name: string, value: string]>;
1499
1541
  /**
1500
- * Returns the value of the first name-value pair whose name is `name`.
1501
- * If there are no such pairs, `null` is returned.
1542
+ * Returns the value of the first name-value pair whose name is `name`. If there
1543
+ * are no such pairs, `null` is returned.
1544
+ * @return or `null` if there is no name-value pair with the given `name`.
1502
1545
  */
1503
1546
  get(name: string): string | null;
1504
1547
  /**
@@ -1507,12 +1550,33 @@ declare module 'util' {
1507
1550
  has(name: string): boolean;
1508
1551
  /**
1509
1552
  * Returns an iterator over the names of each name-value pair.
1553
+ *
1554
+ * ```js
1555
+ * import { MIMEType } from 'node:util';
1556
+ *
1557
+ * const { params } = new MIMEType('text/plain;foo=0;bar=1');
1558
+ * for (const name of params.keys()) {
1559
+ * console.log(name);
1560
+ * }
1561
+ * // Prints:
1562
+ * // foo
1563
+ * // bar
1564
+ * ```
1510
1565
  */
1511
1566
  keys(): IterableIterator<string>;
1512
1567
  /**
1513
- * Sets the value in the `MIMEParams` object associated with `name` to `value`.
1514
- * If there are any pre-existing name-value pairs whose names are `name`,
1568
+ * Sets the value in the `MIMEParams` object associated with `name` to`value`. If there are any pre-existing name-value pairs whose names are `name`,
1515
1569
  * set the first such pair's value to `value`.
1570
+ *
1571
+ * ```js
1572
+ * import { MIMEType } from 'node:util';
1573
+ *
1574
+ * const { params } = new MIMEType('text/plain;foo=0;bar=1');
1575
+ * params.set('foo', 'def');
1576
+ * params.set('baz', 'xyz');
1577
+ * console.log(params.toString());
1578
+ * // Prints: foo=def&#x26;bar=1&#x26;baz=xyz
1579
+ * ```
1516
1580
  */
1517
1581
  set(name: string, value: string): void;
1518
1582
  /**
@@ -151,6 +151,8 @@ The following are third-party storage adapters compatible with Keyv:
151
151
  - [keyv-firestore ](https://github.com/goto-bus-stop/keyv-firestore) – Firebase Cloud Firestore adapter for Keyv
152
152
  - [keyv-mssql](https://github.com/pmorgan3/keyv-mssql) - Microsoft Sql Server adapter for Keyv
153
153
  - [keyv-azuretable](https://github.com/howlowck/keyv-azuretable) - Azure Table Storage/API adapter for Keyv
154
+ - [keyv-arango](https://github.com/TimMikeladze/keyv-arango) - ArangoDB storage adapter for Keyv
155
+ - [keyv-momento](https://github.com/momentohq/node-keyv-adaptor/) - Momento storage adapter for Keyv
154
156
 
155
157
  ## Add Cache Support to your Module
156
158
 
@@ -1,18 +1,22 @@
1
1
  {
2
2
  "name": "keyv",
3
- "version": "4.5.2",
3
+ "version": "4.5.3",
4
4
  "description": "Simple key-value storage with support for multiple backends",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
7
- "test": "xo && nyc ava --serial",
8
- "coverage": "nyc report --reporter=text-lcov > coverage.lcov",
9
- "clean": "rm -rf node_modules && rm -rf .nyc_output && rm -rf coverage.lcov && rm -rf ./test/testdb.sqlite"
7
+ "build": "echo 'No build step required.'",
8
+ "prepare": "yarn build",
9
+ "test": "xo && c8 ava --serial",
10
+ "test:ci": "xo && ava --serial",
11
+ "clean": "rm -rf node_modules && rm -rf ./coverage && rm -rf ./test/testdb.sqlite"
10
12
  },
11
13
  "xo": {
12
14
  "rules": {
13
15
  "unicorn/prefer-module": 0,
14
16
  "unicorn/prefer-node-protocol": 0,
15
- "@typescript-eslint/consistent-type-definitions": 0
17
+ "@typescript-eslint/consistent-type-definitions": 0,
18
+ "unicorn/no-typeof-undefined": 0,
19
+ "unicorn/prefer-event-target": 0
16
20
  }
17
21
  },
18
22
  "repository": {
@@ -37,16 +41,11 @@
37
41
  },
38
42
  "devDependencies": {
39
43
  "@keyv/test-suite": "*",
40
- "ava": "^5.0.1",
41
- "eslint": "^8.26.0",
44
+ "eslint": "^8.42.0",
42
45
  "eslint-plugin-promise": "^6.1.1",
43
- "nyc": "^15.1.0",
44
- "pify": "5.0.0",
45
- "this": "^1.1.0",
46
+ "pify": "^5.0.0",
46
47
  "timekeeper": "^2.2.0",
47
- "tsd": "^0.24.1",
48
- "typescript": "^4.8.4",
49
- "xo": "^0.52.4"
48
+ "tsd": "^0.28.1"
50
49
  },
51
50
  "tsd": {
52
51
  "directory": "test"
@@ -27,18 +27,14 @@ declare class Keyv<Value = any, Options extends Record<string, any> = Record<str
27
27
  constructor(uri?: string, options?: Keyv.Options<Value> & Options);
28
28
 
29
29
  /** Returns the value. */
30
- get<Raw extends boolean = false>(key: string, options?: {raw?: Raw}):
31
- Promise<(Raw extends false
32
- ? Value
33
- : Keyv.DeserializedData<Value>) | undefined>;
30
+ get(key: string, options?: {raw?: false}): Promise<Value | undefined>;
31
+ /** Returns the raw value. */
32
+ get(key: string, options: {raw: true}): Promise<Keyv.DeserializedData<Value> | undefined>;
34
33
 
35
34
  /** Returns an array of values. Uses `store.getMany` if it exists, otherwise uses parallel calls to `store.get`. */
36
- get<Raw extends boolean = false>(
37
- key: string[],
38
- options?: {raw?: Raw}
39
- ): Promise<
40
- Array<(Raw extends false ? Value : Keyv.DeserializedData<Value>) | undefined>
41
- >;
35
+ get(key: string[], options?: {raw?: false}): Promise<Array<Value | undefined>>;
36
+ /** Returns an array of raw values. Uses `store.getMany` if it exists, otherwise uses parallel calls to `store.get`. */
37
+ get(key: string[], options: {raw: true}): Promise<Array<Keyv.DeserializedData<Value> | undefined>>;
42
38
 
43
39
  /**
44
40
  * Set a value.
@@ -66,7 +66,7 @@ class Keyv extends EventEmitter {
66
66
  for await (const [key, raw] of typeof iterator === 'function'
67
67
  ? iterator(this.opts.store.namespace)
68
68
  : iterator) {
69
- const data = this.opts.deserialize(raw);
69
+ const data = await this.opts.deserialize(raw);
70
70
  if (this.opts.store.namespace && !key.includes(this.opts.store.namespace)) {
71
71
  continue;
72
72
  }
package/package.json CHANGED
@@ -90,18 +90,18 @@
90
90
  "devDependencies": {
91
91
  "@aws-cdk/aws-apigatewayv2-alpha": "2.1.0-alpha.0",
92
92
  "@aws-cdk/aws-apigatewayv2-integrations-alpha": "2.1.0-alpha.0",
93
- "@aws-sdk/client-cloudformation": "^3.352.0",
94
- "@aws-sdk/client-dynamodb": "^3.352.0",
95
- "@aws-sdk/client-ecr": "^3.352.0",
96
- "@aws-sdk/client-ecs": "^3.352.0",
97
- "@aws-sdk/client-eventbridge": "^3.352.0",
98
- "@aws-sdk/client-iam": "^3.352.0",
99
- "@aws-sdk/client-s3": "^3.352.0",
100
- "@aws-sdk/client-secrets-manager": "^3.352.0",
101
- "@aws-sdk/client-sfn": "^3.352.0",
102
- "@aws-sdk/client-textract": "^3.352.0",
103
- "@aws-sdk/lib-dynamodb": "^3.352.0",
104
- "@types/aws-lambda": "^8.10.117",
93
+ "@aws-sdk/client-cloudformation": "^3.391.0",
94
+ "@aws-sdk/client-dynamodb": "^3.391.0",
95
+ "@aws-sdk/client-ecr": "^3.391.0",
96
+ "@aws-sdk/client-ecs": "^3.391.0",
97
+ "@aws-sdk/client-eventbridge": "^3.391.0",
98
+ "@aws-sdk/client-iam": "^3.391.0",
99
+ "@aws-sdk/client-s3": "^3.391.0",
100
+ "@aws-sdk/client-secrets-manager": "^3.391.0",
101
+ "@aws-sdk/client-sfn": "^3.391.0",
102
+ "@aws-sdk/client-textract": "^3.391.0",
103
+ "@aws-sdk/lib-dynamodb": "^3.391.0",
104
+ "@types/aws-lambda": "^8.10.119",
105
105
  "@types/jest": "^27",
106
106
  "@types/node": "^16",
107
107
  "@types/tsscmp": "^1.0.0",
@@ -109,23 +109,24 @@
109
109
  "@typescript-eslint/parser": "^5",
110
110
  "aws-cdk": "^2",
111
111
  "aws-cdk-lib": "2.1.0",
112
- "aws-sdk-client-mock": "^2.1.1",
113
- "aws-sdk-client-mock-jest": "^2.1.1",
112
+ "aws-sdk-client-mock": "^2.2.0",
113
+ "aws-sdk-client-mock-jest": "^2.2.0",
114
114
  "constructs": "10.0.5",
115
- "esbuild": "^0.18.2",
115
+ "esbuild": "^0.19.2",
116
116
  "eslint": "^8",
117
- "eslint-import-resolver-node": "^0.3.7",
117
+ "eslint-import-resolver-node": "^0.3.9",
118
118
  "eslint-import-resolver-typescript": "^2.7.1",
119
- "eslint-plugin-import": "^2.27.5",
119
+ "eslint-plugin-import": "^2.28.0",
120
120
  "jest": "^27",
121
121
  "jest-junit": "^15",
122
122
  "jsii": "1.x",
123
- "jsii-diff": "^1.83.0",
123
+ "jsii-diff": "^1.87.0",
124
124
  "jsii-docgen": "^1.8.110",
125
- "jsii-pacmak": "^1.83.0",
126
- "nock": "^13.3.1",
125
+ "jsii-pacmak": "^1.87.0",
126
+ "jsii-rosetta": "1.x",
127
+ "nock": "^13.3.2",
127
128
  "npm-check-updates": "^16",
128
- "projen": "^0.71.94",
129
+ "projen": "^0.72.13",
129
130
  "standard-version": "^9",
130
131
  "ts-jest": "^27",
131
132
  "ts-node": "^10.9.1",
@@ -154,7 +155,7 @@
154
155
  ],
155
156
  "main": "lib/index.js",
156
157
  "license": "Apache-2.0",
157
- "version": "0.6.37",
158
+ "version": "0.6.38",
158
159
  "jest": {
159
160
  "testMatch": [
160
161
  "<rootDir>/src/**/__tests__/**/*.ts?(x)",