@nshiab/setup-data-project 1.0.7 → 1.0.8

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 (463) hide show
  1. package/esm/helpers/createFolderStructure.d.ts.map +1 -1
  2. package/esm/helpers/createFolderStructure.js +1 -15
  3. package/esm/helpers/ensureAgents.d.ts.map +1 -1
  4. package/esm/helpers/ensureAgents.js +2 -8
  5. package/esm/helpers/ensureEnvFile.d.ts.map +1 -1
  6. package/esm/helpers/ensureEnvFile.js +1 -7
  7. package/esm/helpers/ensureGitignore.d.ts.map +1 -1
  8. package/esm/helpers/ensureGitignore.js +0 -6
  9. package/esm/helpers/ensureReadme.d.ts.map +1 -1
  10. package/esm/helpers/ensureReadme.js +1 -7
  11. package/esm/main.js +7 -17
  12. package/package.json +5 -2
  13. package/script/helpers/createFolderStructure.d.ts.map +1 -1
  14. package/script/helpers/createFolderStructure.js +1 -15
  15. package/script/helpers/ensureAgents.d.ts.map +1 -1
  16. package/script/helpers/ensureAgents.js +2 -8
  17. package/script/helpers/ensureEnvFile.d.ts.map +1 -1
  18. package/script/helpers/ensureEnvFile.js +1 -7
  19. package/script/helpers/ensureGitignore.d.ts.map +1 -1
  20. package/script/helpers/ensureGitignore.js +0 -6
  21. package/script/helpers/ensureReadme.d.ts.map +1 -1
  22. package/script/helpers/ensureReadme.js +1 -7
  23. package/script/main.js +7 -17
  24. package/npm/LICENSE +0 -21
  25. package/npm/README.md +0 -25
  26. package/npm/esm/_dnt.shims.d.ts +0 -8
  27. package/npm/esm/_dnt.shims.d.ts.map +0 -1
  28. package/npm/esm/_dnt.shims.js +0 -62
  29. package/npm/esm/_dnt_2.shims.d.ts +0 -6
  30. package/npm/esm/_dnt_2.shims.d.ts.map +0 -1
  31. package/npm/esm/_dnt_2.shims.js +0 -61
  32. package/npm/esm/helpers/createFolderStructure.d.ts +0 -2
  33. package/npm/esm/helpers/createFolderStructure.d.ts.map +0 -1
  34. package/npm/esm/helpers/createFolderStructure.js +0 -49
  35. package/npm/esm/helpers/ensureAgents.d.ts +0 -2
  36. package/npm/esm/helpers/ensureAgents.d.ts.map +0 -1
  37. package/npm/esm/helpers/ensureAgents.js +0 -92
  38. package/npm/esm/helpers/ensureEnvFile.d.ts +0 -2
  39. package/npm/esm/helpers/ensureEnvFile.d.ts.map +0 -1
  40. package/npm/esm/helpers/ensureEnvFile.js +0 -14
  41. package/npm/esm/helpers/ensureGitignore.d.ts +0 -2
  42. package/npm/esm/helpers/ensureGitignore.d.ts.map +0 -1
  43. package/npm/esm/helpers/ensureGitignore.js +0 -29
  44. package/npm/esm/helpers/ensureReadme.d.ts +0 -2
  45. package/npm/esm/helpers/ensureReadme.d.ts.map +0 -1
  46. package/npm/esm/helpers/ensureReadme.js +0 -37
  47. package/npm/esm/helpers/getInstalledPackages.d.ts +0 -2
  48. package/npm/esm/helpers/getInstalledPackages.d.ts.map +0 -1
  49. package/npm/esm/helpers/getInstalledPackages.js +0 -29
  50. package/npm/esm/helpers/getProjectTasks.d.ts +0 -5
  51. package/npm/esm/helpers/getProjectTasks.d.ts.map +0 -1
  52. package/npm/esm/helpers/getProjectTasks.js +0 -12
  53. package/npm/esm/helpers/getRuntime.d.ts +0 -5
  54. package/npm/esm/helpers/getRuntime.d.ts.map +0 -1
  55. package/npm/esm/helpers/getRuntime.js +0 -17
  56. package/npm/esm/helpers/gitignoreEntries.d.ts +0 -2
  57. package/npm/esm/helpers/gitignoreEntries.d.ts.map +0 -1
  58. package/npm/esm/helpers/gitignoreEntries.js +0 -9
  59. package/npm/esm/helpers/handleFileConflict.d.ts +0 -5
  60. package/npm/esm/helpers/handleFileConflict.d.ts.map +0 -1
  61. package/npm/esm/helpers/handleFileConflict.js +0 -51
  62. package/npm/esm/helpers/installPackagesAndFetchDocs.d.ts +0 -8
  63. package/npm/esm/helpers/installPackagesAndFetchDocs.d.ts.map +0 -1
  64. package/npm/esm/helpers/installPackagesAndFetchDocs.js +0 -61
  65. package/npm/esm/helpers/packageOptions.d.ts +0 -5
  66. package/npm/esm/helpers/packageOptions.d.ts.map +0 -1
  67. package/npm/esm/helpers/packageOptions.js +0 -5
  68. package/npm/esm/helpers/packageRegistry.d.ts +0 -7
  69. package/npm/esm/helpers/packageRegistry.d.ts.map +0 -1
  70. package/npm/esm/helpers/packageRegistry.js +0 -62
  71. package/npm/esm/helpers/updateProjectConfig.d.ts +0 -2
  72. package/npm/esm/helpers/updateProjectConfig.d.ts.map +0 -1
  73. package/npm/esm/helpers/updateProjectConfig.js +0 -36
  74. package/npm/esm/main.d.ts +0 -3
  75. package/npm/esm/main.d.ts.map +0 -1
  76. package/npm/esm/main.js +0 -93
  77. package/npm/esm/package.json +0 -3
  78. package/npm/node_modules/.package-lock.json +0 -123
  79. package/npm/node_modules/@clack/core/CHANGELOG.md +0 -348
  80. package/npm/node_modules/@clack/core/LICENSE +0 -9
  81. package/npm/node_modules/@clack/core/README.md +0 -22
  82. package/npm/node_modules/@clack/core/dist/index.d.mts +0 -363
  83. package/npm/node_modules/@clack/core/dist/index.mjs +0 -17
  84. package/npm/node_modules/@clack/core/dist/index.mjs.map +0 -1
  85. package/npm/node_modules/@clack/core/package.json +0 -63
  86. package/npm/node_modules/@clack/prompts/CHANGELOG.md +0 -591
  87. package/npm/node_modules/@clack/prompts/LICENSE +0 -9
  88. package/npm/node_modules/@clack/prompts/README.md +0 -375
  89. package/npm/node_modules/@clack/prompts/dist/index.d.mts +0 -396
  90. package/npm/node_modules/@clack/prompts/dist/index.mjs +0 -144
  91. package/npm/node_modules/@clack/prompts/dist/index.mjs.map +0 -1
  92. package/npm/node_modules/@clack/prompts/package.json +0 -68
  93. package/npm/node_modules/@deno/shim-deno/LICENSE +0 -20
  94. package/npm/node_modules/@deno/shim-deno/README.md +0 -30
  95. package/npm/node_modules/@deno/shim-deno/dist/deno/internal/Conn.js +0 -56
  96. package/npm/node_modules/@deno/shim-deno/dist/deno/internal/Listener.js +0 -92
  97. package/npm/node_modules/@deno/shim-deno/dist/deno/internal/consts.js +0 -4
  98. package/npm/node_modules/@deno/shim-deno/dist/deno/internal/errorMap.js +0 -44
  99. package/npm/node_modules/@deno/shim-deno/dist/deno/internal/fs_flags.js +0 -91
  100. package/npm/node_modules/@deno/shim-deno/dist/deno/internal/iterutil.js +0 -37
  101. package/npm/node_modules/@deno/shim-deno/dist/deno/internal/random_id.js +0 -8
  102. package/npm/node_modules/@deno/shim-deno/dist/deno/internal/streams.js +0 -122
  103. package/npm/node_modules/@deno/shim-deno/dist/deno/internal/test.d.ts +0 -1
  104. package/npm/node_modules/@deno/shim-deno/dist/deno/internal/test.js +0 -5
  105. package/npm/node_modules/@deno/shim-deno/dist/deno/internal/version.js +0 -5
  106. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/classes/FsFile.js +0 -143
  107. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/classes/PermissionStatus.js +0 -19
  108. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/classes/Permissions.js +0 -26
  109. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/classes.js +0 -10
  110. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/enums/SeekMode.js +0 -9
  111. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/enums.js +0 -5
  112. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/addSignalListener.js +0 -18
  113. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/chdir.js +0 -22
  114. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/chmod.js +0 -29
  115. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/chmodSync.js +0 -29
  116. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/chown.js +0 -30
  117. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/chownSync.js +0 -30
  118. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/close.js +0 -29
  119. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/connect.js +0 -37
  120. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/connectTls.js +0 -31
  121. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/consoleSize.js +0 -17
  122. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/copy.js +0 -27
  123. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/copyFile.js +0 -45
  124. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/copyFileSync.js +0 -45
  125. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/create.js +0 -9
  126. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/createSync.js +0 -14
  127. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/cwd.js +0 -5
  128. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/execPath.js +0 -10
  129. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/exit.js +0 -8
  130. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/fdatasync.js +0 -8
  131. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/fdatasyncSync.js +0 -6
  132. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/fstat.js +0 -44
  133. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/fstatSync.js +0 -19
  134. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/fsync.js +0 -10
  135. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/fsyncSync.js +0 -9
  136. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/ftruncate.js +0 -8
  137. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/ftruncateSync.js +0 -6
  138. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/gid.js +0 -10
  139. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/hostname.js +0 -32
  140. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/inspect.js +0 -30
  141. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/kill.js +0 -16
  142. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/link.js +0 -29
  143. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/linkSync.js +0 -29
  144. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/listen.js +0 -51
  145. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/listenTls.js +0 -49
  146. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/loadavg.js +0 -32
  147. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/lstat.js +0 -42
  148. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/lstatSync.js +0 -42
  149. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/makeTempDir.js +0 -11
  150. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/makeTempDirSync.js +0 -11
  151. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/makeTempFile.js +0 -14
  152. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/makeTempFileSync.js +0 -14
  153. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/memoryUsage.js +0 -5
  154. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/mkdir.js +0 -22
  155. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/mkdirSync.js +0 -45
  156. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/open.js +0 -33
  157. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/openSync.js +0 -31
  158. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/osRelease.js +0 -9
  159. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/osUptime.js +0 -9
  160. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/read.js +0 -19
  161. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/readDir.js +0 -26
  162. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/readDirSync.js +0 -26
  163. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/readFile.js +0 -19
  164. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/readFileSync.js +0 -19
  165. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/readLink.js +0 -29
  166. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/readLinkSync.js +0 -29
  167. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/readSync.js +0 -34
  168. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/readTextFile.js +0 -18
  169. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/readTextFileSync.js +0 -41
  170. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/realPath.js +0 -29
  171. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/realPathSync.js +0 -29
  172. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/remove.js +0 -22
  173. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/removeSignalListener.js +0 -12
  174. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/removeSync.js +0 -45
  175. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/rename.js +0 -9
  176. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/renameSync.js +0 -29
  177. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/resolveDns.js +0 -41
  178. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/run.js +0 -276
  179. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/shutdown.js +0 -9
  180. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/stat.js +0 -68
  181. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/statSync.js +0 -42
  182. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/symlink.js +0 -30
  183. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/symlinkSync.js +0 -30
  184. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/test.js +0 -5
  185. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/truncate.js +0 -45
  186. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/truncateSync.js +0 -45
  187. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/uid.js +0 -10
  188. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/watchFs.js +0 -27
  189. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/write.js +0 -35
  190. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/writeFile.js +0 -46
  191. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/writeFileSync.js +0 -45
  192. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/writeSync.js +0 -29
  193. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/writeTextFile.js +0 -52
  194. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions/writeTextFileSync.js +0 -44
  195. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/functions.js +0 -234
  196. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/main.js +0 -21
  197. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/types.js +0 -3
  198. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/args.js +0 -5
  199. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/build.js +0 -38
  200. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/customInspect.js +0 -4
  201. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/env.js +0 -47
  202. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/errors.js +0 -63
  203. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/mainModule.js +0 -8
  204. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/metrics.js +0 -21
  205. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/noColor.js +0 -5
  206. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/permissions.js +0 -6
  207. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/pid.js +0 -5
  208. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/ppid.js +0 -5
  209. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/resources.js +0 -12
  210. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/std.js +0 -132
  211. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables/version.js +0 -10
  212. package/npm/node_modules/@deno/shim-deno/dist/deno/stable/variables.js +0 -53
  213. package/npm/node_modules/@deno/shim-deno/dist/deno/unstable/main.js +0 -62
  214. package/npm/node_modules/@deno/shim-deno/dist/deno.js +0 -17
  215. package/npm/node_modules/@deno/shim-deno/dist/index.d.ts +0 -4762
  216. package/npm/node_modules/@deno/shim-deno/dist/index.js +0 -27
  217. package/npm/node_modules/@deno/shim-deno/package.json +0 -50
  218. package/npm/node_modules/@deno/shim-deno-test/LICENSE +0 -20
  219. package/npm/node_modules/@deno/shim-deno-test/README.md +0 -28
  220. package/npm/node_modules/@deno/shim-deno-test/dist/definitions.d.ts +0 -3
  221. package/npm/node_modules/@deno/shim-deno-test/dist/definitions.js +0 -5
  222. package/npm/node_modules/@deno/shim-deno-test/dist/deno.types.gen.d.ts +0 -626
  223. package/npm/node_modules/@deno/shim-deno-test/dist/deno.types.gen.js +0 -2
  224. package/npm/node_modules/@deno/shim-deno-test/dist/index.d.ts +0 -3
  225. package/npm/node_modules/@deno/shim-deno-test/dist/index.js +0 -21
  226. package/npm/node_modules/@deno/shim-deno-test/dist/test.d.ts +0 -3
  227. package/npm/node_modules/@deno/shim-deno-test/dist/test.js +0 -87
  228. package/npm/node_modules/@deno/shim-deno-test/package.json +0 -34
  229. package/npm/node_modules/@types/node/LICENSE +0 -21
  230. package/npm/node_modules/@types/node/README.md +0 -15
  231. package/npm/node_modules/@types/node/assert/strict.d.ts +0 -8
  232. package/npm/node_modules/@types/node/assert.d.ts +0 -1062
  233. package/npm/node_modules/@types/node/async_hooks.d.ts +0 -605
  234. package/npm/node_modules/@types/node/buffer.buffer.d.ts +0 -471
  235. package/npm/node_modules/@types/node/buffer.d.ts +0 -1936
  236. package/npm/node_modules/@types/node/child_process.d.ts +0 -1475
  237. package/npm/node_modules/@types/node/cluster.d.ts +0 -577
  238. package/npm/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
  239. package/npm/node_modules/@types/node/compatibility/index.d.ts +0 -9
  240. package/npm/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
  241. package/npm/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
  242. package/npm/node_modules/@types/node/console.d.ts +0 -452
  243. package/npm/node_modules/@types/node/constants.d.ts +0 -21
  244. package/npm/node_modules/@types/node/crypto.d.ts +0 -4590
  245. package/npm/node_modules/@types/node/dgram.d.ts +0 -597
  246. package/npm/node_modules/@types/node/diagnostics_channel.d.ts +0 -578
  247. package/npm/node_modules/@types/node/dns/promises.d.ts +0 -479
  248. package/npm/node_modules/@types/node/dns.d.ts +0 -871
  249. package/npm/node_modules/@types/node/domain.d.ts +0 -170
  250. package/npm/node_modules/@types/node/events.d.ts +0 -977
  251. package/npm/node_modules/@types/node/fs/promises.d.ts +0 -1270
  252. package/npm/node_modules/@types/node/fs.d.ts +0 -4375
  253. package/npm/node_modules/@types/node/globals.d.ts +0 -172
  254. package/npm/node_modules/@types/node/globals.typedarray.d.ts +0 -38
  255. package/npm/node_modules/@types/node/http.d.ts +0 -2049
  256. package/npm/node_modules/@types/node/http2.d.ts +0 -2631
  257. package/npm/node_modules/@types/node/https.d.ts +0 -578
  258. package/npm/node_modules/@types/node/index.d.ts +0 -93
  259. package/npm/node_modules/@types/node/inspector.generated.d.ts +0 -3966
  260. package/npm/node_modules/@types/node/module.d.ts +0 -539
  261. package/npm/node_modules/@types/node/net.d.ts +0 -1031
  262. package/npm/node_modules/@types/node/os.d.ts +0 -506
  263. package/npm/node_modules/@types/node/package.json +0 -140
  264. package/npm/node_modules/@types/node/path.d.ts +0 -200
  265. package/npm/node_modules/@types/node/perf_hooks.d.ts +0 -961
  266. package/npm/node_modules/@types/node/process.d.ts +0 -1961
  267. package/npm/node_modules/@types/node/punycode.d.ts +0 -117
  268. package/npm/node_modules/@types/node/querystring.d.ts +0 -152
  269. package/npm/node_modules/@types/node/readline/promises.d.ts +0 -162
  270. package/npm/node_modules/@types/node/readline.d.ts +0 -589
  271. package/npm/node_modules/@types/node/repl.d.ts +0 -430
  272. package/npm/node_modules/@types/node/sea.d.ts +0 -153
  273. package/npm/node_modules/@types/node/stream/consumers.d.ts +0 -38
  274. package/npm/node_modules/@types/node/stream/promises.d.ts +0 -90
  275. package/npm/node_modules/@types/node/stream/web.d.ts +0 -533
  276. package/npm/node_modules/@types/node/stream.d.ts +0 -1698
  277. package/npm/node_modules/@types/node/string_decoder.d.ts +0 -67
  278. package/npm/node_modules/@types/node/test.d.ts +0 -1787
  279. package/npm/node_modules/@types/node/timers/promises.d.ts +0 -108
  280. package/npm/node_modules/@types/node/timers.d.ts +0 -286
  281. package/npm/node_modules/@types/node/tls.d.ts +0 -1259
  282. package/npm/node_modules/@types/node/trace_events.d.ts +0 -197
  283. package/npm/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -468
  284. package/npm/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -34
  285. package/npm/node_modules/@types/node/ts5.6/index.d.ts +0 -93
  286. package/npm/node_modules/@types/node/tty.d.ts +0 -208
  287. package/npm/node_modules/@types/node/url.d.ts +0 -964
  288. package/npm/node_modules/@types/node/util.d.ts +0 -2331
  289. package/npm/node_modules/@types/node/v8.d.ts +0 -809
  290. package/npm/node_modules/@types/node/vm.d.ts +0 -1001
  291. package/npm/node_modules/@types/node/wasi.d.ts +0 -181
  292. package/npm/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -34
  293. package/npm/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
  294. package/npm/node_modules/@types/node/web-globals/events.d.ts +0 -97
  295. package/npm/node_modules/@types/node/web-globals/fetch.d.ts +0 -55
  296. package/npm/node_modules/@types/node/worker_threads.d.ts +0 -715
  297. package/npm/node_modules/@types/node/zlib.d.ts +0 -598
  298. package/npm/node_modules/fast-string-truncated-width/dist/index.d.ts +0 -4
  299. package/npm/node_modules/fast-string-truncated-width/dist/index.js +0 -111
  300. package/npm/node_modules/fast-string-truncated-width/dist/types.d.ts +0 -19
  301. package/npm/node_modules/fast-string-truncated-width/dist/types.js +0 -2
  302. package/npm/node_modules/fast-string-truncated-width/dist/utils.d.ts +0 -4
  303. package/npm/node_modules/fast-string-truncated-width/dist/utils.js +0 -20
  304. package/npm/node_modules/fast-string-truncated-width/license +0 -21
  305. package/npm/node_modules/fast-string-truncated-width/package.json +0 -35
  306. package/npm/node_modules/fast-string-truncated-width/readme.md +0 -59
  307. package/npm/node_modules/fast-string-width/dist/index.d.ts +0 -4
  308. package/npm/node_modules/fast-string-width/dist/index.js +0 -14
  309. package/npm/node_modules/fast-string-width/license +0 -21
  310. package/npm/node_modules/fast-string-width/package.json +0 -34
  311. package/npm/node_modules/fast-string-width/readme.md +0 -42
  312. package/npm/node_modules/fast-wrap-ansi/LICENSE +0 -23
  313. package/npm/node_modules/fast-wrap-ansi/README.md +0 -26
  314. package/npm/node_modules/fast-wrap-ansi/lib/main.d.ts +0 -6
  315. package/npm/node_modules/fast-wrap-ansi/lib/main.js +0 -219
  316. package/npm/node_modules/fast-wrap-ansi/lib/main.js.map +0 -1
  317. package/npm/node_modules/fast-wrap-ansi/package.json +0 -51
  318. package/npm/node_modules/isexe/LICENSE.md +0 -55
  319. package/npm/node_modules/isexe/README.md +0 -80
  320. package/npm/node_modules/isexe/dist/commonjs/index.d.ts +0 -14
  321. package/npm/node_modules/isexe/dist/commonjs/index.d.ts.map +0 -1
  322. package/npm/node_modules/isexe/dist/commonjs/index.js +0 -56
  323. package/npm/node_modules/isexe/dist/commonjs/index.js.map +0 -1
  324. package/npm/node_modules/isexe/dist/commonjs/index.min.js +0 -2
  325. package/npm/node_modules/isexe/dist/commonjs/index.min.js.map +0 -7
  326. package/npm/node_modules/isexe/dist/commonjs/options.d.ts +0 -32
  327. package/npm/node_modules/isexe/dist/commonjs/options.d.ts.map +0 -1
  328. package/npm/node_modules/isexe/dist/commonjs/options.js +0 -3
  329. package/npm/node_modules/isexe/dist/commonjs/options.js.map +0 -1
  330. package/npm/node_modules/isexe/dist/commonjs/package.json +0 -3
  331. package/npm/node_modules/isexe/dist/commonjs/posix.d.ts +0 -18
  332. package/npm/node_modules/isexe/dist/commonjs/posix.d.ts.map +0 -1
  333. package/npm/node_modules/isexe/dist/commonjs/posix.js +0 -67
  334. package/npm/node_modules/isexe/dist/commonjs/posix.js.map +0 -1
  335. package/npm/node_modules/isexe/dist/commonjs/win32.d.ts +0 -18
  336. package/npm/node_modules/isexe/dist/commonjs/win32.d.ts.map +0 -1
  337. package/npm/node_modules/isexe/dist/commonjs/win32.js +0 -63
  338. package/npm/node_modules/isexe/dist/commonjs/win32.js.map +0 -1
  339. package/npm/node_modules/isexe/dist/esm/index.d.ts +0 -14
  340. package/npm/node_modules/isexe/dist/esm/index.d.ts.map +0 -1
  341. package/npm/node_modules/isexe/dist/esm/index.js +0 -16
  342. package/npm/node_modules/isexe/dist/esm/index.js.map +0 -1
  343. package/npm/node_modules/isexe/dist/esm/index.min.js +0 -2
  344. package/npm/node_modules/isexe/dist/esm/index.min.js.map +0 -7
  345. package/npm/node_modules/isexe/dist/esm/options.d.ts +0 -32
  346. package/npm/node_modules/isexe/dist/esm/options.d.ts.map +0 -1
  347. package/npm/node_modules/isexe/dist/esm/options.js +0 -2
  348. package/npm/node_modules/isexe/dist/esm/options.js.map +0 -1
  349. package/npm/node_modules/isexe/dist/esm/package.json +0 -3
  350. package/npm/node_modules/isexe/dist/esm/posix.d.ts +0 -18
  351. package/npm/node_modules/isexe/dist/esm/posix.d.ts.map +0 -1
  352. package/npm/node_modules/isexe/dist/esm/posix.js +0 -62
  353. package/npm/node_modules/isexe/dist/esm/posix.js.map +0 -1
  354. package/npm/node_modules/isexe/dist/esm/win32.d.ts +0 -18
  355. package/npm/node_modules/isexe/dist/esm/win32.d.ts.map +0 -1
  356. package/npm/node_modules/isexe/dist/esm/win32.js +0 -58
  357. package/npm/node_modules/isexe/dist/esm/win32.js.map +0 -1
  358. package/npm/node_modules/isexe/package.json +0 -78
  359. package/npm/node_modules/sisteransi/license +0 -21
  360. package/npm/node_modules/sisteransi/package.json +0 -34
  361. package/npm/node_modules/sisteransi/readme.md +0 -113
  362. package/npm/node_modules/sisteransi/src/index.js +0 -58
  363. package/npm/node_modules/sisteransi/src/sisteransi.d.ts +0 -35
  364. package/npm/node_modules/undici-types/LICENSE +0 -21
  365. package/npm/node_modules/undici-types/README.md +0 -6
  366. package/npm/node_modules/undici-types/agent.d.ts +0 -31
  367. package/npm/node_modules/undici-types/api.d.ts +0 -43
  368. package/npm/node_modules/undici-types/balanced-pool.d.ts +0 -29
  369. package/npm/node_modules/undici-types/cache.d.ts +0 -36
  370. package/npm/node_modules/undici-types/client.d.ts +0 -108
  371. package/npm/node_modules/undici-types/connector.d.ts +0 -34
  372. package/npm/node_modules/undici-types/content-type.d.ts +0 -21
  373. package/npm/node_modules/undici-types/cookies.d.ts +0 -28
  374. package/npm/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
  375. package/npm/node_modules/undici-types/dispatcher.d.ts +0 -256
  376. package/npm/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
  377. package/npm/node_modules/undici-types/errors.d.ts +0 -149
  378. package/npm/node_modules/undici-types/eventsource.d.ts +0 -61
  379. package/npm/node_modules/undici-types/fetch.d.ts +0 -209
  380. package/npm/node_modules/undici-types/file.d.ts +0 -39
  381. package/npm/node_modules/undici-types/filereader.d.ts +0 -54
  382. package/npm/node_modules/undici-types/formdata.d.ts +0 -108
  383. package/npm/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  384. package/npm/node_modules/undici-types/global-origin.d.ts +0 -7
  385. package/npm/node_modules/undici-types/handlers.d.ts +0 -15
  386. package/npm/node_modules/undici-types/header.d.ts +0 -4
  387. package/npm/node_modules/undici-types/index.d.ts +0 -71
  388. package/npm/node_modules/undici-types/interceptors.d.ts +0 -17
  389. package/npm/node_modules/undici-types/mock-agent.d.ts +0 -50
  390. package/npm/node_modules/undici-types/mock-client.d.ts +0 -25
  391. package/npm/node_modules/undici-types/mock-errors.d.ts +0 -12
  392. package/npm/node_modules/undici-types/mock-interceptor.d.ts +0 -93
  393. package/npm/node_modules/undici-types/mock-pool.d.ts +0 -25
  394. package/npm/node_modules/undici-types/package.json +0 -55
  395. package/npm/node_modules/undici-types/patch.d.ts +0 -33
  396. package/npm/node_modules/undici-types/pool-stats.d.ts +0 -19
  397. package/npm/node_modules/undici-types/pool.d.ts +0 -39
  398. package/npm/node_modules/undici-types/proxy-agent.d.ts +0 -28
  399. package/npm/node_modules/undici-types/readable.d.ts +0 -65
  400. package/npm/node_modules/undici-types/retry-agent.d.ts +0 -8
  401. package/npm/node_modules/undici-types/retry-handler.d.ts +0 -116
  402. package/npm/node_modules/undici-types/util.d.ts +0 -18
  403. package/npm/node_modules/undici-types/webidl.d.ts +0 -228
  404. package/npm/node_modules/undici-types/websocket.d.ts +0 -150
  405. package/npm/node_modules/which/LICENSE +0 -15
  406. package/npm/node_modules/which/README.md +0 -51
  407. package/npm/node_modules/which/bin/which.js +0 -52
  408. package/npm/node_modules/which/lib/index.js +0 -111
  409. package/npm/node_modules/which/package.json +0 -57
  410. package/npm/package-lock.json +0 -135
  411. package/npm/package.json +0 -30
  412. package/npm/script/_dnt.shims.d.ts +0 -8
  413. package/npm/script/_dnt.shims.d.ts.map +0 -1
  414. package/npm/script/_dnt.shims.js +0 -99
  415. package/npm/script/_dnt_2.shims.d.ts +0 -6
  416. package/npm/script/_dnt_2.shims.d.ts.map +0 -1
  417. package/npm/script/_dnt_2.shims.js +0 -65
  418. package/npm/script/helpers/createFolderStructure.d.ts +0 -2
  419. package/npm/script/helpers/createFolderStructure.d.ts.map +0 -1
  420. package/npm/script/helpers/createFolderStructure.js +0 -52
  421. package/npm/script/helpers/ensureAgents.d.ts +0 -2
  422. package/npm/script/helpers/ensureAgents.d.ts.map +0 -1
  423. package/npm/script/helpers/ensureAgents.js +0 -95
  424. package/npm/script/helpers/ensureEnvFile.d.ts +0 -2
  425. package/npm/script/helpers/ensureEnvFile.d.ts.map +0 -1
  426. package/npm/script/helpers/ensureEnvFile.js +0 -17
  427. package/npm/script/helpers/ensureGitignore.d.ts +0 -2
  428. package/npm/script/helpers/ensureGitignore.d.ts.map +0 -1
  429. package/npm/script/helpers/ensureGitignore.js +0 -32
  430. package/npm/script/helpers/ensureReadme.d.ts +0 -2
  431. package/npm/script/helpers/ensureReadme.d.ts.map +0 -1
  432. package/npm/script/helpers/ensureReadme.js +0 -40
  433. package/npm/script/helpers/getInstalledPackages.d.ts +0 -2
  434. package/npm/script/helpers/getInstalledPackages.d.ts.map +0 -1
  435. package/npm/script/helpers/getInstalledPackages.js +0 -32
  436. package/npm/script/helpers/getProjectTasks.d.ts +0 -5
  437. package/npm/script/helpers/getProjectTasks.d.ts.map +0 -1
  438. package/npm/script/helpers/getProjectTasks.js +0 -15
  439. package/npm/script/helpers/getRuntime.d.ts +0 -5
  440. package/npm/script/helpers/getRuntime.d.ts.map +0 -1
  441. package/npm/script/helpers/getRuntime.js +0 -57
  442. package/npm/script/helpers/gitignoreEntries.d.ts +0 -2
  443. package/npm/script/helpers/gitignoreEntries.d.ts.map +0 -1
  444. package/npm/script/helpers/gitignoreEntries.js +0 -12
  445. package/npm/script/helpers/handleFileConflict.d.ts +0 -5
  446. package/npm/script/helpers/handleFileConflict.d.ts.map +0 -1
  447. package/npm/script/helpers/handleFileConflict.js +0 -91
  448. package/npm/script/helpers/installPackagesAndFetchDocs.d.ts +0 -8
  449. package/npm/script/helpers/installPackagesAndFetchDocs.d.ts.map +0 -1
  450. package/npm/script/helpers/installPackagesAndFetchDocs.js +0 -98
  451. package/npm/script/helpers/packageOptions.d.ts +0 -5
  452. package/npm/script/helpers/packageOptions.d.ts.map +0 -1
  453. package/npm/script/helpers/packageOptions.js +0 -8
  454. package/npm/script/helpers/packageRegistry.d.ts +0 -7
  455. package/npm/script/helpers/packageRegistry.d.ts.map +0 -1
  456. package/npm/script/helpers/packageRegistry.js +0 -65
  457. package/npm/script/helpers/updateProjectConfig.d.ts +0 -2
  458. package/npm/script/helpers/updateProjectConfig.d.ts.map +0 -1
  459. package/npm/script/helpers/updateProjectConfig.js +0 -39
  460. package/npm/script/main.d.ts +0 -3
  461. package/npm/script/main.d.ts.map +0 -1
  462. package/npm/script/main.js +0 -98
  463. package/npm/script/package.json +0 -3
@@ -1,209 +0,0 @@
1
- // based on https://github.com/Ethan-Arrowood/undici-fetch/blob/249269714db874351589d2d364a0645d5160ae71/index.d.ts (MIT license)
2
- // and https://github.com/node-fetch/node-fetch/blob/914ce6be5ec67a8bab63d68510aabf07cb818b6d/index.d.ts (MIT license)
3
- /// <reference types="node" />
4
-
5
- import { Blob } from 'buffer'
6
- import { URL, URLSearchParams } from 'url'
7
- import { ReadableStream } from 'stream/web'
8
- import { FormData } from './formdata'
9
-
10
- import Dispatcher from './dispatcher'
11
-
12
- export type RequestInfo = string | URL | Request
13
-
14
- export declare function fetch (
15
- input: RequestInfo,
16
- init?: RequestInit
17
- ): Promise<Response>
18
-
19
- export type BodyInit =
20
- | ArrayBuffer
21
- | AsyncIterable<Uint8Array>
22
- | Blob
23
- | FormData
24
- | Iterable<Uint8Array>
25
- | NodeJS.ArrayBufferView
26
- | URLSearchParams
27
- | null
28
- | string
29
-
30
- export class BodyMixin {
31
- readonly body: ReadableStream | null
32
- readonly bodyUsed: boolean
33
-
34
- readonly arrayBuffer: () => Promise<ArrayBuffer>
35
- readonly blob: () => Promise<Blob>
36
- /**
37
- * @deprecated This method is not recommended for parsing multipart/form-data bodies in server environments.
38
- * It is recommended to use a library such as [@fastify/busboy](https://www.npmjs.com/package/@fastify/busboy) as follows:
39
- *
40
- * @example
41
- * ```js
42
- * import { Busboy } from '@fastify/busboy'
43
- * import { Readable } from 'node:stream'
44
- *
45
- * const response = await fetch('...')
46
- * const busboy = new Busboy({ headers: { 'content-type': response.headers.get('content-type') } })
47
- *
48
- * // handle events emitted from `busboy`
49
- *
50
- * Readable.fromWeb(response.body).pipe(busboy)
51
- * ```
52
- */
53
- readonly formData: () => Promise<FormData>
54
- readonly json: () => Promise<unknown>
55
- readonly text: () => Promise<string>
56
- }
57
-
58
- export interface SpecIterator<T, TReturn = any, TNext = undefined> {
59
- next(...args: [] | [TNext]): IteratorResult<T, TReturn>;
60
- }
61
-
62
- export interface SpecIterableIterator<T> extends SpecIterator<T> {
63
- [Symbol.iterator](): SpecIterableIterator<T>;
64
- }
65
-
66
- export interface SpecIterable<T> {
67
- [Symbol.iterator](): SpecIterator<T>;
68
- }
69
-
70
- export type HeadersInit = string[][] | Record<string, string | ReadonlyArray<string>> | Headers
71
-
72
- export declare class Headers implements SpecIterable<[string, string]> {
73
- constructor (init?: HeadersInit)
74
- readonly append: (name: string, value: string) => void
75
- readonly delete: (name: string) => void
76
- readonly get: (name: string) => string | null
77
- readonly has: (name: string) => boolean
78
- readonly set: (name: string, value: string) => void
79
- readonly getSetCookie: () => string[]
80
- readonly forEach: (
81
- callbackfn: (value: string, key: string, iterable: Headers) => void,
82
- thisArg?: unknown
83
- ) => void
84
-
85
- readonly keys: () => SpecIterableIterator<string>
86
- readonly values: () => SpecIterableIterator<string>
87
- readonly entries: () => SpecIterableIterator<[string, string]>
88
- readonly [Symbol.iterator]: () => SpecIterableIterator<[string, string]>
89
- }
90
-
91
- export type RequestCache =
92
- | 'default'
93
- | 'force-cache'
94
- | 'no-cache'
95
- | 'no-store'
96
- | 'only-if-cached'
97
- | 'reload'
98
-
99
- export type RequestCredentials = 'omit' | 'include' | 'same-origin'
100
-
101
- type RequestDestination =
102
- | ''
103
- | 'audio'
104
- | 'audioworklet'
105
- | 'document'
106
- | 'embed'
107
- | 'font'
108
- | 'image'
109
- | 'manifest'
110
- | 'object'
111
- | 'paintworklet'
112
- | 'report'
113
- | 'script'
114
- | 'sharedworker'
115
- | 'style'
116
- | 'track'
117
- | 'video'
118
- | 'worker'
119
- | 'xslt'
120
-
121
- export interface RequestInit {
122
- method?: string
123
- keepalive?: boolean
124
- headers?: HeadersInit
125
- body?: BodyInit | null
126
- redirect?: RequestRedirect
127
- integrity?: string
128
- signal?: AbortSignal | null
129
- credentials?: RequestCredentials
130
- mode?: RequestMode
131
- referrer?: string
132
- referrerPolicy?: ReferrerPolicy
133
- window?: null
134
- dispatcher?: Dispatcher
135
- duplex?: RequestDuplex
136
- }
137
-
138
- export type ReferrerPolicy =
139
- | ''
140
- | 'no-referrer'
141
- | 'no-referrer-when-downgrade'
142
- | 'origin'
143
- | 'origin-when-cross-origin'
144
- | 'same-origin'
145
- | 'strict-origin'
146
- | 'strict-origin-when-cross-origin'
147
- | 'unsafe-url';
148
-
149
- export type RequestMode = 'cors' | 'navigate' | 'no-cors' | 'same-origin'
150
-
151
- export type RequestRedirect = 'error' | 'follow' | 'manual'
152
-
153
- export type RequestDuplex = 'half'
154
-
155
- export declare class Request extends BodyMixin {
156
- constructor (input: RequestInfo, init?: RequestInit)
157
-
158
- readonly cache: RequestCache
159
- readonly credentials: RequestCredentials
160
- readonly destination: RequestDestination
161
- readonly headers: Headers
162
- readonly integrity: string
163
- readonly method: string
164
- readonly mode: RequestMode
165
- readonly redirect: RequestRedirect
166
- readonly referrer: string
167
- readonly referrerPolicy: ReferrerPolicy
168
- readonly url: string
169
-
170
- readonly keepalive: boolean
171
- readonly signal: AbortSignal
172
- readonly duplex: RequestDuplex
173
-
174
- readonly clone: () => Request
175
- }
176
-
177
- export interface ResponseInit {
178
- readonly status?: number
179
- readonly statusText?: string
180
- readonly headers?: HeadersInit
181
- }
182
-
183
- export type ResponseType =
184
- | 'basic'
185
- | 'cors'
186
- | 'default'
187
- | 'error'
188
- | 'opaque'
189
- | 'opaqueredirect'
190
-
191
- export type ResponseRedirectStatus = 301 | 302 | 303 | 307 | 308
192
-
193
- export declare class Response extends BodyMixin {
194
- constructor (body?: BodyInit, init?: ResponseInit)
195
-
196
- readonly headers: Headers
197
- readonly ok: boolean
198
- readonly status: number
199
- readonly statusText: string
200
- readonly type: ResponseType
201
- readonly url: string
202
- readonly redirected: boolean
203
-
204
- readonly clone: () => Response
205
-
206
- static error (): Response
207
- static json(data: any, init?: ResponseInit): Response
208
- static redirect (url: string | URL, status: ResponseRedirectStatus): Response
209
- }
@@ -1,39 +0,0 @@
1
- // Based on https://github.com/octet-stream/form-data/blob/2d0f0dc371517444ce1f22cdde13f51995d0953a/lib/File.ts (MIT)
2
- /// <reference types="node" />
3
-
4
- import { Blob } from 'buffer'
5
-
6
- export interface BlobPropertyBag {
7
- type?: string
8
- endings?: 'native' | 'transparent'
9
- }
10
-
11
- export interface FilePropertyBag extends BlobPropertyBag {
12
- /**
13
- * The last modified date of the file as the number of milliseconds since the Unix epoch (January 1, 1970 at midnight). Files without a known last modified date return the current date.
14
- */
15
- lastModified?: number
16
- }
17
-
18
- export declare class File extends Blob {
19
- /**
20
- * Creates a new File instance.
21
- *
22
- * @param fileBits An `Array` strings, or [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer), [`ArrayBufferView`](https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView), [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob) objects, or a mix of any of such objects, that will be put inside the [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File).
23
- * @param fileName The name of the file.
24
- * @param options An options object containing optional attributes for the file.
25
- */
26
- constructor(fileBits: ReadonlyArray<string | NodeJS.ArrayBufferView | Blob>, fileName: string, options?: FilePropertyBag)
27
-
28
- /**
29
- * Name of the file referenced by the File object.
30
- */
31
- readonly name: string
32
-
33
- /**
34
- * The last modified date of the file as the number of milliseconds since the Unix epoch (January 1, 1970 at midnight). Files without a known last modified date return the current date.
35
- */
36
- readonly lastModified: number
37
-
38
- readonly [Symbol.toStringTag]: string
39
- }
@@ -1,54 +0,0 @@
1
- /// <reference types="node" />
2
-
3
- import { Blob } from 'buffer'
4
- import { DOMException, EventInit } from './patch'
5
-
6
- export declare class FileReader {
7
- __proto__: EventTarget & FileReader
8
-
9
- constructor ()
10
-
11
- readAsArrayBuffer (blob: Blob): void
12
- readAsBinaryString (blob: Blob): void
13
- readAsText (blob: Blob, encoding?: string): void
14
- readAsDataURL (blob: Blob): void
15
-
16
- abort (): void
17
-
18
- static readonly EMPTY = 0
19
- static readonly LOADING = 1
20
- static readonly DONE = 2
21
-
22
- readonly EMPTY = 0
23
- readonly LOADING = 1
24
- readonly DONE = 2
25
-
26
- readonly readyState: number
27
-
28
- readonly result: string | ArrayBuffer | null
29
-
30
- readonly error: DOMException | null
31
-
32
- onloadstart: null | ((this: FileReader, event: ProgressEvent) => void)
33
- onprogress: null | ((this: FileReader, event: ProgressEvent) => void)
34
- onload: null | ((this: FileReader, event: ProgressEvent) => void)
35
- onabort: null | ((this: FileReader, event: ProgressEvent) => void)
36
- onerror: null | ((this: FileReader, event: ProgressEvent) => void)
37
- onloadend: null | ((this: FileReader, event: ProgressEvent) => void)
38
- }
39
-
40
- export interface ProgressEventInit extends EventInit {
41
- lengthComputable?: boolean
42
- loaded?: number
43
- total?: number
44
- }
45
-
46
- export declare class ProgressEvent {
47
- __proto__: Event & ProgressEvent
48
-
49
- constructor (type: string, eventInitDict?: ProgressEventInit)
50
-
51
- readonly lengthComputable: boolean
52
- readonly loaded: number
53
- readonly total: number
54
- }
@@ -1,108 +0,0 @@
1
- // Based on https://github.com/octet-stream/form-data/blob/2d0f0dc371517444ce1f22cdde13f51995d0953a/lib/FormData.ts (MIT)
2
- /// <reference types="node" />
3
-
4
- import { File } from './file'
5
- import { SpecIterableIterator } from './fetch'
6
-
7
- /**
8
- * A `string` or `File` that represents a single value from a set of `FormData` key-value pairs.
9
- */
10
- declare type FormDataEntryValue = string | File
11
-
12
- /**
13
- * Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using fetch().
14
- */
15
- export declare class FormData {
16
- /**
17
- * Appends a new value onto an existing key inside a FormData object,
18
- * or adds the key if it does not already exist.
19
- *
20
- * The difference between `set()` and `append()` is that if the specified key already exists, `set()` will overwrite all existing values with the new one, whereas `append()` will append the new value onto the end of the existing set of values.
21
- *
22
- * @param name The name of the field whose data is contained in `value`.
23
- * @param value The field's value. This can be [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob)
24
- or [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File). If none of these are specified the value is converted to a string.
25
- * @param fileName The filename reported to the server, when a Blob or File is passed as the second parameter. The default filename for Blob objects is "blob". The default filename for File objects is the file's filename.
26
- */
27
- append(name: string, value: unknown, fileName?: string): void
28
-
29
- /**
30
- * Set a new value for an existing key inside FormData,
31
- * or add the new field if it does not already exist.
32
- *
33
- * @param name The name of the field whose data is contained in `value`.
34
- * @param value The field's value. This can be [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob)
35
- or [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File). If none of these are specified the value is converted to a string.
36
- * @param fileName The filename reported to the server, when a Blob or File is passed as the second parameter. The default filename for Blob objects is "blob". The default filename for File objects is the file's filename.
37
- *
38
- */
39
- set(name: string, value: unknown, fileName?: string): void
40
-
41
- /**
42
- * Returns the first value associated with a given key from within a `FormData` object.
43
- * If you expect multiple values and want all of them, use the `getAll()` method instead.
44
- *
45
- * @param {string} name A name of the value you want to retrieve.
46
- *
47
- * @returns A `FormDataEntryValue` containing the value. If the key doesn't exist, the method returns null.
48
- */
49
- get(name: string): FormDataEntryValue | null
50
-
51
- /**
52
- * Returns all the values associated with a given key from within a `FormData` object.
53
- *
54
- * @param {string} name A name of the value you want to retrieve.
55
- *
56
- * @returns An array of `FormDataEntryValue` whose key matches the value passed in the `name` parameter. If the key doesn't exist, the method returns an empty list.
57
- */
58
- getAll(name: string): FormDataEntryValue[]
59
-
60
- /**
61
- * Returns a boolean stating whether a `FormData` object contains a certain key.
62
- *
63
- * @param name A string representing the name of the key you want to test for.
64
- *
65
- * @return A boolean value.
66
- */
67
- has(name: string): boolean
68
-
69
- /**
70
- * Deletes a key and its value(s) from a `FormData` object.
71
- *
72
- * @param name The name of the key you want to delete.
73
- */
74
- delete(name: string): void
75
-
76
- /**
77
- * Executes given callback function for each field of the FormData instance
78
- */
79
- forEach: (
80
- callbackfn: (value: FormDataEntryValue, key: string, iterable: FormData) => void,
81
- thisArg?: unknown
82
- ) => void
83
-
84
- /**
85
- * Returns an [`iterator`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) allowing to go through all keys contained in this `FormData` object.
86
- * Each key is a `string`.
87
- */
88
- keys: () => SpecIterableIterator<string>
89
-
90
- /**
91
- * Returns an [`iterator`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) allowing to go through all values contained in this object `FormData` object.
92
- * Each value is a [`FormDataValue`](https://developer.mozilla.org/en-US/docs/Web/API/FormDataEntryValue).
93
- */
94
- values: () => SpecIterableIterator<FormDataEntryValue>
95
-
96
- /**
97
- * Returns an [`iterator`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) allowing to go through the `FormData` key/value pairs.
98
- * The key of each pair is a string; the value is a [`FormDataValue`](https://developer.mozilla.org/en-US/docs/Web/API/FormDataEntryValue).
99
- */
100
- entries: () => SpecIterableIterator<[string, FormDataEntryValue]>
101
-
102
- /**
103
- * An alias for FormData#entries()
104
- */
105
- [Symbol.iterator]: () => SpecIterableIterator<[string, FormDataEntryValue]>
106
-
107
- readonly [Symbol.toStringTag]: string
108
- }
@@ -1,9 +0,0 @@
1
- import Dispatcher from "./dispatcher";
2
-
3
- export {
4
- getGlobalDispatcher,
5
- setGlobalDispatcher
6
- }
7
-
8
- declare function setGlobalDispatcher<DispatcherImplementation extends Dispatcher>(dispatcher: DispatcherImplementation): void;
9
- declare function getGlobalDispatcher(): Dispatcher;
@@ -1,7 +0,0 @@
1
- export {
2
- setGlobalOrigin,
3
- getGlobalOrigin
4
- }
5
-
6
- declare function setGlobalOrigin(origin: string | URL | undefined): void;
7
- declare function getGlobalOrigin(): URL | undefined;
@@ -1,15 +0,0 @@
1
- import Dispatcher from "./dispatcher";
2
-
3
- export declare class RedirectHandler implements Dispatcher.DispatchHandlers {
4
- constructor(
5
- dispatch: Dispatcher,
6
- maxRedirections: number,
7
- opts: Dispatcher.DispatchOptions,
8
- handler: Dispatcher.DispatchHandlers,
9
- redirectionLimitReached: boolean
10
- );
11
- }
12
-
13
- export declare class DecoratorHandler implements Dispatcher.DispatchHandlers {
14
- constructor(handler: Dispatcher.DispatchHandlers);
15
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * The header type declaration of `undici`.
3
- */
4
- export type IncomingHttpHeaders = Record<string, string | string[] | undefined>;
@@ -1,71 +0,0 @@
1
- import Dispatcher from'./dispatcher'
2
- import { setGlobalDispatcher, getGlobalDispatcher } from './global-dispatcher'
3
- import { setGlobalOrigin, getGlobalOrigin } from './global-origin'
4
- import Pool from'./pool'
5
- import { RedirectHandler, DecoratorHandler } from './handlers'
6
-
7
- import BalancedPool from './balanced-pool'
8
- import Client from'./client'
9
- import buildConnector from'./connector'
10
- import errors from'./errors'
11
- import Agent from'./agent'
12
- import MockClient from'./mock-client'
13
- import MockPool from'./mock-pool'
14
- import MockAgent from'./mock-agent'
15
- import mockErrors from'./mock-errors'
16
- import ProxyAgent from'./proxy-agent'
17
- import EnvHttpProxyAgent from './env-http-proxy-agent'
18
- import RetryHandler from'./retry-handler'
19
- import RetryAgent from'./retry-agent'
20
- import { request, pipeline, stream, connect, upgrade } from './api'
21
- import interceptors from './interceptors'
22
-
23
- export * from './util'
24
- export * from './cookies'
25
- export * from './eventsource'
26
- export * from './fetch'
27
- export * from './file'
28
- export * from './filereader'
29
- export * from './formdata'
30
- export * from './diagnostics-channel'
31
- export * from './websocket'
32
- export * from './content-type'
33
- export * from './cache'
34
- export { Interceptable } from './mock-interceptor'
35
-
36
- export { Dispatcher, BalancedPool, Pool, Client, buildConnector, errors, Agent, request, stream, pipeline, connect, upgrade, setGlobalDispatcher, getGlobalDispatcher, setGlobalOrigin, getGlobalOrigin, interceptors, MockClient, MockPool, MockAgent, mockErrors, ProxyAgent, EnvHttpProxyAgent, RedirectHandler, DecoratorHandler, RetryHandler, RetryAgent }
37
- export default Undici
38
-
39
- declare namespace Undici {
40
- var Dispatcher: typeof import('./dispatcher').default
41
- var Pool: typeof import('./pool').default;
42
- var RedirectHandler: typeof import ('./handlers').RedirectHandler
43
- var DecoratorHandler: typeof import ('./handlers').DecoratorHandler
44
- var RetryHandler: typeof import ('./retry-handler').default
45
- var createRedirectInterceptor: typeof import ('./interceptors').default.createRedirectInterceptor
46
- var BalancedPool: typeof import('./balanced-pool').default;
47
- var Client: typeof import('./client').default;
48
- var buildConnector: typeof import('./connector').default;
49
- var errors: typeof import('./errors').default;
50
- var Agent: typeof import('./agent').default;
51
- var setGlobalDispatcher: typeof import('./global-dispatcher').setGlobalDispatcher;
52
- var getGlobalDispatcher: typeof import('./global-dispatcher').getGlobalDispatcher;
53
- var request: typeof import('./api').request;
54
- var stream: typeof import('./api').stream;
55
- var pipeline: typeof import('./api').pipeline;
56
- var connect: typeof import('./api').connect;
57
- var upgrade: typeof import('./api').upgrade;
58
- var MockClient: typeof import('./mock-client').default;
59
- var MockPool: typeof import('./mock-pool').default;
60
- var MockAgent: typeof import('./mock-agent').default;
61
- var mockErrors: typeof import('./mock-errors').default;
62
- var fetch: typeof import('./fetch').fetch;
63
- var Headers: typeof import('./fetch').Headers;
64
- var Response: typeof import('./fetch').Response;
65
- var Request: typeof import('./fetch').Request;
66
- var FormData: typeof import('./formdata').FormData;
67
- var File: typeof import('./file').File;
68
- var FileReader: typeof import('./filereader').FileReader;
69
- var caches: typeof import('./cache').caches;
70
- var interceptors: typeof import('./interceptors').default;
71
- }
@@ -1,17 +0,0 @@
1
- import Dispatcher from "./dispatcher";
2
- import RetryHandler from "./retry-handler";
3
-
4
- export default Interceptors;
5
-
6
- declare namespace Interceptors {
7
- export type DumpInterceptorOpts = { maxSize?: number }
8
- export type RetryInterceptorOpts = RetryHandler.RetryOptions
9
- export type RedirectInterceptorOpts = { maxRedirections?: number }
10
- export type ResponseErrorInterceptorOpts = { throwOnError: boolean }
11
-
12
- export function createRedirectInterceptor(opts: RedirectInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
13
- export function dump(opts?: DumpInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
14
- export function retry(opts?: RetryInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
15
- export function redirect(opts?: RedirectInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
16
- export function responseError(opts?: ResponseErrorInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
17
- }
@@ -1,50 +0,0 @@
1
- import Agent from './agent'
2
- import Dispatcher from './dispatcher'
3
- import { Interceptable, MockInterceptor } from './mock-interceptor'
4
- import MockDispatch = MockInterceptor.MockDispatch;
5
-
6
- export default MockAgent
7
-
8
- interface PendingInterceptor extends MockDispatch {
9
- origin: string;
10
- }
11
-
12
- /** A mocked Agent class that implements the Agent API. It allows one to intercept HTTP requests made through undici and return mocked responses instead. */
13
- declare class MockAgent<TMockAgentOptions extends MockAgent.Options = MockAgent.Options> extends Dispatcher {
14
- constructor(options?: MockAgent.Options)
15
- /** Creates and retrieves mock Dispatcher instances which can then be used to intercept HTTP requests. If the number of connections on the mock agent is set to 1, a MockClient instance is returned. Otherwise a MockPool instance is returned. */
16
- get<TInterceptable extends Interceptable>(origin: string): TInterceptable;
17
- get<TInterceptable extends Interceptable>(origin: RegExp): TInterceptable;
18
- get<TInterceptable extends Interceptable>(origin: ((origin: string) => boolean)): TInterceptable;
19
- /** Dispatches a mocked request. */
20
- dispatch(options: Agent.DispatchOptions, handler: Dispatcher.DispatchHandlers): boolean;
21
- /** Closes the mock agent and waits for registered mock pools and clients to also close before resolving. */
22
- close(): Promise<void>;
23
- /** Disables mocking in MockAgent. */
24
- deactivate(): void;
25
- /** Enables mocking in a MockAgent instance. When instantiated, a MockAgent is automatically activated. Therefore, this method is only effective after `MockAgent.deactivate` has been called. */
26
- activate(): void;
27
- /** Define host matchers so only matching requests that aren't intercepted by the mock dispatchers will be attempted. */
28
- enableNetConnect(): void;
29
- enableNetConnect(host: string): void;
30
- enableNetConnect(host: RegExp): void;
31
- enableNetConnect(host: ((host: string) => boolean)): void;
32
- /** Causes all requests to throw when requests are not matched in a MockAgent intercept. */
33
- disableNetConnect(): void;
34
- pendingInterceptors(): PendingInterceptor[];
35
- assertNoPendingInterceptors(options?: {
36
- pendingInterceptorsFormatter?: PendingInterceptorsFormatter;
37
- }): void;
38
- }
39
-
40
- interface PendingInterceptorsFormatter {
41
- format(pendingInterceptors: readonly PendingInterceptor[]): string;
42
- }
43
-
44
- declare namespace MockAgent {
45
- /** MockAgent options. */
46
- export interface Options extends Agent.Options {
47
- /** A custom agent to be encapsulated by the MockAgent. */
48
- agent?: Agent;
49
- }
50
- }
@@ -1,25 +0,0 @@
1
- import Client from './client'
2
- import Dispatcher from './dispatcher'
3
- import MockAgent from './mock-agent'
4
- import { MockInterceptor, Interceptable } from './mock-interceptor'
5
-
6
- export default MockClient
7
-
8
- /** MockClient extends the Client API and allows one to mock requests. */
9
- declare class MockClient extends Client implements Interceptable {
10
- constructor(origin: string, options: MockClient.Options);
11
- /** Intercepts any matching requests that use the same origin as this mock client. */
12
- intercept(options: MockInterceptor.Options): MockInterceptor;
13
- /** Dispatches a mocked request. */
14
- dispatch(options: Dispatcher.DispatchOptions, handlers: Dispatcher.DispatchHandlers): boolean;
15
- /** Closes the mock client and gracefully waits for enqueued requests to complete. */
16
- close(): Promise<void>;
17
- }
18
-
19
- declare namespace MockClient {
20
- /** MockClient options. */
21
- export interface Options extends Client.Options {
22
- /** The agent to associate this MockClient with. */
23
- agent: MockAgent;
24
- }
25
- }
@@ -1,12 +0,0 @@
1
- import Errors from './errors'
2
-
3
- export default MockErrors
4
-
5
- declare namespace MockErrors {
6
- /** The request does not match any registered mock dispatches. */
7
- export class MockNotMatchedError extends Errors.UndiciError {
8
- constructor(message?: string);
9
- name: 'MockNotMatchedError';
10
- code: 'UND_MOCK_ERR_MOCK_NOT_MATCHED';
11
- }
12
- }