cdk-ecr-deployment 3.3.0 → 3.3.1

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 (539) hide show
  1. package/.jsii +2 -6
  2. package/lib/index.js +3 -3
  3. package/package.json +1 -13
  4. package/build-lambda.sh +0 -12
  5. package/node_modules/@sindresorhus/is/dist/index.d.ts +0 -232
  6. package/node_modules/@sindresorhus/is/dist/index.js +0 -434
  7. package/node_modules/@sindresorhus/is/dist/types.d.ts +0 -25
  8. package/node_modules/@sindresorhus/is/dist/types.js +0 -3
  9. package/node_modules/@sindresorhus/is/license +0 -9
  10. package/node_modules/@sindresorhus/is/package.json +0 -96
  11. package/node_modules/@sindresorhus/is/readme.md +0 -669
  12. package/node_modules/@szmarczak/http-timer/LICENSE +0 -21
  13. package/node_modules/@szmarczak/http-timer/README.md +0 -93
  14. package/node_modules/@szmarczak/http-timer/dist/source/index.d.ts +0 -32
  15. package/node_modules/@szmarczak/http-timer/dist/source/index.js +0 -126
  16. package/node_modules/@szmarczak/http-timer/package.json +0 -72
  17. package/node_modules/@types/cacheable-request/LICENSE +0 -21
  18. package/node_modules/@types/cacheable-request/README.md +0 -16
  19. package/node_modules/@types/cacheable-request/index.d.ts +0 -137
  20. package/node_modules/@types/cacheable-request/node_modules/@types/node/LICENSE +0 -21
  21. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +0 -15
  22. package/node_modules/@types/cacheable-request/node_modules/@types/node/assert/strict.d.ts +0 -8
  23. package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +0 -1095
  24. package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +0 -541
  25. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.buffer.d.ts +0 -460
  26. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +0 -1926
  27. package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +0 -1549
  28. package/node_modules/@types/cacheable-request/node_modules/@types/node/cluster.d.ts +0 -579
  29. package/node_modules/@types/cacheable-request/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
  30. package/node_modules/@types/cacheable-request/node_modules/@types/node/compatibility/index.d.ts +0 -9
  31. package/node_modules/@types/cacheable-request/node_modules/@types/node/compatibility/indexable.d.ts +0 -23
  32. package/node_modules/@types/cacheable-request/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
  33. package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +0 -452
  34. package/node_modules/@types/cacheable-request/node_modules/@types/node/constants.d.ts +0 -21
  35. package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +0 -4510
  36. package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +0 -599
  37. package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +0 -554
  38. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns/promises.d.ts +0 -476
  39. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +0 -865
  40. package/node_modules/@types/cacheable-request/node_modules/@types/node/dom-events.d.ts +0 -124
  41. package/node_modules/@types/cacheable-request/node_modules/@types/node/domain.d.ts +0 -170
  42. package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +0 -931
  43. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +0 -1275
  44. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +0 -4343
  45. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +0 -511
  46. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.typedarray.d.ts +0 -21
  47. package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +0 -1959
  48. package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +0 -2558
  49. package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +0 -543
  50. package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +0 -92
  51. package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +0 -3966
  52. package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +0 -702
  53. package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +0 -1029
  54. package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +0 -495
  55. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +0 -220
  56. package/node_modules/@types/cacheable-request/node_modules/@types/node/path.d.ts +0 -200
  57. package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +0 -970
  58. package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +0 -2013
  59. package/node_modules/@types/cacheable-request/node_modules/@types/node/punycode.d.ts +0 -117
  60. package/node_modules/@types/cacheable-request/node_modules/@types/node/querystring.d.ts +0 -153
  61. package/node_modules/@types/cacheable-request/node_modules/@types/node/readline/promises.d.ts +0 -162
  62. package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +0 -589
  63. package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +0 -430
  64. package/node_modules/@types/cacheable-request/node_modules/@types/node/sea.d.ts +0 -153
  65. package/node_modules/@types/cacheable-request/node_modules/@types/node/sqlite.d.ts +0 -439
  66. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/consumers.d.ts +0 -12
  67. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/promises.d.ts +0 -90
  68. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +0 -614
  69. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +0 -1662
  70. package/node_modules/@types/cacheable-request/node_modules/@types/node/string_decoder.d.ts +0 -67
  71. package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +0 -2150
  72. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers/promises.d.ts +0 -97
  73. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +0 -240
  74. package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +0 -1226
  75. package/node_modules/@types/cacheable-request/node_modules/@types/node/trace_events.d.ts +0 -197
  76. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -457
  77. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -19
  78. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/index.d.ts +0 -92
  79. package/node_modules/@types/cacheable-request/node_modules/@types/node/tty.d.ts +0 -208
  80. package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +0 -972
  81. package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +0 -2439
  82. package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +0 -808
  83. package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +0 -976
  84. package/node_modules/@types/cacheable-request/node_modules/@types/node/wasi.d.ts +0 -181
  85. package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +0 -745
  86. package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +0 -539
  87. package/node_modules/@types/cacheable-request/node_modules/undici-types/LICENSE +0 -21
  88. package/node_modules/@types/cacheable-request/node_modules/undici-types/README.md +0 -6
  89. package/node_modules/@types/cacheable-request/node_modules/undici-types/agent.d.ts +0 -31
  90. package/node_modules/@types/cacheable-request/node_modules/undici-types/api.d.ts +0 -43
  91. package/node_modules/@types/cacheable-request/node_modules/undici-types/balanced-pool.d.ts +0 -29
  92. package/node_modules/@types/cacheable-request/node_modules/undici-types/cache.d.ts +0 -36
  93. package/node_modules/@types/cacheable-request/node_modules/undici-types/client.d.ts +0 -108
  94. package/node_modules/@types/cacheable-request/node_modules/undici-types/connector.d.ts +0 -34
  95. package/node_modules/@types/cacheable-request/node_modules/undici-types/content-type.d.ts +0 -21
  96. package/node_modules/@types/cacheable-request/node_modules/undici-types/cookies.d.ts +0 -28
  97. package/node_modules/@types/cacheable-request/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
  98. package/node_modules/@types/cacheable-request/node_modules/undici-types/dispatcher.d.ts +0 -255
  99. package/node_modules/@types/cacheable-request/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
  100. package/node_modules/@types/cacheable-request/node_modules/undici-types/errors.d.ts +0 -149
  101. package/node_modules/@types/cacheable-request/node_modules/undici-types/eventsource.d.ts +0 -61
  102. package/node_modules/@types/cacheable-request/node_modules/undici-types/fetch.d.ts +0 -209
  103. package/node_modules/@types/cacheable-request/node_modules/undici-types/file.d.ts +0 -39
  104. package/node_modules/@types/cacheable-request/node_modules/undici-types/filereader.d.ts +0 -54
  105. package/node_modules/@types/cacheable-request/node_modules/undici-types/formdata.d.ts +0 -108
  106. package/node_modules/@types/cacheable-request/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  107. package/node_modules/@types/cacheable-request/node_modules/undici-types/global-origin.d.ts +0 -7
  108. package/node_modules/@types/cacheable-request/node_modules/undici-types/handlers.d.ts +0 -15
  109. package/node_modules/@types/cacheable-request/node_modules/undici-types/header.d.ts +0 -4
  110. package/node_modules/@types/cacheable-request/node_modules/undici-types/index.d.ts +0 -71
  111. package/node_modules/@types/cacheable-request/node_modules/undici-types/interceptors.d.ts +0 -17
  112. package/node_modules/@types/cacheable-request/node_modules/undici-types/mock-agent.d.ts +0 -50
  113. package/node_modules/@types/cacheable-request/node_modules/undici-types/mock-client.d.ts +0 -25
  114. package/node_modules/@types/cacheable-request/node_modules/undici-types/mock-errors.d.ts +0 -12
  115. package/node_modules/@types/cacheable-request/node_modules/undici-types/mock-interceptor.d.ts +0 -93
  116. package/node_modules/@types/cacheable-request/node_modules/undici-types/mock-pool.d.ts +0 -25
  117. package/node_modules/@types/cacheable-request/node_modules/undici-types/package.json +0 -55
  118. package/node_modules/@types/cacheable-request/node_modules/undici-types/patch.d.ts +0 -33
  119. package/node_modules/@types/cacheable-request/node_modules/undici-types/pool-stats.d.ts +0 -19
  120. package/node_modules/@types/cacheable-request/node_modules/undici-types/pool.d.ts +0 -39
  121. package/node_modules/@types/cacheable-request/node_modules/undici-types/proxy-agent.d.ts +0 -28
  122. package/node_modules/@types/cacheable-request/node_modules/undici-types/readable.d.ts +0 -60
  123. package/node_modules/@types/cacheable-request/node_modules/undici-types/retry-agent.d.ts +0 -8
  124. package/node_modules/@types/cacheable-request/node_modules/undici-types/retry-handler.d.ts +0 -116
  125. package/node_modules/@types/cacheable-request/node_modules/undici-types/util.d.ts +0 -18
  126. package/node_modules/@types/cacheable-request/node_modules/undici-types/webidl.d.ts +0 -222
  127. package/node_modules/@types/cacheable-request/node_modules/undici-types/websocket.d.ts +0 -150
  128. package/node_modules/@types/cacheable-request/package.json +0 -35
  129. package/node_modules/@types/http-cache-semantics/LICENSE +0 -21
  130. package/node_modules/@types/http-cache-semantics/README.md +0 -15
  131. package/node_modules/@types/http-cache-semantics/index.d.ts +0 -165
  132. package/node_modules/@types/http-cache-semantics/package.json +0 -25
  133. package/node_modules/@types/keyv/LICENSE +0 -21
  134. package/node_modules/@types/keyv/README.md +0 -16
  135. package/node_modules/@types/keyv/index.d.ts +0 -90
  136. package/node_modules/@types/keyv/node_modules/@types/node/LICENSE +0 -21
  137. package/node_modules/@types/keyv/node_modules/@types/node/README.md +0 -15
  138. package/node_modules/@types/keyv/node_modules/@types/node/assert/strict.d.ts +0 -8
  139. package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +0 -1095
  140. package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +0 -541
  141. package/node_modules/@types/keyv/node_modules/@types/node/buffer.buffer.d.ts +0 -460
  142. package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +0 -1926
  143. package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +0 -1549
  144. package/node_modules/@types/keyv/node_modules/@types/node/cluster.d.ts +0 -579
  145. package/node_modules/@types/keyv/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
  146. package/node_modules/@types/keyv/node_modules/@types/node/compatibility/index.d.ts +0 -9
  147. package/node_modules/@types/keyv/node_modules/@types/node/compatibility/indexable.d.ts +0 -23
  148. package/node_modules/@types/keyv/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
  149. package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +0 -452
  150. package/node_modules/@types/keyv/node_modules/@types/node/constants.d.ts +0 -21
  151. package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +0 -4510
  152. package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +0 -599
  153. package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +0 -554
  154. package/node_modules/@types/keyv/node_modules/@types/node/dns/promises.d.ts +0 -476
  155. package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +0 -865
  156. package/node_modules/@types/keyv/node_modules/@types/node/dom-events.d.ts +0 -124
  157. package/node_modules/@types/keyv/node_modules/@types/node/domain.d.ts +0 -170
  158. package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +0 -931
  159. package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +0 -1275
  160. package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +0 -4343
  161. package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +0 -511
  162. package/node_modules/@types/keyv/node_modules/@types/node/globals.typedarray.d.ts +0 -21
  163. package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +0 -1959
  164. package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +0 -2558
  165. package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +0 -543
  166. package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +0 -92
  167. package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +0 -3966
  168. package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +0 -702
  169. package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +0 -1029
  170. package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +0 -495
  171. package/node_modules/@types/keyv/node_modules/@types/node/package.json +0 -220
  172. package/node_modules/@types/keyv/node_modules/@types/node/path.d.ts +0 -200
  173. package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +0 -970
  174. package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +0 -2013
  175. package/node_modules/@types/keyv/node_modules/@types/node/punycode.d.ts +0 -117
  176. package/node_modules/@types/keyv/node_modules/@types/node/querystring.d.ts +0 -153
  177. package/node_modules/@types/keyv/node_modules/@types/node/readline/promises.d.ts +0 -162
  178. package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +0 -589
  179. package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +0 -430
  180. package/node_modules/@types/keyv/node_modules/@types/node/sea.d.ts +0 -153
  181. package/node_modules/@types/keyv/node_modules/@types/node/sqlite.d.ts +0 -439
  182. package/node_modules/@types/keyv/node_modules/@types/node/stream/consumers.d.ts +0 -12
  183. package/node_modules/@types/keyv/node_modules/@types/node/stream/promises.d.ts +0 -90
  184. package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +0 -614
  185. package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +0 -1662
  186. package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +0 -67
  187. package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +0 -2150
  188. package/node_modules/@types/keyv/node_modules/@types/node/timers/promises.d.ts +0 -97
  189. package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +0 -240
  190. package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +0 -1226
  191. package/node_modules/@types/keyv/node_modules/@types/node/trace_events.d.ts +0 -197
  192. package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -457
  193. package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -19
  194. package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/index.d.ts +0 -92
  195. package/node_modules/@types/keyv/node_modules/@types/node/tty.d.ts +0 -208
  196. package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +0 -972
  197. package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +0 -2439
  198. package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +0 -808
  199. package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +0 -976
  200. package/node_modules/@types/keyv/node_modules/@types/node/wasi.d.ts +0 -181
  201. package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +0 -745
  202. package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +0 -539
  203. package/node_modules/@types/keyv/node_modules/undici-types/LICENSE +0 -21
  204. package/node_modules/@types/keyv/node_modules/undici-types/README.md +0 -6
  205. package/node_modules/@types/keyv/node_modules/undici-types/agent.d.ts +0 -31
  206. package/node_modules/@types/keyv/node_modules/undici-types/api.d.ts +0 -43
  207. package/node_modules/@types/keyv/node_modules/undici-types/balanced-pool.d.ts +0 -29
  208. package/node_modules/@types/keyv/node_modules/undici-types/cache.d.ts +0 -36
  209. package/node_modules/@types/keyv/node_modules/undici-types/client.d.ts +0 -108
  210. package/node_modules/@types/keyv/node_modules/undici-types/connector.d.ts +0 -34
  211. package/node_modules/@types/keyv/node_modules/undici-types/content-type.d.ts +0 -21
  212. package/node_modules/@types/keyv/node_modules/undici-types/cookies.d.ts +0 -28
  213. package/node_modules/@types/keyv/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
  214. package/node_modules/@types/keyv/node_modules/undici-types/dispatcher.d.ts +0 -255
  215. package/node_modules/@types/keyv/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
  216. package/node_modules/@types/keyv/node_modules/undici-types/errors.d.ts +0 -149
  217. package/node_modules/@types/keyv/node_modules/undici-types/eventsource.d.ts +0 -61
  218. package/node_modules/@types/keyv/node_modules/undici-types/fetch.d.ts +0 -209
  219. package/node_modules/@types/keyv/node_modules/undici-types/file.d.ts +0 -39
  220. package/node_modules/@types/keyv/node_modules/undici-types/filereader.d.ts +0 -54
  221. package/node_modules/@types/keyv/node_modules/undici-types/formdata.d.ts +0 -108
  222. package/node_modules/@types/keyv/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  223. package/node_modules/@types/keyv/node_modules/undici-types/global-origin.d.ts +0 -7
  224. package/node_modules/@types/keyv/node_modules/undici-types/handlers.d.ts +0 -15
  225. package/node_modules/@types/keyv/node_modules/undici-types/header.d.ts +0 -4
  226. package/node_modules/@types/keyv/node_modules/undici-types/index.d.ts +0 -71
  227. package/node_modules/@types/keyv/node_modules/undici-types/interceptors.d.ts +0 -17
  228. package/node_modules/@types/keyv/node_modules/undici-types/mock-agent.d.ts +0 -50
  229. package/node_modules/@types/keyv/node_modules/undici-types/mock-client.d.ts +0 -25
  230. package/node_modules/@types/keyv/node_modules/undici-types/mock-errors.d.ts +0 -12
  231. package/node_modules/@types/keyv/node_modules/undici-types/mock-interceptor.d.ts +0 -93
  232. package/node_modules/@types/keyv/node_modules/undici-types/mock-pool.d.ts +0 -25
  233. package/node_modules/@types/keyv/node_modules/undici-types/package.json +0 -55
  234. package/node_modules/@types/keyv/node_modules/undici-types/patch.d.ts +0 -33
  235. package/node_modules/@types/keyv/node_modules/undici-types/pool-stats.d.ts +0 -19
  236. package/node_modules/@types/keyv/node_modules/undici-types/pool.d.ts +0 -39
  237. package/node_modules/@types/keyv/node_modules/undici-types/proxy-agent.d.ts +0 -28
  238. package/node_modules/@types/keyv/node_modules/undici-types/readable.d.ts +0 -60
  239. package/node_modules/@types/keyv/node_modules/undici-types/retry-agent.d.ts +0 -8
  240. package/node_modules/@types/keyv/node_modules/undici-types/retry-handler.d.ts +0 -116
  241. package/node_modules/@types/keyv/node_modules/undici-types/util.d.ts +0 -18
  242. package/node_modules/@types/keyv/node_modules/undici-types/webidl.d.ts +0 -222
  243. package/node_modules/@types/keyv/node_modules/undici-types/websocket.d.ts +0 -150
  244. package/node_modules/@types/keyv/package.json +0 -32
  245. package/node_modules/@types/responselike/LICENSE +0 -21
  246. package/node_modules/@types/responselike/README.md +0 -48
  247. package/node_modules/@types/responselike/index.d.ts +0 -29
  248. package/node_modules/@types/responselike/node_modules/@types/node/LICENSE +0 -21
  249. package/node_modules/@types/responselike/node_modules/@types/node/README.md +0 -15
  250. package/node_modules/@types/responselike/node_modules/@types/node/assert/strict.d.ts +0 -8
  251. package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +0 -1095
  252. package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +0 -541
  253. package/node_modules/@types/responselike/node_modules/@types/node/buffer.buffer.d.ts +0 -460
  254. package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +0 -1926
  255. package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +0 -1549
  256. package/node_modules/@types/responselike/node_modules/@types/node/cluster.d.ts +0 -579
  257. package/node_modules/@types/responselike/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
  258. package/node_modules/@types/responselike/node_modules/@types/node/compatibility/index.d.ts +0 -9
  259. package/node_modules/@types/responselike/node_modules/@types/node/compatibility/indexable.d.ts +0 -23
  260. package/node_modules/@types/responselike/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
  261. package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +0 -452
  262. package/node_modules/@types/responselike/node_modules/@types/node/constants.d.ts +0 -21
  263. package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +0 -4510
  264. package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +0 -599
  265. package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +0 -554
  266. package/node_modules/@types/responselike/node_modules/@types/node/dns/promises.d.ts +0 -476
  267. package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +0 -865
  268. package/node_modules/@types/responselike/node_modules/@types/node/dom-events.d.ts +0 -124
  269. package/node_modules/@types/responselike/node_modules/@types/node/domain.d.ts +0 -170
  270. package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +0 -931
  271. package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +0 -1275
  272. package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +0 -4343
  273. package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +0 -511
  274. package/node_modules/@types/responselike/node_modules/@types/node/globals.typedarray.d.ts +0 -21
  275. package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +0 -1959
  276. package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +0 -2558
  277. package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +0 -543
  278. package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +0 -92
  279. package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +0 -3966
  280. package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +0 -702
  281. package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +0 -1029
  282. package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +0 -495
  283. package/node_modules/@types/responselike/node_modules/@types/node/package.json +0 -220
  284. package/node_modules/@types/responselike/node_modules/@types/node/path.d.ts +0 -200
  285. package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +0 -970
  286. package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +0 -2013
  287. package/node_modules/@types/responselike/node_modules/@types/node/punycode.d.ts +0 -117
  288. package/node_modules/@types/responselike/node_modules/@types/node/querystring.d.ts +0 -153
  289. package/node_modules/@types/responselike/node_modules/@types/node/readline/promises.d.ts +0 -162
  290. package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +0 -589
  291. package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +0 -430
  292. package/node_modules/@types/responselike/node_modules/@types/node/sea.d.ts +0 -153
  293. package/node_modules/@types/responselike/node_modules/@types/node/sqlite.d.ts +0 -439
  294. package/node_modules/@types/responselike/node_modules/@types/node/stream/consumers.d.ts +0 -12
  295. package/node_modules/@types/responselike/node_modules/@types/node/stream/promises.d.ts +0 -90
  296. package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +0 -614
  297. package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +0 -1662
  298. package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +0 -67
  299. package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +0 -2150
  300. package/node_modules/@types/responselike/node_modules/@types/node/timers/promises.d.ts +0 -97
  301. package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +0 -240
  302. package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +0 -1226
  303. package/node_modules/@types/responselike/node_modules/@types/node/trace_events.d.ts +0 -197
  304. package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -457
  305. package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -19
  306. package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/index.d.ts +0 -92
  307. package/node_modules/@types/responselike/node_modules/@types/node/tty.d.ts +0 -208
  308. package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +0 -972
  309. package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +0 -2439
  310. package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +0 -808
  311. package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +0 -976
  312. package/node_modules/@types/responselike/node_modules/@types/node/wasi.d.ts +0 -181
  313. package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +0 -745
  314. package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +0 -539
  315. package/node_modules/@types/responselike/node_modules/undici-types/LICENSE +0 -21
  316. package/node_modules/@types/responselike/node_modules/undici-types/README.md +0 -6
  317. package/node_modules/@types/responselike/node_modules/undici-types/agent.d.ts +0 -31
  318. package/node_modules/@types/responselike/node_modules/undici-types/api.d.ts +0 -43
  319. package/node_modules/@types/responselike/node_modules/undici-types/balanced-pool.d.ts +0 -29
  320. package/node_modules/@types/responselike/node_modules/undici-types/cache.d.ts +0 -36
  321. package/node_modules/@types/responselike/node_modules/undici-types/client.d.ts +0 -108
  322. package/node_modules/@types/responselike/node_modules/undici-types/connector.d.ts +0 -34
  323. package/node_modules/@types/responselike/node_modules/undici-types/content-type.d.ts +0 -21
  324. package/node_modules/@types/responselike/node_modules/undici-types/cookies.d.ts +0 -28
  325. package/node_modules/@types/responselike/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
  326. package/node_modules/@types/responselike/node_modules/undici-types/dispatcher.d.ts +0 -255
  327. package/node_modules/@types/responselike/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
  328. package/node_modules/@types/responselike/node_modules/undici-types/errors.d.ts +0 -149
  329. package/node_modules/@types/responselike/node_modules/undici-types/eventsource.d.ts +0 -61
  330. package/node_modules/@types/responselike/node_modules/undici-types/fetch.d.ts +0 -209
  331. package/node_modules/@types/responselike/node_modules/undici-types/file.d.ts +0 -39
  332. package/node_modules/@types/responselike/node_modules/undici-types/filereader.d.ts +0 -54
  333. package/node_modules/@types/responselike/node_modules/undici-types/formdata.d.ts +0 -108
  334. package/node_modules/@types/responselike/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  335. package/node_modules/@types/responselike/node_modules/undici-types/global-origin.d.ts +0 -7
  336. package/node_modules/@types/responselike/node_modules/undici-types/handlers.d.ts +0 -15
  337. package/node_modules/@types/responselike/node_modules/undici-types/header.d.ts +0 -4
  338. package/node_modules/@types/responselike/node_modules/undici-types/index.d.ts +0 -71
  339. package/node_modules/@types/responselike/node_modules/undici-types/interceptors.d.ts +0 -17
  340. package/node_modules/@types/responselike/node_modules/undici-types/mock-agent.d.ts +0 -50
  341. package/node_modules/@types/responselike/node_modules/undici-types/mock-client.d.ts +0 -25
  342. package/node_modules/@types/responselike/node_modules/undici-types/mock-errors.d.ts +0 -12
  343. package/node_modules/@types/responselike/node_modules/undici-types/mock-interceptor.d.ts +0 -93
  344. package/node_modules/@types/responselike/node_modules/undici-types/mock-pool.d.ts +0 -25
  345. package/node_modules/@types/responselike/node_modules/undici-types/package.json +0 -55
  346. package/node_modules/@types/responselike/node_modules/undici-types/patch.d.ts +0 -33
  347. package/node_modules/@types/responselike/node_modules/undici-types/pool-stats.d.ts +0 -19
  348. package/node_modules/@types/responselike/node_modules/undici-types/pool.d.ts +0 -39
  349. package/node_modules/@types/responselike/node_modules/undici-types/proxy-agent.d.ts +0 -28
  350. package/node_modules/@types/responselike/node_modules/undici-types/readable.d.ts +0 -60
  351. package/node_modules/@types/responselike/node_modules/undici-types/retry-agent.d.ts +0 -8
  352. package/node_modules/@types/responselike/node_modules/undici-types/retry-handler.d.ts +0 -116
  353. package/node_modules/@types/responselike/node_modules/undici-types/util.d.ts +0 -18
  354. package/node_modules/@types/responselike/node_modules/undici-types/webidl.d.ts +0 -222
  355. package/node_modules/@types/responselike/node_modules/undici-types/websocket.d.ts +0 -150
  356. package/node_modules/@types/responselike/package.json +0 -27
  357. package/node_modules/cacheable-lookup/LICENSE +0 -21
  358. package/node_modules/cacheable-lookup/README.md +0 -240
  359. package/node_modules/cacheable-lookup/index.d.ts +0 -139
  360. package/node_modules/cacheable-lookup/package.json +0 -45
  361. package/node_modules/cacheable-lookup/source/index.js +0 -436
  362. package/node_modules/cacheable-request/LICENSE +0 -21
  363. package/node_modules/cacheable-request/README.md +0 -206
  364. package/node_modules/cacheable-request/package.json +0 -56
  365. package/node_modules/cacheable-request/src/index.js +0 -251
  366. package/node_modules/clone-response/LICENSE +0 -21
  367. package/node_modules/clone-response/README.md +0 -62
  368. package/node_modules/clone-response/node_modules/mimic-response/index.js +0 -32
  369. package/node_modules/clone-response/node_modules/mimic-response/license +0 -9
  370. package/node_modules/clone-response/node_modules/mimic-response/package.json +0 -37
  371. package/node_modules/clone-response/node_modules/mimic-response/readme.md +0 -54
  372. package/node_modules/clone-response/package.json +0 -41
  373. package/node_modules/clone-response/src/index.js +0 -17
  374. package/node_modules/decompress-response/index.d.ts +0 -22
  375. package/node_modules/decompress-response/index.js +0 -58
  376. package/node_modules/decompress-response/license +0 -9
  377. package/node_modules/decompress-response/package.json +0 -56
  378. package/node_modules/decompress-response/readme.md +0 -48
  379. package/node_modules/defer-to-connect/LICENSE +0 -21
  380. package/node_modules/defer-to-connect/README.md +0 -38
  381. package/node_modules/defer-to-connect/dist/source/index.d.ts +0 -10
  382. package/node_modules/defer-to-connect/dist/source/index.js +0 -47
  383. package/node_modules/defer-to-connect/package.json +0 -71
  384. package/node_modules/end-of-stream/LICENSE +0 -21
  385. package/node_modules/end-of-stream/README.md +0 -54
  386. package/node_modules/end-of-stream/index.js +0 -94
  387. package/node_modules/end-of-stream/package.json +0 -37
  388. package/node_modules/get-stream/buffer-stream.js +0 -52
  389. package/node_modules/get-stream/index.d.ts +0 -108
  390. package/node_modules/get-stream/index.js +0 -60
  391. package/node_modules/get-stream/license +0 -9
  392. package/node_modules/get-stream/package.json +0 -50
  393. package/node_modules/get-stream/readme.md +0 -124
  394. package/node_modules/got/dist/source/as-promise/create-rejection.d.ts +0 -2
  395. package/node_modules/got/dist/source/as-promise/create-rejection.js +0 -30
  396. package/node_modules/got/dist/source/as-promise/index.d.ts +0 -3
  397. package/node_modules/got/dist/source/as-promise/index.js +0 -176
  398. package/node_modules/got/dist/source/as-promise/normalize-arguments.d.ts +0 -3
  399. package/node_modules/got/dist/source/as-promise/normalize-arguments.js +0 -78
  400. package/node_modules/got/dist/source/as-promise/parse-body.d.ts +0 -3
  401. package/node_modules/got/dist/source/as-promise/parse-body.js +0 -25
  402. package/node_modules/got/dist/source/as-promise/types.d.ts +0 -256
  403. package/node_modules/got/dist/source/as-promise/types.js +0 -42
  404. package/node_modules/got/dist/source/core/calculate-retry-delay.d.ts +0 -5
  405. package/node_modules/got/dist/source/core/calculate-retry-delay.js +0 -29
  406. package/node_modules/got/dist/source/core/index.d.ts +0 -1124
  407. package/node_modules/got/dist/source/core/index.js +0 -1505
  408. package/node_modules/got/dist/source/core/utils/dns-ip-version.d.ts +0 -5
  409. package/node_modules/got/dist/source/core/utils/dns-ip-version.js +0 -17
  410. package/node_modules/got/dist/source/core/utils/get-body-size.d.ts +0 -3
  411. package/node_modules/got/dist/source/core/utils/get-body-size.js +0 -32
  412. package/node_modules/got/dist/source/core/utils/get-buffer.d.ts +0 -4
  413. package/node_modules/got/dist/source/core/utils/get-buffer.js +0 -16
  414. package/node_modules/got/dist/source/core/utils/is-form-data.d.ts +0 -8
  415. package/node_modules/got/dist/source/core/utils/is-form-data.js +0 -4
  416. package/node_modules/got/dist/source/core/utils/is-response-ok.d.ts +0 -2
  417. package/node_modules/got/dist/source/core/utils/is-response-ok.js +0 -8
  418. package/node_modules/got/dist/source/core/utils/options-to-url.d.ts +0 -14
  419. package/node_modules/got/dist/source/core/utils/options-to-url.js +0 -53
  420. package/node_modules/got/dist/source/core/utils/proxy-events.d.ts +0 -3
  421. package/node_modules/got/dist/source/core/utils/proxy-events.js +0 -17
  422. package/node_modules/got/dist/source/core/utils/timed-out.d.ts +0 -29
  423. package/node_modules/got/dist/source/core/utils/timed-out.js +0 -121
  424. package/node_modules/got/dist/source/core/utils/unhandle.d.ts +0 -11
  425. package/node_modules/got/dist/source/core/utils/unhandle.js +0 -22
  426. package/node_modules/got/dist/source/core/utils/url-to-options.d.ts +0 -15
  427. package/node_modules/got/dist/source/core/utils/url-to-options.js +0 -24
  428. package/node_modules/got/dist/source/core/utils/weakable-map.d.ts +0 -8
  429. package/node_modules/got/dist/source/core/utils/weakable-map.js +0 -29
  430. package/node_modules/got/dist/source/create.d.ts +0 -5
  431. package/node_modules/got/dist/source/create.js +0 -240
  432. package/node_modules/got/dist/source/index.d.ts +0 -4
  433. package/node_modules/got/dist/source/index.js +0 -132
  434. package/node_modules/got/dist/source/types.d.ts +0 -344
  435. package/node_modules/got/dist/source/types.js +0 -2
  436. package/node_modules/got/dist/source/utils/deep-freeze.d.ts +0 -1
  437. package/node_modules/got/dist/source/utils/deep-freeze.js +0 -12
  438. package/node_modules/got/dist/source/utils/deprecation-warning.d.ts +0 -2
  439. package/node_modules/got/dist/source/utils/deprecation-warning.js +0 -13
  440. package/node_modules/got/license +0 -9
  441. package/node_modules/got/package.json +0 -131
  442. package/node_modules/got/readme.md +0 -2477
  443. package/node_modules/hpagent/.github/dependabot.yml +0 -8
  444. package/node_modules/hpagent/.github/workflows/build.yml +0 -29
  445. package/node_modules/hpagent/LICENSE +0 -21
  446. package/node_modules/hpagent/README.md +0 -138
  447. package/node_modules/hpagent/index.d.ts +0 -26
  448. package/node_modules/hpagent/index.js +0 -101
  449. package/node_modules/hpagent/index.mjs +0 -5
  450. package/node_modules/hpagent/package.json +0 -49
  451. package/node_modules/hpagent/test/got.test.js +0 -111
  452. package/node_modules/hpagent/test/http-http.test.js +0 -351
  453. package/node_modules/hpagent/test/http-https.test.js +0 -313
  454. package/node_modules/hpagent/test/https-http.test.js +0 -313
  455. package/node_modules/hpagent/test/https-https.test.js +0 -313
  456. package/node_modules/hpagent/test/index.test-d.ts +0 -45
  457. package/node_modules/hpagent/test/needle.test.js +0 -103
  458. package/node_modules/hpagent/test/node-fetch.test.js +0 -103
  459. package/node_modules/hpagent/test/simple-get.test.js +0 -139
  460. package/node_modules/hpagent/test/ssl.cert +0 -19
  461. package/node_modules/hpagent/test/ssl.key +0 -27
  462. package/node_modules/hpagent/test/utils.js +0 -59
  463. package/node_modules/http-cache-semantics/LICENSE +0 -9
  464. package/node_modules/http-cache-semantics/README.md +0 -203
  465. package/node_modules/http-cache-semantics/index.js +0 -674
  466. package/node_modules/http-cache-semantics/package.json +0 -18
  467. package/node_modules/http2-wrapper/LICENSE +0 -21
  468. package/node_modules/http2-wrapper/README.md +0 -470
  469. package/node_modules/http2-wrapper/package.json +0 -54
  470. package/node_modules/http2-wrapper/source/agent.js +0 -670
  471. package/node_modules/http2-wrapper/source/auto.js +0 -149
  472. package/node_modules/http2-wrapper/source/client-request.js +0 -445
  473. package/node_modules/http2-wrapper/source/incoming-message.js +0 -58
  474. package/node_modules/http2-wrapper/source/index.js +0 -28
  475. package/node_modules/http2-wrapper/source/utils/calculate-server-name.js +0 -27
  476. package/node_modules/http2-wrapper/source/utils/errors.js +0 -45
  477. package/node_modules/http2-wrapper/source/utils/is-request-pseudo-header.js +0 -13
  478. package/node_modules/http2-wrapper/source/utils/proxy-events.js +0 -7
  479. package/node_modules/http2-wrapper/source/utils/url-to-options.js +0 -25
  480. package/node_modules/json-buffer/.travis.yml +0 -3
  481. package/node_modules/json-buffer/LICENSE +0 -22
  482. package/node_modules/json-buffer/README.md +0 -24
  483. package/node_modules/json-buffer/index.js +0 -58
  484. package/node_modules/json-buffer/package.json +0 -34
  485. package/node_modules/json-buffer/test/index.js +0 -63
  486. package/node_modules/keyv/README.md +0 -429
  487. package/node_modules/keyv/package.json +0 -57
  488. package/node_modules/keyv/src/index.d.ts +0 -112
  489. package/node_modules/keyv/src/index.js +0 -259
  490. package/node_modules/lowercase-keys/index.d.ts +0 -16
  491. package/node_modules/lowercase-keys/index.js +0 -10
  492. package/node_modules/lowercase-keys/license +0 -9
  493. package/node_modules/lowercase-keys/package.json +0 -38
  494. package/node_modules/lowercase-keys/readme.md +0 -32
  495. package/node_modules/mimic-response/index.d.ts +0 -17
  496. package/node_modules/mimic-response/index.js +0 -77
  497. package/node_modules/mimic-response/license +0 -9
  498. package/node_modules/mimic-response/package.json +0 -42
  499. package/node_modules/mimic-response/readme.md +0 -78
  500. package/node_modules/normalize-url/index.d.ts +0 -267
  501. package/node_modules/normalize-url/index.js +0 -216
  502. package/node_modules/normalize-url/license +0 -9
  503. package/node_modules/normalize-url/package.json +0 -50
  504. package/node_modules/normalize-url/readme.md +0 -286
  505. package/node_modules/once/LICENSE +0 -15
  506. package/node_modules/once/README.md +0 -79
  507. package/node_modules/once/once.js +0 -42
  508. package/node_modules/once/package.json +0 -33
  509. package/node_modules/p-cancelable/index.d.ts +0 -176
  510. package/node_modules/p-cancelable/index.js +0 -111
  511. package/node_modules/p-cancelable/license +0 -9
  512. package/node_modules/p-cancelable/package.json +0 -49
  513. package/node_modules/p-cancelable/readme.md +0 -153
  514. package/node_modules/pump/.github/FUNDING.yml +0 -2
  515. package/node_modules/pump/.travis.yml +0 -5
  516. package/node_modules/pump/LICENSE +0 -21
  517. package/node_modules/pump/README.md +0 -74
  518. package/node_modules/pump/SECURITY.md +0 -5
  519. package/node_modules/pump/index.js +0 -86
  520. package/node_modules/pump/package.json +0 -24
  521. package/node_modules/pump/test-browser.js +0 -66
  522. package/node_modules/pump/test-node.js +0 -53
  523. package/node_modules/quick-lru/index.d.ts +0 -97
  524. package/node_modules/quick-lru/index.js +0 -123
  525. package/node_modules/quick-lru/license +0 -9
  526. package/node_modules/quick-lru/package.json +0 -43
  527. package/node_modules/quick-lru/readme.md +0 -111
  528. package/node_modules/resolve-alpn/LICENSE +0 -22
  529. package/node_modules/resolve-alpn/README.md +0 -60
  530. package/node_modules/resolve-alpn/index.js +0 -43
  531. package/node_modules/resolve-alpn/package.json +0 -34
  532. package/node_modules/responselike/LICENSE +0 -19
  533. package/node_modules/responselike/README.md +0 -77
  534. package/node_modules/responselike/package.json +0 -39
  535. package/node_modules/responselike/src/index.js +0 -34
  536. package/node_modules/wrappy/LICENSE +0 -15
  537. package/node_modules/wrappy/README.md +0 -36
  538. package/node_modules/wrappy/package.json +0 -29
  539. package/node_modules/wrappy/wrappy.js +0 -33
@@ -1,865 +0,0 @@
1
- /**
2
- * The `node:dns` module enables name resolution. For example, use it to look up IP
3
- * addresses of host names.
4
- *
5
- * Although named for the [Domain Name System (DNS)](https://en.wikipedia.org/wiki/Domain_Name_System), it does not always use the
6
- * DNS protocol for lookups. {@link lookup} uses the operating system
7
- * facilities to perform name resolution. It may not need to perform any network
8
- * communication. To perform name resolution the way other applications on the same
9
- * system do, use {@link lookup}.
10
- *
11
- * ```js
12
- * import dns from 'node:dns';
13
- *
14
- * dns.lookup('example.org', (err, address, family) => {
15
- * console.log('address: %j family: IPv%s', address, family);
16
- * });
17
- * // address: "93.184.216.34" family: IPv4
18
- * ```
19
- *
20
- * All other functions in the `node:dns` module connect to an actual DNS server to
21
- * perform name resolution. They will always use the network to perform DNS
22
- * queries. These functions do not use the same set of configuration files used by {@link lookup} (e.g. `/etc/hosts`). Use these functions to always perform
23
- * DNS queries, bypassing other name-resolution facilities.
24
- *
25
- * ```js
26
- * import dns from 'node:dns';
27
- *
28
- * dns.resolve4('archive.org', (err, addresses) => {
29
- * if (err) throw err;
30
- *
31
- * console.log(`addresses: ${JSON.stringify(addresses)}`);
32
- *
33
- * addresses.forEach((a) => {
34
- * dns.reverse(a, (err, hostnames) => {
35
- * if (err) {
36
- * throw err;
37
- * }
38
- * console.log(`reverse for ${a}: ${JSON.stringify(hostnames)}`);
39
- * });
40
- * });
41
- * });
42
- * ```
43
- *
44
- * See the [Implementation considerations section](https://nodejs.org/docs/latest-v22.x/api/dns.html#implementation-considerations) for more information.
45
- * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/dns.js)
46
- */
47
- declare module "dns" {
48
- import * as dnsPromises from "node:dns/promises";
49
- // Supported getaddrinfo flags.
50
- /**
51
- * Limits returned address types to the types of non-loopback addresses configured on the system. For example, IPv4 addresses are
52
- * only returned if the current system has at least one IPv4 address configured.
53
- */
54
- export const ADDRCONFIG: number;
55
- /**
56
- * If the IPv6 family was specified, but no IPv6 addresses were found, then return IPv4 mapped IPv6 addresses. It is not supported
57
- * on some operating systems (e.g. FreeBSD 10.1).
58
- */
59
- export const V4MAPPED: number;
60
- /**
61
- * If `dns.V4MAPPED` is specified, return resolved IPv6 addresses as
62
- * well as IPv4 mapped IPv6 addresses.
63
- */
64
- export const ALL: number;
65
- export interface LookupOptions {
66
- /**
67
- * The record family. Must be `4`, `6`, or `0`. For backward compatibility reasons, `'IPv4'` and `'IPv6'` are interpreted
68
- * as `4` and `6` respectively. The value 0 indicates that either an IPv4 or IPv6 address is returned. If the value `0` is used
69
- * with `{ all: true } (see below)`, both IPv4 and IPv6 addresses are returned.
70
- * @default 0
71
- */
72
- family?: number | "IPv4" | "IPv6" | undefined;
73
- /**
74
- * One or more [supported `getaddrinfo`](https://nodejs.org/docs/latest-v22.x/api/dns.html#supported-getaddrinfo-flags) flags. Multiple flags may be
75
- * passed by bitwise `OR`ing their values.
76
- */
77
- hints?: number | undefined;
78
- /**
79
- * When `true`, the callback returns all resolved addresses in an array. Otherwise, returns a single address.
80
- * @default false
81
- */
82
- all?: boolean | undefined;
83
- /**
84
- * When `verbatim`, the resolved addresses are return unsorted. When `ipv4first`, the resolved addresses are sorted
85
- * by placing IPv4 addresses before IPv6 addresses. When `ipv6first`, the resolved addresses are sorted by placing IPv6
86
- * addresses before IPv4 addresses. Default value is configurable using
87
- * {@link setDefaultResultOrder} or [`--dns-result-order`](https://nodejs.org/docs/latest-v22.x/api/cli.html#--dns-result-orderorder).
88
- * @default `verbatim` (addresses are not reordered)
89
- * @since v22.1.0
90
- */
91
- order?: "ipv4first" | "ipv6first" | "verbatim" | undefined;
92
- /**
93
- * When `true`, the callback receives IPv4 and IPv6 addresses in the order the DNS resolver returned them. When `false`, IPv4
94
- * addresses are placed before IPv6 addresses. This option will be deprecated in favor of `order`. When both are specified,
95
- * `order` has higher precedence. New code should only use `order`. Default value is configurable using {@link setDefaultResultOrder}
96
- * @default true (addresses are not reordered)
97
- * @deprecated Please use `order` option
98
- */
99
- verbatim?: boolean | undefined;
100
- }
101
- export interface LookupOneOptions extends LookupOptions {
102
- all?: false | undefined;
103
- }
104
- export interface LookupAllOptions extends LookupOptions {
105
- all: true;
106
- }
107
- export interface LookupAddress {
108
- /**
109
- * A string representation of an IPv4 or IPv6 address.
110
- */
111
- address: string;
112
- /**
113
- * `4` or `6`, denoting the family of `address`, or `0` if the address is not an IPv4 or IPv6 address. `0` is a likely indicator of a
114
- * bug in the name resolution service used by the operating system.
115
- */
116
- family: number;
117
- }
118
- /**
119
- * Resolves a host name (e.g. `'nodejs.org'`) into the first found A (IPv4) or
120
- * AAAA (IPv6) record. All `option` properties are optional. If `options` is an
121
- * integer, then it must be `4` or `6` – if `options` is `0` or not provided, then
122
- * IPv4 and IPv6 addresses are both returned if found.
123
- *
124
- * With the `all` option set to `true`, the arguments for `callback` change to `(err, addresses)`, with `addresses` being an array of objects with the
125
- * properties `address` and `family`.
126
- *
127
- * On error, `err` is an `Error` object, where `err.code` is the error code.
128
- * Keep in mind that `err.code` will be set to `'ENOTFOUND'` not only when
129
- * the host name does not exist but also when the lookup fails in other ways
130
- * such as no available file descriptors.
131
- *
132
- * `dns.lookup()` does not necessarily have anything to do with the DNS protocol.
133
- * The implementation uses an operating system facility that can associate names
134
- * with addresses and vice versa. This implementation can have subtle but
135
- * important consequences on the behavior of any Node.js program. Please take some
136
- * time to consult the [Implementation considerations section](https://nodejs.org/docs/latest-v22.x/api/dns.html#implementation-considerations)
137
- * before using `dns.lookup()`.
138
- *
139
- * Example usage:
140
- *
141
- * ```js
142
- * import dns from 'node:dns';
143
- * const options = {
144
- * family: 6,
145
- * hints: dns.ADDRCONFIG | dns.V4MAPPED,
146
- * };
147
- * dns.lookup('example.com', options, (err, address, family) =>
148
- * console.log('address: %j family: IPv%s', address, family));
149
- * // address: "2606:2800:220:1:248:1893:25c8:1946" family: IPv6
150
- *
151
- * // When options.all is true, the result will be an Array.
152
- * options.all = true;
153
- * dns.lookup('example.com', options, (err, addresses) =>
154
- * console.log('addresses: %j', addresses));
155
- * // addresses: [{"address":"2606:2800:220:1:248:1893:25c8:1946","family":6}]
156
- * ```
157
- *
158
- * If this method is invoked as its [util.promisify()](https://nodejs.org/docs/latest-v22.x/api/util.html#utilpromisifyoriginal) ed
159
- * version, and `all` is not set to `true`, it returns a `Promise` for an `Object` with `address` and `family` properties.
160
- * @since v0.1.90
161
- */
162
- export function lookup(
163
- hostname: string,
164
- family: number,
165
- callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void,
166
- ): void;
167
- export function lookup(
168
- hostname: string,
169
- options: LookupOneOptions,
170
- callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void,
171
- ): void;
172
- export function lookup(
173
- hostname: string,
174
- options: LookupAllOptions,
175
- callback: (err: NodeJS.ErrnoException | null, addresses: LookupAddress[]) => void,
176
- ): void;
177
- export function lookup(
178
- hostname: string,
179
- options: LookupOptions,
180
- callback: (err: NodeJS.ErrnoException | null, address: string | LookupAddress[], family: number) => void,
181
- ): void;
182
- export function lookup(
183
- hostname: string,
184
- callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void,
185
- ): void;
186
- export namespace lookup {
187
- function __promisify__(hostname: string, options: LookupAllOptions): Promise<LookupAddress[]>;
188
- function __promisify__(hostname: string, options?: LookupOneOptions | number): Promise<LookupAddress>;
189
- function __promisify__(hostname: string, options: LookupOptions): Promise<LookupAddress | LookupAddress[]>;
190
- }
191
- /**
192
- * Resolves the given `address` and `port` into a host name and service using
193
- * the operating system's underlying `getnameinfo` implementation.
194
- *
195
- * If `address` is not a valid IP address, a `TypeError` will be thrown.
196
- * The `port` will be coerced to a number. If it is not a legal port, a `TypeError` will be thrown.
197
- *
198
- * On an error, `err` is an [`Error`](https://nodejs.org/docs/latest-v22.x/api/errors.html#class-error) object,
199
- * where `err.code` is the error code.
200
- *
201
- * ```js
202
- * import dns from 'node:dns';
203
- * dns.lookupService('127.0.0.1', 22, (err, hostname, service) => {
204
- * console.log(hostname, service);
205
- * // Prints: localhost ssh
206
- * });
207
- * ```
208
- *
209
- * If this method is invoked as its [util.promisify()](https://nodejs.org/docs/latest-v22.x/api/util.html#utilpromisifyoriginal) ed
210
- * version, it returns a `Promise` for an `Object` with `hostname` and `service` properties.
211
- * @since v0.11.14
212
- */
213
- export function lookupService(
214
- address: string,
215
- port: number,
216
- callback: (err: NodeJS.ErrnoException | null, hostname: string, service: string) => void,
217
- ): void;
218
- export namespace lookupService {
219
- function __promisify__(
220
- address: string,
221
- port: number,
222
- ): Promise<{
223
- hostname: string;
224
- service: string;
225
- }>;
226
- }
227
- export interface ResolveOptions {
228
- ttl: boolean;
229
- }
230
- export interface ResolveWithTtlOptions extends ResolveOptions {
231
- ttl: true;
232
- }
233
- export interface RecordWithTtl {
234
- address: string;
235
- ttl: number;
236
- }
237
- /** @deprecated Use `AnyARecord` or `AnyAaaaRecord` instead. */
238
- export type AnyRecordWithTtl = AnyARecord | AnyAaaaRecord;
239
- export interface AnyARecord extends RecordWithTtl {
240
- type: "A";
241
- }
242
- export interface AnyAaaaRecord extends RecordWithTtl {
243
- type: "AAAA";
244
- }
245
- export interface CaaRecord {
246
- critical: number;
247
- issue?: string | undefined;
248
- issuewild?: string | undefined;
249
- iodef?: string | undefined;
250
- contactemail?: string | undefined;
251
- contactphone?: string | undefined;
252
- }
253
- export interface MxRecord {
254
- priority: number;
255
- exchange: string;
256
- }
257
- export interface AnyMxRecord extends MxRecord {
258
- type: "MX";
259
- }
260
- export interface NaptrRecord {
261
- flags: string;
262
- service: string;
263
- regexp: string;
264
- replacement: string;
265
- order: number;
266
- preference: number;
267
- }
268
- export interface AnyNaptrRecord extends NaptrRecord {
269
- type: "NAPTR";
270
- }
271
- export interface SoaRecord {
272
- nsname: string;
273
- hostmaster: string;
274
- serial: number;
275
- refresh: number;
276
- retry: number;
277
- expire: number;
278
- minttl: number;
279
- }
280
- export interface AnySoaRecord extends SoaRecord {
281
- type: "SOA";
282
- }
283
- export interface SrvRecord {
284
- priority: number;
285
- weight: number;
286
- port: number;
287
- name: string;
288
- }
289
- export interface AnySrvRecord extends SrvRecord {
290
- type: "SRV";
291
- }
292
- export interface AnyTxtRecord {
293
- type: "TXT";
294
- entries: string[];
295
- }
296
- export interface AnyNsRecord {
297
- type: "NS";
298
- value: string;
299
- }
300
- export interface AnyPtrRecord {
301
- type: "PTR";
302
- value: string;
303
- }
304
- export interface AnyCnameRecord {
305
- type: "CNAME";
306
- value: string;
307
- }
308
- export type AnyRecord =
309
- | AnyARecord
310
- | AnyAaaaRecord
311
- | AnyCnameRecord
312
- | AnyMxRecord
313
- | AnyNaptrRecord
314
- | AnyNsRecord
315
- | AnyPtrRecord
316
- | AnySoaRecord
317
- | AnySrvRecord
318
- | AnyTxtRecord;
319
- /**
320
- * Uses the DNS protocol to resolve a host name (e.g. `'nodejs.org'`) into an array
321
- * of the resource records. The `callback` function has arguments `(err, records)`. When successful, `records` will be an array of resource
322
- * records. The type and structure of individual results varies based on `rrtype`:
323
- *
324
- * <omitted>
325
- *
326
- * On error, `err` is an [`Error`](https://nodejs.org/docs/latest-v22.x/api/errors.html#class-error) object,
327
- * where `err.code` is one of the `DNS error codes`.
328
- * @since v0.1.27
329
- * @param hostname Host name to resolve.
330
- * @param [rrtype='A'] Resource record type.
331
- */
332
- export function resolve(
333
- hostname: string,
334
- callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
335
- ): void;
336
- export function resolve(
337
- hostname: string,
338
- rrtype: "A",
339
- callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
340
- ): void;
341
- export function resolve(
342
- hostname: string,
343
- rrtype: "AAAA",
344
- callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
345
- ): void;
346
- export function resolve(
347
- hostname: string,
348
- rrtype: "ANY",
349
- callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void,
350
- ): void;
351
- export function resolve(
352
- hostname: string,
353
- rrtype: "CNAME",
354
- callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
355
- ): void;
356
- export function resolve(
357
- hostname: string,
358
- rrtype: "MX",
359
- callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void,
360
- ): void;
361
- export function resolve(
362
- hostname: string,
363
- rrtype: "NAPTR",
364
- callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void,
365
- ): void;
366
- export function resolve(
367
- hostname: string,
368
- rrtype: "NS",
369
- callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
370
- ): void;
371
- export function resolve(
372
- hostname: string,
373
- rrtype: "PTR",
374
- callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
375
- ): void;
376
- export function resolve(
377
- hostname: string,
378
- rrtype: "SOA",
379
- callback: (err: NodeJS.ErrnoException | null, addresses: SoaRecord) => void,
380
- ): void;
381
- export function resolve(
382
- hostname: string,
383
- rrtype: "SRV",
384
- callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void,
385
- ): void;
386
- export function resolve(
387
- hostname: string,
388
- rrtype: "TXT",
389
- callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void,
390
- ): void;
391
- export function resolve(
392
- hostname: string,
393
- rrtype: string,
394
- callback: (
395
- err: NodeJS.ErrnoException | null,
396
- addresses: string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][] | AnyRecord[],
397
- ) => void,
398
- ): void;
399
- export namespace resolve {
400
- function __promisify__(hostname: string, rrtype?: "A" | "AAAA" | "CNAME" | "NS" | "PTR"): Promise<string[]>;
401
- function __promisify__(hostname: string, rrtype: "ANY"): Promise<AnyRecord[]>;
402
- function __promisify__(hostname: string, rrtype: "MX"): Promise<MxRecord[]>;
403
- function __promisify__(hostname: string, rrtype: "NAPTR"): Promise<NaptrRecord[]>;
404
- function __promisify__(hostname: string, rrtype: "SOA"): Promise<SoaRecord>;
405
- function __promisify__(hostname: string, rrtype: "SRV"): Promise<SrvRecord[]>;
406
- function __promisify__(hostname: string, rrtype: "TXT"): Promise<string[][]>;
407
- function __promisify__(
408
- hostname: string,
409
- rrtype: string,
410
- ): Promise<string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][] | AnyRecord[]>;
411
- }
412
- /**
413
- * Uses the DNS protocol to resolve a IPv4 addresses (`A` records) for the `hostname`. The `addresses` argument passed to the `callback` function
414
- * will contain an array of IPv4 addresses (e.g.`['74.125.79.104', '74.125.79.105', '74.125.79.106']`).
415
- * @since v0.1.16
416
- * @param hostname Host name to resolve.
417
- */
418
- export function resolve4(
419
- hostname: string,
420
- callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
421
- ): void;
422
- export function resolve4(
423
- hostname: string,
424
- options: ResolveWithTtlOptions,
425
- callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void,
426
- ): void;
427
- export function resolve4(
428
- hostname: string,
429
- options: ResolveOptions,
430
- callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void,
431
- ): void;
432
- export namespace resolve4 {
433
- function __promisify__(hostname: string): Promise<string[]>;
434
- function __promisify__(hostname: string, options: ResolveWithTtlOptions): Promise<RecordWithTtl[]>;
435
- function __promisify__(hostname: string, options?: ResolveOptions): Promise<string[] | RecordWithTtl[]>;
436
- }
437
- /**
438
- * Uses the DNS protocol to resolve IPv6 addresses (`AAAA` records) for the `hostname`. The `addresses` argument passed to the `callback` function
439
- * will contain an array of IPv6 addresses.
440
- * @since v0.1.16
441
- * @param hostname Host name to resolve.
442
- */
443
- export function resolve6(
444
- hostname: string,
445
- callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
446
- ): void;
447
- export function resolve6(
448
- hostname: string,
449
- options: ResolveWithTtlOptions,
450
- callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void,
451
- ): void;
452
- export function resolve6(
453
- hostname: string,
454
- options: ResolveOptions,
455
- callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void,
456
- ): void;
457
- export namespace resolve6 {
458
- function __promisify__(hostname: string): Promise<string[]>;
459
- function __promisify__(hostname: string, options: ResolveWithTtlOptions): Promise<RecordWithTtl[]>;
460
- function __promisify__(hostname: string, options?: ResolveOptions): Promise<string[] | RecordWithTtl[]>;
461
- }
462
- /**
463
- * Uses the DNS protocol to resolve `CNAME` records for the `hostname`. The `addresses` argument passed to the `callback` function
464
- * will contain an array of canonical name records available for the `hostname` (e.g. `['bar.example.com']`).
465
- * @since v0.3.2
466
- */
467
- export function resolveCname(
468
- hostname: string,
469
- callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
470
- ): void;
471
- export namespace resolveCname {
472
- function __promisify__(hostname: string): Promise<string[]>;
473
- }
474
- /**
475
- * Uses the DNS protocol to resolve `CAA` records for the `hostname`. The `addresses` argument passed to the `callback` function
476
- * will contain an array of certification authority authorization records
477
- * available for the `hostname` (e.g. `[{critical: 0, iodef: 'mailto:pki@example.com'}, {critical: 128, issue: 'pki.example.com'}]`).
478
- * @since v15.0.0, v14.17.0
479
- */
480
- export function resolveCaa(
481
- hostname: string,
482
- callback: (err: NodeJS.ErrnoException | null, records: CaaRecord[]) => void,
483
- ): void;
484
- export namespace resolveCaa {
485
- function __promisify__(hostname: string): Promise<CaaRecord[]>;
486
- }
487
- /**
488
- * Uses the DNS protocol to resolve mail exchange records (`MX` records) for the `hostname`. The `addresses` argument passed to the `callback` function will
489
- * contain an array of objects containing both a `priority` and `exchange` property (e.g. `[{priority: 10, exchange: 'mx.example.com'}, ...]`).
490
- * @since v0.1.27
491
- */
492
- export function resolveMx(
493
- hostname: string,
494
- callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void,
495
- ): void;
496
- export namespace resolveMx {
497
- function __promisify__(hostname: string): Promise<MxRecord[]>;
498
- }
499
- /**
500
- * Uses the DNS protocol to resolve regular expression-based records (`NAPTR` records) for the `hostname`. The `addresses` argument passed to the `callback` function will contain an array of
501
- * objects with the following properties:
502
- *
503
- * * `flags`
504
- * * `service`
505
- * * `regexp`
506
- * * `replacement`
507
- * * `order`
508
- * * `preference`
509
- *
510
- * ```js
511
- * {
512
- * flags: 's',
513
- * service: 'SIP+D2U',
514
- * regexp: '',
515
- * replacement: '_sip._udp.example.com',
516
- * order: 30,
517
- * preference: 100
518
- * }
519
- * ```
520
- * @since v0.9.12
521
- */
522
- export function resolveNaptr(
523
- hostname: string,
524
- callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void,
525
- ): void;
526
- export namespace resolveNaptr {
527
- function __promisify__(hostname: string): Promise<NaptrRecord[]>;
528
- }
529
- /**
530
- * Uses the DNS protocol to resolve name server records (`NS` records) for the `hostname`. The `addresses` argument passed to the `callback` function will
531
- * contain an array of name server records available for `hostname` (e.g. `['ns1.example.com', 'ns2.example.com']`).
532
- * @since v0.1.90
533
- */
534
- export function resolveNs(
535
- hostname: string,
536
- callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
537
- ): void;
538
- export namespace resolveNs {
539
- function __promisify__(hostname: string): Promise<string[]>;
540
- }
541
- /**
542
- * Uses the DNS protocol to resolve pointer records (`PTR` records) for the `hostname`. The `addresses` argument passed to the `callback` function will
543
- * be an array of strings containing the reply records.
544
- * @since v6.0.0
545
- */
546
- export function resolvePtr(
547
- hostname: string,
548
- callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
549
- ): void;
550
- export namespace resolvePtr {
551
- function __promisify__(hostname: string): Promise<string[]>;
552
- }
553
- /**
554
- * Uses the DNS protocol to resolve a start of authority record (`SOA` record) for
555
- * the `hostname`. The `address` argument passed to the `callback` function will
556
- * be an object with the following properties:
557
- *
558
- * * `nsname`
559
- * * `hostmaster`
560
- * * `serial`
561
- * * `refresh`
562
- * * `retry`
563
- * * `expire`
564
- * * `minttl`
565
- *
566
- * ```js
567
- * {
568
- * nsname: 'ns.example.com',
569
- * hostmaster: 'root.example.com',
570
- * serial: 2013101809,
571
- * refresh: 10000,
572
- * retry: 2400,
573
- * expire: 604800,
574
- * minttl: 3600
575
- * }
576
- * ```
577
- * @since v0.11.10
578
- */
579
- export function resolveSoa(
580
- hostname: string,
581
- callback: (err: NodeJS.ErrnoException | null, address: SoaRecord) => void,
582
- ): void;
583
- export namespace resolveSoa {
584
- function __promisify__(hostname: string): Promise<SoaRecord>;
585
- }
586
- /**
587
- * Uses the DNS protocol to resolve service records (`SRV` records) for the `hostname`. The `addresses` argument passed to the `callback` function will
588
- * be an array of objects with the following properties:
589
- *
590
- * * `priority`
591
- * * `weight`
592
- * * `port`
593
- * * `name`
594
- *
595
- * ```js
596
- * {
597
- * priority: 10,
598
- * weight: 5,
599
- * port: 21223,
600
- * name: 'service.example.com'
601
- * }
602
- * ```
603
- * @since v0.1.27
604
- */
605
- export function resolveSrv(
606
- hostname: string,
607
- callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void,
608
- ): void;
609
- export namespace resolveSrv {
610
- function __promisify__(hostname: string): Promise<SrvRecord[]>;
611
- }
612
- /**
613
- * Uses the DNS protocol to resolve text queries (`TXT` records) for the `hostname`. The `records` argument passed to the `callback` function is a
614
- * two-dimensional array of the text records available for `hostname` (e.g.`[ ['v=spf1 ip4:0.0.0.0 ', '~all' ] ]`). Each sub-array contains TXT chunks of
615
- * one record. Depending on the use case, these could be either joined together or
616
- * treated separately.
617
- * @since v0.1.27
618
- */
619
- export function resolveTxt(
620
- hostname: string,
621
- callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void,
622
- ): void;
623
- export namespace resolveTxt {
624
- function __promisify__(hostname: string): Promise<string[][]>;
625
- }
626
- /**
627
- * Uses the DNS protocol to resolve all records (also known as `ANY` or `*` query).
628
- * The `ret` argument passed to the `callback` function will be an array containing
629
- * various types of records. Each object has a property `type` that indicates the
630
- * type of the current record. And depending on the `type`, additional properties
631
- * will be present on the object:
632
- *
633
- * <omitted>
634
- *
635
- * Here is an example of the `ret` object passed to the callback:
636
- *
637
- * ```js
638
- * [ { type: 'A', address: '127.0.0.1', ttl: 299 },
639
- * { type: 'CNAME', value: 'example.com' },
640
- * { type: 'MX', exchange: 'alt4.aspmx.l.example.com', priority: 50 },
641
- * { type: 'NS', value: 'ns1.example.com' },
642
- * { type: 'TXT', entries: [ 'v=spf1 include:_spf.example.com ~all' ] },
643
- * { type: 'SOA',
644
- * nsname: 'ns1.example.com',
645
- * hostmaster: 'admin.example.com',
646
- * serial: 156696742,
647
- * refresh: 900,
648
- * retry: 900,
649
- * expire: 1800,
650
- * minttl: 60 } ]
651
- * ```
652
- *
653
- * DNS server operators may choose not to respond to `ANY` queries. It may be better to call individual methods like {@link resolve4}, {@link resolveMx}, and so on. For more details, see
654
- * [RFC 8482](https://tools.ietf.org/html/rfc8482).
655
- */
656
- export function resolveAny(
657
- hostname: string,
658
- callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void,
659
- ): void;
660
- export namespace resolveAny {
661
- function __promisify__(hostname: string): Promise<AnyRecord[]>;
662
- }
663
- /**
664
- * Performs a reverse DNS query that resolves an IPv4 or IPv6 address to an
665
- * array of host names.
666
- *
667
- * On error, `err` is an [`Error`](https://nodejs.org/docs/latest-v22.x/api/errors.html#class-error) object, where `err.code` is
668
- * one of the [DNS error codes](https://nodejs.org/docs/latest-v22.x/api/dns.html#error-codes).
669
- * @since v0.1.16
670
- */
671
- export function reverse(
672
- ip: string,
673
- callback: (err: NodeJS.ErrnoException | null, hostnames: string[]) => void,
674
- ): void;
675
- /**
676
- * Get the default value for `order` in {@link lookup} and [`dnsPromises.lookup()`](https://nodejs.org/docs/latest-v22.x/api/dns.html#dnspromiseslookuphostname-options).
677
- * The value could be:
678
- *
679
- * * `ipv4first`: for `order` defaulting to `ipv4first`.
680
- * * `ipv6first`: for `order` defaulting to `ipv6first`.
681
- * * `verbatim`: for `order` defaulting to `verbatim`.
682
- * @since v18.17.0
683
- */
684
- export function getDefaultResultOrder(): "ipv4first" | "ipv6first" | "verbatim";
685
- /**
686
- * Sets the IP address and port of servers to be used when performing DNS
687
- * resolution. The `servers` argument is an array of [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6) formatted
688
- * addresses. If the port is the IANA default DNS port (53) it can be omitted.
689
- *
690
- * ```js
691
- * dns.setServers([
692
- * '4.4.4.4',
693
- * '[2001:4860:4860::8888]',
694
- * '4.4.4.4:1053',
695
- * '[2001:4860:4860::8888]:1053',
696
- * ]);
697
- * ```
698
- *
699
- * An error will be thrown if an invalid address is provided.
700
- *
701
- * The `dns.setServers()` method must not be called while a DNS query is in
702
- * progress.
703
- *
704
- * The {@link setServers} method affects only {@link resolve}, `dns.resolve*()` and {@link reverse} (and specifically _not_ {@link lookup}).
705
- *
706
- * This method works much like [resolve.conf](https://man7.org/linux/man-pages/man5/resolv.conf.5.html).
707
- * That is, if attempting to resolve with the first server provided results in a `NOTFOUND` error, the `resolve()` method will _not_ attempt to resolve with
708
- * subsequent servers provided. Fallback DNS servers will only be used if the
709
- * earlier ones time out or result in some other error.
710
- * @since v0.11.3
711
- * @param servers array of [RFC 5952](https://datatracker.ietf.org/doc/html/rfc5952#section-6) formatted addresses
712
- */
713
- export function setServers(servers: readonly string[]): void;
714
- /**
715
- * Returns an array of IP address strings, formatted according to [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6),
716
- * that are currently configured for DNS resolution. A string will include a port
717
- * section if a custom port is used.
718
- *
719
- * ```js
720
- * [
721
- * '4.4.4.4',
722
- * '2001:4860:4860::8888',
723
- * '4.4.4.4:1053',
724
- * '[2001:4860:4860::8888]:1053',
725
- * ]
726
- * ```
727
- * @since v0.11.3
728
- */
729
- export function getServers(): string[];
730
- /**
731
- * Set the default value of `order` in {@link lookup} and [`dnsPromises.lookup()`](https://nodejs.org/docs/latest-v22.x/api/dns.html#dnspromiseslookuphostname-options).
732
- * The value could be:
733
- *
734
- * * `ipv4first`: sets default `order` to `ipv4first`.
735
- * * `ipv6first`: sets default `order` to `ipv6first`.
736
- * * `verbatim`: sets default `order` to `verbatim`.
737
- *
738
- * The default is `verbatim` and {@link setDefaultResultOrder} have higher
739
- * priority than [`--dns-result-order`](https://nodejs.org/docs/latest-v22.x/api/cli.html#--dns-result-orderorder). When using
740
- * [worker threads](https://nodejs.org/docs/latest-v22.x/api/worker_threads.html), {@link setDefaultResultOrder} from the main
741
- * thread won't affect the default dns orders in workers.
742
- * @since v16.4.0, v14.18.0
743
- * @param order must be `'ipv4first'`, `'ipv6first'` or `'verbatim'`.
744
- */
745
- export function setDefaultResultOrder(order: "ipv4first" | "ipv6first" | "verbatim"): void;
746
- // Error codes
747
- export const NODATA: "ENODATA";
748
- export const FORMERR: "EFORMERR";
749
- export const SERVFAIL: "ESERVFAIL";
750
- export const NOTFOUND: "ENOTFOUND";
751
- export const NOTIMP: "ENOTIMP";
752
- export const REFUSED: "EREFUSED";
753
- export const BADQUERY: "EBADQUERY";
754
- export const BADNAME: "EBADNAME";
755
- export const BADFAMILY: "EBADFAMILY";
756
- export const BADRESP: "EBADRESP";
757
- export const CONNREFUSED: "ECONNREFUSED";
758
- export const TIMEOUT: "ETIMEOUT";
759
- export const EOF: "EOF";
760
- export const FILE: "EFILE";
761
- export const NOMEM: "ENOMEM";
762
- export const DESTRUCTION: "EDESTRUCTION";
763
- export const BADSTR: "EBADSTR";
764
- export const BADFLAGS: "EBADFLAGS";
765
- export const NONAME: "ENONAME";
766
- export const BADHINTS: "EBADHINTS";
767
- export const NOTINITIALIZED: "ENOTINITIALIZED";
768
- export const LOADIPHLPAPI: "ELOADIPHLPAPI";
769
- export const ADDRGETNETWORKPARAMS: "EADDRGETNETWORKPARAMS";
770
- export const CANCELLED: "ECANCELLED";
771
- export interface ResolverOptions {
772
- /**
773
- * Query timeout in milliseconds, or `-1` to use the default timeout.
774
- */
775
- timeout?: number | undefined;
776
- /**
777
- * The number of tries the resolver will try contacting each name server before giving up.
778
- * @default 4
779
- */
780
- tries?: number;
781
- }
782
- /**
783
- * An independent resolver for DNS requests.
784
- *
785
- * Creating a new resolver uses the default server settings. Setting
786
- * the servers used for a resolver using [`resolver.setServers()`](https://nodejs.org/docs/latest-v22.x/api/dns.html#dnssetserversservers) does not affect
787
- * other resolvers:
788
- *
789
- * ```js
790
- * import { Resolver } from 'node:dns';
791
- * const resolver = new Resolver();
792
- * resolver.setServers(['4.4.4.4']);
793
- *
794
- * // This request will use the server at 4.4.4.4, independent of global settings.
795
- * resolver.resolve4('example.org', (err, addresses) => {
796
- * // ...
797
- * });
798
- * ```
799
- *
800
- * The following methods from the `node:dns` module are available:
801
- *
802
- * * `resolver.getServers()`
803
- * * `resolver.resolve()`
804
- * * `resolver.resolve4()`
805
- * * `resolver.resolve6()`
806
- * * `resolver.resolveAny()`
807
- * * `resolver.resolveCaa()`
808
- * * `resolver.resolveCname()`
809
- * * `resolver.resolveMx()`
810
- * * `resolver.resolveNaptr()`
811
- * * `resolver.resolveNs()`
812
- * * `resolver.resolvePtr()`
813
- * * `resolver.resolveSoa()`
814
- * * `resolver.resolveSrv()`
815
- * * `resolver.resolveTxt()`
816
- * * `resolver.reverse()`
817
- * * `resolver.setServers()`
818
- * @since v8.3.0
819
- */
820
- export class Resolver {
821
- constructor(options?: ResolverOptions);
822
- /**
823
- * Cancel all outstanding DNS queries made by this resolver. The corresponding
824
- * callbacks will be called with an error with code `ECANCELLED`.
825
- * @since v8.3.0
826
- */
827
- cancel(): void;
828
- getServers: typeof getServers;
829
- resolve: typeof resolve;
830
- resolve4: typeof resolve4;
831
- resolve6: typeof resolve6;
832
- resolveAny: typeof resolveAny;
833
- resolveCaa: typeof resolveCaa;
834
- resolveCname: typeof resolveCname;
835
- resolveMx: typeof resolveMx;
836
- resolveNaptr: typeof resolveNaptr;
837
- resolveNs: typeof resolveNs;
838
- resolvePtr: typeof resolvePtr;
839
- resolveSoa: typeof resolveSoa;
840
- resolveSrv: typeof resolveSrv;
841
- resolveTxt: typeof resolveTxt;
842
- reverse: typeof reverse;
843
- /**
844
- * The resolver instance will send its requests from the specified IP address.
845
- * This allows programs to specify outbound interfaces when used on multi-homed
846
- * systems.
847
- *
848
- * If a v4 or v6 address is not specified, it is set to the default and the
849
- * operating system will choose a local address automatically.
850
- *
851
- * The resolver will use the v4 local address when making requests to IPv4 DNS
852
- * servers, and the v6 local address when making requests to IPv6 DNS servers.
853
- * The `rrtype` of resolution requests has no impact on the local address used.
854
- * @since v15.1.0, v14.17.0
855
- * @param [ipv4='0.0.0.0'] A string representation of an IPv4 address.
856
- * @param [ipv6='::0'] A string representation of an IPv6 address.
857
- */
858
- setLocalAddress(ipv4?: string, ipv6?: string): void;
859
- setServers: typeof setServers;
860
- }
861
- export { dnsPromises as promises };
862
- }
863
- declare module "node:dns" {
864
- export * from "dns";
865
- }