@tomorrowos/sdk 0.3.1 → 0.3.2

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 (323) hide show
  1. package/dist/cli.js +27 -2
  2. package/package.json +1 -1
  3. package/templates/cms-starter/package.json +2 -2
  4. package/templates/cms-starter/public/methods.js +1 -1
  5. package/templates/cms-starter/node_modules/.bin/esbuild +0 -16
  6. package/templates/cms-starter/node_modules/.bin/esbuild.cmd +0 -17
  7. package/templates/cms-starter/node_modules/.bin/esbuild.ps1 +0 -28
  8. package/templates/cms-starter/node_modules/.bin/tomorrowos +0 -16
  9. package/templates/cms-starter/node_modules/.bin/tomorrowos.cmd +0 -17
  10. package/templates/cms-starter/node_modules/.bin/tomorrowos.ps1 +0 -28
  11. package/templates/cms-starter/node_modules/.bin/tsc +0 -16
  12. package/templates/cms-starter/node_modules/.bin/tsc.cmd +0 -17
  13. package/templates/cms-starter/node_modules/.bin/tsc.ps1 +0 -28
  14. package/templates/cms-starter/node_modules/.bin/tsserver +0 -16
  15. package/templates/cms-starter/node_modules/.bin/tsserver.cmd +0 -17
  16. package/templates/cms-starter/node_modules/.bin/tsserver.ps1 +0 -28
  17. package/templates/cms-starter/node_modules/.bin/tsx +0 -16
  18. package/templates/cms-starter/node_modules/.bin/tsx.cmd +0 -17
  19. package/templates/cms-starter/node_modules/.bin/tsx.ps1 +0 -28
  20. package/templates/cms-starter/node_modules/.package-lock.json +0 -140
  21. package/templates/cms-starter/node_modules/@esbuild/win32-x64/README.md +0 -3
  22. package/templates/cms-starter/node_modules/@esbuild/win32-x64/esbuild.exe +0 -0
  23. package/templates/cms-starter/node_modules/@esbuild/win32-x64/package.json +0 -20
  24. package/templates/cms-starter/node_modules/@types/node/LICENSE +0 -21
  25. package/templates/cms-starter/node_modules/@types/node/README.md +0 -15
  26. package/templates/cms-starter/node_modules/@types/node/assert/strict.d.ts +0 -8
  27. package/templates/cms-starter/node_modules/@types/node/assert.d.ts +0 -1062
  28. package/templates/cms-starter/node_modules/@types/node/async_hooks.d.ts +0 -605
  29. package/templates/cms-starter/node_modules/@types/node/buffer.buffer.d.ts +0 -471
  30. package/templates/cms-starter/node_modules/@types/node/buffer.d.ts +0 -1936
  31. package/templates/cms-starter/node_modules/@types/node/child_process.d.ts +0 -1475
  32. package/templates/cms-starter/node_modules/@types/node/cluster.d.ts +0 -577
  33. package/templates/cms-starter/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
  34. package/templates/cms-starter/node_modules/@types/node/compatibility/index.d.ts +0 -9
  35. package/templates/cms-starter/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
  36. package/templates/cms-starter/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
  37. package/templates/cms-starter/node_modules/@types/node/console.d.ts +0 -452
  38. package/templates/cms-starter/node_modules/@types/node/constants.d.ts +0 -21
  39. package/templates/cms-starter/node_modules/@types/node/crypto.d.ts +0 -4590
  40. package/templates/cms-starter/node_modules/@types/node/dgram.d.ts +0 -597
  41. package/templates/cms-starter/node_modules/@types/node/diagnostics_channel.d.ts +0 -578
  42. package/templates/cms-starter/node_modules/@types/node/dns/promises.d.ts +0 -479
  43. package/templates/cms-starter/node_modules/@types/node/dns.d.ts +0 -871
  44. package/templates/cms-starter/node_modules/@types/node/domain.d.ts +0 -170
  45. package/templates/cms-starter/node_modules/@types/node/events.d.ts +0 -977
  46. package/templates/cms-starter/node_modules/@types/node/fs/promises.d.ts +0 -1270
  47. package/templates/cms-starter/node_modules/@types/node/fs.d.ts +0 -4375
  48. package/templates/cms-starter/node_modules/@types/node/globals.d.ts +0 -172
  49. package/templates/cms-starter/node_modules/@types/node/globals.typedarray.d.ts +0 -38
  50. package/templates/cms-starter/node_modules/@types/node/http.d.ts +0 -2049
  51. package/templates/cms-starter/node_modules/@types/node/http2.d.ts +0 -2708
  52. package/templates/cms-starter/node_modules/@types/node/https.d.ts +0 -578
  53. package/templates/cms-starter/node_modules/@types/node/index.d.ts +0 -93
  54. package/templates/cms-starter/node_modules/@types/node/inspector.generated.d.ts +0 -3966
  55. package/templates/cms-starter/node_modules/@types/node/module.d.ts +0 -539
  56. package/templates/cms-starter/node_modules/@types/node/net.d.ts +0 -1031
  57. package/templates/cms-starter/node_modules/@types/node/os.d.ts +0 -506
  58. package/templates/cms-starter/node_modules/@types/node/package.json +0 -140
  59. package/templates/cms-starter/node_modules/@types/node/path.d.ts +0 -200
  60. package/templates/cms-starter/node_modules/@types/node/perf_hooks.d.ts +0 -961
  61. package/templates/cms-starter/node_modules/@types/node/process.d.ts +0 -1961
  62. package/templates/cms-starter/node_modules/@types/node/punycode.d.ts +0 -117
  63. package/templates/cms-starter/node_modules/@types/node/querystring.d.ts +0 -152
  64. package/templates/cms-starter/node_modules/@types/node/readline/promises.d.ts +0 -162
  65. package/templates/cms-starter/node_modules/@types/node/readline.d.ts +0 -589
  66. package/templates/cms-starter/node_modules/@types/node/repl.d.ts +0 -430
  67. package/templates/cms-starter/node_modules/@types/node/sea.d.ts +0 -153
  68. package/templates/cms-starter/node_modules/@types/node/stream/consumers.d.ts +0 -38
  69. package/templates/cms-starter/node_modules/@types/node/stream/promises.d.ts +0 -90
  70. package/templates/cms-starter/node_modules/@types/node/stream/web.d.ts +0 -533
  71. package/templates/cms-starter/node_modules/@types/node/stream.d.ts +0 -1698
  72. package/templates/cms-starter/node_modules/@types/node/string_decoder.d.ts +0 -67
  73. package/templates/cms-starter/node_modules/@types/node/test.d.ts +0 -1787
  74. package/templates/cms-starter/node_modules/@types/node/timers/promises.d.ts +0 -108
  75. package/templates/cms-starter/node_modules/@types/node/timers.d.ts +0 -286
  76. package/templates/cms-starter/node_modules/@types/node/tls.d.ts +0 -1259
  77. package/templates/cms-starter/node_modules/@types/node/trace_events.d.ts +0 -197
  78. package/templates/cms-starter/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -468
  79. package/templates/cms-starter/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -34
  80. package/templates/cms-starter/node_modules/@types/node/ts5.6/index.d.ts +0 -93
  81. package/templates/cms-starter/node_modules/@types/node/tty.d.ts +0 -208
  82. package/templates/cms-starter/node_modules/@types/node/url.d.ts +0 -964
  83. package/templates/cms-starter/node_modules/@types/node/util.d.ts +0 -2331
  84. package/templates/cms-starter/node_modules/@types/node/v8.d.ts +0 -809
  85. package/templates/cms-starter/node_modules/@types/node/vm.d.ts +0 -1001
  86. package/templates/cms-starter/node_modules/@types/node/wasi.d.ts +0 -181
  87. package/templates/cms-starter/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -34
  88. package/templates/cms-starter/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
  89. package/templates/cms-starter/node_modules/@types/node/web-globals/events.d.ts +0 -97
  90. package/templates/cms-starter/node_modules/@types/node/web-globals/fetch.d.ts +0 -55
  91. package/templates/cms-starter/node_modules/@types/node/worker_threads.d.ts +0 -715
  92. package/templates/cms-starter/node_modules/@types/node/zlib.d.ts +0 -598
  93. package/templates/cms-starter/node_modules/esbuild/LICENSE.md +0 -21
  94. package/templates/cms-starter/node_modules/esbuild/README.md +0 -3
  95. package/templates/cms-starter/node_modules/esbuild/bin/esbuild +0 -223
  96. package/templates/cms-starter/node_modules/esbuild/install.js +0 -300
  97. package/templates/cms-starter/node_modules/esbuild/lib/main.d.ts +0 -716
  98. package/templates/cms-starter/node_modules/esbuild/lib/main.js +0 -2532
  99. package/templates/cms-starter/node_modules/esbuild/package.json +0 -74
  100. package/templates/cms-starter/node_modules/tsx/LICENSE +0 -21
  101. package/templates/cms-starter/node_modules/tsx/README.md +0 -32
  102. package/templates/cms-starter/node_modules/tsx/dist/cjs/api/index.cjs +0 -1
  103. package/templates/cms-starter/node_modules/tsx/dist/cjs/api/index.d.cts +0 -35
  104. package/templates/cms-starter/node_modules/tsx/dist/cjs/api/index.d.mts +0 -35
  105. package/templates/cms-starter/node_modules/tsx/dist/cjs/api/index.mjs +0 -1
  106. package/templates/cms-starter/node_modules/tsx/dist/cjs/index.cjs +0 -1
  107. package/templates/cms-starter/node_modules/tsx/dist/cjs/index.mjs +0 -1
  108. package/templates/cms-starter/node_modules/tsx/dist/cli.cjs +0 -54
  109. package/templates/cms-starter/node_modules/tsx/dist/cli.mjs +0 -55
  110. package/templates/cms-starter/node_modules/tsx/dist/client-D3mGB526.cjs +0 -1
  111. package/templates/cms-starter/node_modules/tsx/dist/client-D_mPDF5S.mjs +0 -1
  112. package/templates/cms-starter/node_modules/tsx/dist/esm/api/index.cjs +0 -1
  113. package/templates/cms-starter/node_modules/tsx/dist/esm/api/index.d.cts +0 -35
  114. package/templates/cms-starter/node_modules/tsx/dist/esm/api/index.d.mts +0 -35
  115. package/templates/cms-starter/node_modules/tsx/dist/esm/api/index.mjs +0 -1
  116. package/templates/cms-starter/node_modules/tsx/dist/esm/index.cjs +0 -1
  117. package/templates/cms-starter/node_modules/tsx/dist/esm/index.mjs +0 -1
  118. package/templates/cms-starter/node_modules/tsx/dist/get-pipe-path-D4YM6rQt.cjs +0 -1
  119. package/templates/cms-starter/node_modules/tsx/dist/get-pipe-path-_tAJyU_v.mjs +0 -1
  120. package/templates/cms-starter/node_modules/tsx/dist/index-BWFBUo6r.cjs +0 -1
  121. package/templates/cms-starter/node_modules/tsx/dist/index-D9F1FXzN.cjs +0 -14
  122. package/templates/cms-starter/node_modules/tsx/dist/index-XurvG3JN.mjs +0 -14
  123. package/templates/cms-starter/node_modules/tsx/dist/index-gbaejti9.mjs +0 -1
  124. package/templates/cms-starter/node_modules/tsx/dist/lexer-DQCqS3nf.mjs +0 -3
  125. package/templates/cms-starter/node_modules/tsx/dist/lexer-DgIbo0BU.cjs +0 -3
  126. package/templates/cms-starter/node_modules/tsx/dist/loader.cjs +0 -1
  127. package/templates/cms-starter/node_modules/tsx/dist/loader.mjs +0 -1
  128. package/templates/cms-starter/node_modules/tsx/dist/node-features-B9BBLzwu.mjs +0 -1
  129. package/templates/cms-starter/node_modules/tsx/dist/node-features-CQLdkVE6.cjs +0 -1
  130. package/templates/cms-starter/node_modules/tsx/dist/package-CGdS2_oX.cjs +0 -1
  131. package/templates/cms-starter/node_modules/tsx/dist/package-DyJMwVU5.mjs +0 -1
  132. package/templates/cms-starter/node_modules/tsx/dist/patch-repl.cjs +0 -1
  133. package/templates/cms-starter/node_modules/tsx/dist/patch-repl.mjs +0 -1
  134. package/templates/cms-starter/node_modules/tsx/dist/preflight.cjs +0 -1
  135. package/templates/cms-starter/node_modules/tsx/dist/preflight.mjs +0 -1
  136. package/templates/cms-starter/node_modules/tsx/dist/register-BOkp8V6j.cjs +0 -10
  137. package/templates/cms-starter/node_modules/tsx/dist/register-BnTWPeIB.mjs +0 -10
  138. package/templates/cms-starter/node_modules/tsx/dist/register-CHVGxKtC.cjs +0 -2
  139. package/templates/cms-starter/node_modules/tsx/dist/register-D_B8UL5H.mjs +0 -2
  140. package/templates/cms-starter/node_modules/tsx/dist/repl.cjs +0 -3
  141. package/templates/cms-starter/node_modules/tsx/dist/repl.mjs +0 -3
  142. package/templates/cms-starter/node_modules/tsx/dist/require-CjvaJWEr.cjs +0 -1
  143. package/templates/cms-starter/node_modules/tsx/dist/require-DzmC1hVr.mjs +0 -1
  144. package/templates/cms-starter/node_modules/tsx/dist/suppress-warnings.cjs +0 -1
  145. package/templates/cms-starter/node_modules/tsx/dist/suppress-warnings.mjs +0 -1
  146. package/templates/cms-starter/node_modules/tsx/dist/temporary-directory-B83uKxJF.cjs +0 -1
  147. package/templates/cms-starter/node_modules/tsx/dist/temporary-directory-BDDVQOvU.mjs +0 -1
  148. package/templates/cms-starter/node_modules/tsx/dist/types-Cxp8y2TL.d.ts +0 -5
  149. package/templates/cms-starter/node_modules/tsx/package.json +0 -67
  150. package/templates/cms-starter/node_modules/typescript/LICENSE.txt +0 -55
  151. package/templates/cms-starter/node_modules/typescript/README.md +0 -50
  152. package/templates/cms-starter/node_modules/typescript/SECURITY.md +0 -41
  153. package/templates/cms-starter/node_modules/typescript/ThirdPartyNoticeText.txt +0 -193
  154. package/templates/cms-starter/node_modules/typescript/bin/tsc +0 -2
  155. package/templates/cms-starter/node_modules/typescript/bin/tsserver +0 -2
  156. package/templates/cms-starter/node_modules/typescript/lib/_tsc.js +0 -133818
  157. package/templates/cms-starter/node_modules/typescript/lib/_tsserver.js +0 -659
  158. package/templates/cms-starter/node_modules/typescript/lib/_typingsInstaller.js +0 -222
  159. package/templates/cms-starter/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +0 -2122
  160. package/templates/cms-starter/node_modules/typescript/lib/de/diagnosticMessages.generated.json +0 -2122
  161. package/templates/cms-starter/node_modules/typescript/lib/es/diagnosticMessages.generated.json +0 -2122
  162. package/templates/cms-starter/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +0 -2122
  163. package/templates/cms-starter/node_modules/typescript/lib/it/diagnosticMessages.generated.json +0 -2122
  164. package/templates/cms-starter/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +0 -2122
  165. package/templates/cms-starter/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +0 -2122
  166. package/templates/cms-starter/node_modules/typescript/lib/lib.d.ts +0 -22
  167. package/templates/cms-starter/node_modules/typescript/lib/lib.decorators.d.ts +0 -384
  168. package/templates/cms-starter/node_modules/typescript/lib/lib.decorators.legacy.d.ts +0 -22
  169. package/templates/cms-starter/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +0 -41
  170. package/templates/cms-starter/node_modules/typescript/lib/lib.dom.d.ts +0 -39429
  171. package/templates/cms-starter/node_modules/typescript/lib/lib.dom.iterable.d.ts +0 -571
  172. package/templates/cms-starter/node_modules/typescript/lib/lib.es2015.collection.d.ts +0 -147
  173. package/templates/cms-starter/node_modules/typescript/lib/lib.es2015.core.d.ts +0 -597
  174. package/templates/cms-starter/node_modules/typescript/lib/lib.es2015.d.ts +0 -28
  175. package/templates/cms-starter/node_modules/typescript/lib/lib.es2015.generator.d.ts +0 -77
  176. package/templates/cms-starter/node_modules/typescript/lib/lib.es2015.iterable.d.ts +0 -605
  177. package/templates/cms-starter/node_modules/typescript/lib/lib.es2015.promise.d.ts +0 -81
  178. package/templates/cms-starter/node_modules/typescript/lib/lib.es2015.proxy.d.ts +0 -128
  179. package/templates/cms-starter/node_modules/typescript/lib/lib.es2015.reflect.d.ts +0 -144
  180. package/templates/cms-starter/node_modules/typescript/lib/lib.es2015.symbol.d.ts +0 -46
  181. package/templates/cms-starter/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +0 -326
  182. package/templates/cms-starter/node_modules/typescript/lib/lib.es2016.array.include.d.ts +0 -116
  183. package/templates/cms-starter/node_modules/typescript/lib/lib.es2016.d.ts +0 -21
  184. package/templates/cms-starter/node_modules/typescript/lib/lib.es2016.full.d.ts +0 -23
  185. package/templates/cms-starter/node_modules/typescript/lib/lib.es2016.intl.d.ts +0 -31
  186. package/templates/cms-starter/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts +0 -21
  187. package/templates/cms-starter/node_modules/typescript/lib/lib.es2017.d.ts +0 -26
  188. package/templates/cms-starter/node_modules/typescript/lib/lib.es2017.date.d.ts +0 -31
  189. package/templates/cms-starter/node_modules/typescript/lib/lib.es2017.full.d.ts +0 -23
  190. package/templates/cms-starter/node_modules/typescript/lib/lib.es2017.intl.d.ts +0 -44
  191. package/templates/cms-starter/node_modules/typescript/lib/lib.es2017.object.d.ts +0 -49
  192. package/templates/cms-starter/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +0 -135
  193. package/templates/cms-starter/node_modules/typescript/lib/lib.es2017.string.d.ts +0 -45
  194. package/templates/cms-starter/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +0 -53
  195. package/templates/cms-starter/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +0 -77
  196. package/templates/cms-starter/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +0 -53
  197. package/templates/cms-starter/node_modules/typescript/lib/lib.es2018.d.ts +0 -24
  198. package/templates/cms-starter/node_modules/typescript/lib/lib.es2018.full.d.ts +0 -24
  199. package/templates/cms-starter/node_modules/typescript/lib/lib.es2018.intl.d.ts +0 -83
  200. package/templates/cms-starter/node_modules/typescript/lib/lib.es2018.promise.d.ts +0 -30
  201. package/templates/cms-starter/node_modules/typescript/lib/lib.es2018.regexp.d.ts +0 -37
  202. package/templates/cms-starter/node_modules/typescript/lib/lib.es2019.array.d.ts +0 -79
  203. package/templates/cms-starter/node_modules/typescript/lib/lib.es2019.d.ts +0 -24
  204. package/templates/cms-starter/node_modules/typescript/lib/lib.es2019.full.d.ts +0 -24
  205. package/templates/cms-starter/node_modules/typescript/lib/lib.es2019.intl.d.ts +0 -23
  206. package/templates/cms-starter/node_modules/typescript/lib/lib.es2019.object.d.ts +0 -33
  207. package/templates/cms-starter/node_modules/typescript/lib/lib.es2019.string.d.ts +0 -37
  208. package/templates/cms-starter/node_modules/typescript/lib/lib.es2019.symbol.d.ts +0 -24
  209. package/templates/cms-starter/node_modules/typescript/lib/lib.es2020.bigint.d.ts +0 -765
  210. package/templates/cms-starter/node_modules/typescript/lib/lib.es2020.d.ts +0 -27
  211. package/templates/cms-starter/node_modules/typescript/lib/lib.es2020.date.d.ts +0 -42
  212. package/templates/cms-starter/node_modules/typescript/lib/lib.es2020.full.d.ts +0 -24
  213. package/templates/cms-starter/node_modules/typescript/lib/lib.es2020.intl.d.ts +0 -474
  214. package/templates/cms-starter/node_modules/typescript/lib/lib.es2020.number.d.ts +0 -28
  215. package/templates/cms-starter/node_modules/typescript/lib/lib.es2020.promise.d.ts +0 -47
  216. package/templates/cms-starter/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +0 -99
  217. package/templates/cms-starter/node_modules/typescript/lib/lib.es2020.string.d.ts +0 -44
  218. package/templates/cms-starter/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +0 -41
  219. package/templates/cms-starter/node_modules/typescript/lib/lib.es2021.d.ts +0 -23
  220. package/templates/cms-starter/node_modules/typescript/lib/lib.es2021.full.d.ts +0 -24
  221. package/templates/cms-starter/node_modules/typescript/lib/lib.es2021.intl.d.ts +0 -166
  222. package/templates/cms-starter/node_modules/typescript/lib/lib.es2021.promise.d.ts +0 -48
  223. package/templates/cms-starter/node_modules/typescript/lib/lib.es2021.string.d.ts +0 -33
  224. package/templates/cms-starter/node_modules/typescript/lib/lib.es2021.weakref.d.ts +0 -78
  225. package/templates/cms-starter/node_modules/typescript/lib/lib.es2022.array.d.ts +0 -121
  226. package/templates/cms-starter/node_modules/typescript/lib/lib.es2022.d.ts +0 -25
  227. package/templates/cms-starter/node_modules/typescript/lib/lib.es2022.error.d.ts +0 -75
  228. package/templates/cms-starter/node_modules/typescript/lib/lib.es2022.full.d.ts +0 -24
  229. package/templates/cms-starter/node_modules/typescript/lib/lib.es2022.intl.d.ts +0 -145
  230. package/templates/cms-starter/node_modules/typescript/lib/lib.es2022.object.d.ts +0 -26
  231. package/templates/cms-starter/node_modules/typescript/lib/lib.es2022.regexp.d.ts +0 -39
  232. package/templates/cms-starter/node_modules/typescript/lib/lib.es2022.string.d.ts +0 -25
  233. package/templates/cms-starter/node_modules/typescript/lib/lib.es2023.array.d.ts +0 -924
  234. package/templates/cms-starter/node_modules/typescript/lib/lib.es2023.collection.d.ts +0 -21
  235. package/templates/cms-starter/node_modules/typescript/lib/lib.es2023.d.ts +0 -22
  236. package/templates/cms-starter/node_modules/typescript/lib/lib.es2023.full.d.ts +0 -24
  237. package/templates/cms-starter/node_modules/typescript/lib/lib.es2023.intl.d.ts +0 -56
  238. package/templates/cms-starter/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts +0 -65
  239. package/templates/cms-starter/node_modules/typescript/lib/lib.es2024.collection.d.ts +0 -29
  240. package/templates/cms-starter/node_modules/typescript/lib/lib.es2024.d.ts +0 -26
  241. package/templates/cms-starter/node_modules/typescript/lib/lib.es2024.full.d.ts +0 -24
  242. package/templates/cms-starter/node_modules/typescript/lib/lib.es2024.object.d.ts +0 -29
  243. package/templates/cms-starter/node_modules/typescript/lib/lib.es2024.promise.d.ts +0 -35
  244. package/templates/cms-starter/node_modules/typescript/lib/lib.es2024.regexp.d.ts +0 -25
  245. package/templates/cms-starter/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts +0 -68
  246. package/templates/cms-starter/node_modules/typescript/lib/lib.es2024.string.d.ts +0 -29
  247. package/templates/cms-starter/node_modules/typescript/lib/lib.es5.d.ts +0 -4601
  248. package/templates/cms-starter/node_modules/typescript/lib/lib.es6.d.ts +0 -23
  249. package/templates/cms-starter/node_modules/typescript/lib/lib.esnext.array.d.ts +0 -35
  250. package/templates/cms-starter/node_modules/typescript/lib/lib.esnext.collection.d.ts +0 -96
  251. package/templates/cms-starter/node_modules/typescript/lib/lib.esnext.d.ts +0 -29
  252. package/templates/cms-starter/node_modules/typescript/lib/lib.esnext.decorators.d.ts +0 -28
  253. package/templates/cms-starter/node_modules/typescript/lib/lib.esnext.disposable.d.ts +0 -193
  254. package/templates/cms-starter/node_modules/typescript/lib/lib.esnext.error.d.ts +0 -24
  255. package/templates/cms-starter/node_modules/typescript/lib/lib.esnext.float16.d.ts +0 -445
  256. package/templates/cms-starter/node_modules/typescript/lib/lib.esnext.full.d.ts +0 -24
  257. package/templates/cms-starter/node_modules/typescript/lib/lib.esnext.intl.d.ts +0 -21
  258. package/templates/cms-starter/node_modules/typescript/lib/lib.esnext.iterator.d.ts +0 -148
  259. package/templates/cms-starter/node_modules/typescript/lib/lib.esnext.promise.d.ts +0 -34
  260. package/templates/cms-starter/node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts +0 -25
  261. package/templates/cms-starter/node_modules/typescript/lib/lib.scripthost.d.ts +0 -322
  262. package/templates/cms-starter/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +0 -41
  263. package/templates/cms-starter/node_modules/typescript/lib/lib.webworker.d.ts +0 -13150
  264. package/templates/cms-starter/node_modules/typescript/lib/lib.webworker.importscripts.d.ts +0 -23
  265. package/templates/cms-starter/node_modules/typescript/lib/lib.webworker.iterable.d.ts +0 -340
  266. package/templates/cms-starter/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +0 -2122
  267. package/templates/cms-starter/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +0 -2122
  268. package/templates/cms-starter/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +0 -2122
  269. package/templates/cms-starter/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +0 -2122
  270. package/templates/cms-starter/node_modules/typescript/lib/tsc.js +0 -8
  271. package/templates/cms-starter/node_modules/typescript/lib/tsserver.js +0 -8
  272. package/templates/cms-starter/node_modules/typescript/lib/tsserverlibrary.d.ts +0 -17
  273. package/templates/cms-starter/node_modules/typescript/lib/tsserverlibrary.js +0 -21
  274. package/templates/cms-starter/node_modules/typescript/lib/typesMap.json +0 -497
  275. package/templates/cms-starter/node_modules/typescript/lib/typescript.d.ts +0 -11437
  276. package/templates/cms-starter/node_modules/typescript/lib/typescript.js +0 -200276
  277. package/templates/cms-starter/node_modules/typescript/lib/typingsInstaller.js +0 -8
  278. package/templates/cms-starter/node_modules/typescript/lib/watchGuard.js +0 -53
  279. package/templates/cms-starter/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +0 -2122
  280. package/templates/cms-starter/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +0 -2122
  281. package/templates/cms-starter/node_modules/typescript/package.json +0 -120
  282. package/templates/cms-starter/node_modules/undici-types/LICENSE +0 -21
  283. package/templates/cms-starter/node_modules/undici-types/README.md +0 -6
  284. package/templates/cms-starter/node_modules/undici-types/agent.d.ts +0 -31
  285. package/templates/cms-starter/node_modules/undici-types/api.d.ts +0 -43
  286. package/templates/cms-starter/node_modules/undici-types/balanced-pool.d.ts +0 -29
  287. package/templates/cms-starter/node_modules/undici-types/cache.d.ts +0 -36
  288. package/templates/cms-starter/node_modules/undici-types/client.d.ts +0 -108
  289. package/templates/cms-starter/node_modules/undici-types/connector.d.ts +0 -34
  290. package/templates/cms-starter/node_modules/undici-types/content-type.d.ts +0 -21
  291. package/templates/cms-starter/node_modules/undici-types/cookies.d.ts +0 -28
  292. package/templates/cms-starter/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
  293. package/templates/cms-starter/node_modules/undici-types/dispatcher.d.ts +0 -256
  294. package/templates/cms-starter/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
  295. package/templates/cms-starter/node_modules/undici-types/errors.d.ts +0 -149
  296. package/templates/cms-starter/node_modules/undici-types/eventsource.d.ts +0 -61
  297. package/templates/cms-starter/node_modules/undici-types/fetch.d.ts +0 -209
  298. package/templates/cms-starter/node_modules/undici-types/file.d.ts +0 -39
  299. package/templates/cms-starter/node_modules/undici-types/filereader.d.ts +0 -54
  300. package/templates/cms-starter/node_modules/undici-types/formdata.d.ts +0 -108
  301. package/templates/cms-starter/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  302. package/templates/cms-starter/node_modules/undici-types/global-origin.d.ts +0 -7
  303. package/templates/cms-starter/node_modules/undici-types/handlers.d.ts +0 -15
  304. package/templates/cms-starter/node_modules/undici-types/header.d.ts +0 -4
  305. package/templates/cms-starter/node_modules/undici-types/index.d.ts +0 -71
  306. package/templates/cms-starter/node_modules/undici-types/interceptors.d.ts +0 -17
  307. package/templates/cms-starter/node_modules/undici-types/mock-agent.d.ts +0 -50
  308. package/templates/cms-starter/node_modules/undici-types/mock-client.d.ts +0 -25
  309. package/templates/cms-starter/node_modules/undici-types/mock-errors.d.ts +0 -12
  310. package/templates/cms-starter/node_modules/undici-types/mock-interceptor.d.ts +0 -93
  311. package/templates/cms-starter/node_modules/undici-types/mock-pool.d.ts +0 -25
  312. package/templates/cms-starter/node_modules/undici-types/package.json +0 -55
  313. package/templates/cms-starter/node_modules/undici-types/patch.d.ts +0 -33
  314. package/templates/cms-starter/node_modules/undici-types/pool-stats.d.ts +0 -19
  315. package/templates/cms-starter/node_modules/undici-types/pool.d.ts +0 -39
  316. package/templates/cms-starter/node_modules/undici-types/proxy-agent.d.ts +0 -28
  317. package/templates/cms-starter/node_modules/undici-types/readable.d.ts +0 -65
  318. package/templates/cms-starter/node_modules/undici-types/retry-agent.d.ts +0 -8
  319. package/templates/cms-starter/node_modules/undici-types/retry-handler.d.ts +0 -116
  320. package/templates/cms-starter/node_modules/undici-types/util.d.ts +0 -18
  321. package/templates/cms-starter/node_modules/undici-types/webidl.d.ts +0 -228
  322. package/templates/cms-starter/node_modules/undici-types/websocket.d.ts +0 -150
  323. package/templates/cms-starter/package-lock.json +0 -592
@@ -1,578 +0,0 @@
1
- /**
2
- * HTTPS is the HTTP protocol over TLS/SSL. In Node.js this is implemented as a
3
- * separate module.
4
- * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/https.js)
5
- */
6
- declare module "https" {
7
- import { NonSharedBuffer } from "node:buffer";
8
- import { Duplex } from "node:stream";
9
- import * as tls from "node:tls";
10
- import * as http from "node:http";
11
- import { URL } from "node:url";
12
- interface ServerOptions<
13
- Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
14
- Response extends typeof http.ServerResponse<InstanceType<Request>> = typeof http.ServerResponse,
15
- > extends http.ServerOptions<Request, Response>, tls.TlsOptions {}
16
- interface RequestOptions extends http.RequestOptions, tls.SecureContextOptions {
17
- checkServerIdentity?: typeof tls.checkServerIdentity | undefined;
18
- rejectUnauthorized?: boolean | undefined; // Defaults to true
19
- servername?: string | undefined; // SNI TLS Extension
20
- }
21
- interface AgentOptions extends http.AgentOptions, tls.ConnectionOptions {
22
- rejectUnauthorized?: boolean | undefined;
23
- maxCachedSessions?: number | undefined;
24
- }
25
- /**
26
- * An `Agent` object for HTTPS similar to `http.Agent`. See {@link request} for more information.
27
- * @since v0.4.5
28
- */
29
- class Agent extends http.Agent {
30
- constructor(options?: AgentOptions);
31
- options: AgentOptions;
32
- createConnection(
33
- options: RequestOptions,
34
- callback?: (err: Error | null, stream: Duplex) => void,
35
- ): Duplex | null | undefined;
36
- getName(options?: RequestOptions): string;
37
- }
38
- interface Server<
39
- Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
40
- Response extends typeof http.ServerResponse<InstanceType<Request>> = typeof http.ServerResponse,
41
- > extends http.Server<Request, Response> {}
42
- /**
43
- * See `http.Server` for more information.
44
- * @since v0.3.4
45
- */
46
- class Server<
47
- Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
48
- Response extends typeof http.ServerResponse<InstanceType<Request>> = typeof http.ServerResponse,
49
- > extends tls.Server {
50
- constructor(requestListener?: http.RequestListener<Request, Response>);
51
- constructor(
52
- options: ServerOptions<Request, Response>,
53
- requestListener?: http.RequestListener<Request, Response>,
54
- );
55
- /**
56
- * Closes all connections connected to this server.
57
- * @since v18.2.0
58
- */
59
- closeAllConnections(): void;
60
- /**
61
- * Closes all connections connected to this server which are not sending a request or waiting for a response.
62
- * @since v18.2.0
63
- */
64
- closeIdleConnections(): void;
65
- addListener(event: string, listener: (...args: any[]) => void): this;
66
- addListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: tls.TLSSocket) => void): this;
67
- addListener(
68
- event: "newSession",
69
- listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void,
70
- ): this;
71
- addListener(
72
- event: "OCSPRequest",
73
- listener: (
74
- certificate: NonSharedBuffer,
75
- issuer: NonSharedBuffer,
76
- callback: (err: Error | null, resp: Buffer | null) => void,
77
- ) => void,
78
- ): this;
79
- addListener(
80
- event: "resumeSession",
81
- listener: (
82
- sessionId: NonSharedBuffer,
83
- callback: (err: Error | null, sessionData: Buffer | null) => void,
84
- ) => void,
85
- ): this;
86
- addListener(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
87
- addListener(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
88
- addListener(event: "close", listener: () => void): this;
89
- addListener(event: "connection", listener: (socket: Duplex) => void): this;
90
- addListener(event: "error", listener: (err: Error) => void): this;
91
- addListener(event: "listening", listener: () => void): this;
92
- addListener(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
93
- addListener(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
94
- addListener(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
95
- addListener(
96
- event: "connect",
97
- listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
98
- ): this;
99
- addListener(event: "request", listener: http.RequestListener<Request, Response>): this;
100
- addListener(
101
- event: "upgrade",
102
- listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
103
- ): this;
104
- emit(event: string, ...args: any[]): boolean;
105
- emit(event: "keylog", line: NonSharedBuffer, tlsSocket: tls.TLSSocket): boolean;
106
- emit(
107
- event: "newSession",
108
- sessionId: NonSharedBuffer,
109
- sessionData: NonSharedBuffer,
110
- callback: () => void,
111
- ): boolean;
112
- emit(
113
- event: "OCSPRequest",
114
- certificate: NonSharedBuffer,
115
- issuer: NonSharedBuffer,
116
- callback: (err: Error | null, resp: Buffer | null) => void,
117
- ): boolean;
118
- emit(
119
- event: "resumeSession",
120
- sessionId: NonSharedBuffer,
121
- callback: (err: Error | null, sessionData: Buffer | null) => void,
122
- ): boolean;
123
- emit(event: "secureConnection", tlsSocket: tls.TLSSocket): boolean;
124
- emit(event: "tlsClientError", err: Error, tlsSocket: tls.TLSSocket): boolean;
125
- emit(event: "close"): boolean;
126
- emit(event: "connection", socket: Duplex): boolean;
127
- emit(event: "error", err: Error): boolean;
128
- emit(event: "listening"): boolean;
129
- emit(
130
- event: "checkContinue",
131
- req: InstanceType<Request>,
132
- res: InstanceType<Response>,
133
- ): boolean;
134
- emit(
135
- event: "checkExpectation",
136
- req: InstanceType<Request>,
137
- res: InstanceType<Response>,
138
- ): boolean;
139
- emit(event: "clientError", err: Error, socket: Duplex): boolean;
140
- emit(event: "connect", req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer): boolean;
141
- emit(
142
- event: "request",
143
- req: InstanceType<Request>,
144
- res: InstanceType<Response>,
145
- ): boolean;
146
- emit(event: "upgrade", req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer): boolean;
147
- on(event: string, listener: (...args: any[]) => void): this;
148
- on(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: tls.TLSSocket) => void): this;
149
- on(
150
- event: "newSession",
151
- listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void,
152
- ): this;
153
- on(
154
- event: "OCSPRequest",
155
- listener: (
156
- certificate: NonSharedBuffer,
157
- issuer: NonSharedBuffer,
158
- callback: (err: Error | null, resp: Buffer | null) => void,
159
- ) => void,
160
- ): this;
161
- on(
162
- event: "resumeSession",
163
- listener: (
164
- sessionId: NonSharedBuffer,
165
- callback: (err: Error | null, sessionData: Buffer | null) => void,
166
- ) => void,
167
- ): this;
168
- on(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
169
- on(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
170
- on(event: "close", listener: () => void): this;
171
- on(event: "connection", listener: (socket: Duplex) => void): this;
172
- on(event: "error", listener: (err: Error) => void): this;
173
- on(event: "listening", listener: () => void): this;
174
- on(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
175
- on(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
176
- on(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
177
- on(
178
- event: "connect",
179
- listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
180
- ): this;
181
- on(event: "request", listener: http.RequestListener<Request, Response>): this;
182
- on(
183
- event: "upgrade",
184
- listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
185
- ): this;
186
- once(event: string, listener: (...args: any[]) => void): this;
187
- once(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: tls.TLSSocket) => void): this;
188
- once(
189
- event: "newSession",
190
- listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void,
191
- ): this;
192
- once(
193
- event: "OCSPRequest",
194
- listener: (
195
- certificate: NonSharedBuffer,
196
- issuer: NonSharedBuffer,
197
- callback: (err: Error | null, resp: Buffer | null) => void,
198
- ) => void,
199
- ): this;
200
- once(
201
- event: "resumeSession",
202
- listener: (
203
- sessionId: NonSharedBuffer,
204
- callback: (err: Error | null, sessionData: Buffer | null) => void,
205
- ) => void,
206
- ): this;
207
- once(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
208
- once(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
209
- once(event: "close", listener: () => void): this;
210
- once(event: "connection", listener: (socket: Duplex) => void): this;
211
- once(event: "error", listener: (err: Error) => void): this;
212
- once(event: "listening", listener: () => void): this;
213
- once(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
214
- once(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
215
- once(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
216
- once(
217
- event: "connect",
218
- listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
219
- ): this;
220
- once(event: "request", listener: http.RequestListener<Request, Response>): this;
221
- once(
222
- event: "upgrade",
223
- listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
224
- ): this;
225
- prependListener(event: string, listener: (...args: any[]) => void): this;
226
- prependListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: tls.TLSSocket) => void): this;
227
- prependListener(
228
- event: "newSession",
229
- listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void,
230
- ): this;
231
- prependListener(
232
- event: "OCSPRequest",
233
- listener: (
234
- certificate: NonSharedBuffer,
235
- issuer: NonSharedBuffer,
236
- callback: (err: Error | null, resp: Buffer | null) => void,
237
- ) => void,
238
- ): this;
239
- prependListener(
240
- event: "resumeSession",
241
- listener: (
242
- sessionId: NonSharedBuffer,
243
- callback: (err: Error | null, sessionData: Buffer | null) => void,
244
- ) => void,
245
- ): this;
246
- prependListener(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
247
- prependListener(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
248
- prependListener(event: "close", listener: () => void): this;
249
- prependListener(event: "connection", listener: (socket: Duplex) => void): this;
250
- prependListener(event: "error", listener: (err: Error) => void): this;
251
- prependListener(event: "listening", listener: () => void): this;
252
- prependListener(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
253
- prependListener(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
254
- prependListener(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
255
- prependListener(
256
- event: "connect",
257
- listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
258
- ): this;
259
- prependListener(event: "request", listener: http.RequestListener<Request, Response>): this;
260
- prependListener(
261
- event: "upgrade",
262
- listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
263
- ): this;
264
- prependOnceListener(event: string, listener: (...args: any[]) => void): this;
265
- prependOnceListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: tls.TLSSocket) => void): this;
266
- prependOnceListener(
267
- event: "newSession",
268
- listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void,
269
- ): this;
270
- prependOnceListener(
271
- event: "OCSPRequest",
272
- listener: (
273
- certificate: NonSharedBuffer,
274
- issuer: NonSharedBuffer,
275
- callback: (err: Error | null, resp: Buffer | null) => void,
276
- ) => void,
277
- ): this;
278
- prependOnceListener(
279
- event: "resumeSession",
280
- listener: (
281
- sessionId: NonSharedBuffer,
282
- callback: (err: Error | null, sessionData: Buffer | null) => void,
283
- ) => void,
284
- ): this;
285
- prependOnceListener(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
286
- prependOnceListener(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
287
- prependOnceListener(event: "close", listener: () => void): this;
288
- prependOnceListener(event: "connection", listener: (socket: Duplex) => void): this;
289
- prependOnceListener(event: "error", listener: (err: Error) => void): this;
290
- prependOnceListener(event: "listening", listener: () => void): this;
291
- prependOnceListener(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
292
- prependOnceListener(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
293
- prependOnceListener(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
294
- prependOnceListener(
295
- event: "connect",
296
- listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
297
- ): this;
298
- prependOnceListener(event: "request", listener: http.RequestListener<Request, Response>): this;
299
- prependOnceListener(
300
- event: "upgrade",
301
- listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
302
- ): this;
303
- }
304
- /**
305
- * ```js
306
- * // curl -k https://localhost:8000/
307
- * import https from 'node:https';
308
- * import fs from 'node:fs';
309
- *
310
- * const options = {
311
- * key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'),
312
- * cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem'),
313
- * };
314
- *
315
- * https.createServer(options, (req, res) => {
316
- * res.writeHead(200);
317
- * res.end('hello world\n');
318
- * }).listen(8000);
319
- * ```
320
- *
321
- * Or
322
- *
323
- * ```js
324
- * import https from 'node:https';
325
- * import fs from 'node:fs';
326
- *
327
- * const options = {
328
- * pfx: fs.readFileSync('test/fixtures/test_cert.pfx'),
329
- * passphrase: 'sample',
330
- * };
331
- *
332
- * https.createServer(options, (req, res) => {
333
- * res.writeHead(200);
334
- * res.end('hello world\n');
335
- * }).listen(8000);
336
- * ```
337
- * @since v0.3.4
338
- * @param options Accepts `options` from `createServer`, `createSecureContext` and `createServer`.
339
- * @param requestListener A listener to be added to the `'request'` event.
340
- */
341
- function createServer<
342
- Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
343
- Response extends typeof http.ServerResponse<InstanceType<Request>> = typeof http.ServerResponse,
344
- >(requestListener?: http.RequestListener<Request, Response>): Server<Request, Response>;
345
- function createServer<
346
- Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
347
- Response extends typeof http.ServerResponse<InstanceType<Request>> = typeof http.ServerResponse,
348
- >(
349
- options: ServerOptions<Request, Response>,
350
- requestListener?: http.RequestListener<Request, Response>,
351
- ): Server<Request, Response>;
352
- /**
353
- * Makes a request to a secure web server.
354
- *
355
- * The following additional `options` from `tls.connect()` are also accepted: `ca`, `cert`, `ciphers`, `clientCertEngine`, `crl`, `dhparam`, `ecdhCurve`, `honorCipherOrder`, `key`, `passphrase`,
356
- * `pfx`, `rejectUnauthorized`, `secureOptions`, `secureProtocol`, `servername`, `sessionIdContext`, `highWaterMark`.
357
- *
358
- * `options` can be an object, a string, or a `URL` object. If `options` is a
359
- * string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object.
360
- *
361
- * `https.request()` returns an instance of the `http.ClientRequest` class. The `ClientRequest` instance is a writable stream. If one needs to
362
- * upload a file with a POST request, then write to the `ClientRequest` object.
363
- *
364
- * ```js
365
- * import https from 'node:https';
366
- *
367
- * const options = {
368
- * hostname: 'encrypted.google.com',
369
- * port: 443,
370
- * path: '/',
371
- * method: 'GET',
372
- * };
373
- *
374
- * const req = https.request(options, (res) => {
375
- * console.log('statusCode:', res.statusCode);
376
- * console.log('headers:', res.headers);
377
- *
378
- * res.on('data', (d) => {
379
- * process.stdout.write(d);
380
- * });
381
- * });
382
- *
383
- * req.on('error', (e) => {
384
- * console.error(e);
385
- * });
386
- * req.end();
387
- * ```
388
- *
389
- * Example using options from `tls.connect()`:
390
- *
391
- * ```js
392
- * const options = {
393
- * hostname: 'encrypted.google.com',
394
- * port: 443,
395
- * path: '/',
396
- * method: 'GET',
397
- * key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'),
398
- * cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem'),
399
- * };
400
- * options.agent = new https.Agent(options);
401
- *
402
- * const req = https.request(options, (res) => {
403
- * // ...
404
- * });
405
- * ```
406
- *
407
- * Alternatively, opt out of connection pooling by not using an `Agent`.
408
- *
409
- * ```js
410
- * const options = {
411
- * hostname: 'encrypted.google.com',
412
- * port: 443,
413
- * path: '/',
414
- * method: 'GET',
415
- * key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'),
416
- * cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem'),
417
- * agent: false,
418
- * };
419
- *
420
- * const req = https.request(options, (res) => {
421
- * // ...
422
- * });
423
- * ```
424
- *
425
- * Example using a `URL` as `options`:
426
- *
427
- * ```js
428
- * const options = new URL('https://abc:xyz@example.com');
429
- *
430
- * const req = https.request(options, (res) => {
431
- * // ...
432
- * });
433
- * ```
434
- *
435
- * Example pinning on certificate fingerprint, or the public key (similar to`pin-sha256`):
436
- *
437
- * ```js
438
- * import tls from 'node:tls';
439
- * import https from 'node:https';
440
- * import crypto from 'node:crypto';
441
- *
442
- * function sha256(s) {
443
- * return crypto.createHash('sha256').update(s).digest('base64');
444
- * }
445
- * const options = {
446
- * hostname: 'github.com',
447
- * port: 443,
448
- * path: '/',
449
- * method: 'GET',
450
- * checkServerIdentity: function(host, cert) {
451
- * // Make sure the certificate is issued to the host we are connected to
452
- * const err = tls.checkServerIdentity(host, cert);
453
- * if (err) {
454
- * return err;
455
- * }
456
- *
457
- * // Pin the public key, similar to HPKP pin-sha256 pinning
458
- * const pubkey256 = 'pL1+qb9HTMRZJmuC/bB/ZI9d302BYrrqiVuRyW+DGrU=';
459
- * if (sha256(cert.pubkey) !== pubkey256) {
460
- * const msg = 'Certificate verification error: ' +
461
- * `The public key of '${cert.subject.CN}' ` +
462
- * 'does not match our pinned fingerprint';
463
- * return new Error(msg);
464
- * }
465
- *
466
- * // Pin the exact certificate, rather than the pub key
467
- * const cert256 = '25:FE:39:32:D9:63:8C:8A:FC:A1:9A:29:87:' +
468
- * 'D8:3E:4C:1D:98:DB:71:E4:1A:48:03:98:EA:22:6A:BD:8B:93:16';
469
- * if (cert.fingerprint256 !== cert256) {
470
- * const msg = 'Certificate verification error: ' +
471
- * `The certificate of '${cert.subject.CN}' ` +
472
- * 'does not match our pinned fingerprint';
473
- * return new Error(msg);
474
- * }
475
- *
476
- * // This loop is informational only.
477
- * // Print the certificate and public key fingerprints of all certs in the
478
- * // chain. Its common to pin the public key of the issuer on the public
479
- * // internet, while pinning the public key of the service in sensitive
480
- * // environments.
481
- * do {
482
- * console.log('Subject Common Name:', cert.subject.CN);
483
- * console.log(' Certificate SHA256 fingerprint:', cert.fingerprint256);
484
- *
485
- * hash = crypto.createHash('sha256');
486
- * console.log(' Public key ping-sha256:', sha256(cert.pubkey));
487
- *
488
- * lastprint256 = cert.fingerprint256;
489
- * cert = cert.issuerCertificate;
490
- * } while (cert.fingerprint256 !== lastprint256);
491
- *
492
- * },
493
- * };
494
- *
495
- * options.agent = new https.Agent(options);
496
- * const req = https.request(options, (res) => {
497
- * console.log('All OK. Server matched our pinned cert or public key');
498
- * console.log('statusCode:', res.statusCode);
499
- * // Print the HPKP values
500
- * console.log('headers:', res.headers['public-key-pins']);
501
- *
502
- * res.on('data', (d) => {});
503
- * });
504
- *
505
- * req.on('error', (e) => {
506
- * console.error(e.message);
507
- * });
508
- * req.end();
509
- * ```
510
- *
511
- * Outputs for example:
512
- *
513
- * ```text
514
- * Subject Common Name: github.com
515
- * Certificate SHA256 fingerprint: 25:FE:39:32:D9:63:8C:8A:FC:A1:9A:29:87:D8:3E:4C:1D:98:DB:71:E4:1A:48:03:98:EA:22:6A:BD:8B:93:16
516
- * Public key ping-sha256: pL1+qb9HTMRZJmuC/bB/ZI9d302BYrrqiVuRyW+DGrU=
517
- * Subject Common Name: DigiCert SHA2 Extended Validation Server CA
518
- * Certificate SHA256 fingerprint: 40:3E:06:2A:26:53:05:91:13:28:5B:AF:80:A0:D4:AE:42:2C:84:8C:9F:78:FA:D0:1F:C9:4B:C5:B8:7F:EF:1A
519
- * Public key ping-sha256: RRM1dGqnDFsCJXBTHky16vi1obOlCgFFn/yOhI/y+ho=
520
- * Subject Common Name: DigiCert High Assurance EV Root CA
521
- * Certificate SHA256 fingerprint: 74:31:E5:F4:C3:C1:CE:46:90:77:4F:0B:61:E0:54:40:88:3B:A9:A0:1E:D0:0B:A6:AB:D7:80:6E:D3:B1:18:CF
522
- * Public key ping-sha256: WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18=
523
- * All OK. Server matched our pinned cert or public key
524
- * statusCode: 200
525
- * headers: max-age=0; pin-sha256="WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18="; pin-sha256="RRM1dGqnDFsCJXBTHky16vi1obOlCgFFn/yOhI/y+ho=";
526
- * pin-sha256="k2v657xBsOVe1PQRwOsHsw3bsGT2VzIqz5K+59sNQws="; pin-sha256="K87oWBWM9UZfyddvDfoxL+8lpNyoUB2ptGtn0fv6G2Q="; pin-sha256="IQBnNBEiFuhj+8x6X8XLgh01V9Ic5/V3IRQLNFFc7v4=";
527
- * pin-sha256="iie1VXtL7HzAMF+/PVPR9xzT80kQxdZeJ+zduCB3uj0="; pin-sha256="LvRiGEjRqfzurezaWuj8Wie2gyHMrW5Q06LspMnox7A="; includeSubDomains
528
- * ```
529
- * @since v0.3.6
530
- * @param options Accepts all `options` from `request`, with some differences in default values:
531
- */
532
- function request(
533
- options: RequestOptions | string | URL,
534
- callback?: (res: http.IncomingMessage) => void,
535
- ): http.ClientRequest;
536
- function request(
537
- url: string | URL,
538
- options: RequestOptions,
539
- callback?: (res: http.IncomingMessage) => void,
540
- ): http.ClientRequest;
541
- /**
542
- * Like `http.get()` but for HTTPS.
543
- *
544
- * `options` can be an object, a string, or a `URL` object. If `options` is a
545
- * string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object.
546
- *
547
- * ```js
548
- * import https from 'node:https';
549
- *
550
- * https.get('https://encrypted.google.com/', (res) => {
551
- * console.log('statusCode:', res.statusCode);
552
- * console.log('headers:', res.headers);
553
- *
554
- * res.on('data', (d) => {
555
- * process.stdout.write(d);
556
- * });
557
- *
558
- * }).on('error', (e) => {
559
- * console.error(e);
560
- * });
561
- * ```
562
- * @since v0.3.6
563
- * @param options Accepts the same `options` as {@link request}, with the `method` always set to `GET`.
564
- */
565
- function get(
566
- options: RequestOptions | string | URL,
567
- callback?: (res: http.IncomingMessage) => void,
568
- ): http.ClientRequest;
569
- function get(
570
- url: string | URL,
571
- options: RequestOptions,
572
- callback?: (res: http.IncomingMessage) => void,
573
- ): http.ClientRequest;
574
- let globalAgent: Agent;
575
- }
576
- declare module "node:https" {
577
- export * from "https";
578
- }
@@ -1,93 +0,0 @@
1
- /**
2
- * License for programmatically and manually incorporated
3
- * documentation aka. `JSDoc` from https://github.com/nodejs/node/tree/master/doc
4
- *
5
- * Copyright Node.js contributors. All rights reserved.
6
- * Permission is hereby granted, free of charge, to any person obtaining a copy
7
- * of this software and associated documentation files (the "Software"), to
8
- * deal in the Software without restriction, including without limitation the
9
- * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10
- * sell copies of the Software, and to permit persons to whom the Software is
11
- * furnished to do so, subject to the following conditions:
12
- *
13
- * The above copyright notice and this permission notice shall be included in
14
- * all copies or substantial portions of the Software.
15
- *
16
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
22
- * IN THE SOFTWARE.
23
- */
24
-
25
- // NOTE: These definitions support Node.js and TypeScript 5.7+.
26
-
27
- // Reference required TypeScript libs:
28
- /// <reference lib="es2020" />
29
-
30
- // TypeScript backwards-compatibility definitions:
31
- /// <reference path="compatibility/index.d.ts" />
32
-
33
- // Definitions specific to TypeScript 5.7+:
34
- /// <reference path="globals.typedarray.d.ts" />
35
- /// <reference path="buffer.buffer.d.ts" />
36
-
37
- // Definitions for Node.js modules that are not specific to any version of TypeScript:
38
- /// <reference path="globals.d.ts" />
39
- /// <reference path="web-globals/abortcontroller.d.ts" />
40
- /// <reference path="web-globals/domexception.d.ts" />
41
- /// <reference path="web-globals/events.d.ts" />
42
- /// <reference path="web-globals/fetch.d.ts" />
43
- /// <reference path="assert.d.ts" />
44
- /// <reference path="assert/strict.d.ts" />
45
- /// <reference path="async_hooks.d.ts" />
46
- /// <reference path="buffer.d.ts" />
47
- /// <reference path="child_process.d.ts" />
48
- /// <reference path="cluster.d.ts" />
49
- /// <reference path="console.d.ts" />
50
- /// <reference path="constants.d.ts" />
51
- /// <reference path="crypto.d.ts" />
52
- /// <reference path="dgram.d.ts" />
53
- /// <reference path="diagnostics_channel.d.ts" />
54
- /// <reference path="dns.d.ts" />
55
- /// <reference path="dns/promises.d.ts" />
56
- /// <reference path="domain.d.ts" />
57
- /// <reference path="events.d.ts" />
58
- /// <reference path="fs.d.ts" />
59
- /// <reference path="fs/promises.d.ts" />
60
- /// <reference path="http.d.ts" />
61
- /// <reference path="http2.d.ts" />
62
- /// <reference path="https.d.ts" />
63
- /// <reference path="inspector.generated.d.ts" />
64
- /// <reference path="module.d.ts" />
65
- /// <reference path="net.d.ts" />
66
- /// <reference path="os.d.ts" />
67
- /// <reference path="path.d.ts" />
68
- /// <reference path="perf_hooks.d.ts" />
69
- /// <reference path="process.d.ts" />
70
- /// <reference path="punycode.d.ts" />
71
- /// <reference path="querystring.d.ts" />
72
- /// <reference path="readline.d.ts" />
73
- /// <reference path="readline/promises.d.ts" />
74
- /// <reference path="repl.d.ts" />
75
- /// <reference path="sea.d.ts" />
76
- /// <reference path="stream.d.ts" />
77
- /// <reference path="stream/promises.d.ts" />
78
- /// <reference path="stream/consumers.d.ts" />
79
- /// <reference path="stream/web.d.ts" />
80
- /// <reference path="string_decoder.d.ts" />
81
- /// <reference path="test.d.ts" />
82
- /// <reference path="timers.d.ts" />
83
- /// <reference path="timers/promises.d.ts" />
84
- /// <reference path="tls.d.ts" />
85
- /// <reference path="trace_events.d.ts" />
86
- /// <reference path="tty.d.ts" />
87
- /// <reference path="url.d.ts" />
88
- /// <reference path="util.d.ts" />
89
- /// <reference path="v8.d.ts" />
90
- /// <reference path="vm.d.ts" />
91
- /// <reference path="wasi.d.ts" />
92
- /// <reference path="worker_threads.d.ts" />
93
- /// <reference path="zlib.d.ts" />