blockmine 1.0.1 → 1.0.7

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 (516) hide show
  1. package/backend/cli.js +1 -1
  2. package/backend/package.json +13 -0
  3. package/backend/src/core/PluginManager.js +59 -44
  4. package/backend/src/server.js +6 -4
  5. package/frontend/dist/assets/{index-Dh-PcVh1.js → index-DjU4Tk7J.js} +226 -226
  6. package/frontend/dist/index.html +1 -1
  7. package/frontend/dist/monacoeditorwork/css.worker.bundle.js +77 -77
  8. package/frontend/dist/monacoeditorwork/editor.worker.bundle.js +76 -76
  9. package/frontend/dist/monacoeditorwork/html.worker.bundle.js +77 -77
  10. package/frontend/dist/monacoeditorwork/json.worker.bundle.js +77 -77
  11. package/frontend/dist/monacoeditorwork/ts.worker.bundle.js +77 -77
  12. package/frontend/package.json +65 -0
  13. package/image/1.png +0 -0
  14. package/image/2.png +0 -0
  15. package/image/3.png +0 -0
  16. package/image/logo.png +0 -0
  17. package/package.json +7 -20
  18. package/tailwind.config.js +0 -0
  19. package/vite.config.js +0 -0
  20. package/backend/.env +0 -7
  21. package/backend/node_modules/.bin/blockminejs +0 -16
  22. package/backend/node_modules/.bin/blockminejs.cmd +0 -17
  23. package/backend/node_modules/.bin/blockminejs.ps1 +0 -28
  24. package/backend/node_modules/.bin/nodemon +0 -16
  25. package/backend/node_modules/.bin/nodemon.cmd +0 -17
  26. package/backend/node_modules/.bin/nodemon.ps1 +0 -28
  27. package/backend/node_modules/.bin/nodetouch +0 -16
  28. package/backend/node_modules/.bin/nodetouch.cmd +0 -17
  29. package/backend/node_modules/.bin/nodetouch.ps1 +0 -28
  30. package/backend/node_modules/.bin/prisma +0 -16
  31. package/backend/node_modules/.bin/prisma.cmd +0 -17
  32. package/backend/node_modules/.bin/prisma.ps1 +0 -28
  33. package/backend/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine +0 -0
  34. package/backend/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine.gz.sha256 +0 -1
  35. package/backend/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine.sha256 +0 -1
  36. package/backend/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine +0 -0
  37. package/backend/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine.gz.sha256 +0 -1
  38. package/backend/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine.sha256 +0 -1
  39. package/backend/node_modules/.cache/prisma/master/81e4af48011447c3cc503a190e86995b66d2a28e/windows/libquery-engine +0 -0
  40. package/backend/node_modules/.cache/prisma/master/81e4af48011447c3cc503a190e86995b66d2a28e/windows/libquery-engine.gz.sha256 +0 -1
  41. package/backend/node_modules/.cache/prisma/master/81e4af48011447c3cc503a190e86995b66d2a28e/windows/libquery-engine.sha256 +0 -1
  42. package/backend/node_modules/.cache/prisma/master/81e4af48011447c3cc503a190e86995b66d2a28e/windows/schema-engine +0 -0
  43. package/backend/node_modules/.cache/prisma/master/81e4af48011447c3cc503a190e86995b66d2a28e/windows/schema-engine.gz.sha256 +0 -1
  44. package/backend/node_modules/.cache/prisma/master/81e4af48011447c3cc503a190e86995b66d2a28e/windows/schema-engine.sha256 +0 -1
  45. package/backend/node_modules/.package-lock.json +0 -2521
  46. package/backend/node_modules/.prisma/client/client.d.ts +0 -1
  47. package/backend/node_modules/.prisma/client/client.js +0 -4
  48. package/backend/node_modules/.prisma/client/default.d.ts +0 -1
  49. package/backend/node_modules/.prisma/client/default.js +0 -1
  50. package/backend/node_modules/.prisma/client/deno/edge.d.ts +0 -9
  51. package/backend/node_modules/.prisma/client/edge.d.ts +0 -1
  52. package/backend/node_modules/.prisma/client/edge.js +0 -263
  53. package/backend/node_modules/.prisma/client/index-browser.js +0 -258
  54. package/backend/node_modules/.prisma/client/index.d.ts +0 -15548
  55. package/backend/node_modules/.prisma/client/index.js +0 -286
  56. package/backend/node_modules/.prisma/client/package.json +0 -97
  57. package/backend/node_modules/.prisma/client/query_engine-windows.dll.node +0 -0
  58. package/backend/node_modules/.prisma/client/query_engine-windows.dll.node.tmp14264 +0 -0
  59. package/backend/node_modules/.prisma/client/query_engine-windows.dll.node.tmp18496 +0 -0
  60. package/backend/node_modules/.prisma/client/query_engine-windows.dll.node.tmp24408 +0 -0
  61. package/backend/node_modules/.prisma/client/schema.prisma +0 -136
  62. package/backend/node_modules/.prisma/client/wasm.d.ts +0 -1
  63. package/backend/node_modules/.prisma/client/wasm.js +0 -258
  64. package/backend/node_modules/@prisma/debug/LICENSE +0 -201
  65. package/backend/node_modules/@prisma/debug/README.md +0 -29
  66. package/backend/node_modules/@prisma/debug/dist/index.d.ts +0 -35
  67. package/backend/node_modules/@prisma/debug/dist/index.js +0 -236
  68. package/backend/node_modules/@prisma/debug/dist/util.d.ts +0 -2
  69. package/backend/node_modules/@prisma/debug/dist/util.js +0 -74
  70. package/backend/node_modules/@prisma/debug/package.json +0 -37
  71. package/backend/node_modules/@prisma/engines/LICENSE +0 -201
  72. package/backend/node_modules/@prisma/engines/README.md +0 -13
  73. package/backend/node_modules/@prisma/engines/dist/index.d.ts +0 -18
  74. package/backend/node_modules/@prisma/engines/dist/index.js +0 -113
  75. package/backend/node_modules/@prisma/engines/dist/scripts/localinstall.d.ts +0 -1
  76. package/backend/node_modules/@prisma/engines/dist/scripts/localinstall.js +0 -2048
  77. package/backend/node_modules/@prisma/engines/dist/scripts/postinstall.d.ts +0 -1
  78. package/backend/node_modules/@prisma/engines/dist/scripts/postinstall.js +0 -128
  79. package/backend/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine +0 -0
  80. package/backend/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine.gz.sha256 +0 -1
  81. package/backend/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine.sha256 +0 -1
  82. package/backend/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine +0 -0
  83. package/backend/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine.gz.sha256 +0 -1
  84. package/backend/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine.sha256 +0 -1
  85. package/backend/node_modules/@prisma/engines/package.json +0 -41
  86. package/backend/node_modules/@prisma/engines/query_engine-windows.dll.node +0 -0
  87. package/backend/node_modules/@prisma/engines/schema-engine-windows.exe +0 -0
  88. package/backend/node_modules/@prisma/engines/scripts/postinstall.js +0 -28
  89. package/backend/node_modules/@prisma/engines-version/LICENSE +0 -201
  90. package/backend/node_modules/@prisma/engines-version/README.md +0 -8
  91. package/backend/node_modules/@prisma/engines-version/index.d.ts +0 -1
  92. package/backend/node_modules/@prisma/engines-version/index.js +0 -5
  93. package/backend/node_modules/@prisma/engines-version/package.json +0 -27
  94. package/backend/node_modules/@prisma/fetch-engine/LICENSE +0 -201
  95. package/backend/node_modules/@prisma/fetch-engine/README.md +0 -8
  96. package/backend/node_modules/@prisma/fetch-engine/dist/BinaryType.d.ts +0 -5
  97. package/backend/node_modules/@prisma/fetch-engine/dist/BinaryType.js +0 -25
  98. package/backend/node_modules/@prisma/fetch-engine/dist/chmodPlusX.d.ts +0 -1
  99. package/backend/node_modules/@prisma/fetch-engine/dist/chmodPlusX.js +0 -25
  100. package/backend/node_modules/@prisma/fetch-engine/dist/chunk-2BCLJS3M.js +0 -2385
  101. package/backend/node_modules/@prisma/fetch-engine/dist/chunk-4LX3XBNY.js +0 -161
  102. package/backend/node_modules/@prisma/fetch-engine/dist/chunk-AH6QHEOA.js +0 -66
  103. package/backend/node_modules/@prisma/fetch-engine/dist/chunk-CWGQAQ3T.js +0 -49
  104. package/backend/node_modules/@prisma/fetch-engine/dist/chunk-FQ2BOR66.js +0 -2457
  105. package/backend/node_modules/@prisma/fetch-engine/dist/chunk-KDPLGCY6.js +0 -1404
  106. package/backend/node_modules/@prisma/fetch-engine/dist/chunk-KJ74H3SQ.js +0 -2385
  107. package/backend/node_modules/@prisma/fetch-engine/dist/chunk-MX3HXAU2.js +0 -44
  108. package/backend/node_modules/@prisma/fetch-engine/dist/chunk-PXQVM7NP.js +0 -159
  109. package/backend/node_modules/@prisma/fetch-engine/dist/chunk-QLWYUM7O.js +0 -8153
  110. package/backend/node_modules/@prisma/fetch-engine/dist/chunk-QSTZGX47.js +0 -70
  111. package/backend/node_modules/@prisma/fetch-engine/dist/chunk-RGVHWUUH.js +0 -2786
  112. package/backend/node_modules/@prisma/fetch-engine/dist/chunk-VTJS2JJN.js +0 -4232
  113. package/backend/node_modules/@prisma/fetch-engine/dist/chunk-X37PZICB.js +0 -29
  114. package/backend/node_modules/@prisma/fetch-engine/dist/cleanupCache.d.ts +0 -1
  115. package/backend/node_modules/@prisma/fetch-engine/dist/cleanupCache.js +0 -28
  116. package/backend/node_modules/@prisma/fetch-engine/dist/download.d.ts +0 -27
  117. package/backend/node_modules/@prisma/fetch-engine/dist/download.js +0 -41
  118. package/backend/node_modules/@prisma/fetch-engine/dist/downloadZip.d.ts +0 -6
  119. package/backend/node_modules/@prisma/fetch-engine/dist/downloadZip.js +0 -30
  120. package/backend/node_modules/@prisma/fetch-engine/dist/env.d.ts +0 -14
  121. package/backend/node_modules/@prisma/fetch-engine/dist/env.js +0 -29
  122. package/backend/node_modules/@prisma/fetch-engine/dist/getHash.d.ts +0 -1
  123. package/backend/node_modules/@prisma/fetch-engine/dist/getHash.js +0 -25
  124. package/backend/node_modules/@prisma/fetch-engine/dist/getProxyAgent.d.ts +0 -3
  125. package/backend/node_modules/@prisma/fetch-engine/dist/getProxyAgent.js +0 -25
  126. package/backend/node_modules/@prisma/fetch-engine/dist/index.d.ts +0 -5
  127. package/backend/node_modules/@prisma/fetch-engine/dist/index.js +0 -49
  128. package/backend/node_modules/@prisma/fetch-engine/dist/log.d.ts +0 -2
  129. package/backend/node_modules/@prisma/fetch-engine/dist/log.js +0 -25
  130. package/backend/node_modules/@prisma/fetch-engine/dist/multipart-parser-47FFAP42.js +0 -371
  131. package/backend/node_modules/@prisma/fetch-engine/dist/utils.d.ts +0 -11
  132. package/backend/node_modules/@prisma/fetch-engine/dist/utils.js +0 -29
  133. package/backend/node_modules/@prisma/fetch-engine/package.json +0 -59
  134. package/backend/node_modules/@prisma/get-platform/LICENSE +0 -201
  135. package/backend/node_modules/@prisma/get-platform/README.md +0 -16
  136. package/backend/node_modules/@prisma/get-platform/dist/assertNodeAPISupported.d.ts +0 -4
  137. package/backend/node_modules/@prisma/get-platform/dist/assertNodeAPISupported.js +0 -25
  138. package/backend/node_modules/@prisma/get-platform/dist/binaryTargets.d.ts +0 -2
  139. package/backend/node_modules/@prisma/get-platform/dist/binaryTargets.js +0 -26
  140. package/backend/node_modules/@prisma/get-platform/dist/chunk-2ESYSVXG.js +0 -67
  141. package/backend/node_modules/@prisma/get-platform/dist/chunk-2U36ISZO.js +0 -34
  142. package/backend/node_modules/@prisma/get-platform/dist/chunk-6HZWON4S.js +0 -1
  143. package/backend/node_modules/@prisma/get-platform/dist/chunk-7MLUNQIZ.js +0 -62
  144. package/backend/node_modules/@prisma/get-platform/dist/chunk-B23KD6U3.js +0 -53
  145. package/backend/node_modules/@prisma/get-platform/dist/chunk-D7S5FGQN.js +0 -367
  146. package/backend/node_modules/@prisma/get-platform/dist/chunk-FWMN4WME.js +0 -41
  147. package/backend/node_modules/@prisma/get-platform/dist/chunk-M5NKJZ76.js +0 -14956
  148. package/backend/node_modules/@prisma/get-platform/dist/chunk-O5EOXX3N.js +0 -43
  149. package/backend/node_modules/@prisma/get-platform/dist/chunk-YDM7ULQH.js +0 -580
  150. package/backend/node_modules/@prisma/get-platform/dist/chunk-YVXCXD3A.js +0 -70
  151. package/backend/node_modules/@prisma/get-platform/dist/getNodeAPIName.d.ts +0 -8
  152. package/backend/node_modules/@prisma/get-platform/dist/getNodeAPIName.js +0 -25
  153. package/backend/node_modules/@prisma/get-platform/dist/getPlatform.d.ts +0 -105
  154. package/backend/node_modules/@prisma/get-platform/dist/getPlatform.js +0 -38
  155. package/backend/node_modules/@prisma/get-platform/dist/index.d.ts +0 -7
  156. package/backend/node_modules/@prisma/get-platform/dist/index.js +0 -43
  157. package/backend/node_modules/@prisma/get-platform/dist/link.d.ts +0 -1
  158. package/backend/node_modules/@prisma/get-platform/dist/link.js +0 -26
  159. package/backend/node_modules/@prisma/get-platform/dist/logger.d.ts +0 -8
  160. package/backend/node_modules/@prisma/get-platform/dist/logger.js +0 -29
  161. package/backend/node_modules/@prisma/get-platform/dist/test-utils/binaryTargetRegex.d.ts +0 -8
  162. package/backend/node_modules/@prisma/get-platform/dist/test-utils/binaryTargetRegex.js +0 -27
  163. package/backend/node_modules/@prisma/get-platform/dist/test-utils/index.d.ts +0 -1
  164. package/backend/node_modules/@prisma/get-platform/dist/test-utils/index.js +0 -28
  165. package/backend/node_modules/@prisma/get-platform/dist/test-utils/jestContext.d.ts +0 -108
  166. package/backend/node_modules/@prisma/get-platform/dist/test-utils/jestContext.js +0 -27
  167. package/backend/node_modules/@prisma/get-platform/dist/test-utils/jestSnapshotSerializer.js +0 -205
  168. package/backend/node_modules/@prisma/get-platform/package.json +0 -49
  169. package/backend/node_modules/anymatch/LICENSE +0 -15
  170. package/backend/node_modules/anymatch/README.md +0 -87
  171. package/backend/node_modules/anymatch/index.d.ts +0 -20
  172. package/backend/node_modules/anymatch/index.js +0 -104
  173. package/backend/node_modules/anymatch/package.json +0 -48
  174. package/backend/node_modules/binary-extensions/binary-extensions.json +0 -263
  175. package/backend/node_modules/binary-extensions/binary-extensions.json.d.ts +0 -3
  176. package/backend/node_modules/binary-extensions/index.d.ts +0 -14
  177. package/backend/node_modules/binary-extensions/index.js +0 -1
  178. package/backend/node_modules/binary-extensions/license +0 -10
  179. package/backend/node_modules/binary-extensions/package.json +0 -40
  180. package/backend/node_modules/binary-extensions/readme.md +0 -25
  181. package/backend/node_modules/brace-expansion/LICENSE +0 -21
  182. package/backend/node_modules/brace-expansion/README.md +0 -129
  183. package/backend/node_modules/brace-expansion/index.js +0 -201
  184. package/backend/node_modules/brace-expansion/package.json +0 -47
  185. package/backend/node_modules/braces/LICENSE +0 -21
  186. package/backend/node_modules/braces/README.md +0 -586
  187. package/backend/node_modules/braces/index.js +0 -170
  188. package/backend/node_modules/braces/lib/compile.js +0 -60
  189. package/backend/node_modules/braces/lib/constants.js +0 -57
  190. package/backend/node_modules/braces/lib/expand.js +0 -113
  191. package/backend/node_modules/braces/lib/parse.js +0 -331
  192. package/backend/node_modules/braces/lib/stringify.js +0 -32
  193. package/backend/node_modules/braces/lib/utils.js +0 -122
  194. package/backend/node_modules/braces/package.json +0 -77
  195. package/backend/node_modules/chokidar/LICENSE +0 -21
  196. package/backend/node_modules/chokidar/README.md +0 -308
  197. package/backend/node_modules/chokidar/index.js +0 -973
  198. package/backend/node_modules/chokidar/lib/constants.js +0 -66
  199. package/backend/node_modules/chokidar/lib/fsevents-handler.js +0 -526
  200. package/backend/node_modules/chokidar/lib/nodefs-handler.js +0 -654
  201. package/backend/node_modules/chokidar/package.json +0 -70
  202. package/backend/node_modules/chokidar/types/index.d.ts +0 -192
  203. package/backend/node_modules/concat-map/.travis.yml +0 -4
  204. package/backend/node_modules/concat-map/LICENSE +0 -18
  205. package/backend/node_modules/concat-map/README.markdown +0 -62
  206. package/backend/node_modules/concat-map/example/map.js +0 -6
  207. package/backend/node_modules/concat-map/index.js +0 -13
  208. package/backend/node_modules/concat-map/package.json +0 -43
  209. package/backend/node_modules/concat-map/test/map.js +0 -39
  210. package/backend/node_modules/debug/LICENSE +0 -20
  211. package/backend/node_modules/debug/README.md +0 -481
  212. package/backend/node_modules/debug/package.json +0 -64
  213. package/backend/node_modules/debug/src/browser.js +0 -272
  214. package/backend/node_modules/debug/src/common.js +0 -292
  215. package/backend/node_modules/debug/src/index.js +0 -10
  216. package/backend/node_modules/debug/src/node.js +0 -263
  217. package/backend/node_modules/fill-range/LICENSE +0 -21
  218. package/backend/node_modules/fill-range/README.md +0 -237
  219. package/backend/node_modules/fill-range/index.js +0 -248
  220. package/backend/node_modules/fill-range/package.json +0 -74
  221. package/backend/node_modules/glob-parent/CHANGELOG.md +0 -110
  222. package/backend/node_modules/glob-parent/LICENSE +0 -15
  223. package/backend/node_modules/glob-parent/README.md +0 -137
  224. package/backend/node_modules/glob-parent/index.js +0 -42
  225. package/backend/node_modules/glob-parent/package.json +0 -48
  226. package/backend/node_modules/has-flag/index.js +0 -8
  227. package/backend/node_modules/has-flag/license +0 -9
  228. package/backend/node_modules/has-flag/package.json +0 -44
  229. package/backend/node_modules/has-flag/readme.md +0 -70
  230. package/backend/node_modules/ignore-by-default/LICENSE +0 -14
  231. package/backend/node_modules/ignore-by-default/README.md +0 -26
  232. package/backend/node_modules/ignore-by-default/index.js +0 -12
  233. package/backend/node_modules/ignore-by-default/package.json +0 -34
  234. package/backend/node_modules/is-binary-path/index.d.ts +0 -17
  235. package/backend/node_modules/is-binary-path/index.js +0 -7
  236. package/backend/node_modules/is-binary-path/license +0 -9
  237. package/backend/node_modules/is-binary-path/package.json +0 -40
  238. package/backend/node_modules/is-binary-path/readme.md +0 -34
  239. package/backend/node_modules/is-extglob/LICENSE +0 -21
  240. package/backend/node_modules/is-extglob/README.md +0 -107
  241. package/backend/node_modules/is-extglob/index.js +0 -20
  242. package/backend/node_modules/is-extglob/package.json +0 -69
  243. package/backend/node_modules/is-glob/LICENSE +0 -21
  244. package/backend/node_modules/is-glob/README.md +0 -206
  245. package/backend/node_modules/is-glob/index.js +0 -150
  246. package/backend/node_modules/is-glob/package.json +0 -81
  247. package/backend/node_modules/is-number/LICENSE +0 -21
  248. package/backend/node_modules/is-number/README.md +0 -187
  249. package/backend/node_modules/is-number/index.js +0 -18
  250. package/backend/node_modules/is-number/package.json +0 -82
  251. package/backend/node_modules/minimatch/LICENSE +0 -15
  252. package/backend/node_modules/minimatch/README.md +0 -230
  253. package/backend/node_modules/minimatch/minimatch.js +0 -947
  254. package/backend/node_modules/minimatch/package.json +0 -33
  255. package/backend/node_modules/ms/index.js +0 -162
  256. package/backend/node_modules/ms/license.md +0 -21
  257. package/backend/node_modules/ms/package.json +0 -38
  258. package/backend/node_modules/ms/readme.md +0 -59
  259. package/backend/node_modules/nodemon/.prettierrc.json +0 -3
  260. package/backend/node_modules/nodemon/LICENSE +0 -21
  261. package/backend/node_modules/nodemon/README.md +0 -441
  262. package/backend/node_modules/nodemon/bin/nodemon.js +0 -16
  263. package/backend/node_modules/nodemon/bin/windows-kill.exe +0 -0
  264. package/backend/node_modules/nodemon/doc/cli/authors.txt +0 -8
  265. package/backend/node_modules/nodemon/doc/cli/config.txt +0 -44
  266. package/backend/node_modules/nodemon/doc/cli/help.txt +0 -29
  267. package/backend/node_modules/nodemon/doc/cli/logo.txt +0 -20
  268. package/backend/node_modules/nodemon/doc/cli/options.txt +0 -36
  269. package/backend/node_modules/nodemon/doc/cli/topics.txt +0 -8
  270. package/backend/node_modules/nodemon/doc/cli/usage.txt +0 -3
  271. package/backend/node_modules/nodemon/doc/cli/whoami.txt +0 -9
  272. package/backend/node_modules/nodemon/index.d.ts +0 -125
  273. package/backend/node_modules/nodemon/jsconfig.json +0 -7
  274. package/backend/node_modules/nodemon/lib/cli/index.js +0 -49
  275. package/backend/node_modules/nodemon/lib/cli/parse.js +0 -230
  276. package/backend/node_modules/nodemon/lib/config/command.js +0 -43
  277. package/backend/node_modules/nodemon/lib/config/defaults.js +0 -34
  278. package/backend/node_modules/nodemon/lib/config/exec.js +0 -234
  279. package/backend/node_modules/nodemon/lib/config/index.js +0 -93
  280. package/backend/node_modules/nodemon/lib/config/load.js +0 -225
  281. package/backend/node_modules/nodemon/lib/help/index.js +0 -27
  282. package/backend/node_modules/nodemon/lib/index.js +0 -1
  283. package/backend/node_modules/nodemon/lib/monitor/index.js +0 -4
  284. package/backend/node_modules/nodemon/lib/monitor/match.js +0 -287
  285. package/backend/node_modules/nodemon/lib/monitor/run.js +0 -562
  286. package/backend/node_modules/nodemon/lib/monitor/signals.js +0 -34
  287. package/backend/node_modules/nodemon/lib/monitor/watch.js +0 -244
  288. package/backend/node_modules/nodemon/lib/nodemon.js +0 -317
  289. package/backend/node_modules/nodemon/lib/rules/add.js +0 -89
  290. package/backend/node_modules/nodemon/lib/rules/index.js +0 -53
  291. package/backend/node_modules/nodemon/lib/rules/parse.js +0 -43
  292. package/backend/node_modules/nodemon/lib/spawn.js +0 -74
  293. package/backend/node_modules/nodemon/lib/utils/bus.js +0 -44
  294. package/backend/node_modules/nodemon/lib/utils/clone.js +0 -40
  295. package/backend/node_modules/nodemon/lib/utils/colour.js +0 -26
  296. package/backend/node_modules/nodemon/lib/utils/index.js +0 -103
  297. package/backend/node_modules/nodemon/lib/utils/log.js +0 -82
  298. package/backend/node_modules/nodemon/lib/utils/merge.js +0 -47
  299. package/backend/node_modules/nodemon/lib/version.js +0 -100
  300. package/backend/node_modules/nodemon/package.json +0 -75
  301. package/backend/node_modules/picomatch/CHANGELOG.md +0 -136
  302. package/backend/node_modules/picomatch/LICENSE +0 -21
  303. package/backend/node_modules/picomatch/README.md +0 -708
  304. package/backend/node_modules/picomatch/index.js +0 -3
  305. package/backend/node_modules/picomatch/lib/constants.js +0 -179
  306. package/backend/node_modules/picomatch/lib/parse.js +0 -1091
  307. package/backend/node_modules/picomatch/lib/picomatch.js +0 -342
  308. package/backend/node_modules/picomatch/lib/scan.js +0 -391
  309. package/backend/node_modules/picomatch/lib/utils.js +0 -64
  310. package/backend/node_modules/picomatch/package.json +0 -81
  311. package/backend/node_modules/prisma/LICENSE +0 -201
  312. package/backend/node_modules/prisma/README.md +0 -84
  313. package/backend/node_modules/prisma/build/child.js +0 -82915
  314. package/backend/node_modules/prisma/build/index.js +0 -2591
  315. package/backend/node_modules/prisma/build/prisma_schema_build_bg.wasm +0 -0
  316. package/backend/node_modules/prisma/build/public/assets/alert.60ea9f84.svg +0 -5
  317. package/backend/node_modules/prisma/build/public/assets/array.1a36c222.svg +0 -4
  318. package/backend/node_modules/prisma/build/public/assets/boolean.9188b434.svg +0 -4
  319. package/backend/node_modules/prisma/build/public/assets/chevron-down.24f76e3c.svg +0 -3
  320. package/backend/node_modules/prisma/build/public/assets/cross.c2610cf5.svg +0 -11
  321. package/backend/node_modules/prisma/build/public/assets/datetime.a3bf710a.svg +0 -4
  322. package/backend/node_modules/prisma/build/public/assets/download.8d34b65a.svg +0 -4
  323. package/backend/node_modules/prisma/build/public/assets/ellipsis.a8c5a34a.svg +0 -10
  324. package/backend/node_modules/prisma/build/public/assets/enum.7ec0b64c.svg +0 -6
  325. package/backend/node_modules/prisma/build/public/assets/folder.d77b8eaf.svg +0 -6
  326. package/backend/node_modules/prisma/build/public/assets/hamburger.5fdadeac.svg +0 -4
  327. package/backend/node_modules/prisma/build/public/assets/index.js +0 -1
  328. package/backend/node_modules/prisma/build/public/assets/inter-all-400-normal.4c1f8a0d.woff +0 -0
  329. package/backend/node_modules/prisma/build/public/assets/inter-all-600-normal.d0a7c8a9.woff +0 -0
  330. package/backend/node_modules/prisma/build/public/assets/inter-cyrillic-400-normal.ac97a49e.woff2 +0 -0
  331. package/backend/node_modules/prisma/build/public/assets/inter-cyrillic-600-normal.2c917f10.woff2 +0 -0
  332. package/backend/node_modules/prisma/build/public/assets/inter-cyrillic-ext-400-normal.f21a6a97.woff2 +0 -0
  333. package/backend/node_modules/prisma/build/public/assets/inter-cyrillic-ext-600-normal.bb31f197.woff2 +0 -0
  334. package/backend/node_modules/prisma/build/public/assets/inter-greek-400-normal.e9163df8.woff2 +0 -0
  335. package/backend/node_modules/prisma/build/public/assets/inter-greek-600-normal.e644d70f.woff2 +0 -0
  336. package/backend/node_modules/prisma/build/public/assets/inter-greek-ext-400-normal.43addcc8.woff2 +0 -0
  337. package/backend/node_modules/prisma/build/public/assets/inter-greek-ext-600-normal.7f437016.woff2 +0 -0
  338. package/backend/node_modules/prisma/build/public/assets/inter-latin-400-normal.27ae72da.woff2 +0 -0
  339. package/backend/node_modules/prisma/build/public/assets/inter-latin-600-normal.87d718a2.woff2 +0 -0
  340. package/backend/node_modules/prisma/build/public/assets/inter-latin-ext-400-normal.5b02c69a.woff2 +0 -0
  341. package/backend/node_modules/prisma/build/public/assets/inter-latin-ext-600-normal.88feb9e4.woff2 +0 -0
  342. package/backend/node_modules/prisma/build/public/assets/inter-vietnamese-600-normal.8185dacd.woff2 +0 -0
  343. package/backend/node_modules/prisma/build/public/assets/jetbrains-mono-all-400-normal.f86807b7.woff +0 -0
  344. package/backend/node_modules/prisma/build/public/assets/jetbrains-mono-cyrillic-400-normal.1ae57fe2.woff2 +0 -0
  345. package/backend/node_modules/prisma/build/public/assets/jetbrains-mono-latin-400-normal.80a5dc9e.woff2 +0 -0
  346. package/backend/node_modules/prisma/build/public/assets/jetbrains-mono-latin-ext-400-normal.6315c53c.woff2 +0 -0
  347. package/backend/node_modules/prisma/build/public/assets/logotype.a960b169.svg +0 -4
  348. package/backend/node_modules/prisma/build/public/assets/number.85ddf96b.svg +0 -7
  349. package/backend/node_modules/prisma/build/public/assets/object.0ba944a6.svg +0 -5
  350. package/backend/node_modules/prisma/build/public/assets/play.8811691e.svg +0 -6
  351. package/backend/node_modules/prisma/build/public/assets/plus.8fbf7ad3.svg +0 -4
  352. package/backend/node_modules/prisma/build/public/assets/refresh.d5448ccc.svg +0 -4
  353. package/backend/node_modules/prisma/build/public/assets/search.2ed766ce.svg +0 -7
  354. package/backend/node_modules/prisma/build/public/assets/settings.5ad25af2.svg +0 -8
  355. package/backend/node_modules/prisma/build/public/assets/string.ea615a24.svg +0 -4
  356. package/backend/node_modules/prisma/build/public/assets/tick-indeterminate.aec8a44d.svg +0 -3
  357. package/backend/node_modules/prisma/build/public/assets/tick.8cbb6a93.svg +0 -4
  358. package/backend/node_modules/prisma/build/public/assets/vendor.js +0 -385
  359. package/backend/node_modules/prisma/build/public/favicon.svg +0 -5
  360. package/backend/node_modules/prisma/build/public/http/databrowser.js +0 -1
  361. package/backend/node_modules/prisma/build/public/http/splash.js +0 -1
  362. package/backend/node_modules/prisma/build/public/icon-1024.png +0 -0
  363. package/backend/node_modules/prisma/build/public/index.css +0 -1
  364. package/backend/node_modules/prisma/build/public/pages/http/databrowser.html +0 -21
  365. package/backend/node_modules/prisma/build/public/pages/http/splash.html +0 -21
  366. package/backend/node_modules/prisma/build/xdg-open +0 -1066
  367. package/backend/node_modules/prisma/package.json +0 -136
  368. package/backend/node_modules/prisma/preinstall/index.js +0 -7
  369. package/backend/node_modules/prisma/prisma-client/README.md +0 -27
  370. package/backend/node_modules/prisma/prisma-client/default.d.ts +0 -1
  371. package/backend/node_modules/prisma/prisma-client/default.js +0 -3
  372. package/backend/node_modules/prisma/prisma-client/edge.d.ts +0 -1
  373. package/backend/node_modules/prisma/prisma-client/edge.js +0 -4
  374. package/backend/node_modules/prisma/prisma-client/extension.d.ts +0 -1
  375. package/backend/node_modules/prisma/prisma-client/extension.js +0 -4
  376. package/backend/node_modules/prisma/prisma-client/generator-build/index.js +0 -10351
  377. package/backend/node_modules/prisma/prisma-client/index-browser.js +0 -3
  378. package/backend/node_modules/prisma/prisma-client/index.d.ts +0 -1
  379. package/backend/node_modules/prisma/prisma-client/index.js +0 -4
  380. package/backend/node_modules/prisma/prisma-client/package.json +0 -281
  381. package/backend/node_modules/prisma/prisma-client/react-native.d.ts +0 -1
  382. package/backend/node_modules/prisma/prisma-client/react-native.js +0 -3
  383. package/backend/node_modules/prisma/prisma-client/runtime/binary.d.ts +0 -1
  384. package/backend/node_modules/prisma/prisma-client/runtime/binary.js +0 -210
  385. package/backend/node_modules/prisma/prisma-client/runtime/edge-esm.js +0 -31
  386. package/backend/node_modules/prisma/prisma-client/runtime/edge.js +0 -31
  387. package/backend/node_modules/prisma/prisma-client/runtime/index-browser.d.ts +0 -365
  388. package/backend/node_modules/prisma/prisma-client/runtime/index-browser.js +0 -13
  389. package/backend/node_modules/prisma/prisma-client/runtime/library.d.ts +0 -3403
  390. package/backend/node_modules/prisma/prisma-client/runtime/library.js +0 -143
  391. package/backend/node_modules/prisma/prisma-client/runtime/query_engine_bg.mysql.js +0 -2
  392. package/backend/node_modules/prisma/prisma-client/runtime/query_engine_bg.postgresql.js +0 -2
  393. package/backend/node_modules/prisma/prisma-client/runtime/query_engine_bg.sqlite.js +0 -2
  394. package/backend/node_modules/prisma/prisma-client/runtime/react-native.d.ts +0 -3403
  395. package/backend/node_modules/prisma/prisma-client/runtime/react-native.js +0 -80
  396. package/backend/node_modules/prisma/prisma-client/scripts/colors.js +0 -176
  397. package/backend/node_modules/prisma/prisma-client/scripts/default-deno-edge.ts +0 -9
  398. package/backend/node_modules/prisma/prisma-client/scripts/default-index.d.ts +0 -110
  399. package/backend/node_modules/prisma/prisma-client/scripts/default-index.js +0 -65
  400. package/backend/node_modules/prisma/prisma-client/scripts/postinstall.d.ts +0 -5
  401. package/backend/node_modules/prisma/prisma-client/scripts/postinstall.js +0 -410
  402. package/backend/node_modules/prisma/prisma-client/sql.d.ts +0 -1
  403. package/backend/node_modules/prisma/prisma-client/sql.js +0 -4
  404. package/backend/node_modules/prisma/prisma-client/sql.mjs +0 -1
  405. package/backend/node_modules/prisma/query_engine-windows.dll.node +0 -0
  406. package/backend/node_modules/prisma/scripts/preinstall-entry.js +0 -10
  407. package/backend/node_modules/pstree.remy/.travis.yml +0 -8
  408. package/backend/node_modules/pstree.remy/LICENSE +0 -7
  409. package/backend/node_modules/pstree.remy/README.md +0 -26
  410. package/backend/node_modules/pstree.remy/lib/index.js +0 -37
  411. package/backend/node_modules/pstree.remy/lib/tree.js +0 -37
  412. package/backend/node_modules/pstree.remy/lib/utils.js +0 -53
  413. package/backend/node_modules/pstree.remy/package.json +0 -33
  414. package/backend/node_modules/pstree.remy/tests/fixtures/index.js +0 -13
  415. package/backend/node_modules/pstree.remy/tests/fixtures/out1 +0 -10
  416. package/backend/node_modules/pstree.remy/tests/fixtures/out2 +0 -29
  417. package/backend/node_modules/pstree.remy/tests/index.test.js +0 -51
  418. package/backend/node_modules/readdirp/LICENSE +0 -21
  419. package/backend/node_modules/readdirp/README.md +0 -122
  420. package/backend/node_modules/readdirp/index.d.ts +0 -43
  421. package/backend/node_modules/readdirp/index.js +0 -287
  422. package/backend/node_modules/readdirp/package.json +0 -122
  423. package/backend/node_modules/simple-update-notifier/LICENSE +0 -21
  424. package/backend/node_modules/simple-update-notifier/README.md +0 -82
  425. package/backend/node_modules/simple-update-notifier/build/index.d.ts +0 -13
  426. package/backend/node_modules/simple-update-notifier/build/index.js +0 -210
  427. package/backend/node_modules/simple-update-notifier/package.json +0 -100
  428. package/backend/node_modules/simple-update-notifier/src/borderedText.ts +0 -12
  429. package/backend/node_modules/simple-update-notifier/src/cache.spec.ts +0 -17
  430. package/backend/node_modules/simple-update-notifier/src/cache.ts +0 -44
  431. package/backend/node_modules/simple-update-notifier/src/getDistVersion.spec.ts +0 -35
  432. package/backend/node_modules/simple-update-notifier/src/getDistVersion.ts +0 -29
  433. package/backend/node_modules/simple-update-notifier/src/hasNewVersion.spec.ts +0 -82
  434. package/backend/node_modules/simple-update-notifier/src/hasNewVersion.ts +0 -40
  435. package/backend/node_modules/simple-update-notifier/src/index.spec.ts +0 -27
  436. package/backend/node_modules/simple-update-notifier/src/index.ts +0 -34
  437. package/backend/node_modules/simple-update-notifier/src/isNpmOrYarn.ts +0 -12
  438. package/backend/node_modules/simple-update-notifier/src/types.ts +0 -8
  439. package/backend/node_modules/supports-color/browser.js +0 -5
  440. package/backend/node_modules/supports-color/index.js +0 -131
  441. package/backend/node_modules/supports-color/license +0 -9
  442. package/backend/node_modules/supports-color/package.json +0 -53
  443. package/backend/node_modules/supports-color/readme.md +0 -66
  444. package/backend/node_modules/to-regex-range/LICENSE +0 -21
  445. package/backend/node_modules/to-regex-range/README.md +0 -305
  446. package/backend/node_modules/to-regex-range/index.js +0 -288
  447. package/backend/node_modules/to-regex-range/package.json +0 -88
  448. package/backend/node_modules/touch/LICENSE +0 -15
  449. package/backend/node_modules/touch/README.md +0 -52
  450. package/backend/node_modules/touch/bin/nodetouch.js +0 -112
  451. package/backend/node_modules/touch/index.js +0 -224
  452. package/backend/node_modules/touch/package.json +0 -25
  453. package/backend/node_modules/undefsafe/.github/workflows/release.yml +0 -25
  454. package/backend/node_modules/undefsafe/.jscsrc +0 -13
  455. package/backend/node_modules/undefsafe/.jshintrc +0 -16
  456. package/backend/node_modules/undefsafe/.travis.yml +0 -18
  457. package/backend/node_modules/undefsafe/LICENSE +0 -22
  458. package/backend/node_modules/undefsafe/README.md +0 -63
  459. package/backend/node_modules/undefsafe/example.js +0 -14
  460. package/backend/node_modules/undefsafe/lib/undefsafe.js +0 -125
  461. package/backend/node_modules/undefsafe/package.json +0 -34
  462. package/backend/prisma/dev.db +0 -0
  463. package/backend/storage/plugins/bot_1/anti-tp-keksik/index.js +0 -59
  464. package/backend/storage/plugins/bot_1/anti-tp-keksik/package.json +0 -23
  465. package/backend/storage/plugins/bot_1/auth-keksik-servers/index.js +0 -66
  466. package/backend/storage/plugins/bot_1/auth-keksik-servers/package.json +0 -20
  467. package/backend/storage/plugins/bot_1/clan-events-keksik/README.md +0 -81
  468. package/backend/storage/plugins/bot_1/clan-events-keksik/index.js +0 -46
  469. package/backend/storage/plugins/bot_1/clan-events-keksik/package.json +0 -14
  470. package/backend/storage/plugins/bot_1/clan-role-manager/README.md +0 -64
  471. package/backend/storage/plugins/bot_1/clan-role-manager/index.js +0 -98
  472. package/backend/storage/plugins/bot_1/clan-role-manager/package.json +0 -13
  473. package/backend/storage/plugins/bot_1/clan-welcome/index.js +0 -32
  474. package/backend/storage/plugins/bot_1/clan-welcome/package.json +0 -22
  475. package/backend/storage/plugins/bot_1/parser-keksik/LICENSE.md +0 -12
  476. package/backend/storage/plugins/bot_1/parser-keksik/README.md +0 -65
  477. package/backend/storage/plugins/bot_1/parser-keksik/index.js +0 -135
  478. package/backend/storage/plugins/bot_1/parser-keksik/package.json +0 -40
  479. package/backend/storage/plugins/bot_1/unlock-auth-keksik/index.js +0 -35
  480. package/backend/storage/plugins/bot_1/unlock-auth-keksik/package.json +0 -18
  481. package/backend/storage/plugins/bot_2/parser-keksik/LICENSE.md +0 -12
  482. package/backend/storage/plugins/bot_2/parser-keksik/README.md +0 -65
  483. package/backend/storage/plugins/bot_2/parser-keksik/index.js +0 -135
  484. package/backend/storage/plugins/bot_2/parser-keksik/package.json +0 -40
  485. package/backend/storage/plugins/bot_3/auth-keksik-servers/index.js +0 -66
  486. package/backend/storage/plugins/bot_3/auth-keksik-servers/package.json +0 -20
  487. package/backend/storage/plugins/bot_3/clan-events-keksik/README.md +0 -81
  488. package/backend/storage/plugins/bot_3/clan-events-keksik/index.js +0 -46
  489. package/backend/storage/plugins/bot_3/clan-events-keksik/package.json +0 -14
  490. package/backend/storage/plugins/bot_3/clan-welcome/index.js +0 -32
  491. package/backend/storage/plugins/bot_3/clan-welcome/package.json +0 -22
  492. package/backend/storage/plugins/bot_3/parser-keksik/LICENSE.md +0 -12
  493. package/backend/storage/plugins/bot_3/parser-keksik/README.md +0 -65
  494. package/backend/storage/plugins/bot_3/parser-keksik/index.js +0 -135
  495. package/backend/storage/plugins/bot_3/parser-keksik/package.json +0 -40
  496. package/backend/storage/plugins/bot_4/fly-keksik/index.js +0 -111
  497. package/backend/storage/plugins/bot_4/fly-keksik/package.json +0 -59
  498. package/backend/storage/plugins/bot_4/parser-keksik/LICENSE.md +0 -12
  499. package/backend/storage/plugins/bot_4/parser-keksik/README.md +0 -65
  500. package/backend/storage/plugins/bot_4/parser-keksik/index.js +0 -135
  501. package/backend/storage/plugins/bot_4/parser-keksik/package.json +0 -40
  502. package/backend/storage/plugins/bot_5/auth-keksik-servers/index.js +0 -66
  503. package/backend/storage/plugins/bot_5/auth-keksik-servers/package.json +0 -20
  504. package/backend/storage/plugins/bot_5/parser-keksik/LICENSE.md +0 -12
  505. package/backend/storage/plugins/bot_5/parser-keksik/README.md +0 -65
  506. package/backend/storage/plugins/bot_5/parser-keksik/index.js +0 -117
  507. package/backend/storage/plugins/bot_5/parser-keksik/package.json +0 -40
  508. package/backend/storage/plugins/bot_6/clan-events-keksik/README.md +0 -81
  509. package/backend/storage/plugins/bot_6/clan-events-keksik/index.js +0 -46
  510. package/backend/storage/plugins/bot_6/clan-events-keksik/package.json +0 -14
  511. package/backend/storage/plugins/bot_6/clan-welcome/index.js +0 -32
  512. package/backend/storage/plugins/bot_6/clan-welcome/package.json +0 -22
  513. package/backend/storage/plugins/bot_6/parser-keksik/LICENSE.md +0 -12
  514. package/backend/storage/plugins/bot_6/parser-keksik/README.md +0 -65
  515. package/backend/storage/plugins/bot_6/parser-keksik/index.js +0 -135
  516. package/backend/storage/plugins/bot_6/parser-keksik/package.json +0 -40
@@ -1,2385 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_KJ74H3SQ_exports = {};
30
- __export(chunk_KJ74H3SQ_exports, {
31
- download: () => download,
32
- getBinaryName: () => getBinaryName,
33
- getVersion: () => getVersion,
34
- maybeCopyToTmp: () => maybeCopyToTmp,
35
- plusX: () => plusX,
36
- vercelPkgPathRegex: () => vercelPkgPathRegex
37
- });
38
- module.exports = __toCommonJS(chunk_KJ74H3SQ_exports);
39
- var import_chunk_4LX3XBNY = require("./chunk-4LX3XBNY.js");
40
- var import_chunk_MX3HXAU2 = require("./chunk-MX3HXAU2.js");
41
- var import_chunk_QSTZGX47 = require("./chunk-QSTZGX47.js");
42
- var import_chunk_QLWYUM7O = require("./chunk-QLWYUM7O.js");
43
- var import_chunk_FQ2BOR66 = require("./chunk-FQ2BOR66.js");
44
- var import_chunk_PXQVM7NP = require("./chunk-PXQVM7NP.js");
45
- var import_chunk_CWGQAQ3T = require("./chunk-CWGQAQ3T.js");
46
- var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
47
- var import_debug = __toESM2(require("@prisma/debug"));
48
- var import_get_platform = require("@prisma/get-platform");
49
- var import_fs = __toESM2(require("fs"));
50
- var import_path = __toESM2(require("path"));
51
- var import_util = require("util");
52
- var require_windows = (0, import_chunk_AH6QHEOA.__commonJS)({
53
- "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(exports, module2) {
54
- "use strict";
55
- module2.exports = isexe;
56
- isexe.sync = sync;
57
- var fs2 = (0, import_chunk_AH6QHEOA.__require)("fs");
58
- function checkPathExt(path2, options2) {
59
- var pathext = options2.pathExt !== void 0 ? options2.pathExt : process.env.PATHEXT;
60
- if (!pathext) {
61
- return true;
62
- }
63
- pathext = pathext.split(";");
64
- if (pathext.indexOf("") !== -1) {
65
- return true;
66
- }
67
- for (var i = 0; i < pathext.length; i++) {
68
- var p = pathext[i].toLowerCase();
69
- if (p && path2.substr(-p.length).toLowerCase() === p) {
70
- return true;
71
- }
72
- }
73
- return false;
74
- }
75
- function checkStat(stat, path2, options2) {
76
- if (!stat.isSymbolicLink() && !stat.isFile()) {
77
- return false;
78
- }
79
- return checkPathExt(path2, options2);
80
- }
81
- function isexe(path2, options2, cb) {
82
- fs2.stat(path2, function(er, stat) {
83
- cb(er, er ? false : checkStat(stat, path2, options2));
84
- });
85
- }
86
- function sync(path2, options2) {
87
- return checkStat(fs2.statSync(path2), path2, options2);
88
- }
89
- }
90
- });
91
- var require_mode = (0, import_chunk_AH6QHEOA.__commonJS)({
92
- "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(exports, module2) {
93
- "use strict";
94
- module2.exports = isexe;
95
- isexe.sync = sync;
96
- var fs2 = (0, import_chunk_AH6QHEOA.__require)("fs");
97
- function isexe(path2, options2, cb) {
98
- fs2.stat(path2, function(er, stat) {
99
- cb(er, er ? false : checkStat(stat, options2));
100
- });
101
- }
102
- function sync(path2, options2) {
103
- return checkStat(fs2.statSync(path2), options2);
104
- }
105
- function checkStat(stat, options2) {
106
- return stat.isFile() && checkMode(stat, options2);
107
- }
108
- function checkMode(stat, options2) {
109
- var mod = stat.mode;
110
- var uid = stat.uid;
111
- var gid = stat.gid;
112
- var myUid = options2.uid !== void 0 ? options2.uid : process.getuid && process.getuid();
113
- var myGid = options2.gid !== void 0 ? options2.gid : process.getgid && process.getgid();
114
- var u = parseInt("100", 8);
115
- var g = parseInt("010", 8);
116
- var o = parseInt("001", 8);
117
- var ug = u | g;
118
- var ret = mod & o || mod & g && gid === myGid || mod & u && uid === myUid || mod & ug && myUid === 0;
119
- return ret;
120
- }
121
- }
122
- });
123
- var require_isexe = (0, import_chunk_AH6QHEOA.__commonJS)({
124
- "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports, module2) {
125
- "use strict";
126
- var fs2 = (0, import_chunk_AH6QHEOA.__require)("fs");
127
- var core;
128
- if (process.platform === "win32" || global.TESTING_WINDOWS) {
129
- core = require_windows();
130
- } else {
131
- core = require_mode();
132
- }
133
- module2.exports = isexe;
134
- isexe.sync = sync;
135
- function isexe(path2, options2, cb) {
136
- if (typeof options2 === "function") {
137
- cb = options2;
138
- options2 = {};
139
- }
140
- if (!cb) {
141
- if (typeof Promise !== "function") {
142
- throw new TypeError("callback not provided");
143
- }
144
- return new Promise(function(resolve, reject) {
145
- isexe(path2, options2 || {}, function(er, is) {
146
- if (er) {
147
- reject(er);
148
- } else {
149
- resolve(is);
150
- }
151
- });
152
- });
153
- }
154
- core(path2, options2 || {}, function(er, is) {
155
- if (er) {
156
- if (er.code === "EACCES" || options2 && options2.ignoreErrors) {
157
- er = null;
158
- is = false;
159
- }
160
- }
161
- cb(er, is);
162
- });
163
- }
164
- function sync(path2, options2) {
165
- try {
166
- return core.sync(path2, options2 || {});
167
- } catch (er) {
168
- if (options2 && options2.ignoreErrors || er.code === "EACCES") {
169
- return false;
170
- } else {
171
- throw er;
172
- }
173
- }
174
- }
175
- }
176
- });
177
- var require_which = (0, import_chunk_AH6QHEOA.__commonJS)({
178
- "../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports, module2) {
179
- "use strict";
180
- var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
181
- var path2 = (0, import_chunk_AH6QHEOA.__require)("path");
182
- var COLON = isWindows ? ";" : ":";
183
- var isexe = require_isexe();
184
- var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
185
- var getPathInfo = (cmd, opt) => {
186
- const colon = opt.colon || COLON;
187
- const pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? [""] : [
188
- // windows always checks the cwd first
189
- ...isWindows ? [process.cwd()] : [],
190
- ...(opt.path || process.env.PATH || /* istanbul ignore next: very unusual */
191
- "").split(colon)
192
- ];
193
- const pathExtExe = isWindows ? opt.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
194
- const pathExt = isWindows ? pathExtExe.split(colon) : [""];
195
- if (isWindows) {
196
- if (cmd.indexOf(".") !== -1 && pathExt[0] !== "")
197
- pathExt.unshift("");
198
- }
199
- return {
200
- pathEnv,
201
- pathExt,
202
- pathExtExe
203
- };
204
- };
205
- var which = (cmd, opt, cb) => {
206
- if (typeof opt === "function") {
207
- cb = opt;
208
- opt = {};
209
- }
210
- if (!opt)
211
- opt = {};
212
- const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
213
- const found = [];
214
- const step = (i) => new Promise((resolve, reject) => {
215
- if (i === pathEnv.length)
216
- return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
217
- const ppRaw = pathEnv[i];
218
- const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
219
- const pCmd = path2.join(pathPart, cmd);
220
- const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
221
- resolve(subStep(p, i, 0));
222
- });
223
- const subStep = (p, i, ii) => new Promise((resolve, reject) => {
224
- if (ii === pathExt.length)
225
- return resolve(step(i + 1));
226
- const ext = pathExt[ii];
227
- isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {
228
- if (!er && is) {
229
- if (opt.all)
230
- found.push(p + ext);
231
- else
232
- return resolve(p + ext);
233
- }
234
- return resolve(subStep(p, i, ii + 1));
235
- });
236
- });
237
- return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
238
- };
239
- var whichSync = (cmd, opt) => {
240
- opt = opt || {};
241
- const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
242
- const found = [];
243
- for (let i = 0; i < pathEnv.length; i++) {
244
- const ppRaw = pathEnv[i];
245
- const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
246
- const pCmd = path2.join(pathPart, cmd);
247
- const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
248
- for (let j = 0; j < pathExt.length; j++) {
249
- const cur = p + pathExt[j];
250
- try {
251
- const is = isexe.sync(cur, { pathExt: pathExtExe });
252
- if (is) {
253
- if (opt.all)
254
- found.push(cur);
255
- else
256
- return cur;
257
- }
258
- } catch (ex) {
259
- }
260
- }
261
- }
262
- if (opt.all && found.length)
263
- return found;
264
- if (opt.nothrow)
265
- return null;
266
- throw getNotFoundError(cmd);
267
- };
268
- module2.exports = which;
269
- which.sync = whichSync;
270
- }
271
- });
272
- var require_path_key = (0, import_chunk_AH6QHEOA.__commonJS)({
273
- "../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js"(exports, module2) {
274
- "use strict";
275
- var pathKey = (options2 = {}) => {
276
- const environment = options2.env || process.env;
277
- const platform = options2.platform || process.platform;
278
- if (platform !== "win32") {
279
- return "PATH";
280
- }
281
- return Object.keys(environment).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
282
- };
283
- module2.exports = pathKey;
284
- module2.exports.default = pathKey;
285
- }
286
- });
287
- var require_resolveCommand = (0, import_chunk_AH6QHEOA.__commonJS)({
288
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module2) {
289
- "use strict";
290
- var path2 = (0, import_chunk_AH6QHEOA.__require)("path");
291
- var which = require_which();
292
- var getPathKey = require_path_key();
293
- function resolveCommandAttempt(parsed, withoutPathExt) {
294
- const env = parsed.options.env || process.env;
295
- const cwd = process.cwd();
296
- const hasCustomCwd = parsed.options.cwd != null;
297
- const shouldSwitchCwd = hasCustomCwd && process.chdir !== void 0 && !process.chdir.disabled;
298
- if (shouldSwitchCwd) {
299
- try {
300
- process.chdir(parsed.options.cwd);
301
- } catch (err) {
302
- }
303
- }
304
- let resolved;
305
- try {
306
- resolved = which.sync(parsed.command, {
307
- path: env[getPathKey({ env })],
308
- pathExt: withoutPathExt ? path2.delimiter : void 0
309
- });
310
- } catch (e) {
311
- } finally {
312
- if (shouldSwitchCwd) {
313
- process.chdir(cwd);
314
- }
315
- }
316
- if (resolved) {
317
- resolved = path2.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
318
- }
319
- return resolved;
320
- }
321
- function resolveCommand(parsed) {
322
- return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);
323
- }
324
- module2.exports = resolveCommand;
325
- }
326
- });
327
- var require_escape = (0, import_chunk_AH6QHEOA.__commonJS)({
328
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js"(exports, module2) {
329
- "use strict";
330
- var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
331
- function escapeCommand(arg) {
332
- arg = arg.replace(metaCharsRegExp, "^$1");
333
- return arg;
334
- }
335
- function escapeArgument(arg, doubleEscapeMetaChars) {
336
- arg = `${arg}`;
337
- arg = arg.replace(/(\\*)"/g, '$1$1\\"');
338
- arg = arg.replace(/(\\*)$/, "$1$1");
339
- arg = `"${arg}"`;
340
- arg = arg.replace(metaCharsRegExp, "^$1");
341
- if (doubleEscapeMetaChars) {
342
- arg = arg.replace(metaCharsRegExp, "^$1");
343
- }
344
- return arg;
345
- }
346
- module2.exports.command = escapeCommand;
347
- module2.exports.argument = escapeArgument;
348
- }
349
- });
350
- var require_shebang_regex = (0, import_chunk_AH6QHEOA.__commonJS)({
351
- "../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js"(exports, module2) {
352
- "use strict";
353
- module2.exports = /^#!(.*)/;
354
- }
355
- });
356
- var require_shebang_command = (0, import_chunk_AH6QHEOA.__commonJS)({
357
- "../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js"(exports, module2) {
358
- "use strict";
359
- var shebangRegex = require_shebang_regex();
360
- module2.exports = (string = "") => {
361
- const match = string.match(shebangRegex);
362
- if (!match) {
363
- return null;
364
- }
365
- const [path2, argument] = match[0].replace(/#! ?/, "").split(" ");
366
- const binary = path2.split("/").pop();
367
- if (binary === "env") {
368
- return argument;
369
- }
370
- return argument ? `${binary} ${argument}` : binary;
371
- };
372
- }
373
- });
374
- var require_readShebang = (0, import_chunk_AH6QHEOA.__commonJS)({
375
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module2) {
376
- "use strict";
377
- var fs2 = (0, import_chunk_AH6QHEOA.__require)("fs");
378
- var shebangCommand = require_shebang_command();
379
- function readShebang(command) {
380
- const size = 150;
381
- const buffer = Buffer.alloc(size);
382
- let fd;
383
- try {
384
- fd = fs2.openSync(command, "r");
385
- fs2.readSync(fd, buffer, 0, size, 0);
386
- fs2.closeSync(fd);
387
- } catch (e) {
388
- }
389
- return shebangCommand(buffer.toString());
390
- }
391
- module2.exports = readShebang;
392
- }
393
- });
394
- var require_parse = (0, import_chunk_AH6QHEOA.__commonJS)({
395
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js"(exports, module2) {
396
- "use strict";
397
- var path2 = (0, import_chunk_AH6QHEOA.__require)("path");
398
- var resolveCommand = require_resolveCommand();
399
- var escape = require_escape();
400
- var readShebang = require_readShebang();
401
- var isWin = process.platform === "win32";
402
- var isExecutableRegExp = /\.(?:com|exe)$/i;
403
- var isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
404
- function detectShebang(parsed) {
405
- parsed.file = resolveCommand(parsed);
406
- const shebang = parsed.file && readShebang(parsed.file);
407
- if (shebang) {
408
- parsed.args.unshift(parsed.file);
409
- parsed.command = shebang;
410
- return resolveCommand(parsed);
411
- }
412
- return parsed.file;
413
- }
414
- function parseNonShell(parsed) {
415
- if (!isWin) {
416
- return parsed;
417
- }
418
- const commandFile = detectShebang(parsed);
419
- const needsShell = !isExecutableRegExp.test(commandFile);
420
- if (parsed.options.forceShell || needsShell) {
421
- const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
422
- parsed.command = path2.normalize(parsed.command);
423
- parsed.command = escape.command(parsed.command);
424
- parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
425
- const shellCommand = [parsed.command].concat(parsed.args).join(" ");
426
- parsed.args = ["/d", "/s", "/c", `"${shellCommand}"`];
427
- parsed.command = process.env.comspec || "cmd.exe";
428
- parsed.options.windowsVerbatimArguments = true;
429
- }
430
- return parsed;
431
- }
432
- function parse(command, args, options2) {
433
- if (args && !Array.isArray(args)) {
434
- options2 = args;
435
- args = null;
436
- }
437
- args = args ? args.slice(0) : [];
438
- options2 = Object.assign({}, options2);
439
- const parsed = {
440
- command,
441
- args,
442
- options: options2,
443
- file: void 0,
444
- original: {
445
- command,
446
- args
447
- }
448
- };
449
- return options2.shell ? parsed : parseNonShell(parsed);
450
- }
451
- module2.exports = parse;
452
- }
453
- });
454
- var require_enoent = (0, import_chunk_AH6QHEOA.__commonJS)({
455
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js"(exports, module2) {
456
- "use strict";
457
- var isWin = process.platform === "win32";
458
- function notFoundError(original, syscall) {
459
- return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
460
- code: "ENOENT",
461
- errno: "ENOENT",
462
- syscall: `${syscall} ${original.command}`,
463
- path: original.command,
464
- spawnargs: original.args
465
- });
466
- }
467
- function hookChildProcess(cp, parsed) {
468
- if (!isWin) {
469
- return;
470
- }
471
- const originalEmit = cp.emit;
472
- cp.emit = function(name, arg1) {
473
- if (name === "exit") {
474
- const err = verifyENOENT(arg1, parsed, "spawn");
475
- if (err) {
476
- return originalEmit.call(cp, "error", err);
477
- }
478
- }
479
- return originalEmit.apply(cp, arguments);
480
- };
481
- }
482
- function verifyENOENT(status, parsed) {
483
- if (isWin && status === 1 && !parsed.file) {
484
- return notFoundError(parsed.original, "spawn");
485
- }
486
- return null;
487
- }
488
- function verifyENOENTSync(status, parsed) {
489
- if (isWin && status === 1 && !parsed.file) {
490
- return notFoundError(parsed.original, "spawnSync");
491
- }
492
- return null;
493
- }
494
- module2.exports = {
495
- hookChildProcess,
496
- verifyENOENT,
497
- verifyENOENTSync,
498
- notFoundError
499
- };
500
- }
501
- });
502
- var require_cross_spawn = (0, import_chunk_AH6QHEOA.__commonJS)({
503
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js"(exports, module2) {
504
- "use strict";
505
- var cp = (0, import_chunk_AH6QHEOA.__require)("child_process");
506
- var parse = require_parse();
507
- var enoent = require_enoent();
508
- function spawn(command, args, options2) {
509
- const parsed = parse(command, args, options2);
510
- const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
511
- enoent.hookChildProcess(spawned, parsed);
512
- return spawned;
513
- }
514
- function spawnSync(command, args, options2) {
515
- const parsed = parse(command, args, options2);
516
- const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
517
- result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
518
- return result;
519
- }
520
- module2.exports = spawn;
521
- module2.exports.spawn = spawn;
522
- module2.exports.sync = spawnSync;
523
- module2.exports._parse = parse;
524
- module2.exports._enoent = enoent;
525
- }
526
- });
527
- var require_strip_final_newline = (0, import_chunk_AH6QHEOA.__commonJS)({
528
- "../../node_modules/.pnpm/strip-final-newline@2.0.0/node_modules/strip-final-newline/index.js"(exports, module2) {
529
- "use strict";
530
- module2.exports = (input) => {
531
- const LF = typeof input === "string" ? "\n" : "\n".charCodeAt();
532
- const CR = typeof input === "string" ? "\r" : "\r".charCodeAt();
533
- if (input[input.length - 1] === LF) {
534
- input = input.slice(0, input.length - 1);
535
- }
536
- if (input[input.length - 1] === CR) {
537
- input = input.slice(0, input.length - 1);
538
- }
539
- return input;
540
- };
541
- }
542
- });
543
- var require_npm_run_path = (0, import_chunk_AH6QHEOA.__commonJS)({
544
- "../../node_modules/.pnpm/npm-run-path@4.0.1/node_modules/npm-run-path/index.js"(exports, module2) {
545
- "use strict";
546
- var path2 = (0, import_chunk_AH6QHEOA.__require)("path");
547
- var pathKey = require_path_key();
548
- var npmRunPath = (options2) => {
549
- options2 = {
550
- cwd: process.cwd(),
551
- path: process.env[pathKey()],
552
- execPath: process.execPath,
553
- ...options2
554
- };
555
- let previous;
556
- let cwdPath = path2.resolve(options2.cwd);
557
- const result = [];
558
- while (previous !== cwdPath) {
559
- result.push(path2.join(cwdPath, "node_modules/.bin"));
560
- previous = cwdPath;
561
- cwdPath = path2.resolve(cwdPath, "..");
562
- }
563
- const execPathDir = path2.resolve(options2.cwd, options2.execPath, "..");
564
- result.push(execPathDir);
565
- return result.concat(options2.path).join(path2.delimiter);
566
- };
567
- module2.exports = npmRunPath;
568
- module2.exports.default = npmRunPath;
569
- module2.exports.env = (options2) => {
570
- options2 = {
571
- env: process.env,
572
- ...options2
573
- };
574
- const env = { ...options2.env };
575
- const path3 = pathKey({ env });
576
- options2.path = env[path3];
577
- env[path3] = module2.exports(options2);
578
- return env;
579
- };
580
- }
581
- });
582
- var require_mimic_fn = (0, import_chunk_AH6QHEOA.__commonJS)({
583
- "../../node_modules/.pnpm/mimic-fn@2.1.0/node_modules/mimic-fn/index.js"(exports, module2) {
584
- "use strict";
585
- var mimicFn = (to, from) => {
586
- for (const prop of Reflect.ownKeys(from)) {
587
- Object.defineProperty(to, prop, Object.getOwnPropertyDescriptor(from, prop));
588
- }
589
- return to;
590
- };
591
- module2.exports = mimicFn;
592
- module2.exports.default = mimicFn;
593
- }
594
- });
595
- var require_onetime = (0, import_chunk_AH6QHEOA.__commonJS)({
596
- "../../node_modules/.pnpm/onetime@5.1.2/node_modules/onetime/index.js"(exports, module2) {
597
- "use strict";
598
- var mimicFn = require_mimic_fn();
599
- var calledFunctions = /* @__PURE__ */ new WeakMap();
600
- var onetime = (function_, options2 = {}) => {
601
- if (typeof function_ !== "function") {
602
- throw new TypeError("Expected a function");
603
- }
604
- let returnValue;
605
- let callCount = 0;
606
- const functionName = function_.displayName || function_.name || "<anonymous>";
607
- const onetime2 = function(...arguments_) {
608
- calledFunctions.set(onetime2, ++callCount);
609
- if (callCount === 1) {
610
- returnValue = function_.apply(this, arguments_);
611
- function_ = null;
612
- } else if (options2.throw === true) {
613
- throw new Error(`Function \`${functionName}\` can only be called once`);
614
- }
615
- return returnValue;
616
- };
617
- mimicFn(onetime2, function_);
618
- calledFunctions.set(onetime2, callCount);
619
- return onetime2;
620
- };
621
- module2.exports = onetime;
622
- module2.exports.default = onetime;
623
- module2.exports.callCount = (function_) => {
624
- if (!calledFunctions.has(function_)) {
625
- throw new Error(`The given function \`${function_.name}\` is not wrapped by the \`onetime\` package`);
626
- }
627
- return calledFunctions.get(function_);
628
- };
629
- }
630
- });
631
- var require_core = (0, import_chunk_AH6QHEOA.__commonJS)({
632
- "../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/core.js"(exports) {
633
- "use strict";
634
- Object.defineProperty(exports, "__esModule", { value: true });
635
- exports.SIGNALS = void 0;
636
- var SIGNALS = [
637
- {
638
- name: "SIGHUP",
639
- number: 1,
640
- action: "terminate",
641
- description: "Terminal closed",
642
- standard: "posix"
643
- },
644
- {
645
- name: "SIGINT",
646
- number: 2,
647
- action: "terminate",
648
- description: "User interruption with CTRL-C",
649
- standard: "ansi"
650
- },
651
- {
652
- name: "SIGQUIT",
653
- number: 3,
654
- action: "core",
655
- description: "User interruption with CTRL-\\",
656
- standard: "posix"
657
- },
658
- {
659
- name: "SIGILL",
660
- number: 4,
661
- action: "core",
662
- description: "Invalid machine instruction",
663
- standard: "ansi"
664
- },
665
- {
666
- name: "SIGTRAP",
667
- number: 5,
668
- action: "core",
669
- description: "Debugger breakpoint",
670
- standard: "posix"
671
- },
672
- {
673
- name: "SIGABRT",
674
- number: 6,
675
- action: "core",
676
- description: "Aborted",
677
- standard: "ansi"
678
- },
679
- {
680
- name: "SIGIOT",
681
- number: 6,
682
- action: "core",
683
- description: "Aborted",
684
- standard: "bsd"
685
- },
686
- {
687
- name: "SIGBUS",
688
- number: 7,
689
- action: "core",
690
- description: "Bus error due to misaligned, non-existing address or paging error",
691
- standard: "bsd"
692
- },
693
- {
694
- name: "SIGEMT",
695
- number: 7,
696
- action: "terminate",
697
- description: "Command should be emulated but is not implemented",
698
- standard: "other"
699
- },
700
- {
701
- name: "SIGFPE",
702
- number: 8,
703
- action: "core",
704
- description: "Floating point arithmetic error",
705
- standard: "ansi"
706
- },
707
- {
708
- name: "SIGKILL",
709
- number: 9,
710
- action: "terminate",
711
- description: "Forced termination",
712
- standard: "posix",
713
- forced: true
714
- },
715
- {
716
- name: "SIGUSR1",
717
- number: 10,
718
- action: "terminate",
719
- description: "Application-specific signal",
720
- standard: "posix"
721
- },
722
- {
723
- name: "SIGSEGV",
724
- number: 11,
725
- action: "core",
726
- description: "Segmentation fault",
727
- standard: "ansi"
728
- },
729
- {
730
- name: "SIGUSR2",
731
- number: 12,
732
- action: "terminate",
733
- description: "Application-specific signal",
734
- standard: "posix"
735
- },
736
- {
737
- name: "SIGPIPE",
738
- number: 13,
739
- action: "terminate",
740
- description: "Broken pipe or socket",
741
- standard: "posix"
742
- },
743
- {
744
- name: "SIGALRM",
745
- number: 14,
746
- action: "terminate",
747
- description: "Timeout or timer",
748
- standard: "posix"
749
- },
750
- {
751
- name: "SIGTERM",
752
- number: 15,
753
- action: "terminate",
754
- description: "Termination",
755
- standard: "ansi"
756
- },
757
- {
758
- name: "SIGSTKFLT",
759
- number: 16,
760
- action: "terminate",
761
- description: "Stack is empty or overflowed",
762
- standard: "other"
763
- },
764
- {
765
- name: "SIGCHLD",
766
- number: 17,
767
- action: "ignore",
768
- description: "Child process terminated, paused or unpaused",
769
- standard: "posix"
770
- },
771
- {
772
- name: "SIGCLD",
773
- number: 17,
774
- action: "ignore",
775
- description: "Child process terminated, paused or unpaused",
776
- standard: "other"
777
- },
778
- {
779
- name: "SIGCONT",
780
- number: 18,
781
- action: "unpause",
782
- description: "Unpaused",
783
- standard: "posix",
784
- forced: true
785
- },
786
- {
787
- name: "SIGSTOP",
788
- number: 19,
789
- action: "pause",
790
- description: "Paused",
791
- standard: "posix",
792
- forced: true
793
- },
794
- {
795
- name: "SIGTSTP",
796
- number: 20,
797
- action: "pause",
798
- description: 'Paused using CTRL-Z or "suspend"',
799
- standard: "posix"
800
- },
801
- {
802
- name: "SIGTTIN",
803
- number: 21,
804
- action: "pause",
805
- description: "Background process cannot read terminal input",
806
- standard: "posix"
807
- },
808
- {
809
- name: "SIGBREAK",
810
- number: 21,
811
- action: "terminate",
812
- description: "User interruption with CTRL-BREAK",
813
- standard: "other"
814
- },
815
- {
816
- name: "SIGTTOU",
817
- number: 22,
818
- action: "pause",
819
- description: "Background process cannot write to terminal output",
820
- standard: "posix"
821
- },
822
- {
823
- name: "SIGURG",
824
- number: 23,
825
- action: "ignore",
826
- description: "Socket received out-of-band data",
827
- standard: "bsd"
828
- },
829
- {
830
- name: "SIGXCPU",
831
- number: 24,
832
- action: "core",
833
- description: "Process timed out",
834
- standard: "bsd"
835
- },
836
- {
837
- name: "SIGXFSZ",
838
- number: 25,
839
- action: "core",
840
- description: "File too big",
841
- standard: "bsd"
842
- },
843
- {
844
- name: "SIGVTALRM",
845
- number: 26,
846
- action: "terminate",
847
- description: "Timeout or timer",
848
- standard: "bsd"
849
- },
850
- {
851
- name: "SIGPROF",
852
- number: 27,
853
- action: "terminate",
854
- description: "Timeout or timer",
855
- standard: "bsd"
856
- },
857
- {
858
- name: "SIGWINCH",
859
- number: 28,
860
- action: "ignore",
861
- description: "Terminal window size changed",
862
- standard: "bsd"
863
- },
864
- {
865
- name: "SIGIO",
866
- number: 29,
867
- action: "terminate",
868
- description: "I/O is available",
869
- standard: "other"
870
- },
871
- {
872
- name: "SIGPOLL",
873
- number: 29,
874
- action: "terminate",
875
- description: "Watched event",
876
- standard: "other"
877
- },
878
- {
879
- name: "SIGINFO",
880
- number: 29,
881
- action: "ignore",
882
- description: "Request for process information",
883
- standard: "other"
884
- },
885
- {
886
- name: "SIGPWR",
887
- number: 30,
888
- action: "terminate",
889
- description: "Device running out of power",
890
- standard: "systemv"
891
- },
892
- {
893
- name: "SIGSYS",
894
- number: 31,
895
- action: "core",
896
- description: "Invalid system call",
897
- standard: "other"
898
- },
899
- {
900
- name: "SIGUNUSED",
901
- number: 31,
902
- action: "terminate",
903
- description: "Invalid system call",
904
- standard: "other"
905
- }
906
- ];
907
- exports.SIGNALS = SIGNALS;
908
- }
909
- });
910
- var require_realtime = (0, import_chunk_AH6QHEOA.__commonJS)({
911
- "../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/realtime.js"(exports) {
912
- "use strict";
913
- Object.defineProperty(exports, "__esModule", { value: true });
914
- exports.SIGRTMAX = exports.getRealtimeSignals = void 0;
915
- var getRealtimeSignals = function() {
916
- const length = SIGRTMAX - SIGRTMIN + 1;
917
- return Array.from({ length }, getRealtimeSignal);
918
- };
919
- exports.getRealtimeSignals = getRealtimeSignals;
920
- var getRealtimeSignal = function(value, index) {
921
- return {
922
- name: `SIGRT${index + 1}`,
923
- number: SIGRTMIN + index,
924
- action: "terminate",
925
- description: "Application-specific signal (realtime)",
926
- standard: "posix"
927
- };
928
- };
929
- var SIGRTMIN = 34;
930
- var SIGRTMAX = 64;
931
- exports.SIGRTMAX = SIGRTMAX;
932
- }
933
- });
934
- var require_signals = (0, import_chunk_AH6QHEOA.__commonJS)({
935
- "../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/signals.js"(exports) {
936
- "use strict";
937
- Object.defineProperty(exports, "__esModule", { value: true });
938
- exports.getSignals = void 0;
939
- var _os = (0, import_chunk_AH6QHEOA.__require)("os");
940
- var _core = require_core();
941
- var _realtime = require_realtime();
942
- var getSignals = function() {
943
- const realtimeSignals = (0, _realtime.getRealtimeSignals)();
944
- const signals = [..._core.SIGNALS, ...realtimeSignals].map(normalizeSignal);
945
- return signals;
946
- };
947
- exports.getSignals = getSignals;
948
- var normalizeSignal = function({
949
- name,
950
- number: defaultNumber,
951
- description,
952
- action,
953
- forced = false,
954
- standard
955
- }) {
956
- const {
957
- signals: { [name]: constantSignal }
958
- } = _os.constants;
959
- const supported = constantSignal !== void 0;
960
- const number = supported ? constantSignal : defaultNumber;
961
- return { name, number, description, supported, action, forced, standard };
962
- };
963
- }
964
- });
965
- var require_main = (0, import_chunk_AH6QHEOA.__commonJS)({
966
- "../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/main.js"(exports) {
967
- "use strict";
968
- Object.defineProperty(exports, "__esModule", { value: true });
969
- exports.signalsByNumber = exports.signalsByName = void 0;
970
- var _os = (0, import_chunk_AH6QHEOA.__require)("os");
971
- var _signals = require_signals();
972
- var _realtime = require_realtime();
973
- var getSignalsByName = function() {
974
- const signals = (0, _signals.getSignals)();
975
- return signals.reduce(getSignalByName, {});
976
- };
977
- var getSignalByName = function(signalByNameMemo, { name, number, description, supported, action, forced, standard }) {
978
- return {
979
- ...signalByNameMemo,
980
- [name]: { name, number, description, supported, action, forced, standard }
981
- };
982
- };
983
- var signalsByName = getSignalsByName();
984
- exports.signalsByName = signalsByName;
985
- var getSignalsByNumber = function() {
986
- const signals = (0, _signals.getSignals)();
987
- const length = _realtime.SIGRTMAX + 1;
988
- const signalsA = Array.from({ length }, (value, number) => getSignalByNumber(number, signals));
989
- return Object.assign({}, ...signalsA);
990
- };
991
- var getSignalByNumber = function(number, signals) {
992
- const signal = findSignalByNumber(number, signals);
993
- if (signal === void 0) {
994
- return {};
995
- }
996
- const { name, description, supported, action, forced, standard } = signal;
997
- return {
998
- [number]: {
999
- name,
1000
- number,
1001
- description,
1002
- supported,
1003
- action,
1004
- forced,
1005
- standard
1006
- }
1007
- };
1008
- };
1009
- var findSignalByNumber = function(number, signals) {
1010
- const signal = signals.find(({ name }) => _os.constants.signals[name] === number);
1011
- if (signal !== void 0) {
1012
- return signal;
1013
- }
1014
- return signals.find((signalA) => signalA.number === number);
1015
- };
1016
- var signalsByNumber = getSignalsByNumber();
1017
- exports.signalsByNumber = signalsByNumber;
1018
- }
1019
- });
1020
- var require_error = (0, import_chunk_AH6QHEOA.__commonJS)({
1021
- "../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/error.js"(exports, module2) {
1022
- "use strict";
1023
- var { signalsByName } = require_main();
1024
- var getErrorPrefix = ({ timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled }) => {
1025
- if (timedOut) {
1026
- return `timed out after ${timeout} milliseconds`;
1027
- }
1028
- if (isCanceled) {
1029
- return "was canceled";
1030
- }
1031
- if (errorCode !== void 0) {
1032
- return `failed with ${errorCode}`;
1033
- }
1034
- if (signal !== void 0) {
1035
- return `was killed with ${signal} (${signalDescription})`;
1036
- }
1037
- if (exitCode !== void 0) {
1038
- return `failed with exit code ${exitCode}`;
1039
- }
1040
- return "failed";
1041
- };
1042
- var makeError = ({
1043
- stdout,
1044
- stderr,
1045
- all,
1046
- error,
1047
- signal,
1048
- exitCode,
1049
- command,
1050
- escapedCommand,
1051
- timedOut,
1052
- isCanceled,
1053
- killed,
1054
- parsed: { options: { timeout } }
1055
- }) => {
1056
- exitCode = exitCode === null ? void 0 : exitCode;
1057
- signal = signal === null ? void 0 : signal;
1058
- const signalDescription = signal === void 0 ? void 0 : signalsByName[signal].description;
1059
- const errorCode = error && error.code;
1060
- const prefix = getErrorPrefix({ timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled });
1061
- const execaMessage = `Command ${prefix}: ${command}`;
1062
- const isError = Object.prototype.toString.call(error) === "[object Error]";
1063
- const shortMessage = isError ? `${execaMessage}
1064
- ${error.message}` : execaMessage;
1065
- const message = [shortMessage, stderr, stdout].filter(Boolean).join("\n");
1066
- if (isError) {
1067
- error.originalMessage = error.message;
1068
- error.message = message;
1069
- } else {
1070
- error = new Error(message);
1071
- }
1072
- error.shortMessage = shortMessage;
1073
- error.command = command;
1074
- error.escapedCommand = escapedCommand;
1075
- error.exitCode = exitCode;
1076
- error.signal = signal;
1077
- error.signalDescription = signalDescription;
1078
- error.stdout = stdout;
1079
- error.stderr = stderr;
1080
- if (all !== void 0) {
1081
- error.all = all;
1082
- }
1083
- if ("bufferedData" in error) {
1084
- delete error.bufferedData;
1085
- }
1086
- error.failed = true;
1087
- error.timedOut = Boolean(timedOut);
1088
- error.isCanceled = isCanceled;
1089
- error.killed = killed && !timedOut;
1090
- return error;
1091
- };
1092
- module2.exports = makeError;
1093
- }
1094
- });
1095
- var require_stdio = (0, import_chunk_AH6QHEOA.__commonJS)({
1096
- "../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stdio.js"(exports, module2) {
1097
- "use strict";
1098
- var aliases = ["stdin", "stdout", "stderr"];
1099
- var hasAlias = (options2) => aliases.some((alias) => options2[alias] !== void 0);
1100
- var normalizeStdio = (options2) => {
1101
- if (!options2) {
1102
- return;
1103
- }
1104
- const { stdio } = options2;
1105
- if (stdio === void 0) {
1106
- return aliases.map((alias) => options2[alias]);
1107
- }
1108
- if (hasAlias(options2)) {
1109
- throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${aliases.map((alias) => `\`${alias}\``).join(", ")}`);
1110
- }
1111
- if (typeof stdio === "string") {
1112
- return stdio;
1113
- }
1114
- if (!Array.isArray(stdio)) {
1115
- throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``);
1116
- }
1117
- const length = Math.max(stdio.length, aliases.length);
1118
- return Array.from({ length }, (value, index) => stdio[index]);
1119
- };
1120
- module2.exports = normalizeStdio;
1121
- module2.exports.node = (options2) => {
1122
- const stdio = normalizeStdio(options2);
1123
- if (stdio === "ipc") {
1124
- return "ipc";
1125
- }
1126
- if (stdio === void 0 || typeof stdio === "string") {
1127
- return [stdio, stdio, stdio, "ipc"];
1128
- }
1129
- if (stdio.includes("ipc")) {
1130
- return stdio;
1131
- }
1132
- return [...stdio, "ipc"];
1133
- };
1134
- }
1135
- });
1136
- var require_signals2 = (0, import_chunk_AH6QHEOA.__commonJS)({
1137
- "../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js"(exports, module2) {
1138
- "use strict";
1139
- module2.exports = [
1140
- "SIGABRT",
1141
- "SIGALRM",
1142
- "SIGHUP",
1143
- "SIGINT",
1144
- "SIGTERM"
1145
- ];
1146
- if (process.platform !== "win32") {
1147
- module2.exports.push(
1148
- "SIGVTALRM",
1149
- "SIGXCPU",
1150
- "SIGXFSZ",
1151
- "SIGUSR2",
1152
- "SIGTRAP",
1153
- "SIGSYS",
1154
- "SIGQUIT",
1155
- "SIGIOT"
1156
- // should detect profiler and enable/disable accordingly.
1157
- // see #21
1158
- // 'SIGPROF'
1159
- );
1160
- }
1161
- if (process.platform === "linux") {
1162
- module2.exports.push(
1163
- "SIGIO",
1164
- "SIGPOLL",
1165
- "SIGPWR",
1166
- "SIGSTKFLT",
1167
- "SIGUNUSED"
1168
- );
1169
- }
1170
- }
1171
- });
1172
- var require_signal_exit = (0, import_chunk_AH6QHEOA.__commonJS)({
1173
- "../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports, module2) {
1174
- "use strict";
1175
- var process2 = global.process;
1176
- var processOk = function(process3) {
1177
- return process3 && typeof process3 === "object" && typeof process3.removeListener === "function" && typeof process3.emit === "function" && typeof process3.reallyExit === "function" && typeof process3.listeners === "function" && typeof process3.kill === "function" && typeof process3.pid === "number" && typeof process3.on === "function";
1178
- };
1179
- if (!processOk(process2)) {
1180
- module2.exports = function() {
1181
- return function() {
1182
- };
1183
- };
1184
- } else {
1185
- assert = (0, import_chunk_AH6QHEOA.__require)("assert");
1186
- signals = require_signals2();
1187
- isWin = /^win/i.test(process2.platform);
1188
- EE = (0, import_chunk_AH6QHEOA.__require)("events");
1189
- if (typeof EE !== "function") {
1190
- EE = EE.EventEmitter;
1191
- }
1192
- if (process2.__signal_exit_emitter__) {
1193
- emitter = process2.__signal_exit_emitter__;
1194
- } else {
1195
- emitter = process2.__signal_exit_emitter__ = new EE();
1196
- emitter.count = 0;
1197
- emitter.emitted = {};
1198
- }
1199
- if (!emitter.infinite) {
1200
- emitter.setMaxListeners(Infinity);
1201
- emitter.infinite = true;
1202
- }
1203
- module2.exports = function(cb, opts2) {
1204
- if (!processOk(global.process)) {
1205
- return function() {
1206
- };
1207
- }
1208
- assert.equal(typeof cb, "function", "a callback must be provided for exit handler");
1209
- if (loaded === false) {
1210
- load();
1211
- }
1212
- var ev = "exit";
1213
- if (opts2 && opts2.alwaysLast) {
1214
- ev = "afterexit";
1215
- }
1216
- var remove = function() {
1217
- emitter.removeListener(ev, cb);
1218
- if (emitter.listeners("exit").length === 0 && emitter.listeners("afterexit").length === 0) {
1219
- unload();
1220
- }
1221
- };
1222
- emitter.on(ev, cb);
1223
- return remove;
1224
- };
1225
- unload = function unload2() {
1226
- if (!loaded || !processOk(global.process)) {
1227
- return;
1228
- }
1229
- loaded = false;
1230
- signals.forEach(function(sig) {
1231
- try {
1232
- process2.removeListener(sig, sigListeners[sig]);
1233
- } catch (er) {
1234
- }
1235
- });
1236
- process2.emit = originalProcessEmit;
1237
- process2.reallyExit = originalProcessReallyExit;
1238
- emitter.count -= 1;
1239
- };
1240
- module2.exports.unload = unload;
1241
- emit = function emit2(event, code, signal) {
1242
- if (emitter.emitted[event]) {
1243
- return;
1244
- }
1245
- emitter.emitted[event] = true;
1246
- emitter.emit(event, code, signal);
1247
- };
1248
- sigListeners = {};
1249
- signals.forEach(function(sig) {
1250
- sigListeners[sig] = function listener() {
1251
- if (!processOk(global.process)) {
1252
- return;
1253
- }
1254
- var listeners = process2.listeners(sig);
1255
- if (listeners.length === emitter.count) {
1256
- unload();
1257
- emit("exit", null, sig);
1258
- emit("afterexit", null, sig);
1259
- if (isWin && sig === "SIGHUP") {
1260
- sig = "SIGINT";
1261
- }
1262
- process2.kill(process2.pid, sig);
1263
- }
1264
- };
1265
- });
1266
- module2.exports.signals = function() {
1267
- return signals;
1268
- };
1269
- loaded = false;
1270
- load = function load2() {
1271
- if (loaded || !processOk(global.process)) {
1272
- return;
1273
- }
1274
- loaded = true;
1275
- emitter.count += 1;
1276
- signals = signals.filter(function(sig) {
1277
- try {
1278
- process2.on(sig, sigListeners[sig]);
1279
- return true;
1280
- } catch (er) {
1281
- return false;
1282
- }
1283
- });
1284
- process2.emit = processEmit;
1285
- process2.reallyExit = processReallyExit;
1286
- };
1287
- module2.exports.load = load;
1288
- originalProcessReallyExit = process2.reallyExit;
1289
- processReallyExit = function processReallyExit2(code) {
1290
- if (!processOk(global.process)) {
1291
- return;
1292
- }
1293
- process2.exitCode = code || /* istanbul ignore next */
1294
- 0;
1295
- emit("exit", process2.exitCode, null);
1296
- emit("afterexit", process2.exitCode, null);
1297
- originalProcessReallyExit.call(process2, process2.exitCode);
1298
- };
1299
- originalProcessEmit = process2.emit;
1300
- processEmit = function processEmit2(ev, arg) {
1301
- if (ev === "exit" && processOk(global.process)) {
1302
- if (arg !== void 0) {
1303
- process2.exitCode = arg;
1304
- }
1305
- var ret = originalProcessEmit.apply(this, arguments);
1306
- emit("exit", process2.exitCode, null);
1307
- emit("afterexit", process2.exitCode, null);
1308
- return ret;
1309
- } else {
1310
- return originalProcessEmit.apply(this, arguments);
1311
- }
1312
- };
1313
- }
1314
- var assert;
1315
- var signals;
1316
- var isWin;
1317
- var EE;
1318
- var emitter;
1319
- var unload;
1320
- var emit;
1321
- var sigListeners;
1322
- var loaded;
1323
- var load;
1324
- var originalProcessReallyExit;
1325
- var processReallyExit;
1326
- var originalProcessEmit;
1327
- var processEmit;
1328
- }
1329
- });
1330
- var require_kill = (0, import_chunk_AH6QHEOA.__commonJS)({
1331
- "../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/kill.js"(exports, module2) {
1332
- "use strict";
1333
- var os2 = (0, import_chunk_AH6QHEOA.__require)("os");
1334
- var onExit = require_signal_exit();
1335
- var DEFAULT_FORCE_KILL_TIMEOUT = 1e3 * 5;
1336
- var spawnedKill = (kill, signal = "SIGTERM", options2 = {}) => {
1337
- const killResult = kill(signal);
1338
- setKillTimeout(kill, signal, options2, killResult);
1339
- return killResult;
1340
- };
1341
- var setKillTimeout = (kill, signal, options2, killResult) => {
1342
- if (!shouldForceKill(signal, options2, killResult)) {
1343
- return;
1344
- }
1345
- const timeout = getForceKillAfterTimeout(options2);
1346
- const t = setTimeout(() => {
1347
- kill("SIGKILL");
1348
- }, timeout);
1349
- if (t.unref) {
1350
- t.unref();
1351
- }
1352
- };
1353
- var shouldForceKill = (signal, { forceKillAfterTimeout }, killResult) => {
1354
- return isSigterm(signal) && forceKillAfterTimeout !== false && killResult;
1355
- };
1356
- var isSigterm = (signal) => {
1357
- return signal === os2.constants.signals.SIGTERM || typeof signal === "string" && signal.toUpperCase() === "SIGTERM";
1358
- };
1359
- var getForceKillAfterTimeout = ({ forceKillAfterTimeout = true }) => {
1360
- if (forceKillAfterTimeout === true) {
1361
- return DEFAULT_FORCE_KILL_TIMEOUT;
1362
- }
1363
- if (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) {
1364
- throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${forceKillAfterTimeout}\` (${typeof forceKillAfterTimeout})`);
1365
- }
1366
- return forceKillAfterTimeout;
1367
- };
1368
- var spawnedCancel = (spawned, context) => {
1369
- const killResult = spawned.kill();
1370
- if (killResult) {
1371
- context.isCanceled = true;
1372
- }
1373
- };
1374
- var timeoutKill = (spawned, signal, reject) => {
1375
- spawned.kill(signal);
1376
- reject(Object.assign(new Error("Timed out"), { timedOut: true, signal }));
1377
- };
1378
- var setupTimeout = (spawned, { timeout, killSignal = "SIGTERM" }, spawnedPromise) => {
1379
- if (timeout === 0 || timeout === void 0) {
1380
- return spawnedPromise;
1381
- }
1382
- let timeoutId;
1383
- const timeoutPromise = new Promise((resolve, reject) => {
1384
- timeoutId = setTimeout(() => {
1385
- timeoutKill(spawned, killSignal, reject);
1386
- }, timeout);
1387
- });
1388
- const safeSpawnedPromise = spawnedPromise.finally(() => {
1389
- clearTimeout(timeoutId);
1390
- });
1391
- return Promise.race([timeoutPromise, safeSpawnedPromise]);
1392
- };
1393
- var validateTimeout = ({ timeout }) => {
1394
- if (timeout !== void 0 && (!Number.isFinite(timeout) || timeout < 0)) {
1395
- throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${timeout}\` (${typeof timeout})`);
1396
- }
1397
- };
1398
- var setExitHandler = async (spawned, { cleanup, detached }, timedPromise) => {
1399
- if (!cleanup || detached) {
1400
- return timedPromise;
1401
- }
1402
- const removeExitHandler = onExit(() => {
1403
- spawned.kill();
1404
- });
1405
- return timedPromise.finally(() => {
1406
- removeExitHandler();
1407
- });
1408
- };
1409
- module2.exports = {
1410
- spawnedKill,
1411
- spawnedCancel,
1412
- setupTimeout,
1413
- validateTimeout,
1414
- setExitHandler
1415
- };
1416
- }
1417
- });
1418
- var require_buffer_stream = (0, import_chunk_AH6QHEOA.__commonJS)({
1419
- "../../node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/buffer-stream.js"(exports, module2) {
1420
- "use strict";
1421
- var { PassThrough: PassThroughStream } = (0, import_chunk_AH6QHEOA.__require)("stream");
1422
- module2.exports = (options2) => {
1423
- options2 = { ...options2 };
1424
- const { array } = options2;
1425
- let { encoding } = options2;
1426
- const isBuffer = encoding === "buffer";
1427
- let objectMode = false;
1428
- if (array) {
1429
- objectMode = !(encoding || isBuffer);
1430
- } else {
1431
- encoding = encoding || "utf8";
1432
- }
1433
- if (isBuffer) {
1434
- encoding = null;
1435
- }
1436
- const stream = new PassThroughStream({ objectMode });
1437
- if (encoding) {
1438
- stream.setEncoding(encoding);
1439
- }
1440
- let length = 0;
1441
- const chunks = [];
1442
- stream.on("data", (chunk) => {
1443
- chunks.push(chunk);
1444
- if (objectMode) {
1445
- length = chunks.length;
1446
- } else {
1447
- length += chunk.length;
1448
- }
1449
- });
1450
- stream.getBufferedValue = () => {
1451
- if (array) {
1452
- return chunks;
1453
- }
1454
- return isBuffer ? Buffer.concat(chunks, length) : chunks.join("");
1455
- };
1456
- stream.getBufferedLength = () => length;
1457
- return stream;
1458
- };
1459
- }
1460
- });
1461
- var require_get_stream = (0, import_chunk_AH6QHEOA.__commonJS)({
1462
- "../../node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/index.js"(exports, module2) {
1463
- "use strict";
1464
- var { constants: BufferConstants } = (0, import_chunk_AH6QHEOA.__require)("buffer");
1465
- var stream = (0, import_chunk_AH6QHEOA.__require)("stream");
1466
- var { promisify: promisify2 } = (0, import_chunk_AH6QHEOA.__require)("util");
1467
- var bufferStream = require_buffer_stream();
1468
- var streamPipelinePromisified = promisify2(stream.pipeline);
1469
- var MaxBufferError = class extends Error {
1470
- constructor() {
1471
- super("maxBuffer exceeded");
1472
- this.name = "MaxBufferError";
1473
- }
1474
- };
1475
- async function getStream(inputStream, options2) {
1476
- if (!inputStream) {
1477
- throw new Error("Expected a stream");
1478
- }
1479
- options2 = {
1480
- maxBuffer: Infinity,
1481
- ...options2
1482
- };
1483
- const { maxBuffer } = options2;
1484
- const stream2 = bufferStream(options2);
1485
- await new Promise((resolve, reject) => {
1486
- const rejectPromise = (error) => {
1487
- if (error && stream2.getBufferedLength() <= BufferConstants.MAX_LENGTH) {
1488
- error.bufferedData = stream2.getBufferedValue();
1489
- }
1490
- reject(error);
1491
- };
1492
- (async () => {
1493
- try {
1494
- await streamPipelinePromisified(inputStream, stream2);
1495
- resolve();
1496
- } catch (error) {
1497
- rejectPromise(error);
1498
- }
1499
- })();
1500
- stream2.on("data", () => {
1501
- if (stream2.getBufferedLength() > maxBuffer) {
1502
- rejectPromise(new MaxBufferError());
1503
- }
1504
- });
1505
- });
1506
- return stream2.getBufferedValue();
1507
- }
1508
- module2.exports = getStream;
1509
- module2.exports.buffer = (stream2, options2) => getStream(stream2, { ...options2, encoding: "buffer" });
1510
- module2.exports.array = (stream2, options2) => getStream(stream2, { ...options2, array: true });
1511
- module2.exports.MaxBufferError = MaxBufferError;
1512
- }
1513
- });
1514
- var require_merge_stream = (0, import_chunk_AH6QHEOA.__commonJS)({
1515
- "../../node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js"(exports, module2) {
1516
- "use strict";
1517
- var { PassThrough } = (0, import_chunk_AH6QHEOA.__require)("stream");
1518
- module2.exports = function() {
1519
- var sources = [];
1520
- var output = new PassThrough({ objectMode: true });
1521
- output.setMaxListeners(0);
1522
- output.add = add;
1523
- output.isEmpty = isEmpty;
1524
- output.on("unpipe", remove);
1525
- Array.prototype.slice.call(arguments).forEach(add);
1526
- return output;
1527
- function add(source) {
1528
- if (Array.isArray(source)) {
1529
- source.forEach(add);
1530
- return this;
1531
- }
1532
- sources.push(source);
1533
- source.once("end", remove.bind(null, source));
1534
- source.once("error", output.emit.bind(output, "error"));
1535
- source.pipe(output, { end: false });
1536
- return this;
1537
- }
1538
- function isEmpty() {
1539
- return sources.length == 0;
1540
- }
1541
- function remove(source) {
1542
- sources = sources.filter(function(it) {
1543
- return it !== source;
1544
- });
1545
- if (!sources.length && output.readable) {
1546
- output.end();
1547
- }
1548
- }
1549
- };
1550
- }
1551
- });
1552
- var require_stream = (0, import_chunk_AH6QHEOA.__commonJS)({
1553
- "../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stream.js"(exports, module2) {
1554
- "use strict";
1555
- var isStream = (0, import_chunk_QLWYUM7O.require_is_stream)();
1556
- var getStream = require_get_stream();
1557
- var mergeStream = require_merge_stream();
1558
- var handleInput = (spawned, input) => {
1559
- if (input === void 0 || spawned.stdin === void 0) {
1560
- return;
1561
- }
1562
- if (isStream(input)) {
1563
- input.pipe(spawned.stdin);
1564
- } else {
1565
- spawned.stdin.end(input);
1566
- }
1567
- };
1568
- var makeAllStream = (spawned, { all }) => {
1569
- if (!all || !spawned.stdout && !spawned.stderr) {
1570
- return;
1571
- }
1572
- const mixed = mergeStream();
1573
- if (spawned.stdout) {
1574
- mixed.add(spawned.stdout);
1575
- }
1576
- if (spawned.stderr) {
1577
- mixed.add(spawned.stderr);
1578
- }
1579
- return mixed;
1580
- };
1581
- var getBufferedData = async (stream, streamPromise) => {
1582
- if (!stream) {
1583
- return;
1584
- }
1585
- stream.destroy();
1586
- try {
1587
- return await streamPromise;
1588
- } catch (error) {
1589
- return error.bufferedData;
1590
- }
1591
- };
1592
- var getStreamPromise = (stream, { encoding, buffer, maxBuffer }) => {
1593
- if (!stream || !buffer) {
1594
- return;
1595
- }
1596
- if (encoding) {
1597
- return getStream(stream, { encoding, maxBuffer });
1598
- }
1599
- return getStream.buffer(stream, { maxBuffer });
1600
- };
1601
- var getSpawnedResult = async ({ stdout, stderr, all }, { encoding, buffer, maxBuffer }, processDone) => {
1602
- const stdoutPromise = getStreamPromise(stdout, { encoding, buffer, maxBuffer });
1603
- const stderrPromise = getStreamPromise(stderr, { encoding, buffer, maxBuffer });
1604
- const allPromise = getStreamPromise(all, { encoding, buffer, maxBuffer: maxBuffer * 2 });
1605
- try {
1606
- return await Promise.all([processDone, stdoutPromise, stderrPromise, allPromise]);
1607
- } catch (error) {
1608
- return Promise.all([
1609
- { error, signal: error.signal, timedOut: error.timedOut },
1610
- getBufferedData(stdout, stdoutPromise),
1611
- getBufferedData(stderr, stderrPromise),
1612
- getBufferedData(all, allPromise)
1613
- ]);
1614
- }
1615
- };
1616
- var validateInputSync = ({ input }) => {
1617
- if (isStream(input)) {
1618
- throw new TypeError("The `input` option cannot be a stream in sync mode");
1619
- }
1620
- };
1621
- module2.exports = {
1622
- handleInput,
1623
- makeAllStream,
1624
- getSpawnedResult,
1625
- validateInputSync
1626
- };
1627
- }
1628
- });
1629
- var require_promise = (0, import_chunk_AH6QHEOA.__commonJS)({
1630
- "../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/promise.js"(exports, module2) {
1631
- "use strict";
1632
- var nativePromisePrototype = (async () => {
1633
- })().constructor.prototype;
1634
- var descriptors = ["then", "catch", "finally"].map((property) => [
1635
- property,
1636
- Reflect.getOwnPropertyDescriptor(nativePromisePrototype, property)
1637
- ]);
1638
- var mergePromise = (spawned, promise) => {
1639
- for (const [property, descriptor] of descriptors) {
1640
- const value = typeof promise === "function" ? (...args) => Reflect.apply(descriptor.value, promise(), args) : descriptor.value.bind(promise);
1641
- Reflect.defineProperty(spawned, property, { ...descriptor, value });
1642
- }
1643
- return spawned;
1644
- };
1645
- var getSpawnedPromise = (spawned) => {
1646
- return new Promise((resolve, reject) => {
1647
- spawned.on("exit", (exitCode, signal) => {
1648
- resolve({ exitCode, signal });
1649
- });
1650
- spawned.on("error", (error) => {
1651
- reject(error);
1652
- });
1653
- if (spawned.stdin) {
1654
- spawned.stdin.on("error", (error) => {
1655
- reject(error);
1656
- });
1657
- }
1658
- });
1659
- };
1660
- module2.exports = {
1661
- mergePromise,
1662
- getSpawnedPromise
1663
- };
1664
- }
1665
- });
1666
- var require_command = (0, import_chunk_AH6QHEOA.__commonJS)({
1667
- "../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/command.js"(exports, module2) {
1668
- "use strict";
1669
- var normalizeArgs = (file2, args = []) => {
1670
- if (!Array.isArray(args)) {
1671
- return [file2];
1672
- }
1673
- return [file2, ...args];
1674
- };
1675
- var NO_ESCAPE_REGEXP = /^[\w.-]+$/;
1676
- var DOUBLE_QUOTES_REGEXP = /"/g;
1677
- var escapeArg = (arg) => {
1678
- if (typeof arg !== "string" || NO_ESCAPE_REGEXP.test(arg)) {
1679
- return arg;
1680
- }
1681
- return `"${arg.replace(DOUBLE_QUOTES_REGEXP, '\\"')}"`;
1682
- };
1683
- var joinCommand = (file2, args) => {
1684
- return normalizeArgs(file2, args).join(" ");
1685
- };
1686
- var getEscapedCommand = (file2, args) => {
1687
- return normalizeArgs(file2, args).map((arg) => escapeArg(arg)).join(" ");
1688
- };
1689
- var SPACES_REGEXP = / +/g;
1690
- var parseCommand = (command) => {
1691
- const tokens = [];
1692
- for (const token of command.trim().split(SPACES_REGEXP)) {
1693
- const previousToken = tokens[tokens.length - 1];
1694
- if (previousToken && previousToken.endsWith("\\")) {
1695
- tokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`;
1696
- } else {
1697
- tokens.push(token);
1698
- }
1699
- }
1700
- return tokens;
1701
- };
1702
- module2.exports = {
1703
- joinCommand,
1704
- getEscapedCommand,
1705
- parseCommand
1706
- };
1707
- }
1708
- });
1709
- var require_execa = (0, import_chunk_AH6QHEOA.__commonJS)({
1710
- "../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/index.js"(exports, module2) {
1711
- "use strict";
1712
- var path2 = (0, import_chunk_AH6QHEOA.__require)("path");
1713
- var childProcess = (0, import_chunk_AH6QHEOA.__require)("child_process");
1714
- var crossSpawn = require_cross_spawn();
1715
- var stripFinalNewline = require_strip_final_newline();
1716
- var npmRunPath = require_npm_run_path();
1717
- var onetime = require_onetime();
1718
- var makeError = require_error();
1719
- var normalizeStdio = require_stdio();
1720
- var { spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler } = require_kill();
1721
- var { handleInput, getSpawnedResult, makeAllStream, validateInputSync } = require_stream();
1722
- var { mergePromise, getSpawnedPromise } = require_promise();
1723
- var { joinCommand, parseCommand, getEscapedCommand } = require_command();
1724
- var DEFAULT_MAX_BUFFER = 1e3 * 1e3 * 100;
1725
- var getEnv = ({ env: envOption, extendEnv, preferLocal, localDir, execPath }) => {
1726
- const env = extendEnv ? { ...process.env, ...envOption } : envOption;
1727
- if (preferLocal) {
1728
- return npmRunPath.env({ env, cwd: localDir, execPath });
1729
- }
1730
- return env;
1731
- };
1732
- var handleArguments = (file2, args, options2 = {}) => {
1733
- const parsed = crossSpawn._parse(file2, args, options2);
1734
- file2 = parsed.command;
1735
- args = parsed.args;
1736
- options2 = parsed.options;
1737
- options2 = {
1738
- maxBuffer: DEFAULT_MAX_BUFFER,
1739
- buffer: true,
1740
- stripFinalNewline: true,
1741
- extendEnv: true,
1742
- preferLocal: false,
1743
- localDir: options2.cwd || process.cwd(),
1744
- execPath: process.execPath,
1745
- encoding: "utf8",
1746
- reject: true,
1747
- cleanup: true,
1748
- all: false,
1749
- windowsHide: true,
1750
- ...options2
1751
- };
1752
- options2.env = getEnv(options2);
1753
- options2.stdio = normalizeStdio(options2);
1754
- if (process.platform === "win32" && path2.basename(file2, ".exe") === "cmd") {
1755
- args.unshift("/q");
1756
- }
1757
- return { file: file2, args, options: options2, parsed };
1758
- };
1759
- var handleOutput = (options2, value, error) => {
1760
- if (typeof value !== "string" && !Buffer.isBuffer(value)) {
1761
- return error === void 0 ? void 0 : "";
1762
- }
1763
- if (options2.stripFinalNewline) {
1764
- return stripFinalNewline(value);
1765
- }
1766
- return value;
1767
- };
1768
- var execa2 = (file2, args, options2) => {
1769
- const parsed = handleArguments(file2, args, options2);
1770
- const command = joinCommand(file2, args);
1771
- const escapedCommand = getEscapedCommand(file2, args);
1772
- validateTimeout(parsed.options);
1773
- let spawned;
1774
- try {
1775
- spawned = childProcess.spawn(parsed.file, parsed.args, parsed.options);
1776
- } catch (error) {
1777
- const dummySpawned = new childProcess.ChildProcess();
1778
- const errorPromise = Promise.reject(makeError({
1779
- error,
1780
- stdout: "",
1781
- stderr: "",
1782
- all: "",
1783
- command,
1784
- escapedCommand,
1785
- parsed,
1786
- timedOut: false,
1787
- isCanceled: false,
1788
- killed: false
1789
- }));
1790
- return mergePromise(dummySpawned, errorPromise);
1791
- }
1792
- const spawnedPromise = getSpawnedPromise(spawned);
1793
- const timedPromise = setupTimeout(spawned, parsed.options, spawnedPromise);
1794
- const processDone = setExitHandler(spawned, parsed.options, timedPromise);
1795
- const context = { isCanceled: false };
1796
- spawned.kill = spawnedKill.bind(null, spawned.kill.bind(spawned));
1797
- spawned.cancel = spawnedCancel.bind(null, spawned, context);
1798
- const handlePromise = async () => {
1799
- const [{ error, exitCode, signal, timedOut }, stdoutResult, stderrResult, allResult] = await getSpawnedResult(spawned, parsed.options, processDone);
1800
- const stdout = handleOutput(parsed.options, stdoutResult);
1801
- const stderr = handleOutput(parsed.options, stderrResult);
1802
- const all = handleOutput(parsed.options, allResult);
1803
- if (error || exitCode !== 0 || signal !== null) {
1804
- const returnedError = makeError({
1805
- error,
1806
- exitCode,
1807
- signal,
1808
- stdout,
1809
- stderr,
1810
- all,
1811
- command,
1812
- escapedCommand,
1813
- parsed,
1814
- timedOut,
1815
- isCanceled: context.isCanceled,
1816
- killed: spawned.killed
1817
- });
1818
- if (!parsed.options.reject) {
1819
- return returnedError;
1820
- }
1821
- throw returnedError;
1822
- }
1823
- return {
1824
- command,
1825
- escapedCommand,
1826
- exitCode: 0,
1827
- stdout,
1828
- stderr,
1829
- all,
1830
- failed: false,
1831
- timedOut: false,
1832
- isCanceled: false,
1833
- killed: false
1834
- };
1835
- };
1836
- const handlePromiseOnce = onetime(handlePromise);
1837
- handleInput(spawned, parsed.options.input);
1838
- spawned.all = makeAllStream(spawned, parsed.options);
1839
- return mergePromise(spawned, handlePromiseOnce);
1840
- };
1841
- module2.exports = execa2;
1842
- module2.exports.sync = (file2, args, options2) => {
1843
- const parsed = handleArguments(file2, args, options2);
1844
- const command = joinCommand(file2, args);
1845
- const escapedCommand = getEscapedCommand(file2, args);
1846
- validateInputSync(parsed.options);
1847
- let result;
1848
- try {
1849
- result = childProcess.spawnSync(parsed.file, parsed.args, parsed.options);
1850
- } catch (error) {
1851
- throw makeError({
1852
- error,
1853
- stdout: "",
1854
- stderr: "",
1855
- all: "",
1856
- command,
1857
- escapedCommand,
1858
- parsed,
1859
- timedOut: false,
1860
- isCanceled: false,
1861
- killed: false
1862
- });
1863
- }
1864
- const stdout = handleOutput(parsed.options, result.stdout, result.error);
1865
- const stderr = handleOutput(parsed.options, result.stderr, result.error);
1866
- if (result.error || result.status !== 0 || result.signal !== null) {
1867
- const error = makeError({
1868
- stdout,
1869
- stderr,
1870
- error: result.error,
1871
- signal: result.signal,
1872
- exitCode: result.status,
1873
- command,
1874
- escapedCommand,
1875
- parsed,
1876
- timedOut: result.error && result.error.code === "ETIMEDOUT",
1877
- isCanceled: false,
1878
- killed: result.signal !== null
1879
- });
1880
- if (!parsed.options.reject) {
1881
- return error;
1882
- }
1883
- throw error;
1884
- }
1885
- return {
1886
- command,
1887
- escapedCommand,
1888
- exitCode: 0,
1889
- stdout,
1890
- stderr,
1891
- failed: false,
1892
- timedOut: false,
1893
- isCanceled: false,
1894
- killed: false
1895
- };
1896
- };
1897
- module2.exports.command = (command, options2) => {
1898
- const [file2, ...args] = parseCommand(command);
1899
- return execa2(file2, args, options2);
1900
- };
1901
- module2.exports.commandSync = (command, options2) => {
1902
- const [file2, ...args] = parseCommand(command);
1903
- return execa2.sync(file2, args, options2);
1904
- };
1905
- module2.exports.node = (scriptPath, args, options2 = {}) => {
1906
- if (args && !Array.isArray(args) && typeof args === "object") {
1907
- options2 = args;
1908
- args = [];
1909
- }
1910
- const stdio = normalizeStdio.node(options2);
1911
- const defaultExecArgv = process.execArgv.filter((arg) => !arg.startsWith("--inspect"));
1912
- const {
1913
- nodePath = process.execPath,
1914
- nodeOptions = defaultExecArgv
1915
- } = options2;
1916
- return execa2(
1917
- nodePath,
1918
- [
1919
- ...nodeOptions,
1920
- scriptPath,
1921
- ...Array.isArray(args) ? args : []
1922
- ],
1923
- {
1924
- ...options2,
1925
- stdin: void 0,
1926
- stdout: void 0,
1927
- stderr: void 0,
1928
- stdio,
1929
- shell: false
1930
- }
1931
- );
1932
- };
1933
- }
1934
- });
1935
- var require_p_map = (0, import_chunk_AH6QHEOA.__commonJS)({
1936
- "../../node_modules/.pnpm/p-map@2.1.0/node_modules/p-map/index.js"(exports, module2) {
1937
- "use strict";
1938
- var pMap = (iterable, mapper, options2) => new Promise((resolve, reject) => {
1939
- options2 = Object.assign({
1940
- concurrency: Infinity
1941
- }, options2);
1942
- if (typeof mapper !== "function") {
1943
- throw new TypeError("Mapper function is required");
1944
- }
1945
- const { concurrency } = options2;
1946
- if (!(typeof concurrency === "number" && concurrency >= 1)) {
1947
- throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${concurrency}\` (${typeof concurrency})`);
1948
- }
1949
- const ret = [];
1950
- const iterator = iterable[Symbol.iterator]();
1951
- let isRejected = false;
1952
- let isIterableDone = false;
1953
- let resolvingCount = 0;
1954
- let currentIndex = 0;
1955
- const next = () => {
1956
- if (isRejected) {
1957
- return;
1958
- }
1959
- const nextItem = iterator.next();
1960
- const i = currentIndex;
1961
- currentIndex++;
1962
- if (nextItem.done) {
1963
- isIterableDone = true;
1964
- if (resolvingCount === 0) {
1965
- resolve(ret);
1966
- }
1967
- return;
1968
- }
1969
- resolvingCount++;
1970
- Promise.resolve(nextItem.value).then((element) => mapper(element, i)).then(
1971
- (value) => {
1972
- ret[i] = value;
1973
- resolvingCount--;
1974
- next();
1975
- },
1976
- (error) => {
1977
- isRejected = true;
1978
- reject(error);
1979
- }
1980
- );
1981
- };
1982
- for (let i = 0; i < concurrency; i++) {
1983
- next();
1984
- if (isIterableDone) {
1985
- break;
1986
- }
1987
- }
1988
- });
1989
- module2.exports = pMap;
1990
- module2.exports.default = pMap;
1991
- }
1992
- });
1993
- var require_p_filter = (0, import_chunk_AH6QHEOA.__commonJS)({
1994
- "../../node_modules/.pnpm/p-filter@2.1.0/node_modules/p-filter/index.js"(exports, module2) {
1995
- "use strict";
1996
- var pMap = require_p_map();
1997
- var pFilter2 = async (iterable, filterer, options2) => {
1998
- const values = await pMap(
1999
- iterable,
2000
- (element, index) => Promise.all([filterer(element, index), element]),
2001
- options2
2002
- );
2003
- return values.filter((value) => Boolean(value[0])).map((value) => value[1]);
2004
- };
2005
- module2.exports = pFilter2;
2006
- module2.exports.default = pFilter2;
2007
- }
2008
- });
2009
- var require_package = (0, import_chunk_AH6QHEOA.__commonJS)({
2010
- "package.json"(exports, module2) {
2011
- module2.exports = {
2012
- name: "@prisma/fetch-engine",
2013
- version: "0.0.0",
2014
- description: "This package is intended for Prisma's internal use",
2015
- main: "dist/index.js",
2016
- types: "dist/index.d.ts",
2017
- license: "Apache-2.0",
2018
- author: "Tim Suchanek <suchanek@prisma.io>",
2019
- homepage: "https://www.prisma.io",
2020
- repository: {
2021
- type: "git",
2022
- url: "https://github.com/prisma/prisma.git",
2023
- directory: "packages/fetch-engine"
2024
- },
2025
- bugs: "https://github.com/prisma/prisma/issues",
2026
- enginesOverride: {},
2027
- devDependencies: {
2028
- "@swc/core": "1.6.13",
2029
- "@swc/jest": "0.2.36",
2030
- "@types/jest": "29.5.12",
2031
- "@types/node": "18.19.31",
2032
- "@types/progress": "2.0.7",
2033
- del: "6.1.1",
2034
- execa: "5.1.1",
2035
- "find-cache-dir": "5.0.0",
2036
- "fs-extra": "11.1.1",
2037
- hasha: "5.2.2",
2038
- "http-proxy-agent": "7.0.2",
2039
- "https-proxy-agent": "7.0.5",
2040
- jest: "29.7.0",
2041
- kleur: "4.1.5",
2042
- "node-fetch": "3.3.2",
2043
- "p-filter": "2.1.0",
2044
- "p-map": "4.0.0",
2045
- "p-retry": "4.6.2",
2046
- progress: "2.0.3",
2047
- rimraf: "3.0.2",
2048
- "strip-ansi": "6.0.1",
2049
- "temp-dir": "2.0.0",
2050
- tempy: "1.0.1",
2051
- "timeout-signal": "2.0.0",
2052
- typescript: "5.4.5"
2053
- },
2054
- dependencies: {
2055
- "@prisma/debug": "workspace:*",
2056
- "@prisma/engines-version": "5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2",
2057
- "@prisma/get-platform": "workspace:*"
2058
- },
2059
- scripts: {
2060
- dev: "DEV=true tsx helpers/build.ts",
2061
- build: "tsx helpers/build.ts",
2062
- test: "jest",
2063
- prepublishOnly: "pnpm run build"
2064
- },
2065
- files: [
2066
- "README.md",
2067
- "dist"
2068
- ],
2069
- sideEffects: false
2070
- };
2071
- }
2072
- });
2073
- var import_execa = (0, import_chunk_AH6QHEOA.__toESM)(require_execa());
2074
- var import_fs_extra = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_FQ2BOR66.require_lib)());
2075
- var import_p_filter = (0, import_chunk_AH6QHEOA.__toESM)(require_p_filter());
2076
- var import_temp_dir = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_QLWYUM7O.require_temp_dir)());
2077
- var { enginesOverride } = require_package();
2078
- var debug = (0, import_debug.default)("prisma:fetch-engine:download");
2079
- var exists = (0, import_util.promisify)(import_fs.default.exists);
2080
- var channel = "master";
2081
- var vercelPkgPathRegex = /^((\w:[\\\/])|\/)snapshot[\/\\]/;
2082
- async function download(options) {
2083
- if (enginesOverride?.["branch"] || enginesOverride?.["folder"]) {
2084
- options.version = "_local_";
2085
- options.skipCacheIntegrityCheck = true;
2086
- }
2087
- const { binaryTarget, ...os } = await (0, import_get_platform.getPlatformInfo)();
2088
- if (os.targetDistro && ["nixos"].includes(os.targetDistro) && !(0, import_chunk_PXQVM7NP.allEngineEnvVarsSet)(Object.keys(options.binaries))) {
2089
- console.error(
2090
- `${(0, import_chunk_PXQVM7NP.yellow)("Warning")} Precompiled engine files are not available for ${os.targetDistro}, please provide the paths via environment variables, see https://pris.ly/d/custom-engines`
2091
- );
2092
- } else if (["freebsd11", "freebsd12", "freebsd13", "freebsd14", "freebsd15", "openbsd", "netbsd"].includes(binaryTarget)) {
2093
- console.error(
2094
- `${(0, import_chunk_PXQVM7NP.yellow)(
2095
- "Warning"
2096
- )} Precompiled engine files are not available for ${binaryTarget}. Read more about building your own engines at https://pris.ly/d/build-engines`
2097
- );
2098
- } else if ("libquery-engine" in options.binaries) {
2099
- (0, import_get_platform.assertNodeAPISupported)();
2100
- }
2101
- if (!options.binaries || Object.values(options.binaries).length === 0) {
2102
- return {};
2103
- }
2104
- const opts = {
2105
- ...options,
2106
- binaryTargets: options.binaryTargets ?? [binaryTarget],
2107
- version: options.version ?? "latest",
2108
- binaries: options.binaries
2109
- };
2110
- const binaryJobs = Object.entries(opts.binaries).flatMap(
2111
- ([binaryName, targetFolder]) => opts.binaryTargets.map((binaryTarget2) => {
2112
- const fileName = getBinaryName(binaryName, binaryTarget2);
2113
- const targetFilePath = import_path.default.join(targetFolder, fileName);
2114
- return {
2115
- binaryName,
2116
- targetFolder,
2117
- binaryTarget: binaryTarget2,
2118
- fileName,
2119
- targetFilePath,
2120
- envVarPath: (0, import_chunk_PXQVM7NP.getBinaryEnvVarPath)(binaryName)?.path,
2121
- skipCacheIntegrityCheck: !!opts.skipCacheIntegrityCheck
2122
- };
2123
- })
2124
- );
2125
- if (process.env.BINARY_DOWNLOAD_VERSION) {
2126
- debug(`process.env.BINARY_DOWNLOAD_VERSION is set to "${process.env.BINARY_DOWNLOAD_VERSION}"`);
2127
- opts.version = process.env.BINARY_DOWNLOAD_VERSION;
2128
- }
2129
- if (opts.printVersion) {
2130
- console.log(`version: ${opts.version}`);
2131
- }
2132
- const binariesToDownload = await (0, import_p_filter.default)(binaryJobs, async (job) => {
2133
- const needsToBeDownloaded = await binaryNeedsToBeDownloaded(job, binaryTarget, opts.version);
2134
- const isSupported = import_get_platform.binaryTargets.includes(job.binaryTarget);
2135
- const shouldDownload = isSupported && !job.envVarPath && // this is for custom binaries
2136
- needsToBeDownloaded;
2137
- if (needsToBeDownloaded && !isSupported) {
2138
- throw new Error(`Unknown binaryTarget ${job.binaryTarget} and no custom engine files were provided`);
2139
- }
2140
- return shouldDownload;
2141
- });
2142
- if (binariesToDownload.length > 0) {
2143
- const cleanupPromise = (0, import_chunk_QSTZGX47.cleanupCache)();
2144
- let finishBar;
2145
- let setProgress;
2146
- if (opts.showProgress) {
2147
- const collectiveBar = getCollectiveBar(opts);
2148
- finishBar = collectiveBar.finishBar;
2149
- setProgress = collectiveBar.setProgress;
2150
- }
2151
- const promises = binariesToDownload.map((job) => {
2152
- const downloadUrl = (0, import_chunk_FQ2BOR66.getDownloadUrl)({
2153
- channel: "all_commits",
2154
- version: opts.version,
2155
- binaryTarget: job.binaryTarget,
2156
- binaryName: job.binaryName
2157
- });
2158
- debug(`${downloadUrl} will be downloaded to ${job.targetFilePath}`);
2159
- return downloadBinary({
2160
- ...job,
2161
- downloadUrl,
2162
- version: opts.version,
2163
- failSilent: opts.failSilent,
2164
- progressCb: setProgress ? setProgress(job.targetFilePath) : void 0
2165
- });
2166
- });
2167
- await Promise.all(promises);
2168
- await cleanupPromise;
2169
- if (finishBar) {
2170
- finishBar();
2171
- }
2172
- }
2173
- const binaryPaths = binaryJobsToBinaryPaths(binaryJobs);
2174
- const dir = eval("__dirname");
2175
- if (dir.match(vercelPkgPathRegex)) {
2176
- for (const engineType in binaryPaths) {
2177
- const binaryTargets2 = binaryPaths[engineType];
2178
- for (const binaryTarget2 in binaryTargets2) {
2179
- const binaryPath = binaryTargets2[binaryTarget2];
2180
- binaryTargets2[binaryTarget2] = await maybeCopyToTmp(binaryPath);
2181
- }
2182
- }
2183
- }
2184
- return binaryPaths;
2185
- }
2186
- function getCollectiveBar(options2) {
2187
- const hasNodeAPI = "libquery-engine" in options2.binaries;
2188
- const bar = (0, import_chunk_4LX3XBNY.getBar)(
2189
- `Downloading Prisma engines${hasNodeAPI ? " for Node-API" : ""} for ${options2.binaryTargets?.map((p) => (0, import_chunk_PXQVM7NP.bold)(p)).join(" and ")}`
2190
- );
2191
- const progressMap = {};
2192
- const numDownloads = Object.values(options2.binaries).length * Object.values(options2?.binaryTargets ?? []).length;
2193
- const setProgress = (sourcePath) => (progress) => {
2194
- progressMap[sourcePath] = progress;
2195
- const progressValues = Object.values(progressMap);
2196
- const totalProgress = progressValues.reduce((acc, curr) => {
2197
- return acc + curr;
2198
- }, 0) / numDownloads;
2199
- if (options2.progressCb) {
2200
- options2.progressCb(totalProgress);
2201
- }
2202
- if (bar) {
2203
- bar.update(totalProgress);
2204
- }
2205
- };
2206
- return {
2207
- setProgress,
2208
- finishBar: () => {
2209
- bar.update(1);
2210
- bar.terminate();
2211
- }
2212
- };
2213
- }
2214
- function binaryJobsToBinaryPaths(jobs) {
2215
- return jobs.reduce((acc, job) => {
2216
- if (!acc[job.binaryName]) {
2217
- acc[job.binaryName] = {};
2218
- }
2219
- acc[job.binaryName][job.binaryTarget] = job.envVarPath || job.targetFilePath;
2220
- return acc;
2221
- }, {});
2222
- }
2223
- async function binaryNeedsToBeDownloaded(job, nativePlatform, version) {
2224
- if (job.envVarPath && import_fs.default.existsSync(job.envVarPath)) {
2225
- return false;
2226
- }
2227
- const targetExists = await exists(job.targetFilePath);
2228
- const cachedFile = await getCachedBinaryPath({
2229
- ...job,
2230
- version
2231
- });
2232
- if (cachedFile) {
2233
- if (job.skipCacheIntegrityCheck === true) {
2234
- await (0, import_chunk_FQ2BOR66.overwriteFile)(cachedFile, job.targetFilePath);
2235
- return false;
2236
- }
2237
- const sha256FilePath = cachedFile + ".sha256";
2238
- if (await exists(sha256FilePath)) {
2239
- const sha256File = await import_fs.default.promises.readFile(sha256FilePath, "utf-8");
2240
- const sha256Cache = await (0, import_chunk_CWGQAQ3T.getHash)(cachedFile);
2241
- if (sha256File === sha256Cache) {
2242
- if (!targetExists) {
2243
- debug(`copying ${cachedFile} to ${job.targetFilePath}`);
2244
- await import_fs.default.promises.utimes(cachedFile, /* @__PURE__ */ new Date(), /* @__PURE__ */ new Date());
2245
- await (0, import_chunk_FQ2BOR66.overwriteFile)(cachedFile, job.targetFilePath);
2246
- }
2247
- const targetSha256 = await (0, import_chunk_CWGQAQ3T.getHash)(job.targetFilePath);
2248
- if (sha256File !== targetSha256) {
2249
- debug(`overwriting ${job.targetFilePath} with ${cachedFile} as hashes do not match`);
2250
- await (0, import_chunk_FQ2BOR66.overwriteFile)(cachedFile, job.targetFilePath);
2251
- }
2252
- return false;
2253
- } else {
2254
- return true;
2255
- }
2256
- } else if (process.env.PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING) {
2257
- debug(
2258
- `The checksum file: ${sha256FilePath} is missing but this was ignored as the PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING environment variable is truthy.`
2259
- );
2260
- return false;
2261
- } else {
2262
- return true;
2263
- }
2264
- }
2265
- if (!targetExists) {
2266
- debug(`file ${job.targetFilePath} does not exist and must be downloaded`);
2267
- return true;
2268
- }
2269
- if (job.binaryTarget === nativePlatform) {
2270
- const currentVersion = await getVersion(job.targetFilePath, job.binaryName);
2271
- if (currentVersion?.includes(version) !== true) {
2272
- debug(`file ${job.targetFilePath} exists but its version is ${currentVersion} and we expect ${version}`);
2273
- return true;
2274
- }
2275
- }
2276
- return false;
2277
- }
2278
- async function getVersion(enginePath, binaryName) {
2279
- try {
2280
- if (binaryName === "libquery-engine") {
2281
- (0, import_get_platform.assertNodeAPISupported)();
2282
- const commitHash = (0, import_chunk_AH6QHEOA.__require)(enginePath).version().commit;
2283
- return `${"libquery-engine"} ${commitHash}`;
2284
- } else {
2285
- const result = await (0, import_execa.default)(enginePath, ["--version"]);
2286
- return result.stdout;
2287
- }
2288
- } catch {
2289
- }
2290
- return void 0;
2291
- }
2292
- function getBinaryName(binaryName, binaryTarget2) {
2293
- if (binaryName === "libquery-engine") {
2294
- return `${(0, import_get_platform.getNodeAPIName)(binaryTarget2, "fs")}`;
2295
- }
2296
- const extension = binaryTarget2 === "windows" ? ".exe" : "";
2297
- return `${binaryName}-${binaryTarget2}${extension}`;
2298
- }
2299
- async function getCachedBinaryPath({
2300
- version,
2301
- binaryTarget: binaryTarget2,
2302
- binaryName
2303
- }) {
2304
- const cacheDir = await (0, import_chunk_FQ2BOR66.getCacheDir)(channel, version, binaryTarget2);
2305
- if (!cacheDir) {
2306
- return null;
2307
- }
2308
- const cachedTargetPath = import_path.default.join(cacheDir, binaryName);
2309
- if (!import_fs.default.existsSync(cachedTargetPath)) {
2310
- return null;
2311
- }
2312
- if (version !== "latest") {
2313
- return cachedTargetPath;
2314
- }
2315
- if (await exists(cachedTargetPath)) {
2316
- return cachedTargetPath;
2317
- }
2318
- return null;
2319
- }
2320
- async function downloadBinary(options2) {
2321
- const { version, progressCb, targetFilePath, downloadUrl } = options2;
2322
- const targetDir = import_path.default.dirname(targetFilePath);
2323
- try {
2324
- import_fs.default.accessSync(targetDir, import_fs.default.constants.W_OK);
2325
- await (0, import_fs_extra.ensureDir)(targetDir);
2326
- } catch (e) {
2327
- if (options2.failSilent || e.code !== "EACCES") {
2328
- return;
2329
- } else {
2330
- throw new Error(`Can't write to ${targetDir} please make sure you install "prisma" with the right permissions.`);
2331
- }
2332
- }
2333
- debug(`Downloading ${downloadUrl} to ${targetFilePath} ...`);
2334
- if (progressCb) {
2335
- progressCb(0);
2336
- }
2337
- const { sha256, zippedSha256 } = await (0, import_chunk_QLWYUM7O.downloadZip)(downloadUrl, targetFilePath, progressCb);
2338
- if (progressCb) {
2339
- progressCb(1);
2340
- }
2341
- (0, import_chunk_MX3HXAU2.chmodPlusX)(targetFilePath);
2342
- await saveFileToCache(options2, version, sha256, zippedSha256);
2343
- }
2344
- async function saveFileToCache(job, version, sha256, zippedSha256) {
2345
- const cacheDir = await (0, import_chunk_FQ2BOR66.getCacheDir)(channel, version, job.binaryTarget);
2346
- if (!cacheDir) {
2347
- return;
2348
- }
2349
- const cachedTargetPath = import_path.default.join(cacheDir, job.binaryName);
2350
- const cachedSha256Path = import_path.default.join(cacheDir, job.binaryName + ".sha256");
2351
- const cachedSha256ZippedPath = import_path.default.join(cacheDir, job.binaryName + ".gz.sha256");
2352
- try {
2353
- await (0, import_chunk_FQ2BOR66.overwriteFile)(job.targetFilePath, cachedTargetPath);
2354
- if (sha256 != null) {
2355
- await import_fs.default.promises.writeFile(cachedSha256Path, sha256);
2356
- }
2357
- if (zippedSha256 != null) {
2358
- await import_fs.default.promises.writeFile(cachedSha256ZippedPath, zippedSha256);
2359
- }
2360
- } catch (e) {
2361
- debug(e);
2362
- }
2363
- }
2364
- async function maybeCopyToTmp(file) {
2365
- const dir = eval("__dirname");
2366
- if (dir.match(vercelPkgPathRegex)) {
2367
- const targetDir = import_path.default.join(import_temp_dir.default, "prisma-binaries");
2368
- await (0, import_fs_extra.ensureDir)(targetDir);
2369
- const target = import_path.default.join(targetDir, import_path.default.basename(file));
2370
- const data = await import_fs.default.promises.readFile(file);
2371
- await import_fs.default.promises.writeFile(target, data);
2372
- plusX(target);
2373
- return target;
2374
- }
2375
- return file;
2376
- }
2377
- function plusX(file2) {
2378
- const s = import_fs.default.statSync(file2);
2379
- const newMode = s.mode | 64 | 8 | 1;
2380
- if (s.mode === newMode) {
2381
- return;
2382
- }
2383
- const base8 = newMode.toString(8).slice(-3);
2384
- import_fs.default.chmodSync(file2, base8);
2385
- }