create-jen-app 1.2.2 → 1.2.3

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 (588) hide show
  1. package/README.md +3 -1
  2. package/dist/index.js +1 -6
  3. package/package.json +2 -2
  4. package/templates/static/.esbuild/jen.config.js +18 -0
  5. package/templates/static/README.md +63 -67
  6. package/templates/static/build.js +4 -6
  7. package/templates/static/jen.config.ts +3 -5
  8. package/templates/static/jenjs.d.ts +3 -3
  9. package/templates/static/lib/api/(hello).d.ts +5 -5
  10. package/templates/static/lib/api/(hello).js +7 -7
  11. package/templates/static/lib/auth/cookie-utils.d.ts +20 -11
  12. package/templates/static/lib/auth/cookie-utils.js +66 -69
  13. package/templates/static/lib/auth/jwt.d.ts +28 -0
  14. package/templates/static/lib/auth/jwt.js +50 -6
  15. package/templates/static/lib/auth/session.d.ts +34 -34
  16. package/templates/static/lib/auth/session.js +79 -81
  17. package/templates/static/lib/build/asset-hashing.js +4 -4
  18. package/templates/static/lib/build/asset-manifest.js +4 -4
  19. package/templates/static/lib/build/build.d.ts +20 -0
  20. package/templates/static/lib/build/build.js +43 -6
  21. package/templates/static/lib/build/island-hydration.js +2 -2
  22. package/templates/static/lib/build/minifier.js +12 -12
  23. package/templates/static/lib/build/page-renderer.d.ts +2 -2
  24. package/templates/static/lib/build/page-renderer.js +3 -3
  25. package/templates/static/lib/build/production-build.d.ts +1 -1
  26. package/templates/static/lib/build/production-build.js +4 -4
  27. package/templates/static/lib/build/ssg-pipeline.d.ts +1 -1
  28. package/templates/static/lib/build/ssg-pipeline.js +19 -19
  29. package/templates/static/lib/build-tools/build-site.d.ts +3 -3
  30. package/templates/static/lib/build-tools/build-site.js +27 -30
  31. package/templates/static/lib/cache/index.d.ts +8 -0
  32. package/templates/static/lib/cache/index.js +8 -0
  33. package/templates/static/lib/cache/memory.d.ts +31 -4
  34. package/templates/static/lib/cache/memory.js +38 -12
  35. package/templates/static/lib/cache/redis.d.ts +43 -4
  36. package/templates/static/lib/cache/redis.js +59 -14
  37. package/templates/static/lib/cli/banner.d.ts +5 -1
  38. package/templates/static/lib/cli/banner.js +18 -14
  39. package/templates/static/lib/cli/templates/ssg/jen.config.js +29 -29
  40. package/templates/static/lib/cli/templates/ssg/site/index.js +6 -1
  41. package/templates/static/lib/cli/templates/ssr/jen.config.js +29 -29
  42. package/templates/static/lib/cli/templates/ssr/site/index.js +6 -1
  43. package/templates/static/lib/compilers/esbuild-plugins.js +96 -98
  44. package/templates/static/lib/compilers/svelte.d.ts +10 -10
  45. package/templates/static/lib/compilers/svelte.js +31 -31
  46. package/templates/static/lib/compilers/vue.d.ts +8 -8
  47. package/templates/static/lib/compilers/vue.js +76 -68
  48. package/templates/static/lib/core/config.d.ts +217 -50
  49. package/templates/static/lib/core/http.d.ts +55 -2
  50. package/templates/static/lib/core/http.js +66 -20
  51. package/templates/static/lib/core/middleware-hooks.d.ts +204 -31
  52. package/templates/static/lib/core/middleware-hooks.js +86 -41
  53. package/templates/static/lib/core/paths.d.ts +42 -4
  54. package/templates/static/lib/core/paths.js +34 -2
  55. package/templates/static/lib/core/routes/match.d.ts +51 -3
  56. package/templates/static/lib/core/routes/match.js +44 -11
  57. package/templates/static/lib/core/routes/scan.d.ts +49 -5
  58. package/templates/static/lib/core/routes/scan.js +174 -115
  59. package/templates/static/lib/core/types.d.ts +148 -13
  60. package/templates/static/lib/css/compiler.d.ts +16 -13
  61. package/templates/static/lib/css/compiler.js +62 -58
  62. package/templates/static/lib/db/connector.d.ts +27 -1
  63. package/templates/static/lib/db/connector.js +37 -11
  64. package/templates/static/lib/db/drivers/jdb.d.ts +13 -9
  65. package/templates/static/lib/db/drivers/jdb.js +41 -39
  66. package/templates/static/lib/db/drivers/sql.d.ts +16 -12
  67. package/templates/static/lib/db/drivers/sql.js +152 -135
  68. package/templates/static/lib/db/index.d.ts +20 -12
  69. package/templates/static/lib/db/index.js +41 -41
  70. package/templates/static/lib/db/types.d.ts +22 -18
  71. package/templates/static/lib/graphql/index.d.ts +47 -0
  72. package/templates/static/lib/graphql/index.js +50 -3
  73. package/templates/static/lib/graphql/resolvers.d.ts +51 -11
  74. package/templates/static/lib/graphql/resolvers.js +22 -6
  75. package/templates/static/lib/graphql/schema.d.ts +34 -0
  76. package/templates/static/lib/graphql/schema.js +34 -2
  77. package/templates/static/lib/i18n/en.json +2 -2
  78. package/templates/static/lib/i18n/es.json +2 -2
  79. package/templates/static/lib/i18n/index.d.ts +4 -4
  80. package/templates/static/lib/i18n/index.js +10 -10
  81. package/templates/static/lib/import/jen-import.d.ts +39 -10
  82. package/templates/static/lib/import/jen-import.js +130 -80
  83. package/templates/static/lib/index.d.ts +42 -11
  84. package/templates/static/lib/index.js +21 -8
  85. package/templates/static/lib/jdb/engine.d.ts +35 -6
  86. package/templates/static/lib/jdb/engine.js +260 -144
  87. package/templates/static/lib/jdb/index.d.ts +32 -0
  88. package/templates/static/lib/jdb/index.js +32 -0
  89. package/templates/static/lib/jdb/types.d.ts +212 -30
  90. package/templates/static/lib/jdb/utils.d.ts +60 -0
  91. package/templates/static/lib/jdb/utils.js +159 -107
  92. package/templates/static/lib/middleware/builtins/body-parser.d.ts +15 -0
  93. package/templates/static/lib/middleware/builtins/body-parser.js +53 -35
  94. package/templates/static/lib/middleware/builtins/cors.d.ts +8 -6
  95. package/templates/static/lib/middleware/builtins/cors.js +52 -48
  96. package/templates/static/lib/middleware/builtins/logger.d.ts +18 -0
  97. package/templates/static/lib/middleware/builtins/logger.js +31 -13
  98. package/templates/static/lib/middleware/builtins/rate-limit.d.ts +19 -2
  99. package/templates/static/lib/middleware/builtins/rate-limit.js +75 -55
  100. package/templates/static/lib/middleware/builtins/request-id.d.ts +18 -0
  101. package/templates/static/lib/middleware/builtins/request-id.js +26 -5
  102. package/templates/static/lib/middleware/builtins/security-headers.d.ts +18 -0
  103. package/templates/static/lib/middleware/builtins/security-headers.js +51 -20
  104. package/templates/static/lib/middleware/context.d.ts +102 -15
  105. package/templates/static/lib/middleware/context.js +121 -30
  106. package/templates/static/lib/middleware/decorators.d.ts +18 -1
  107. package/templates/static/lib/middleware/decorators.js +83 -34
  108. package/templates/static/lib/middleware/errors/handler.js +22 -24
  109. package/templates/static/lib/middleware/errors/http-error.d.ts +3 -3
  110. package/templates/static/lib/middleware/errors/http-error.js +8 -8
  111. package/templates/static/lib/middleware/kernel.d.ts +67 -4
  112. package/templates/static/lib/middleware/kernel.js +80 -17
  113. package/templates/static/lib/middleware/pipeline.d.ts +51 -2
  114. package/templates/static/lib/middleware/pipeline.js +143 -45
  115. package/templates/static/lib/middleware/registry.d.ts +67 -8
  116. package/templates/static/lib/middleware/registry.js +83 -22
  117. package/templates/static/lib/middleware/response.d.ts +73 -11
  118. package/templates/static/lib/middleware/response.js +104 -40
  119. package/templates/static/lib/middleware/utils/matcher.js +11 -12
  120. package/templates/static/lib/native/bundle.d.ts +13 -8
  121. package/templates/static/lib/native/bundle.js +14 -14
  122. package/templates/static/lib/native/dev-server.d.ts +11 -4
  123. package/templates/static/lib/native/dev-server.js +14 -12
  124. package/templates/static/lib/native/index.d.ts +20 -20
  125. package/templates/static/lib/native/index.js +23 -21
  126. package/templates/static/lib/native/optimizer.d.ts +14 -10
  127. package/templates/static/lib/native/optimizer.js +14 -14
  128. package/templates/static/lib/native/style-compiler.d.ts +17 -8
  129. package/templates/static/lib/native/style-compiler.js +9 -9
  130. package/templates/static/lib/plugin/loader.d.ts +8 -6
  131. package/templates/static/lib/plugin/loader.js +25 -31
  132. package/templates/static/lib/runtime/client-runtime.d.ts +15 -0
  133. package/templates/static/lib/runtime/client-runtime.js +23 -9
  134. package/templates/static/lib/runtime/hmr.d.ts +23 -1
  135. package/templates/static/lib/runtime/hmr.js +27 -5
  136. package/templates/static/lib/runtime/hydrate.d.ts +17 -0
  137. package/templates/static/lib/runtime/hydrate.js +48 -21
  138. package/templates/static/lib/runtime/island-hydration-client.d.ts +5 -2
  139. package/templates/static/lib/runtime/island-hydration-client.js +122 -91
  140. package/templates/static/lib/runtime/islands.d.ts +82 -27
  141. package/templates/static/lib/runtime/islands.js +92 -54
  142. package/templates/static/lib/runtime/render.d.ts +36 -9
  143. package/templates/static/lib/runtime/render.js +208 -130
  144. package/templates/static/lib/server/api-routes.d.ts +96 -28
  145. package/templates/static/lib/server/api-routes.js +214 -156
  146. package/templates/static/lib/server/api.d.ts +3 -3
  147. package/templates/static/lib/server/api.js +93 -92
  148. package/templates/static/lib/server/app.d.ts +37 -3
  149. package/templates/static/lib/server/app.js +328 -254
  150. package/templates/static/lib/server/runtimeServe.d.ts +56 -0
  151. package/templates/static/lib/server/runtimeServe.js +130 -69
  152. package/templates/static/lib/server/ssr.d.ts +161 -0
  153. package/templates/static/lib/server/ssr.js +219 -0
  154. package/templates/static/lib/shared/log.d.ts +47 -3
  155. package/templates/static/lib/shared/log.js +60 -10
  156. package/templates/static/server.js +4 -6
  157. package/templates/static/site/(home).tsx +30 -12
  158. package/templates/static/site/styles/global.scss +89 -78
  159. package/templates/static/tsconfig.json +39 -39
  160. package/templates/static/node_modules/.bin/esbuild +0 -16
  161. package/templates/static/node_modules/.bin/esbuild.cmd +0 -17
  162. package/templates/static/node_modules/.bin/esbuild.ps1 +0 -28
  163. package/templates/static/node_modules/.bin/tsc +0 -16
  164. package/templates/static/node_modules/.bin/tsc.cmd +0 -17
  165. package/templates/static/node_modules/.bin/tsc.ps1 +0 -28
  166. package/templates/static/node_modules/.bin/tsserver +0 -16
  167. package/templates/static/node_modules/.bin/tsserver.cmd +0 -17
  168. package/templates/static/node_modules/.bin/tsserver.ps1 +0 -28
  169. package/templates/static/node_modules/.jen/cache/B__Jen.js_packages_create-jen-app_templates_static_site_(home).tsx.mjs +0 -14
  170. package/templates/static/node_modules/.jen/cache/B__Jen.js_packages_create-jen-app_yo_site_(home).tsx.mjs +0 -11
  171. package/templates/static/node_modules/.package-lock.json +0 -585
  172. package/templates/static/node_modules/@esbuild/win32-x64/README.md +0 -3
  173. package/templates/static/node_modules/@esbuild/win32-x64/esbuild.exe +0 -0
  174. package/templates/static/node_modules/@esbuild/win32-x64/package.json +0 -20
  175. package/templates/static/node_modules/@jenjs/master/README.md +0 -24
  176. package/templates/static/node_modules/@jenjs/master/index.js +0 -3655
  177. package/templates/static/node_modules/@jenjs/master/package.json +0 -36
  178. package/templates/static/node_modules/@polka/url/build.js +0 -49
  179. package/templates/static/node_modules/@polka/url/build.mjs +0 -47
  180. package/templates/static/node_modules/@polka/url/index.d.ts +0 -11
  181. package/templates/static/node_modules/@polka/url/package.json +0 -30
  182. package/templates/static/node_modules/@polka/url/readme.md +0 -68
  183. package/templates/static/node_modules/@types/node/LICENSE +0 -21
  184. package/templates/static/node_modules/@types/node/README.md +0 -15
  185. package/templates/static/node_modules/@types/node/assert/strict.d.ts +0 -111
  186. package/templates/static/node_modules/@types/node/assert.d.ts +0 -1078
  187. package/templates/static/node_modules/@types/node/async_hooks.d.ts +0 -603
  188. package/templates/static/node_modules/@types/node/buffer.buffer.d.ts +0 -472
  189. package/templates/static/node_modules/@types/node/buffer.d.ts +0 -1934
  190. package/templates/static/node_modules/@types/node/child_process.d.ts +0 -1476
  191. package/templates/static/node_modules/@types/node/cluster.d.ts +0 -578
  192. package/templates/static/node_modules/@types/node/compatibility/disposable.d.ts +0 -14
  193. package/templates/static/node_modules/@types/node/compatibility/index.d.ts +0 -9
  194. package/templates/static/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
  195. package/templates/static/node_modules/@types/node/compatibility/iterators.d.ts +0 -20
  196. package/templates/static/node_modules/@types/node/console.d.ts +0 -452
  197. package/templates/static/node_modules/@types/node/constants.d.ts +0 -21
  198. package/templates/static/node_modules/@types/node/crypto.d.ts +0 -4545
  199. package/templates/static/node_modules/@types/node/dgram.d.ts +0 -600
  200. package/templates/static/node_modules/@types/node/diagnostics_channel.d.ts +0 -578
  201. package/templates/static/node_modules/@types/node/dns/promises.d.ts +0 -503
  202. package/templates/static/node_modules/@types/node/dns.d.ts +0 -923
  203. package/templates/static/node_modules/@types/node/domain.d.ts +0 -170
  204. package/templates/static/node_modules/@types/node/events.d.ts +0 -976
  205. package/templates/static/node_modules/@types/node/fs/promises.d.ts +0 -1295
  206. package/templates/static/node_modules/@types/node/fs.d.ts +0 -4461
  207. package/templates/static/node_modules/@types/node/globals.d.ts +0 -172
  208. package/templates/static/node_modules/@types/node/globals.typedarray.d.ts +0 -38
  209. package/templates/static/node_modules/@types/node/http.d.ts +0 -2089
  210. package/templates/static/node_modules/@types/node/http2.d.ts +0 -2644
  211. package/templates/static/node_modules/@types/node/https.d.ts +0 -579
  212. package/templates/static/node_modules/@types/node/index.d.ts +0 -97
  213. package/templates/static/node_modules/@types/node/inspector.d.ts +0 -253
  214. package/templates/static/node_modules/@types/node/inspector.generated.d.ts +0 -4052
  215. package/templates/static/node_modules/@types/node/module.d.ts +0 -891
  216. package/templates/static/node_modules/@types/node/net.d.ts +0 -1057
  217. package/templates/static/node_modules/@types/node/os.d.ts +0 -506
  218. package/templates/static/node_modules/@types/node/package.json +0 -145
  219. package/templates/static/node_modules/@types/node/path.d.ts +0 -200
  220. package/templates/static/node_modules/@types/node/perf_hooks.d.ts +0 -968
  221. package/templates/static/node_modules/@types/node/process.d.ts +0 -2089
  222. package/templates/static/node_modules/@types/node/punycode.d.ts +0 -117
  223. package/templates/static/node_modules/@types/node/querystring.d.ts +0 -152
  224. package/templates/static/node_modules/@types/node/readline/promises.d.ts +0 -161
  225. package/templates/static/node_modules/@types/node/readline.d.ts +0 -594
  226. package/templates/static/node_modules/@types/node/repl.d.ts +0 -428
  227. package/templates/static/node_modules/@types/node/sea.d.ts +0 -153
  228. package/templates/static/node_modules/@types/node/sqlite.d.ts +0 -721
  229. package/templates/static/node_modules/@types/node/stream/consumers.d.ts +0 -38
  230. package/templates/static/node_modules/@types/node/stream/promises.d.ts +0 -90
  231. package/templates/static/node_modules/@types/node/stream/web.d.ts +0 -622
  232. package/templates/static/node_modules/@types/node/stream.d.ts +0 -1664
  233. package/templates/static/node_modules/@types/node/string_decoder.d.ts +0 -67
  234. package/templates/static/node_modules/@types/node/test.d.ts +0 -2163
  235. package/templates/static/node_modules/@types/node/timers/promises.d.ts +0 -108
  236. package/templates/static/node_modules/@types/node/timers.d.ts +0 -287
  237. package/templates/static/node_modules/@types/node/tls.d.ts +0 -1319
  238. package/templates/static/node_modules/@types/node/trace_events.d.ts +0 -197
  239. package/templates/static/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -468
  240. package/templates/static/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -34
  241. package/templates/static/node_modules/@types/node/ts5.6/index.d.ts +0 -97
  242. package/templates/static/node_modules/@types/node/tty.d.ts +0 -208
  243. package/templates/static/node_modules/@types/node/url.d.ts +0 -984
  244. package/templates/static/node_modules/@types/node/util.d.ts +0 -2606
  245. package/templates/static/node_modules/@types/node/v8.d.ts +0 -920
  246. package/templates/static/node_modules/@types/node/vm.d.ts +0 -1000
  247. package/templates/static/node_modules/@types/node/wasi.d.ts +0 -181
  248. package/templates/static/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -34
  249. package/templates/static/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
  250. package/templates/static/node_modules/@types/node/web-globals/events.d.ts +0 -97
  251. package/templates/static/node_modules/@types/node/web-globals/fetch.d.ts +0 -55
  252. package/templates/static/node_modules/@types/node/web-globals/navigator.d.ts +0 -22
  253. package/templates/static/node_modules/@types/node/web-globals/storage.d.ts +0 -24
  254. package/templates/static/node_modules/@types/node/worker_threads.d.ts +0 -784
  255. package/templates/static/node_modules/@types/node/zlib.d.ts +0 -683
  256. package/templates/static/node_modules/esbuild/LICENSE.md +0 -21
  257. package/templates/static/node_modules/esbuild/README.md +0 -3
  258. package/templates/static/node_modules/esbuild/bin/esbuild +0 -223
  259. package/templates/static/node_modules/esbuild/install.js +0 -289
  260. package/templates/static/node_modules/esbuild/lib/main.d.ts +0 -716
  261. package/templates/static/node_modules/esbuild/lib/main.js +0 -2242
  262. package/templates/static/node_modules/esbuild/package.json +0 -49
  263. package/templates/static/node_modules/mrmime/index.d.ts +0 -2
  264. package/templates/static/node_modules/mrmime/index.js +0 -449
  265. package/templates/static/node_modules/mrmime/index.mjs +0 -448
  266. package/templates/static/node_modules/mrmime/license +0 -21
  267. package/templates/static/node_modules/mrmime/package.json +0 -44
  268. package/templates/static/node_modules/mrmime/readme.md +0 -130
  269. package/templates/static/node_modules/preact/LICENSE +0 -21
  270. package/templates/static/node_modules/preact/README.md +0 -185
  271. package/templates/static/node_modules/preact/compat/client.d.ts +0 -13
  272. package/templates/static/node_modules/preact/compat/client.js +0 -21
  273. package/templates/static/node_modules/preact/compat/client.mjs +0 -24
  274. package/templates/static/node_modules/preact/compat/dist/compat.js +0 -2
  275. package/templates/static/node_modules/preact/compat/dist/compat.js.map +0 -1
  276. package/templates/static/node_modules/preact/compat/dist/compat.mjs +0 -2
  277. package/templates/static/node_modules/preact/compat/dist/compat.module.js +0 -2
  278. package/templates/static/node_modules/preact/compat/dist/compat.module.js.map +0 -1
  279. package/templates/static/node_modules/preact/compat/dist/compat.umd.js +0 -2
  280. package/templates/static/node_modules/preact/compat/dist/compat.umd.js.map +0 -1
  281. package/templates/static/node_modules/preact/compat/jsx-dev-runtime.js +0 -3
  282. package/templates/static/node_modules/preact/compat/jsx-dev-runtime.mjs +0 -3
  283. package/templates/static/node_modules/preact/compat/jsx-runtime.js +0 -3
  284. package/templates/static/node_modules/preact/compat/jsx-runtime.mjs +0 -3
  285. package/templates/static/node_modules/preact/compat/package.json +0 -55
  286. package/templates/static/node_modules/preact/compat/scheduler.js +0 -15
  287. package/templates/static/node_modules/preact/compat/scheduler.mjs +0 -23
  288. package/templates/static/node_modules/preact/compat/server.browser.js +0 -11
  289. package/templates/static/node_modules/preact/compat/server.js +0 -36
  290. package/templates/static/node_modules/preact/compat/server.mjs +0 -17
  291. package/templates/static/node_modules/preact/compat/src/Children.js +0 -21
  292. package/templates/static/node_modules/preact/compat/src/PureComponent.js +0 -16
  293. package/templates/static/node_modules/preact/compat/src/forwardRef.js +0 -44
  294. package/templates/static/node_modules/preact/compat/src/hooks.js +0 -70
  295. package/templates/static/node_modules/preact/compat/src/index.d.ts +0 -351
  296. package/templates/static/node_modules/preact/compat/src/index.js +0 -238
  297. package/templates/static/node_modules/preact/compat/src/internal.d.ts +0 -48
  298. package/templates/static/node_modules/preact/compat/src/memo.js +0 -35
  299. package/templates/static/node_modules/preact/compat/src/portals.js +0 -78
  300. package/templates/static/node_modules/preact/compat/src/render.js +0 -313
  301. package/templates/static/node_modules/preact/compat/src/suspense-list.d.ts +0 -16
  302. package/templates/static/node_modules/preact/compat/src/suspense-list.js +0 -127
  303. package/templates/static/node_modules/preact/compat/src/suspense.d.ts +0 -19
  304. package/templates/static/node_modules/preact/compat/src/suspense.js +0 -291
  305. package/templates/static/node_modules/preact/compat/src/util.js +0 -33
  306. package/templates/static/node_modules/preact/compat/test-utils.js +0 -1
  307. package/templates/static/node_modules/preact/compat/test-utils.mjs +0 -1
  308. package/templates/static/node_modules/preact/debug/dist/debug.js +0 -2
  309. package/templates/static/node_modules/preact/debug/dist/debug.js.map +0 -1
  310. package/templates/static/node_modules/preact/debug/dist/debug.mjs +0 -2
  311. package/templates/static/node_modules/preact/debug/dist/debug.module.js +0 -2
  312. package/templates/static/node_modules/preact/debug/dist/debug.module.js.map +0 -1
  313. package/templates/static/node_modules/preact/debug/dist/debug.umd.js +0 -2
  314. package/templates/static/node_modules/preact/debug/dist/debug.umd.js.map +0 -1
  315. package/templates/static/node_modules/preact/debug/package.json +0 -27
  316. package/templates/static/node_modules/preact/debug/src/check-props.js +0 -54
  317. package/templates/static/node_modules/preact/debug/src/component-stack.js +0 -146
  318. package/templates/static/node_modules/preact/debug/src/constants.js +0 -3
  319. package/templates/static/node_modules/preact/debug/src/debug.js +0 -593
  320. package/templates/static/node_modules/preact/debug/src/index.d.ts +0 -23
  321. package/templates/static/node_modules/preact/debug/src/index.js +0 -12
  322. package/templates/static/node_modules/preact/debug/src/internal.d.ts +0 -82
  323. package/templates/static/node_modules/preact/debug/src/util.js +0 -15
  324. package/templates/static/node_modules/preact/devtools/dist/devtools.js +0 -2
  325. package/templates/static/node_modules/preact/devtools/dist/devtools.js.map +0 -1
  326. package/templates/static/node_modules/preact/devtools/dist/devtools.mjs +0 -2
  327. package/templates/static/node_modules/preact/devtools/dist/devtools.module.js +0 -2
  328. package/templates/static/node_modules/preact/devtools/dist/devtools.module.js.map +0 -1
  329. package/templates/static/node_modules/preact/devtools/dist/devtools.umd.js +0 -2
  330. package/templates/static/node_modules/preact/devtools/dist/devtools.umd.js.map +0 -1
  331. package/templates/static/node_modules/preact/devtools/package.json +0 -25
  332. package/templates/static/node_modules/preact/devtools/src/devtools.js +0 -21
  333. package/templates/static/node_modules/preact/devtools/src/index.d.ts +0 -8
  334. package/templates/static/node_modules/preact/devtools/src/index.js +0 -15
  335. package/templates/static/node_modules/preact/dist/preact.js +0 -2
  336. package/templates/static/node_modules/preact/dist/preact.js.map +0 -1
  337. package/templates/static/node_modules/preact/dist/preact.min.js +0 -2
  338. package/templates/static/node_modules/preact/dist/preact.min.js.map +0 -1
  339. package/templates/static/node_modules/preact/dist/preact.min.module.js +0 -2
  340. package/templates/static/node_modules/preact/dist/preact.min.module.js.map +0 -1
  341. package/templates/static/node_modules/preact/dist/preact.min.umd.js +0 -2
  342. package/templates/static/node_modules/preact/dist/preact.min.umd.js.map +0 -1
  343. package/templates/static/node_modules/preact/dist/preact.mjs +0 -2
  344. package/templates/static/node_modules/preact/dist/preact.module.js +0 -2
  345. package/templates/static/node_modules/preact/dist/preact.module.js.map +0 -1
  346. package/templates/static/node_modules/preact/dist/preact.umd.js +0 -2
  347. package/templates/static/node_modules/preact/dist/preact.umd.js.map +0 -1
  348. package/templates/static/node_modules/preact/hooks/dist/hooks.js +0 -2
  349. package/templates/static/node_modules/preact/hooks/dist/hooks.js.map +0 -1
  350. package/templates/static/node_modules/preact/hooks/dist/hooks.mjs +0 -2
  351. package/templates/static/node_modules/preact/hooks/dist/hooks.module.js +0 -2
  352. package/templates/static/node_modules/preact/hooks/dist/hooks.module.js.map +0 -1
  353. package/templates/static/node_modules/preact/hooks/dist/hooks.umd.js +0 -2
  354. package/templates/static/node_modules/preact/hooks/dist/hooks.umd.js.map +0 -1
  355. package/templates/static/node_modules/preact/hooks/package.json +0 -35
  356. package/templates/static/node_modules/preact/hooks/src/index.d.ts +0 -145
  357. package/templates/static/node_modules/preact/hooks/src/index.js +0 -555
  358. package/templates/static/node_modules/preact/hooks/src/internal.d.ts +0 -103
  359. package/templates/static/node_modules/preact/jsx-runtime/dist/jsxRuntime.js +0 -2
  360. package/templates/static/node_modules/preact/jsx-runtime/dist/jsxRuntime.js.map +0 -1
  361. package/templates/static/node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs +0 -2
  362. package/templates/static/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js +0 -2
  363. package/templates/static/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js.map +0 -1
  364. package/templates/static/node_modules/preact/jsx-runtime/dist/jsxRuntime.umd.js +0 -2
  365. package/templates/static/node_modules/preact/jsx-runtime/dist/jsxRuntime.umd.js.map +0 -1
  366. package/templates/static/node_modules/preact/jsx-runtime/package.json +0 -28
  367. package/templates/static/node_modules/preact/jsx-runtime/src/index.d.ts +0 -62
  368. package/templates/static/node_modules/preact/jsx-runtime/src/index.js +0 -206
  369. package/templates/static/node_modules/preact/jsx-runtime/src/utils.js +0 -36
  370. package/templates/static/node_modules/preact/package.json +0 -258
  371. package/templates/static/node_modules/preact/src/cjs.js +0 -3
  372. package/templates/static/node_modules/preact/src/clone-element.js +0 -48
  373. package/templates/static/node_modules/preact/src/component.js +0 -249
  374. package/templates/static/node_modules/preact/src/constants.js +0 -22
  375. package/templates/static/node_modules/preact/src/create-context.js +0 -60
  376. package/templates/static/node_modules/preact/src/create-element.js +0 -97
  377. package/templates/static/node_modules/preact/src/diff/catch-error.js +0 -46
  378. package/templates/static/node_modules/preact/src/diff/children.js +0 -451
  379. package/templates/static/node_modules/preact/src/diff/index.js +0 -684
  380. package/templates/static/node_modules/preact/src/diff/props.js +0 -173
  381. package/templates/static/node_modules/preact/src/dom.d.ts +0 -2476
  382. package/templates/static/node_modules/preact/src/index-5.d.ts +0 -399
  383. package/templates/static/node_modules/preact/src/index.d.ts +0 -402
  384. package/templates/static/node_modules/preact/src/index.js +0 -13
  385. package/templates/static/node_modules/preact/src/internal.d.ts +0 -190
  386. package/templates/static/node_modules/preact/src/jsx.d.ts +0 -2878
  387. package/templates/static/node_modules/preact/src/options.js +0 -16
  388. package/templates/static/node_modules/preact/src/render.js +0 -78
  389. package/templates/static/node_modules/preact/src/util.js +0 -28
  390. package/templates/static/node_modules/preact/test-utils/dist/testUtils.js +0 -2
  391. package/templates/static/node_modules/preact/test-utils/dist/testUtils.js.map +0 -1
  392. package/templates/static/node_modules/preact/test-utils/dist/testUtils.mjs +0 -2
  393. package/templates/static/node_modules/preact/test-utils/dist/testUtils.module.js +0 -2
  394. package/templates/static/node_modules/preact/test-utils/dist/testUtils.module.js.map +0 -1
  395. package/templates/static/node_modules/preact/test-utils/dist/testUtils.umd.js +0 -2
  396. package/templates/static/node_modules/preact/test-utils/dist/testUtils.umd.js.map +0 -1
  397. package/templates/static/node_modules/preact/test-utils/package.json +0 -28
  398. package/templates/static/node_modules/preact/test-utils/src/index.d.ts +0 -3
  399. package/templates/static/node_modules/preact/test-utils/src/index.js +0 -129
  400. package/templates/static/node_modules/preact-render-to-string/LICENSE +0 -21
  401. package/templates/static/node_modules/preact-render-to-string/README.md +0 -149
  402. package/templates/static/node_modules/preact-render-to-string/dist/commonjs.js +0 -2
  403. package/templates/static/node_modules/preact-render-to-string/dist/index.d.ts +0 -17
  404. package/templates/static/node_modules/preact-render-to-string/dist/index.js +0 -6
  405. package/templates/static/node_modules/preact-render-to-string/dist/index.js.map +0 -1
  406. package/templates/static/node_modules/preact-render-to-string/dist/index.mjs +0 -2
  407. package/templates/static/node_modules/preact-render-to-string/dist/index.module.js +0 -2
  408. package/templates/static/node_modules/preact-render-to-string/dist/index.module.js.map +0 -1
  409. package/templates/static/node_modules/preact-render-to-string/dist/index.umd.js +0 -2
  410. package/templates/static/node_modules/preact-render-to-string/dist/index.umd.js.map +0 -1
  411. package/templates/static/node_modules/preact-render-to-string/dist/internal.d.ts +0 -35
  412. package/templates/static/node_modules/preact-render-to-string/dist/jsx/commonjs.js +0 -2
  413. package/templates/static/node_modules/preact-render-to-string/dist/jsx/index.js +0 -4
  414. package/templates/static/node_modules/preact-render-to-string/dist/jsx/index.js.map +0 -1
  415. package/templates/static/node_modules/preact-render-to-string/dist/jsx/index.mjs +0 -2
  416. package/templates/static/node_modules/preact-render-to-string/dist/jsx/index.module.js +0 -2
  417. package/templates/static/node_modules/preact-render-to-string/dist/jsx/index.module.js.map +0 -1
  418. package/templates/static/node_modules/preact-render-to-string/dist/jsx/index.umd.js +0 -2
  419. package/templates/static/node_modules/preact-render-to-string/dist/jsx/index.umd.js.map +0 -1
  420. package/templates/static/node_modules/preact-render-to-string/dist/jsx.d.ts +0 -24
  421. package/templates/static/node_modules/preact-render-to-string/dist/stream/index.js +0 -2
  422. package/templates/static/node_modules/preact-render-to-string/dist/stream/index.js.map +0 -1
  423. package/templates/static/node_modules/preact-render-to-string/dist/stream/index.mjs +0 -2
  424. package/templates/static/node_modules/preact-render-to-string/dist/stream/index.module.js +0 -2
  425. package/templates/static/node_modules/preact-render-to-string/dist/stream/index.module.js.map +0 -1
  426. package/templates/static/node_modules/preact-render-to-string/dist/stream/index.umd.js +0 -2
  427. package/templates/static/node_modules/preact-render-to-string/dist/stream/index.umd.js.map +0 -1
  428. package/templates/static/node_modules/preact-render-to-string/dist/stream/node/index.js +0 -884
  429. package/templates/static/node_modules/preact-render-to-string/dist/stream/node/index.js.map +0 -1
  430. package/templates/static/node_modules/preact-render-to-string/dist/stream/node/index.mjs +0 -884
  431. package/templates/static/node_modules/preact-render-to-string/dist/stream/node/index.module.js +0 -884
  432. package/templates/static/node_modules/preact-render-to-string/dist/stream/node/index.module.js.map +0 -1
  433. package/templates/static/node_modules/preact-render-to-string/dist/stream/node/index.umd.js +0 -888
  434. package/templates/static/node_modules/preact-render-to-string/dist/stream/node/index.umd.js.map +0 -1
  435. package/templates/static/node_modules/preact-render-to-string/dist/stream-node.d.ts +0 -19
  436. package/templates/static/node_modules/preact-render-to-string/dist/stream.d.ts +0 -10
  437. package/templates/static/node_modules/preact-render-to-string/jsx.d.ts +0 -24
  438. package/templates/static/node_modules/preact-render-to-string/jsx.js +0 -1
  439. package/templates/static/node_modules/preact-render-to-string/package.json +0 -152
  440. package/templates/static/node_modules/preact-render-to-string/src/index.d.ts +0 -17
  441. package/templates/static/node_modules/preact-render-to-string/src/index.js +0 -764
  442. package/templates/static/node_modules/preact-render-to-string/src/internal.d.ts +0 -35
  443. package/templates/static/node_modules/preact-render-to-string/src/jsx.d.ts +0 -24
  444. package/templates/static/node_modules/preact-render-to-string/src/jsx.js +0 -102
  445. package/templates/static/node_modules/preact-render-to-string/src/lib/chunked.js +0 -97
  446. package/templates/static/node_modules/preact-render-to-string/src/lib/client.js +0 -62
  447. package/templates/static/node_modules/preact-render-to-string/src/lib/constants.js +0 -20
  448. package/templates/static/node_modules/preact-render-to-string/src/lib/polyfills.js +0 -8
  449. package/templates/static/node_modules/preact-render-to-string/src/lib/util.js +0 -208
  450. package/templates/static/node_modules/preact-render-to-string/src/pretty.js +0 -491
  451. package/templates/static/node_modules/preact-render-to-string/src/stream-node.d.ts +0 -19
  452. package/templates/static/node_modules/preact-render-to-string/src/stream-node.js +0 -84
  453. package/templates/static/node_modules/preact-render-to-string/src/stream.d.ts +0 -10
  454. package/templates/static/node_modules/preact-render-to-string/src/stream.js +0 -43
  455. package/templates/static/node_modules/preact-render-to-string/typings.json +0 -5
  456. package/templates/static/node_modules/sirv/build.js +0 -197
  457. package/templates/static/node_modules/sirv/build.mjs +0 -197
  458. package/templates/static/node_modules/sirv/index.d.mts +0 -29
  459. package/templates/static/node_modules/sirv/index.d.ts +0 -33
  460. package/templates/static/node_modules/sirv/package.json +0 -40
  461. package/templates/static/node_modules/sirv/readme.md +0 -238
  462. package/templates/static/node_modules/totalist/dist/index.js +0 -24
  463. package/templates/static/node_modules/totalist/dist/index.mjs +0 -22
  464. package/templates/static/node_modules/totalist/index.d.ts +0 -3
  465. package/templates/static/node_modules/totalist/license +0 -21
  466. package/templates/static/node_modules/totalist/package.json +0 -55
  467. package/templates/static/node_modules/totalist/readme.md +0 -109
  468. package/templates/static/node_modules/totalist/sync/index.d.ts +0 -3
  469. package/templates/static/node_modules/totalist/sync/index.js +0 -17
  470. package/templates/static/node_modules/totalist/sync/index.mjs +0 -15
  471. package/templates/static/node_modules/typescript/bin/tsc +0 -2
  472. package/templates/static/node_modules/typescript/bin/tsserver +0 -2
  473. package/templates/static/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +0 -2122
  474. package/templates/static/node_modules/typescript/lib/de/diagnosticMessages.generated.json +0 -2122
  475. package/templates/static/node_modules/typescript/lib/es/diagnosticMessages.generated.json +0 -2122
  476. package/templates/static/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +0 -2122
  477. package/templates/static/node_modules/typescript/lib/it/diagnosticMessages.generated.json +0 -2122
  478. package/templates/static/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +0 -2122
  479. package/templates/static/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +0 -2122
  480. package/templates/static/node_modules/typescript/lib/lib.d.ts +0 -22
  481. package/templates/static/node_modules/typescript/lib/lib.decorators.d.ts +0 -384
  482. package/templates/static/node_modules/typescript/lib/lib.decorators.legacy.d.ts +0 -22
  483. package/templates/static/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +0 -41
  484. package/templates/static/node_modules/typescript/lib/lib.dom.d.ts +0 -39429
  485. package/templates/static/node_modules/typescript/lib/lib.dom.iterable.d.ts +0 -571
  486. package/templates/static/node_modules/typescript/lib/lib.es2015.collection.d.ts +0 -147
  487. package/templates/static/node_modules/typescript/lib/lib.es2015.core.d.ts +0 -597
  488. package/templates/static/node_modules/typescript/lib/lib.es2015.d.ts +0 -28
  489. package/templates/static/node_modules/typescript/lib/lib.es2015.generator.d.ts +0 -77
  490. package/templates/static/node_modules/typescript/lib/lib.es2015.iterable.d.ts +0 -605
  491. package/templates/static/node_modules/typescript/lib/lib.es2015.promise.d.ts +0 -81
  492. package/templates/static/node_modules/typescript/lib/lib.es2015.proxy.d.ts +0 -128
  493. package/templates/static/node_modules/typescript/lib/lib.es2015.reflect.d.ts +0 -144
  494. package/templates/static/node_modules/typescript/lib/lib.es2015.symbol.d.ts +0 -46
  495. package/templates/static/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +0 -326
  496. package/templates/static/node_modules/typescript/lib/lib.es2016.array.include.d.ts +0 -116
  497. package/templates/static/node_modules/typescript/lib/lib.es2016.d.ts +0 -21
  498. package/templates/static/node_modules/typescript/lib/lib.es2016.full.d.ts +0 -23
  499. package/templates/static/node_modules/typescript/lib/lib.es2016.intl.d.ts +0 -31
  500. package/templates/static/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts +0 -21
  501. package/templates/static/node_modules/typescript/lib/lib.es2017.d.ts +0 -26
  502. package/templates/static/node_modules/typescript/lib/lib.es2017.date.d.ts +0 -31
  503. package/templates/static/node_modules/typescript/lib/lib.es2017.full.d.ts +0 -23
  504. package/templates/static/node_modules/typescript/lib/lib.es2017.intl.d.ts +0 -44
  505. package/templates/static/node_modules/typescript/lib/lib.es2017.object.d.ts +0 -49
  506. package/templates/static/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +0 -135
  507. package/templates/static/node_modules/typescript/lib/lib.es2017.string.d.ts +0 -45
  508. package/templates/static/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +0 -53
  509. package/templates/static/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +0 -77
  510. package/templates/static/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +0 -53
  511. package/templates/static/node_modules/typescript/lib/lib.es2018.d.ts +0 -24
  512. package/templates/static/node_modules/typescript/lib/lib.es2018.full.d.ts +0 -24
  513. package/templates/static/node_modules/typescript/lib/lib.es2018.intl.d.ts +0 -83
  514. package/templates/static/node_modules/typescript/lib/lib.es2018.promise.d.ts +0 -30
  515. package/templates/static/node_modules/typescript/lib/lib.es2018.regexp.d.ts +0 -37
  516. package/templates/static/node_modules/typescript/lib/lib.es2019.array.d.ts +0 -79
  517. package/templates/static/node_modules/typescript/lib/lib.es2019.d.ts +0 -24
  518. package/templates/static/node_modules/typescript/lib/lib.es2019.full.d.ts +0 -24
  519. package/templates/static/node_modules/typescript/lib/lib.es2019.intl.d.ts +0 -23
  520. package/templates/static/node_modules/typescript/lib/lib.es2019.object.d.ts +0 -33
  521. package/templates/static/node_modules/typescript/lib/lib.es2019.string.d.ts +0 -37
  522. package/templates/static/node_modules/typescript/lib/lib.es2019.symbol.d.ts +0 -24
  523. package/templates/static/node_modules/typescript/lib/lib.es2020.bigint.d.ts +0 -765
  524. package/templates/static/node_modules/typescript/lib/lib.es2020.d.ts +0 -27
  525. package/templates/static/node_modules/typescript/lib/lib.es2020.date.d.ts +0 -42
  526. package/templates/static/node_modules/typescript/lib/lib.es2020.full.d.ts +0 -24
  527. package/templates/static/node_modules/typescript/lib/lib.es2020.intl.d.ts +0 -474
  528. package/templates/static/node_modules/typescript/lib/lib.es2020.number.d.ts +0 -28
  529. package/templates/static/node_modules/typescript/lib/lib.es2020.promise.d.ts +0 -47
  530. package/templates/static/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +0 -99
  531. package/templates/static/node_modules/typescript/lib/lib.es2020.string.d.ts +0 -44
  532. package/templates/static/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +0 -41
  533. package/templates/static/node_modules/typescript/lib/lib.es2021.d.ts +0 -23
  534. package/templates/static/node_modules/typescript/lib/lib.es2021.full.d.ts +0 -24
  535. package/templates/static/node_modules/typescript/lib/lib.es2021.intl.d.ts +0 -166
  536. package/templates/static/node_modules/typescript/lib/lib.es2021.promise.d.ts +0 -48
  537. package/templates/static/node_modules/typescript/lib/lib.es2021.string.d.ts +0 -33
  538. package/templates/static/node_modules/typescript/lib/lib.es2021.weakref.d.ts +0 -78
  539. package/templates/static/node_modules/typescript/lib/lib.es2022.array.d.ts +0 -121
  540. package/templates/static/node_modules/typescript/lib/lib.es2022.d.ts +0 -25
  541. package/templates/static/node_modules/typescript/lib/lib.es2022.error.d.ts +0 -75
  542. package/templates/static/node_modules/typescript/lib/lib.es2022.full.d.ts +0 -24
  543. package/templates/static/node_modules/typescript/lib/lib.es2022.intl.d.ts +0 -145
  544. package/templates/static/node_modules/typescript/lib/lib.es2022.object.d.ts +0 -26
  545. package/templates/static/node_modules/typescript/lib/lib.es2022.regexp.d.ts +0 -39
  546. package/templates/static/node_modules/typescript/lib/lib.es2022.string.d.ts +0 -25
  547. package/templates/static/node_modules/typescript/lib/lib.es2023.array.d.ts +0 -924
  548. package/templates/static/node_modules/typescript/lib/lib.es2023.collection.d.ts +0 -21
  549. package/templates/static/node_modules/typescript/lib/lib.es2023.d.ts +0 -22
  550. package/templates/static/node_modules/typescript/lib/lib.es2023.full.d.ts +0 -24
  551. package/templates/static/node_modules/typescript/lib/lib.es2023.intl.d.ts +0 -56
  552. package/templates/static/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts +0 -65
  553. package/templates/static/node_modules/typescript/lib/lib.es2024.collection.d.ts +0 -29
  554. package/templates/static/node_modules/typescript/lib/lib.es2024.d.ts +0 -26
  555. package/templates/static/node_modules/typescript/lib/lib.es2024.full.d.ts +0 -24
  556. package/templates/static/node_modules/typescript/lib/lib.es2024.object.d.ts +0 -29
  557. package/templates/static/node_modules/typescript/lib/lib.es2024.promise.d.ts +0 -35
  558. package/templates/static/node_modules/typescript/lib/lib.es2024.regexp.d.ts +0 -25
  559. package/templates/static/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts +0 -68
  560. package/templates/static/node_modules/typescript/lib/lib.es2024.string.d.ts +0 -29
  561. package/templates/static/node_modules/typescript/lib/lib.es5.d.ts +0 -4601
  562. package/templates/static/node_modules/typescript/lib/lib.es6.d.ts +0 -23
  563. package/templates/static/node_modules/typescript/lib/lib.esnext.array.d.ts +0 -35
  564. package/templates/static/node_modules/typescript/lib/lib.esnext.collection.d.ts +0 -96
  565. package/templates/static/node_modules/typescript/lib/lib.esnext.d.ts +0 -29
  566. package/templates/static/node_modules/typescript/lib/lib.esnext.decorators.d.ts +0 -28
  567. package/templates/static/node_modules/typescript/lib/lib.esnext.disposable.d.ts +0 -193
  568. package/templates/static/node_modules/typescript/lib/lib.esnext.error.d.ts +0 -24
  569. package/templates/static/node_modules/typescript/lib/lib.esnext.float16.d.ts +0 -445
  570. package/templates/static/node_modules/typescript/lib/lib.esnext.full.d.ts +0 -24
  571. package/templates/static/node_modules/typescript/lib/lib.esnext.intl.d.ts +0 -21
  572. package/templates/static/node_modules/typescript/lib/lib.esnext.iterator.d.ts +0 -148
  573. package/templates/static/node_modules/typescript/lib/lib.esnext.promise.d.ts +0 -34
  574. package/templates/static/node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts +0 -25
  575. package/templates/static/node_modules/typescript/lib/lib.scripthost.d.ts +0 -322
  576. package/templates/static/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +0 -41
  577. package/templates/static/node_modules/typescript/lib/lib.webworker.d.ts +0 -13150
  578. package/templates/static/node_modules/typescript/lib/lib.webworker.importscripts.d.ts +0 -23
  579. package/templates/static/node_modules/typescript/lib/lib.webworker.iterable.d.ts +0 -340
  580. package/templates/static/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +0 -2122
  581. package/templates/static/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +0 -2122
  582. package/templates/static/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +0 -2122
  583. package/templates/static/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +0 -2122
  584. package/templates/static/node_modules/typescript/lib/tsc.js +0 -8
  585. package/templates/static/node_modules/typescript/lib/tsserver.js +0 -8
  586. package/templates/static/node_modules/typescript/lib/tsserverlibrary.d.ts +0 -17
  587. package/templates/static/node_modules/typescript/lib/tsserverlibrary.js +0 -21
  588. package/templates/static/node_modules/typescript/lib/typescript.d.ts +0 -11437
@@ -1,923 +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 AnyCaaRecord extends CaaRecord {
254
- type: "CAA";
255
- }
256
- export interface MxRecord {
257
- priority: number;
258
- exchange: string;
259
- }
260
- export interface AnyMxRecord extends MxRecord {
261
- type: "MX";
262
- }
263
- export interface NaptrRecord {
264
- flags: string;
265
- service: string;
266
- regexp: string;
267
- replacement: string;
268
- order: number;
269
- preference: number;
270
- }
271
- export interface AnyNaptrRecord extends NaptrRecord {
272
- type: "NAPTR";
273
- }
274
- export interface SoaRecord {
275
- nsname: string;
276
- hostmaster: string;
277
- serial: number;
278
- refresh: number;
279
- retry: number;
280
- expire: number;
281
- minttl: number;
282
- }
283
- export interface AnySoaRecord extends SoaRecord {
284
- type: "SOA";
285
- }
286
- export interface SrvRecord {
287
- priority: number;
288
- weight: number;
289
- port: number;
290
- name: string;
291
- }
292
- export interface AnySrvRecord extends SrvRecord {
293
- type: "SRV";
294
- }
295
- export interface TlsaRecord {
296
- certUsage: number;
297
- selector: number;
298
- match: number;
299
- data: ArrayBuffer;
300
- }
301
- export interface AnyTlsaRecord extends TlsaRecord {
302
- type: "TLSA";
303
- }
304
- export interface AnyTxtRecord {
305
- type: "TXT";
306
- entries: string[];
307
- }
308
- export interface AnyNsRecord {
309
- type: "NS";
310
- value: string;
311
- }
312
- export interface AnyPtrRecord {
313
- type: "PTR";
314
- value: string;
315
- }
316
- export interface AnyCnameRecord {
317
- type: "CNAME";
318
- value: string;
319
- }
320
- export type AnyRecord =
321
- | AnyARecord
322
- | AnyAaaaRecord
323
- | AnyCaaRecord
324
- | AnyCnameRecord
325
- | AnyMxRecord
326
- | AnyNaptrRecord
327
- | AnyNsRecord
328
- | AnyPtrRecord
329
- | AnySoaRecord
330
- | AnySrvRecord
331
- | AnyTlsaRecord
332
- | AnyTxtRecord;
333
- /**
334
- * Uses the DNS protocol to resolve a host name (e.g. `'nodejs.org'`) into an array
335
- * of the resource records. The `callback` function has arguments `(err, records)`. When successful, `records` will be an array of resource
336
- * records. The type and structure of individual results varies based on `rrtype`:
337
- *
338
- * <omitted>
339
- *
340
- * On error, `err` is an [`Error`](https://nodejs.org/docs/latest-v22.x/api/errors.html#class-error) object,
341
- * where `err.code` is one of the `DNS error codes`.
342
- * @since v0.1.27
343
- * @param hostname Host name to resolve.
344
- * @param [rrtype='A'] Resource record type.
345
- */
346
- export function resolve(
347
- hostname: string,
348
- callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
349
- ): void;
350
- export function resolve(
351
- hostname: string,
352
- rrtype: "A" | "AAAA" | "CNAME" | "NS" | "PTR",
353
- callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
354
- ): void;
355
- export function resolve(
356
- hostname: string,
357
- rrtype: "ANY",
358
- callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void,
359
- ): void;
360
- export function resolve(
361
- hostname: string,
362
- rrtype: "CAA",
363
- callback: (err: NodeJS.ErrnoException | null, address: CaaRecord[]) => void,
364
- ): void;
365
- export function resolve(
366
- hostname: string,
367
- rrtype: "MX",
368
- callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void,
369
- ): void;
370
- export function resolve(
371
- hostname: string,
372
- rrtype: "NAPTR",
373
- callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void,
374
- ): void;
375
- export function resolve(
376
- hostname: string,
377
- rrtype: "SOA",
378
- callback: (err: NodeJS.ErrnoException | null, addresses: SoaRecord) => void,
379
- ): void;
380
- export function resolve(
381
- hostname: string,
382
- rrtype: "SRV",
383
- callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void,
384
- ): void;
385
- export function resolve(
386
- hostname: string,
387
- rrtype: "TLSA",
388
- callback: (err: NodeJS.ErrnoException | null, addresses: TlsaRecord[]) => void,
389
- ): void;
390
- export function resolve(
391
- hostname: string,
392
- rrtype: "TXT",
393
- callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void,
394
- ): void;
395
- export function resolve(
396
- hostname: string,
397
- rrtype: string,
398
- callback: (
399
- err: NodeJS.ErrnoException | null,
400
- addresses:
401
- | string[]
402
- | CaaRecord[]
403
- | MxRecord[]
404
- | NaptrRecord[]
405
- | SoaRecord
406
- | SrvRecord[]
407
- | TlsaRecord[]
408
- | string[][]
409
- | AnyRecord[],
410
- ) => void,
411
- ): void;
412
- export namespace resolve {
413
- function __promisify__(hostname: string, rrtype?: "A" | "AAAA" | "CNAME" | "NS" | "PTR"): Promise<string[]>;
414
- function __promisify__(hostname: string, rrtype: "ANY"): Promise<AnyRecord[]>;
415
- function __promisify__(hostname: string, rrtype: "CAA"): Promise<CaaRecord[]>;
416
- function __promisify__(hostname: string, rrtype: "MX"): Promise<MxRecord[]>;
417
- function __promisify__(hostname: string, rrtype: "NAPTR"): Promise<NaptrRecord[]>;
418
- function __promisify__(hostname: string, rrtype: "SOA"): Promise<SoaRecord>;
419
- function __promisify__(hostname: string, rrtype: "SRV"): Promise<SrvRecord[]>;
420
- function __promisify__(hostname: string, rrtype: "TLSA"): Promise<TlsaRecord[]>;
421
- function __promisify__(hostname: string, rrtype: "TXT"): Promise<string[][]>;
422
- function __promisify__(
423
- hostname: string,
424
- rrtype: string,
425
- ): Promise<
426
- | string[]
427
- | CaaRecord[]
428
- | MxRecord[]
429
- | NaptrRecord[]
430
- | SoaRecord
431
- | SrvRecord[]
432
- | TlsaRecord[]
433
- | string[][]
434
- | AnyRecord[]
435
- >;
436
- }
437
- /**
438
- * Uses the DNS protocol to resolve a IPv4 addresses (`A` records) for the `hostname`. The `addresses` argument passed to the `callback` function
439
- * will contain an array of IPv4 addresses (e.g.`['74.125.79.104', '74.125.79.105', '74.125.79.106']`).
440
- * @since v0.1.16
441
- * @param hostname Host name to resolve.
442
- */
443
- export function resolve4(
444
- hostname: string,
445
- callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
446
- ): void;
447
- export function resolve4(
448
- hostname: string,
449
- options: ResolveWithTtlOptions,
450
- callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void,
451
- ): void;
452
- export function resolve4(
453
- hostname: string,
454
- options: ResolveOptions,
455
- callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void,
456
- ): void;
457
- export namespace resolve4 {
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 IPv6 addresses (`AAAA` records) for the `hostname`. The `addresses` argument passed to the `callback` function
464
- * will contain an array of IPv6 addresses.
465
- * @since v0.1.16
466
- * @param hostname Host name to resolve.
467
- */
468
- export function resolve6(
469
- hostname: string,
470
- callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
471
- ): void;
472
- export function resolve6(
473
- hostname: string,
474
- options: ResolveWithTtlOptions,
475
- callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void,
476
- ): void;
477
- export function resolve6(
478
- hostname: string,
479
- options: ResolveOptions,
480
- callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void,
481
- ): void;
482
- export namespace resolve6 {
483
- function __promisify__(hostname: string): Promise<string[]>;
484
- function __promisify__(hostname: string, options: ResolveWithTtlOptions): Promise<RecordWithTtl[]>;
485
- function __promisify__(hostname: string, options?: ResolveOptions): Promise<string[] | RecordWithTtl[]>;
486
- }
487
- /**
488
- * Uses the DNS protocol to resolve `CNAME` records for the `hostname`. The `addresses` argument passed to the `callback` function
489
- * will contain an array of canonical name records available for the `hostname` (e.g. `['bar.example.com']`).
490
- * @since v0.3.2
491
- */
492
- export function resolveCname(
493
- hostname: string,
494
- callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
495
- ): void;
496
- export namespace resolveCname {
497
- function __promisify__(hostname: string): Promise<string[]>;
498
- }
499
- /**
500
- * Uses the DNS protocol to resolve `CAA` records for the `hostname`. The `addresses` argument passed to the `callback` function
501
- * will contain an array of certification authority authorization records
502
- * available for the `hostname` (e.g. `[{critical: 0, iodef: 'mailto:pki@example.com'}, {critical: 128, issue: 'pki.example.com'}]`).
503
- * @since v15.0.0, v14.17.0
504
- */
505
- export function resolveCaa(
506
- hostname: string,
507
- callback: (err: NodeJS.ErrnoException | null, records: CaaRecord[]) => void,
508
- ): void;
509
- export namespace resolveCaa {
510
- function __promisify__(hostname: string): Promise<CaaRecord[]>;
511
- }
512
- /**
513
- * Uses the DNS protocol to resolve mail exchange records (`MX` records) for the `hostname`. The `addresses` argument passed to the `callback` function will
514
- * contain an array of objects containing both a `priority` and `exchange` property (e.g. `[{priority: 10, exchange: 'mx.example.com'}, ...]`).
515
- * @since v0.1.27
516
- */
517
- export function resolveMx(
518
- hostname: string,
519
- callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void,
520
- ): void;
521
- export namespace resolveMx {
522
- function __promisify__(hostname: string): Promise<MxRecord[]>;
523
- }
524
- /**
525
- * 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
526
- * objects with the following properties:
527
- *
528
- * * `flags`
529
- * * `service`
530
- * * `regexp`
531
- * * `replacement`
532
- * * `order`
533
- * * `preference`
534
- *
535
- * ```js
536
- * {
537
- * flags: 's',
538
- * service: 'SIP+D2U',
539
- * regexp: '',
540
- * replacement: '_sip._udp.example.com',
541
- * order: 30,
542
- * preference: 100
543
- * }
544
- * ```
545
- * @since v0.9.12
546
- */
547
- export function resolveNaptr(
548
- hostname: string,
549
- callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void,
550
- ): void;
551
- export namespace resolveNaptr {
552
- function __promisify__(hostname: string): Promise<NaptrRecord[]>;
553
- }
554
- /**
555
- * Uses the DNS protocol to resolve name server records (`NS` records) for the `hostname`. The `addresses` argument passed to the `callback` function will
556
- * contain an array of name server records available for `hostname` (e.g. `['ns1.example.com', 'ns2.example.com']`).
557
- * @since v0.1.90
558
- */
559
- export function resolveNs(
560
- hostname: string,
561
- callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
562
- ): void;
563
- export namespace resolveNs {
564
- function __promisify__(hostname: string): Promise<string[]>;
565
- }
566
- /**
567
- * Uses the DNS protocol to resolve pointer records (`PTR` records) for the `hostname`. The `addresses` argument passed to the `callback` function will
568
- * be an array of strings containing the reply records.
569
- * @since v6.0.0
570
- */
571
- export function resolvePtr(
572
- hostname: string,
573
- callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
574
- ): void;
575
- export namespace resolvePtr {
576
- function __promisify__(hostname: string): Promise<string[]>;
577
- }
578
- /**
579
- * Uses the DNS protocol to resolve a start of authority record (`SOA` record) for
580
- * the `hostname`. The `address` argument passed to the `callback` function will
581
- * be an object with the following properties:
582
- *
583
- * * `nsname`
584
- * * `hostmaster`
585
- * * `serial`
586
- * * `refresh`
587
- * * `retry`
588
- * * `expire`
589
- * * `minttl`
590
- *
591
- * ```js
592
- * {
593
- * nsname: 'ns.example.com',
594
- * hostmaster: 'root.example.com',
595
- * serial: 2013101809,
596
- * refresh: 10000,
597
- * retry: 2400,
598
- * expire: 604800,
599
- * minttl: 3600
600
- * }
601
- * ```
602
- * @since v0.11.10
603
- */
604
- export function resolveSoa(
605
- hostname: string,
606
- callback: (err: NodeJS.ErrnoException | null, address: SoaRecord) => void,
607
- ): void;
608
- export namespace resolveSoa {
609
- function __promisify__(hostname: string): Promise<SoaRecord>;
610
- }
611
- /**
612
- * Uses the DNS protocol to resolve service records (`SRV` records) for the `hostname`. The `addresses` argument passed to the `callback` function will
613
- * be an array of objects with the following properties:
614
- *
615
- * * `priority`
616
- * * `weight`
617
- * * `port`
618
- * * `name`
619
- *
620
- * ```js
621
- * {
622
- * priority: 10,
623
- * weight: 5,
624
- * port: 21223,
625
- * name: 'service.example.com'
626
- * }
627
- * ```
628
- * @since v0.1.27
629
- */
630
- export function resolveSrv(
631
- hostname: string,
632
- callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void,
633
- ): void;
634
- export namespace resolveSrv {
635
- function __promisify__(hostname: string): Promise<SrvRecord[]>;
636
- }
637
- /**
638
- * Uses the DNS protocol to resolve certificate associations (`TLSA` records) for
639
- * the `hostname`. The `records` argument passed to the `callback` function is an
640
- * array of objects with these properties:
641
- *
642
- * * `certUsage`
643
- * * `selector`
644
- * * `match`
645
- * * `data`
646
- *
647
- * ```js
648
- * {
649
- * certUsage: 3,
650
- * selector: 1,
651
- * match: 1,
652
- * data: [ArrayBuffer]
653
- * }
654
- * ```
655
- * @since v22.15.0
656
- */
657
- export function resolveTlsa(
658
- hostname: string,
659
- callback: (err: NodeJS.ErrnoException | null, addresses: TlsaRecord[]) => void,
660
- ): void;
661
- export namespace resolveTlsa {
662
- function __promisify__(hostname: string): Promise<TlsaRecord[]>;
663
- }
664
- /**
665
- * Uses the DNS protocol to resolve text queries (`TXT` records) for the `hostname`. The `records` argument passed to the `callback` function is a
666
- * 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
667
- * one record. Depending on the use case, these could be either joined together or
668
- * treated separately.
669
- * @since v0.1.27
670
- */
671
- export function resolveTxt(
672
- hostname: string,
673
- callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void,
674
- ): void;
675
- export namespace resolveTxt {
676
- function __promisify__(hostname: string): Promise<string[][]>;
677
- }
678
- /**
679
- * Uses the DNS protocol to resolve all records (also known as `ANY` or `*` query).
680
- * The `ret` argument passed to the `callback` function will be an array containing
681
- * various types of records. Each object has a property `type` that indicates the
682
- * type of the current record. And depending on the `type`, additional properties
683
- * will be present on the object:
684
- *
685
- * <omitted>
686
- *
687
- * Here is an example of the `ret` object passed to the callback:
688
- *
689
- * ```js
690
- * [ { type: 'A', address: '127.0.0.1', ttl: 299 },
691
- * { type: 'CNAME', value: 'example.com' },
692
- * { type: 'MX', exchange: 'alt4.aspmx.l.example.com', priority: 50 },
693
- * { type: 'NS', value: 'ns1.example.com' },
694
- * { type: 'TXT', entries: [ 'v=spf1 include:_spf.example.com ~all' ] },
695
- * { type: 'SOA',
696
- * nsname: 'ns1.example.com',
697
- * hostmaster: 'admin.example.com',
698
- * serial: 156696742,
699
- * refresh: 900,
700
- * retry: 900,
701
- * expire: 1800,
702
- * minttl: 60 } ]
703
- * ```
704
- *
705
- * 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
706
- * [RFC 8482](https://tools.ietf.org/html/rfc8482).
707
- */
708
- export function resolveAny(
709
- hostname: string,
710
- callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void,
711
- ): void;
712
- export namespace resolveAny {
713
- function __promisify__(hostname: string): Promise<AnyRecord[]>;
714
- }
715
- /**
716
- * Performs a reverse DNS query that resolves an IPv4 or IPv6 address to an
717
- * array of host names.
718
- *
719
- * On error, `err` is an [`Error`](https://nodejs.org/docs/latest-v22.x/api/errors.html#class-error) object, where `err.code` is
720
- * one of the [DNS error codes](https://nodejs.org/docs/latest-v22.x/api/dns.html#error-codes).
721
- * @since v0.1.16
722
- */
723
- export function reverse(
724
- ip: string,
725
- callback: (err: NodeJS.ErrnoException | null, hostnames: string[]) => void,
726
- ): void;
727
- /**
728
- * Get the default value for `order` in {@link lookup} and [`dnsPromises.lookup()`](https://nodejs.org/docs/latest-v22.x/api/dns.html#dnspromiseslookuphostname-options).
729
- * The value could be:
730
- *
731
- * * `ipv4first`: for `order` defaulting to `ipv4first`.
732
- * * `ipv6first`: for `order` defaulting to `ipv6first`.
733
- * * `verbatim`: for `order` defaulting to `verbatim`.
734
- * @since v18.17.0
735
- */
736
- export function getDefaultResultOrder(): "ipv4first" | "ipv6first" | "verbatim";
737
- /**
738
- * Sets the IP address and port of servers to be used when performing DNS
739
- * resolution. The `servers` argument is an array of [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6) formatted
740
- * addresses. If the port is the IANA default DNS port (53) it can be omitted.
741
- *
742
- * ```js
743
- * dns.setServers([
744
- * '4.4.4.4',
745
- * '[2001:4860:4860::8888]',
746
- * '4.4.4.4:1053',
747
- * '[2001:4860:4860::8888]:1053',
748
- * ]);
749
- * ```
750
- *
751
- * An error will be thrown if an invalid address is provided.
752
- *
753
- * The `dns.setServers()` method must not be called while a DNS query is in
754
- * progress.
755
- *
756
- * The {@link setServers} method affects only {@link resolve}, `dns.resolve*()` and {@link reverse} (and specifically _not_ {@link lookup}).
757
- *
758
- * This method works much like [resolve.conf](https://man7.org/linux/man-pages/man5/resolv.conf.5.html).
759
- * 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
760
- * subsequent servers provided. Fallback DNS servers will only be used if the
761
- * earlier ones time out or result in some other error.
762
- * @since v0.11.3
763
- * @param servers array of [RFC 5952](https://datatracker.ietf.org/doc/html/rfc5952#section-6) formatted addresses
764
- */
765
- export function setServers(servers: readonly string[]): void;
766
- /**
767
- * Returns an array of IP address strings, formatted according to [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6),
768
- * that are currently configured for DNS resolution. A string will include a port
769
- * section if a custom port is used.
770
- *
771
- * ```js
772
- * [
773
- * '4.4.4.4',
774
- * '2001:4860:4860::8888',
775
- * '4.4.4.4:1053',
776
- * '[2001:4860:4860::8888]:1053',
777
- * ]
778
- * ```
779
- * @since v0.11.3
780
- */
781
- export function getServers(): string[];
782
- /**
783
- * Set the default value of `order` in {@link lookup} and [`dnsPromises.lookup()`](https://nodejs.org/docs/latest-v22.x/api/dns.html#dnspromiseslookuphostname-options).
784
- * The value could be:
785
- *
786
- * * `ipv4first`: sets default `order` to `ipv4first`.
787
- * * `ipv6first`: sets default `order` to `ipv6first`.
788
- * * `verbatim`: sets default `order` to `verbatim`.
789
- *
790
- * The default is `verbatim` and {@link setDefaultResultOrder} have higher
791
- * priority than [`--dns-result-order`](https://nodejs.org/docs/latest-v22.x/api/cli.html#--dns-result-orderorder). When using
792
- * [worker threads](https://nodejs.org/docs/latest-v22.x/api/worker_threads.html), {@link setDefaultResultOrder} from the main
793
- * thread won't affect the default dns orders in workers.
794
- * @since v16.4.0, v14.18.0
795
- * @param order must be `'ipv4first'`, `'ipv6first'` or `'verbatim'`.
796
- */
797
- export function setDefaultResultOrder(order: "ipv4first" | "ipv6first" | "verbatim"): void;
798
- // Error codes
799
- export const NODATA: "ENODATA";
800
- export const FORMERR: "EFORMERR";
801
- export const SERVFAIL: "ESERVFAIL";
802
- export const NOTFOUND: "ENOTFOUND";
803
- export const NOTIMP: "ENOTIMP";
804
- export const REFUSED: "EREFUSED";
805
- export const BADQUERY: "EBADQUERY";
806
- export const BADNAME: "EBADNAME";
807
- export const BADFAMILY: "EBADFAMILY";
808
- export const BADRESP: "EBADRESP";
809
- export const CONNREFUSED: "ECONNREFUSED";
810
- export const TIMEOUT: "ETIMEOUT";
811
- export const EOF: "EOF";
812
- export const FILE: "EFILE";
813
- export const NOMEM: "ENOMEM";
814
- export const DESTRUCTION: "EDESTRUCTION";
815
- export const BADSTR: "EBADSTR";
816
- export const BADFLAGS: "EBADFLAGS";
817
- export const NONAME: "ENONAME";
818
- export const BADHINTS: "EBADHINTS";
819
- export const NOTINITIALIZED: "ENOTINITIALIZED";
820
- export const LOADIPHLPAPI: "ELOADIPHLPAPI";
821
- export const ADDRGETNETWORKPARAMS: "EADDRGETNETWORKPARAMS";
822
- export const CANCELLED: "ECANCELLED";
823
- export interface ResolverOptions {
824
- /**
825
- * Query timeout in milliseconds, or `-1` to use the default timeout.
826
- */
827
- timeout?: number | undefined;
828
- /**
829
- * The number of tries the resolver will try contacting each name server before giving up.
830
- * @default 4
831
- */
832
- tries?: number | undefined;
833
- /**
834
- * The max retry timeout, in milliseconds.
835
- * @default 0
836
- */
837
- maxTimeout?: number | undefined;
838
- }
839
- /**
840
- * An independent resolver for DNS requests.
841
- *
842
- * Creating a new resolver uses the default server settings. Setting
843
- * the servers used for a resolver using [`resolver.setServers()`](https://nodejs.org/docs/latest-v22.x/api/dns.html#dnssetserversservers) does not affect
844
- * other resolvers:
845
- *
846
- * ```js
847
- * import { Resolver } from 'node:dns';
848
- * const resolver = new Resolver();
849
- * resolver.setServers(['4.4.4.4']);
850
- *
851
- * // This request will use the server at 4.4.4.4, independent of global settings.
852
- * resolver.resolve4('example.org', (err, addresses) => {
853
- * // ...
854
- * });
855
- * ```
856
- *
857
- * The following methods from the `node:dns` module are available:
858
- *
859
- * * `resolver.getServers()`
860
- * * `resolver.resolve()`
861
- * * `resolver.resolve4()`
862
- * * `resolver.resolve6()`
863
- * * `resolver.resolveAny()`
864
- * * `resolver.resolveCaa()`
865
- * * `resolver.resolveCname()`
866
- * * `resolver.resolveMx()`
867
- * * `resolver.resolveNaptr()`
868
- * * `resolver.resolveNs()`
869
- * * `resolver.resolvePtr()`
870
- * * `resolver.resolveSoa()`
871
- * * `resolver.resolveSrv()`
872
- * * `resolver.resolveTxt()`
873
- * * `resolver.reverse()`
874
- * * `resolver.setServers()`
875
- * @since v8.3.0
876
- */
877
- export class Resolver {
878
- constructor(options?: ResolverOptions);
879
- /**
880
- * Cancel all outstanding DNS queries made by this resolver. The corresponding
881
- * callbacks will be called with an error with code `ECANCELLED`.
882
- * @since v8.3.0
883
- */
884
- cancel(): void;
885
- getServers: typeof getServers;
886
- resolve: typeof resolve;
887
- resolve4: typeof resolve4;
888
- resolve6: typeof resolve6;
889
- resolveAny: typeof resolveAny;
890
- resolveCaa: typeof resolveCaa;
891
- resolveCname: typeof resolveCname;
892
- resolveMx: typeof resolveMx;
893
- resolveNaptr: typeof resolveNaptr;
894
- resolveNs: typeof resolveNs;
895
- resolvePtr: typeof resolvePtr;
896
- resolveSoa: typeof resolveSoa;
897
- resolveSrv: typeof resolveSrv;
898
- resolveTlsa: typeof resolveTlsa;
899
- resolveTxt: typeof resolveTxt;
900
- reverse: typeof reverse;
901
- /**
902
- * The resolver instance will send its requests from the specified IP address.
903
- * This allows programs to specify outbound interfaces when used on multi-homed
904
- * systems.
905
- *
906
- * If a v4 or v6 address is not specified, it is set to the default and the
907
- * operating system will choose a local address automatically.
908
- *
909
- * The resolver will use the v4 local address when making requests to IPv4 DNS
910
- * servers, and the v6 local address when making requests to IPv6 DNS servers.
911
- * The `rrtype` of resolution requests has no impact on the local address used.
912
- * @since v15.1.0, v14.17.0
913
- * @param [ipv4='0.0.0.0'] A string representation of an IPv4 address.
914
- * @param [ipv6='::0'] A string representation of an IPv6 address.
915
- */
916
- setLocalAddress(ipv4?: string, ipv6?: string): void;
917
- setServers: typeof setServers;
918
- }
919
- export { dnsPromises as promises };
920
- }
921
- declare module "node:dns" {
922
- export * from "dns";
923
- }