socket 1.1.25 → 2.0.0

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 (913) hide show
  1. package/README.md +25 -83
  2. package/dist/bootstrap.js +213 -0
  3. package/package.json +25 -270
  4. package/CHANGELOG.md +0 -553
  5. package/LICENSE +0 -21
  6. package/bin/cli.js +0 -52
  7. package/bin/npm-cli.js +0 -29
  8. package/bin/npx-cli.js +0 -29
  9. package/bin/pnpm-cli.js +0 -29
  10. package/bin/yarn-cli.js +0 -29
  11. package/dist/cli.js +0 -14999
  12. package/dist/cli.js.map +0 -1
  13. package/dist/constants.js +0 -845
  14. package/dist/constants.js.map +0 -1
  15. package/dist/flags.js +0 -212
  16. package/dist/flags.js.map +0 -1
  17. package/dist/init.gradle +0 -250
  18. package/dist/npm-cli.js +0 -30
  19. package/dist/npm-cli.js.map +0 -1
  20. package/dist/npx-cli.js +0 -26
  21. package/dist/npx-cli.js.map +0 -1
  22. package/dist/pnpm-cli.js +0 -30
  23. package/dist/pnpm-cli.js.map +0 -1
  24. package/dist/shadow-npm-bin.js +0 -8
  25. package/dist/shadow-npm-bin.js.map +0 -1
  26. package/dist/shadow-npm-bin2.js +0 -102
  27. package/dist/shadow-npm-bin2.js.map +0 -1
  28. package/dist/shadow-npm-inject.js +0 -307
  29. package/dist/shadow-npm-inject.js.map +0 -1
  30. package/dist/shadow-npx-bin.js +0 -12
  31. package/dist/shadow-npx-bin.js.map +0 -1
  32. package/dist/shadow-pnpm-bin.js +0 -8
  33. package/dist/shadow-pnpm-bin.js.map +0 -1
  34. package/dist/shadow-pnpm-bin2.js +0 -300
  35. package/dist/shadow-pnpm-bin2.js.map +0 -1
  36. package/dist/shadow-yarn-bin.js +0 -96
  37. package/dist/shadow-yarn-bin.js.map +0 -1
  38. package/dist/socket-completion.bash +0 -237
  39. package/dist/tsconfig.dts.tsbuildinfo +0 -1
  40. package/dist/types/cli.d.mts +0 -3
  41. package/dist/types/cli.d.mts.map +0 -1
  42. package/dist/types/commands/analytics/cmd-analytics.d.mts +0 -10
  43. package/dist/types/commands/analytics/cmd-analytics.d.mts.map +0 -1
  44. package/dist/types/commands/analytics/fetch-org-analytics.d.mts +0 -8
  45. package/dist/types/commands/analytics/fetch-org-analytics.d.mts.map +0 -1
  46. package/dist/types/commands/analytics/fetch-repo-analytics.d.mts +0 -8
  47. package/dist/types/commands/analytics/fetch-repo-analytics.d.mts.map +0 -1
  48. package/dist/types/commands/analytics/handle-analytics.d.mts +0 -10
  49. package/dist/types/commands/analytics/handle-analytics.d.mts.map +0 -1
  50. package/dist/types/commands/analytics/output-analytics.d.mts +0 -29
  51. package/dist/types/commands/analytics/output-analytics.d.mts.map +0 -1
  52. package/dist/types/commands/audit-log/cmd-audit-log.d.mts +0 -10
  53. package/dist/types/commands/audit-log/cmd-audit-log.d.mts.map +0 -1
  54. package/dist/types/commands/audit-log/fetch-audit-log.d.mts +0 -15
  55. package/dist/types/commands/audit-log/fetch-audit-log.d.mts.map +0 -1
  56. package/dist/types/commands/audit-log/handle-audit-log.d.mts +0 -9
  57. package/dist/types/commands/audit-log/handle-audit-log.d.mts.map +0 -1
  58. package/dist/types/commands/audit-log/output-audit-log.d.mts +0 -22
  59. package/dist/types/commands/audit-log/output-audit-log.d.mts.map +0 -1
  60. package/dist/types/commands/ci/cmd-ci.d.mts +0 -9
  61. package/dist/types/commands/ci/cmd-ci.d.mts.map +0 -1
  62. package/dist/types/commands/ci/fetch-default-org-slug.d.mts +0 -4
  63. package/dist/types/commands/ci/fetch-default-org-slug.d.mts.map +0 -1
  64. package/dist/types/commands/ci/handle-ci.d.mts +0 -2
  65. package/dist/types/commands/ci/handle-ci.d.mts.map +0 -1
  66. package/dist/types/commands/config/cmd-config-auto.d.mts +0 -10
  67. package/dist/types/commands/config/cmd-config-auto.d.mts.map +0 -1
  68. package/dist/types/commands/config/cmd-config-get.d.mts +0 -9
  69. package/dist/types/commands/config/cmd-config-get.d.mts.map +0 -1
  70. package/dist/types/commands/config/cmd-config-list.d.mts +0 -9
  71. package/dist/types/commands/config/cmd-config-list.d.mts.map +0 -1
  72. package/dist/types/commands/config/cmd-config-set.d.mts +0 -10
  73. package/dist/types/commands/config/cmd-config-set.d.mts.map +0 -1
  74. package/dist/types/commands/config/cmd-config-unset.d.mts +0 -10
  75. package/dist/types/commands/config/cmd-config-unset.d.mts.map +0 -1
  76. package/dist/types/commands/config/cmd-config.d.mts +0 -3
  77. package/dist/types/commands/config/cmd-config.d.mts.map +0 -1
  78. package/dist/types/commands/config/discover-config-value.d.mts +0 -3
  79. package/dist/types/commands/config/discover-config-value.d.mts.map +0 -1
  80. package/dist/types/commands/config/handle-config-auto.d.mts +0 -7
  81. package/dist/types/commands/config/handle-config-auto.d.mts.map +0 -1
  82. package/dist/types/commands/config/handle-config-get.d.mts +0 -7
  83. package/dist/types/commands/config/handle-config-get.d.mts.map +0 -1
  84. package/dist/types/commands/config/handle-config-set.d.mts +0 -8
  85. package/dist/types/commands/config/handle-config-set.d.mts.map +0 -1
  86. package/dist/types/commands/config/handle-config-unset.d.mts +0 -7
  87. package/dist/types/commands/config/handle-config-unset.d.mts.map +0 -1
  88. package/dist/types/commands/config/output-config-auto.d.mts +0 -4
  89. package/dist/types/commands/config/output-config-auto.d.mts.map +0 -1
  90. package/dist/types/commands/config/output-config-get.d.mts +0 -4
  91. package/dist/types/commands/config/output-config-get.d.mts.map +0 -1
  92. package/dist/types/commands/config/output-config-list.d.mts +0 -6
  93. package/dist/types/commands/config/output-config-list.d.mts.map +0 -1
  94. package/dist/types/commands/config/output-config-set.d.mts +0 -3
  95. package/dist/types/commands/config/output-config-set.d.mts.map +0 -1
  96. package/dist/types/commands/config/output-config-unset.d.mts +0 -3
  97. package/dist/types/commands/config/output-config-unset.d.mts.map +0 -1
  98. package/dist/types/commands/fix/cmd-fix.d.mts +0 -10
  99. package/dist/types/commands/fix/cmd-fix.d.mts.map +0 -1
  100. package/dist/types/commands/fix/coana-fix.d.mts +0 -6
  101. package/dist/types/commands/fix/coana-fix.d.mts.map +0 -1
  102. package/dist/types/commands/fix/env-helpers.d.mts +0 -26
  103. package/dist/types/commands/fix/env-helpers.d.mts.map +0 -1
  104. package/dist/types/commands/fix/git.d.mts +0 -13
  105. package/dist/types/commands/fix/git.d.mts.map +0 -1
  106. package/dist/types/commands/fix/handle-fix.d.mts +0 -20
  107. package/dist/types/commands/fix/handle-fix.d.mts.map +0 -1
  108. package/dist/types/commands/fix/output-fix-result.d.mts +0 -3
  109. package/dist/types/commands/fix/output-fix-result.d.mts.map +0 -1
  110. package/dist/types/commands/fix/pull-request.d.mts +0 -31
  111. package/dist/types/commands/fix/pull-request.d.mts.map +0 -1
  112. package/dist/types/commands/fix/types.d.mts +0 -21
  113. package/dist/types/commands/fix/types.d.mts.map +0 -1
  114. package/dist/types/commands/install/cmd-install-completion.d.mts +0 -9
  115. package/dist/types/commands/install/cmd-install-completion.d.mts.map +0 -1
  116. package/dist/types/commands/install/cmd-install.d.mts +0 -3
  117. package/dist/types/commands/install/cmd-install.d.mts.map +0 -1
  118. package/dist/types/commands/install/handle-install-completion.d.mts +0 -2
  119. package/dist/types/commands/install/handle-install-completion.d.mts.map +0 -1
  120. package/dist/types/commands/install/output-install-completion.d.mts +0 -12
  121. package/dist/types/commands/install/output-install-completion.d.mts.map +0 -1
  122. package/dist/types/commands/install/setup-tab-completion.d.mts +0 -13
  123. package/dist/types/commands/install/setup-tab-completion.d.mts.map +0 -1
  124. package/dist/types/commands/json/cmd-json.d.mts +0 -9
  125. package/dist/types/commands/json/cmd-json.d.mts.map +0 -1
  126. package/dist/types/commands/json/handle-cmd-json.d.mts +0 -2
  127. package/dist/types/commands/json/handle-cmd-json.d.mts.map +0 -1
  128. package/dist/types/commands/json/output-cmd-json.d.mts +0 -2
  129. package/dist/types/commands/json/output-cmd-json.d.mts.map +0 -1
  130. package/dist/types/commands/login/apply-login.d.mts +0 -2
  131. package/dist/types/commands/login/apply-login.d.mts.map +0 -1
  132. package/dist/types/commands/login/attempt-login.d.mts +0 -6
  133. package/dist/types/commands/login/attempt-login.d.mts.map +0 -1
  134. package/dist/types/commands/login/cmd-login.d.mts +0 -10
  135. package/dist/types/commands/login/cmd-login.d.mts.map +0 -1
  136. package/dist/types/commands/logout/apply-logout.d.mts +0 -2
  137. package/dist/types/commands/logout/apply-logout.d.mts.map +0 -1
  138. package/dist/types/commands/logout/attempt-logout.d.mts +0 -2
  139. package/dist/types/commands/logout/attempt-logout.d.mts.map +0 -1
  140. package/dist/types/commands/logout/cmd-logout.d.mts +0 -9
  141. package/dist/types/commands/logout/cmd-logout.d.mts.map +0 -1
  142. package/dist/types/commands/manifest/cmd-manifest-auto.d.mts +0 -9
  143. package/dist/types/commands/manifest/cmd-manifest-auto.d.mts.map +0 -1
  144. package/dist/types/commands/manifest/cmd-manifest-cdxgen.d.mts +0 -9
  145. package/dist/types/commands/manifest/cmd-manifest-cdxgen.d.mts.map +0 -1
  146. package/dist/types/commands/manifest/cmd-manifest-conda.d.mts +0 -9
  147. package/dist/types/commands/manifest/cmd-manifest-conda.d.mts.map +0 -1
  148. package/dist/types/commands/manifest/cmd-manifest-gradle.d.mts +0 -9
  149. package/dist/types/commands/manifest/cmd-manifest-gradle.d.mts.map +0 -1
  150. package/dist/types/commands/manifest/cmd-manifest-kotlin.d.mts +0 -9
  151. package/dist/types/commands/manifest/cmd-manifest-kotlin.d.mts.map +0 -1
  152. package/dist/types/commands/manifest/cmd-manifest-scala.d.mts +0 -9
  153. package/dist/types/commands/manifest/cmd-manifest-scala.d.mts.map +0 -1
  154. package/dist/types/commands/manifest/cmd-manifest-setup.d.mts +0 -9
  155. package/dist/types/commands/manifest/cmd-manifest-setup.d.mts.map +0 -1
  156. package/dist/types/commands/manifest/cmd-manifest.d.mts +0 -9
  157. package/dist/types/commands/manifest/cmd-manifest.d.mts.map +0 -1
  158. package/dist/types/commands/manifest/convert-conda-to-requirements.d.mts +0 -8
  159. package/dist/types/commands/manifest/convert-conda-to-requirements.d.mts.map +0 -1
  160. package/dist/types/commands/manifest/convert_gradle_to_maven.d.mts +0 -7
  161. package/dist/types/commands/manifest/convert_gradle_to_maven.d.mts.map +0 -1
  162. package/dist/types/commands/manifest/convert_sbt_to_maven.d.mts +0 -8
  163. package/dist/types/commands/manifest/convert_sbt_to_maven.d.mts.map +0 -1
  164. package/dist/types/commands/manifest/detect-manifest-actions.d.mts +0 -13
  165. package/dist/types/commands/manifest/detect-manifest-actions.d.mts.map +0 -1
  166. package/dist/types/commands/manifest/generate_auto_manifest.d.mts +0 -9
  167. package/dist/types/commands/manifest/generate_auto_manifest.d.mts.map +0 -1
  168. package/dist/types/commands/manifest/handle-manifest-conda.d.mts +0 -9
  169. package/dist/types/commands/manifest/handle-manifest-conda.d.mts.map +0 -1
  170. package/dist/types/commands/manifest/handle-manifest-setup.d.mts +0 -2
  171. package/dist/types/commands/manifest/handle-manifest-setup.d.mts.map +0 -1
  172. package/dist/types/commands/manifest/output-manifest-setup.d.mts +0 -3
  173. package/dist/types/commands/manifest/output-manifest-setup.d.mts.map +0 -1
  174. package/dist/types/commands/manifest/output-requirements.d.mts +0 -6
  175. package/dist/types/commands/manifest/output-requirements.d.mts.map +0 -1
  176. package/dist/types/commands/manifest/run-cdxgen.d.mts +0 -6
  177. package/dist/types/commands/manifest/run-cdxgen.d.mts.map +0 -1
  178. package/dist/types/commands/manifest/setup-manifest-config.d.mts +0 -3
  179. package/dist/types/commands/manifest/setup-manifest-config.d.mts.map +0 -1
  180. package/dist/types/commands/npm/cmd-npm.d.mts +0 -10
  181. package/dist/types/commands/npm/cmd-npm.d.mts.map +0 -1
  182. package/dist/types/commands/npx/cmd-npx.d.mts +0 -9
  183. package/dist/types/commands/npx/cmd-npx.d.mts.map +0 -1
  184. package/dist/types/commands/oops/cmd-oops.d.mts +0 -9
  185. package/dist/types/commands/oops/cmd-oops.d.mts.map +0 -1
  186. package/dist/types/commands/optimize/add-overrides.d.mts +0 -20
  187. package/dist/types/commands/optimize/add-overrides.d.mts.map +0 -1
  188. package/dist/types/commands/optimize/apply-optimization.d.mts +0 -14
  189. package/dist/types/commands/optimize/apply-optimization.d.mts.map +0 -1
  190. package/dist/types/commands/optimize/cmd-optimize.d.mts +0 -10
  191. package/dist/types/commands/optimize/cmd-optimize.d.mts.map +0 -1
  192. package/dist/types/commands/optimize/deps-includes-by-agent.d.mts +0 -5
  193. package/dist/types/commands/optimize/deps-includes-by-agent.d.mts.map +0 -1
  194. package/dist/types/commands/optimize/get-dependency-entries.d.mts +0 -3
  195. package/dist/types/commands/optimize/get-dependency-entries.d.mts.map +0 -1
  196. package/dist/types/commands/optimize/get-overrides-by-agent.d.mts +0 -42
  197. package/dist/types/commands/optimize/get-overrides-by-agent.d.mts.map +0 -1
  198. package/dist/types/commands/optimize/handle-optimize.d.mts +0 -8
  199. package/dist/types/commands/optimize/handle-optimize.d.mts.map +0 -1
  200. package/dist/types/commands/optimize/lockfile-includes-by-agent.d.mts +0 -8
  201. package/dist/types/commands/optimize/lockfile-includes-by-agent.d.mts.map +0 -1
  202. package/dist/types/commands/optimize/ls-by-agent.d.mts +0 -13
  203. package/dist/types/commands/optimize/ls-by-agent.d.mts.map +0 -1
  204. package/dist/types/commands/optimize/output-optimize-result.d.mts +0 -9
  205. package/dist/types/commands/optimize/output-optimize-result.d.mts.map +0 -1
  206. package/dist/types/commands/optimize/shared.d.mts +0 -2
  207. package/dist/types/commands/optimize/shared.d.mts.map +0 -1
  208. package/dist/types/commands/optimize/types.d.mts +0 -9
  209. package/dist/types/commands/optimize/types.d.mts.map +0 -1
  210. package/dist/types/commands/optimize/update-lockfile.d.mts +0 -11
  211. package/dist/types/commands/optimize/update-lockfile.d.mts.map +0 -1
  212. package/dist/types/commands/optimize/update-manifest-by-agent.d.mts +0 -8
  213. package/dist/types/commands/optimize/update-manifest-by-agent.d.mts.map +0 -1
  214. package/dist/types/commands/organization/cmd-organization-dependencies.d.mts +0 -10
  215. package/dist/types/commands/organization/cmd-organization-dependencies.d.mts.map +0 -1
  216. package/dist/types/commands/organization/cmd-organization-list.d.mts +0 -10
  217. package/dist/types/commands/organization/cmd-organization-list.d.mts.map +0 -1
  218. package/dist/types/commands/organization/cmd-organization-policy-license.d.mts +0 -10
  219. package/dist/types/commands/organization/cmd-organization-policy-license.d.mts.map +0 -1
  220. package/dist/types/commands/organization/cmd-organization-policy-security.d.mts +0 -10
  221. package/dist/types/commands/organization/cmd-organization-policy-security.d.mts.map +0 -1
  222. package/dist/types/commands/organization/cmd-organization-policy.d.mts +0 -3
  223. package/dist/types/commands/organization/cmd-organization-policy.d.mts.map +0 -1
  224. package/dist/types/commands/organization/cmd-organization-quota.d.mts +0 -9
  225. package/dist/types/commands/organization/cmd-organization-quota.d.mts.map +0 -1
  226. package/dist/types/commands/organization/cmd-organization.d.mts +0 -3
  227. package/dist/types/commands/organization/cmd-organization.d.mts.map +0 -1
  228. package/dist/types/commands/organization/fetch-dependencies.d.mts +0 -12
  229. package/dist/types/commands/organization/fetch-dependencies.d.mts.map +0 -1
  230. package/dist/types/commands/organization/fetch-license-policy.d.mts +0 -8
  231. package/dist/types/commands/organization/fetch-license-policy.d.mts.map +0 -1
  232. package/dist/types/commands/organization/fetch-organization-list.d.mts +0 -20
  233. package/dist/types/commands/organization/fetch-organization-list.d.mts.map +0 -1
  234. package/dist/types/commands/organization/fetch-quota.d.mts +0 -8
  235. package/dist/types/commands/organization/fetch-quota.d.mts.map +0 -1
  236. package/dist/types/commands/organization/fetch-security-policy.d.mts +0 -8
  237. package/dist/types/commands/organization/fetch-security-policy.d.mts.map +0 -1
  238. package/dist/types/commands/organization/handle-dependencies.d.mts +0 -7
  239. package/dist/types/commands/organization/handle-dependencies.d.mts.map +0 -1
  240. package/dist/types/commands/organization/handle-license-policy.d.mts +0 -3
  241. package/dist/types/commands/organization/handle-license-policy.d.mts.map +0 -1
  242. package/dist/types/commands/organization/handle-organization-list.d.mts +0 -3
  243. package/dist/types/commands/organization/handle-organization-list.d.mts.map +0 -1
  244. package/dist/types/commands/organization/handle-quota.d.mts +0 -3
  245. package/dist/types/commands/organization/handle-quota.d.mts.map +0 -1
  246. package/dist/types/commands/organization/handle-security-policy.d.mts +0 -3
  247. package/dist/types/commands/organization/handle-security-policy.d.mts.map +0 -1
  248. package/dist/types/commands/organization/output-dependencies.d.mts +0 -8
  249. package/dist/types/commands/organization/output-dependencies.d.mts.map +0 -1
  250. package/dist/types/commands/organization/output-license-policy.d.mts +0 -4
  251. package/dist/types/commands/organization/output-license-policy.d.mts.map +0 -1
  252. package/dist/types/commands/organization/output-organization-list.d.mts +0 -4
  253. package/dist/types/commands/organization/output-organization-list.d.mts.map +0 -1
  254. package/dist/types/commands/organization/output-quota.d.mts +0 -4
  255. package/dist/types/commands/organization/output-quota.d.mts.map +0 -1
  256. package/dist/types/commands/organization/output-security-policy.d.mts +0 -4
  257. package/dist/types/commands/organization/output-security-policy.d.mts.map +0 -1
  258. package/dist/types/commands/package/cmd-package-score.d.mts +0 -10
  259. package/dist/types/commands/package/cmd-package-score.d.mts.map +0 -1
  260. package/dist/types/commands/package/cmd-package-shallow.d.mts +0 -17
  261. package/dist/types/commands/package/cmd-package-shallow.d.mts.map +0 -1
  262. package/dist/types/commands/package/cmd-package.d.mts +0 -3
  263. package/dist/types/commands/package/cmd-package.d.mts.map +0 -1
  264. package/dist/types/commands/package/fetch-purl-deep-score.d.mts +0 -51
  265. package/dist/types/commands/package/fetch-purl-deep-score.d.mts.map +0 -1
  266. package/dist/types/commands/package/fetch-purls-shallow-score.d.mts +0 -8
  267. package/dist/types/commands/package/fetch-purls-shallow-score.d.mts.map +0 -1
  268. package/dist/types/commands/package/handle-purl-deep-score.d.mts +0 -3
  269. package/dist/types/commands/package/handle-purl-deep-score.d.mts.map +0 -1
  270. package/dist/types/commands/package/handle-purls-shallow-score.d.mts +0 -6
  271. package/dist/types/commands/package/handle-purls-shallow-score.d.mts.map +0 -1
  272. package/dist/types/commands/package/output-purls-deep-score.d.mts +0 -5
  273. package/dist/types/commands/package/output-purls-deep-score.d.mts.map +0 -1
  274. package/dist/types/commands/package/output-purls-shallow-score.d.mts +0 -29
  275. package/dist/types/commands/package/output-purls-shallow-score.d.mts.map +0 -1
  276. package/dist/types/commands/package/parse-package-specifiers.d.mts +0 -9
  277. package/dist/types/commands/package/parse-package-specifiers.d.mts.map +0 -1
  278. package/dist/types/commands/patch/cmd-patch.d.mts +0 -10
  279. package/dist/types/commands/patch/cmd-patch.d.mts.map +0 -1
  280. package/dist/types/commands/patch/handle-patch.d.mts +0 -12
  281. package/dist/types/commands/patch/handle-patch.d.mts.map +0 -1
  282. package/dist/types/commands/patch/manifest-schema.d.mts +0 -34
  283. package/dist/types/commands/patch/manifest-schema.d.mts.map +0 -1
  284. package/dist/types/commands/patch/output-patch-result.d.mts +0 -5
  285. package/dist/types/commands/patch/output-patch-result.d.mts.map +0 -1
  286. package/dist/types/commands/pnpm/cmd-pnpm.d.mts +0 -10
  287. package/dist/types/commands/pnpm/cmd-pnpm.d.mts.map +0 -1
  288. package/dist/types/commands/raw-npm/cmd-raw-npm.d.mts +0 -9
  289. package/dist/types/commands/raw-npm/cmd-raw-npm.d.mts.map +0 -1
  290. package/dist/types/commands/raw-npm/run-raw-npm.d.mts +0 -2
  291. package/dist/types/commands/raw-npm/run-raw-npm.d.mts.map +0 -1
  292. package/dist/types/commands/raw-npx/cmd-raw-npx.d.mts +0 -9
  293. package/dist/types/commands/raw-npx/cmd-raw-npx.d.mts.map +0 -1
  294. package/dist/types/commands/raw-npx/run-raw-npx.d.mts +0 -2
  295. package/dist/types/commands/raw-npx/run-raw-npx.d.mts.map +0 -1
  296. package/dist/types/commands/repository/cmd-repository-create.d.mts +0 -10
  297. package/dist/types/commands/repository/cmd-repository-create.d.mts.map +0 -1
  298. package/dist/types/commands/repository/cmd-repository-del.d.mts +0 -10
  299. package/dist/types/commands/repository/cmd-repository-del.d.mts.map +0 -1
  300. package/dist/types/commands/repository/cmd-repository-list.d.mts +0 -10
  301. package/dist/types/commands/repository/cmd-repository-list.d.mts.map +0 -1
  302. package/dist/types/commands/repository/cmd-repository-update.d.mts +0 -10
  303. package/dist/types/commands/repository/cmd-repository-update.d.mts.map +0 -1
  304. package/dist/types/commands/repository/cmd-repository-view.d.mts +0 -10
  305. package/dist/types/commands/repository/cmd-repository-view.d.mts.map +0 -1
  306. package/dist/types/commands/repository/cmd-repository.d.mts +0 -3
  307. package/dist/types/commands/repository/cmd-repository.d.mts.map +0 -1
  308. package/dist/types/commands/repository/fetch-create-repo.d.mts +0 -16
  309. package/dist/types/commands/repository/fetch-create-repo.d.mts.map +0 -1
  310. package/dist/types/commands/repository/fetch-delete-repo.d.mts +0 -8
  311. package/dist/types/commands/repository/fetch-delete-repo.d.mts.map +0 -1
  312. package/dist/types/commands/repository/fetch-list-all-repos.d.mts +0 -10
  313. package/dist/types/commands/repository/fetch-list-all-repos.d.mts.map +0 -1
  314. package/dist/types/commands/repository/fetch-list-repos.d.mts +0 -15
  315. package/dist/types/commands/repository/fetch-list-repos.d.mts.map +0 -1
  316. package/dist/types/commands/repository/fetch-update-repo.d.mts +0 -16
  317. package/dist/types/commands/repository/fetch-update-repo.d.mts.map +0 -1
  318. package/dist/types/commands/repository/fetch-view-repo.d.mts +0 -8
  319. package/dist/types/commands/repository/fetch-view-repo.d.mts.map +0 -1
  320. package/dist/types/commands/repository/handle-create-repo.d.mts +0 -10
  321. package/dist/types/commands/repository/handle-create-repo.d.mts.map +0 -1
  322. package/dist/types/commands/repository/handle-delete-repo.d.mts +0 -3
  323. package/dist/types/commands/repository/handle-delete-repo.d.mts.map +0 -1
  324. package/dist/types/commands/repository/handle-list-repos.d.mts +0 -12
  325. package/dist/types/commands/repository/handle-list-repos.d.mts.map +0 -1
  326. package/dist/types/commands/repository/handle-update-repo.d.mts +0 -10
  327. package/dist/types/commands/repository/handle-update-repo.d.mts.map +0 -1
  328. package/dist/types/commands/repository/handle-view-repo.d.mts +0 -3
  329. package/dist/types/commands/repository/handle-view-repo.d.mts.map +0 -1
  330. package/dist/types/commands/repository/output-create-repo.d.mts +0 -4
  331. package/dist/types/commands/repository/output-create-repo.d.mts.map +0 -1
  332. package/dist/types/commands/repository/output-delete-repo.d.mts +0 -4
  333. package/dist/types/commands/repository/output-delete-repo.d.mts.map +0 -1
  334. package/dist/types/commands/repository/output-list-repos.d.mts +0 -5
  335. package/dist/types/commands/repository/output-list-repos.d.mts.map +0 -1
  336. package/dist/types/commands/repository/output-update-repo.d.mts +0 -4
  337. package/dist/types/commands/repository/output-update-repo.d.mts.map +0 -1
  338. package/dist/types/commands/repository/output-view-repo.d.mts +0 -4
  339. package/dist/types/commands/repository/output-view-repo.d.mts.map +0 -1
  340. package/dist/types/commands/repository/types.d.mts +0 -2
  341. package/dist/types/commands/repository/types.d.mts.map +0 -1
  342. package/dist/types/commands/scan/cmd-scan-create.d.mts +0 -10
  343. package/dist/types/commands/scan/cmd-scan-create.d.mts.map +0 -1
  344. package/dist/types/commands/scan/cmd-scan-del.d.mts +0 -10
  345. package/dist/types/commands/scan/cmd-scan-del.d.mts.map +0 -1
  346. package/dist/types/commands/scan/cmd-scan-diff.d.mts +0 -10
  347. package/dist/types/commands/scan/cmd-scan-diff.d.mts.map +0 -1
  348. package/dist/types/commands/scan/cmd-scan-github.d.mts +0 -10
  349. package/dist/types/commands/scan/cmd-scan-github.d.mts.map +0 -1
  350. package/dist/types/commands/scan/cmd-scan-list.d.mts +0 -4
  351. package/dist/types/commands/scan/cmd-scan-list.d.mts.map +0 -1
  352. package/dist/types/commands/scan/cmd-scan-metadata.d.mts +0 -4
  353. package/dist/types/commands/scan/cmd-scan-metadata.d.mts.map +0 -1
  354. package/dist/types/commands/scan/cmd-scan-reach.d.mts +0 -10
  355. package/dist/types/commands/scan/cmd-scan-reach.d.mts.map +0 -1
  356. package/dist/types/commands/scan/cmd-scan-report.d.mts +0 -4
  357. package/dist/types/commands/scan/cmd-scan-report.d.mts.map +0 -1
  358. package/dist/types/commands/scan/cmd-scan-setup.d.mts +0 -9
  359. package/dist/types/commands/scan/cmd-scan-setup.d.mts.map +0 -1
  360. package/dist/types/commands/scan/cmd-scan-view.d.mts +0 -4
  361. package/dist/types/commands/scan/cmd-scan-view.d.mts.map +0 -1
  362. package/dist/types/commands/scan/cmd-scan.d.mts +0 -3
  363. package/dist/types/commands/scan/cmd-scan.d.mts.map +0 -1
  364. package/dist/types/commands/scan/create-scan-from-github.d.mts +0 -12
  365. package/dist/types/commands/scan/create-scan-from-github.d.mts.map +0 -1
  366. package/dist/types/commands/scan/fetch-create-org-full-scan.d.mts +0 -20
  367. package/dist/types/commands/scan/fetch-create-org-full-scan.d.mts.map +0 -1
  368. package/dist/types/commands/scan/fetch-delete-org-full-scan.d.mts +0 -8
  369. package/dist/types/commands/scan/fetch-delete-org-full-scan.d.mts.map +0 -1
  370. package/dist/types/commands/scan/fetch-diff-scan.d.mts +0 -8
  371. package/dist/types/commands/scan/fetch-diff-scan.d.mts.map +0 -1
  372. package/dist/types/commands/scan/fetch-list-scans.d.mts +0 -18
  373. package/dist/types/commands/scan/fetch-list-scans.d.mts.map +0 -1
  374. package/dist/types/commands/scan/fetch-report-data.d.mts +0 -17
  375. package/dist/types/commands/scan/fetch-report-data.d.mts.map +0 -1
  376. package/dist/types/commands/scan/fetch-scan-metadata.d.mts +0 -8
  377. package/dist/types/commands/scan/fetch-scan-metadata.d.mts.map +0 -1
  378. package/dist/types/commands/scan/fetch-scan.d.mts +0 -4
  379. package/dist/types/commands/scan/fetch-scan.d.mts.map +0 -1
  380. package/dist/types/commands/scan/fetch-supported-scan-file-names.d.mts +0 -10
  381. package/dist/types/commands/scan/fetch-supported-scan-file-names.d.mts.map +0 -1
  382. package/dist/types/commands/scan/finalize-tier1-scan.d.mts +0 -12
  383. package/dist/types/commands/scan/finalize-tier1-scan.d.mts.map +0 -1
  384. package/dist/types/commands/scan/generate-report.d.mts +0 -44
  385. package/dist/types/commands/scan/generate-report.d.mts.map +0 -1
  386. package/dist/types/commands/scan/handle-create-github-scan.d.mts +0 -12
  387. package/dist/types/commands/scan/handle-create-github-scan.d.mts.map +0 -1
  388. package/dist/types/commands/scan/handle-create-new-scan.d.mts +0 -29
  389. package/dist/types/commands/scan/handle-create-new-scan.d.mts.map +0 -1
  390. package/dist/types/commands/scan/handle-delete-scan.d.mts +0 -3
  391. package/dist/types/commands/scan/handle-delete-scan.d.mts.map +0 -1
  392. package/dist/types/commands/scan/handle-diff-scan.d.mts +0 -10
  393. package/dist/types/commands/scan/handle-diff-scan.d.mts.map +0 -1
  394. package/dist/types/commands/scan/handle-list-scans.d.mts +0 -13
  395. package/dist/types/commands/scan/handle-list-scans.d.mts.map +0 -1
  396. package/dist/types/commands/scan/handle-scan-config.d.mts +0 -2
  397. package/dist/types/commands/scan/handle-scan-config.d.mts.map +0 -1
  398. package/dist/types/commands/scan/handle-scan-metadata.d.mts +0 -3
  399. package/dist/types/commands/scan/handle-scan-metadata.d.mts.map +0 -1
  400. package/dist/types/commands/scan/handle-scan-reach.d.mts +0 -12
  401. package/dist/types/commands/scan/handle-scan-reach.d.mts.map +0 -1
  402. package/dist/types/commands/scan/handle-scan-report.d.mts +0 -14
  403. package/dist/types/commands/scan/handle-scan-report.d.mts.map +0 -1
  404. package/dist/types/commands/scan/handle-scan-view.d.mts +0 -3
  405. package/dist/types/commands/scan/handle-scan-view.d.mts.map +0 -1
  406. package/dist/types/commands/scan/output-create-new-scan.d.mts +0 -10
  407. package/dist/types/commands/scan/output-create-new-scan.d.mts.map +0 -1
  408. package/dist/types/commands/scan/output-delete-scan.d.mts +0 -4
  409. package/dist/types/commands/scan/output-delete-scan.d.mts.map +0 -1
  410. package/dist/types/commands/scan/output-diff-scan.d.mts +0 -8
  411. package/dist/types/commands/scan/output-diff-scan.d.mts.map +0 -1
  412. package/dist/types/commands/scan/output-list-scans.d.mts +0 -4
  413. package/dist/types/commands/scan/output-list-scans.d.mts.map +0 -1
  414. package/dist/types/commands/scan/output-scan-config-result.d.mts +0 -3
  415. package/dist/types/commands/scan/output-scan-config-result.d.mts.map +0 -1
  416. package/dist/types/commands/scan/output-scan-github.d.mts +0 -3
  417. package/dist/types/commands/scan/output-scan-github.d.mts.map +0 -1
  418. package/dist/types/commands/scan/output-scan-metadata.d.mts +0 -4
  419. package/dist/types/commands/scan/output-scan-metadata.d.mts.map +0 -1
  420. package/dist/types/commands/scan/output-scan-reach.d.mts +0 -7
  421. package/dist/types/commands/scan/output-scan-reach.d.mts.map +0 -1
  422. package/dist/types/commands/scan/output-scan-report.d.mts +0 -22
  423. package/dist/types/commands/scan/output-scan-report.d.mts.map +0 -1
  424. package/dist/types/commands/scan/output-scan-view.d.mts +0 -4
  425. package/dist/types/commands/scan/output-scan-view.d.mts.map +0 -1
  426. package/dist/types/commands/scan/perform-reachability-analysis.d.mts +0 -27
  427. package/dist/types/commands/scan/perform-reachability-analysis.d.mts.map +0 -1
  428. package/dist/types/commands/scan/reachability-flags.d.mts +0 -3
  429. package/dist/types/commands/scan/reachability-flags.d.mts.map +0 -1
  430. package/dist/types/commands/scan/setup-scan-config.d.mts +0 -3
  431. package/dist/types/commands/scan/setup-scan-config.d.mts.map +0 -1
  432. package/dist/types/commands/scan/stream-scan.d.mts +0 -7
  433. package/dist/types/commands/scan/stream-scan.d.mts.map +0 -1
  434. package/dist/types/commands/scan/suggest-org-slug.d.mts +0 -2
  435. package/dist/types/commands/scan/suggest-org-slug.d.mts.map +0 -1
  436. package/dist/types/commands/scan/suggest-to-persist-orgslug.d.mts +0 -2
  437. package/dist/types/commands/scan/suggest-to-persist-orgslug.d.mts.map +0 -1
  438. package/dist/types/commands/scan/suggest_branch_slug.d.mts +0 -2
  439. package/dist/types/commands/scan/suggest_branch_slug.d.mts.map +0 -1
  440. package/dist/types/commands/scan/suggest_target.d.mts +0 -2
  441. package/dist/types/commands/scan/suggest_target.d.mts.map +0 -1
  442. package/dist/types/commands/scan/types.d.mts +0 -3
  443. package/dist/types/commands/scan/types.d.mts.map +0 -1
  444. package/dist/types/commands/threat-feed/cmd-threat-feed.d.mts +0 -10
  445. package/dist/types/commands/threat-feed/cmd-threat-feed.d.mts.map +0 -1
  446. package/dist/types/commands/threat-feed/fetch-threat-feed.d.mts +0 -13
  447. package/dist/types/commands/threat-feed/fetch-threat-feed.d.mts.map +0 -1
  448. package/dist/types/commands/threat-feed/handle-threat-feed.d.mts +0 -13
  449. package/dist/types/commands/threat-feed/handle-threat-feed.d.mts.map +0 -1
  450. package/dist/types/commands/threat-feed/output-threat-feed.d.mts +0 -4
  451. package/dist/types/commands/threat-feed/output-threat-feed.d.mts.map +0 -1
  452. package/dist/types/commands/threat-feed/types.d.mts +0 -15
  453. package/dist/types/commands/threat-feed/types.d.mts.map +0 -1
  454. package/dist/types/commands/uninstall/cmd-uninstall-completion.d.mts +0 -8
  455. package/dist/types/commands/uninstall/cmd-uninstall-completion.d.mts.map +0 -1
  456. package/dist/types/commands/uninstall/cmd-uninstall.d.mts +0 -3
  457. package/dist/types/commands/uninstall/cmd-uninstall.d.mts.map +0 -1
  458. package/dist/types/commands/uninstall/handle-uninstall-completion.d.mts +0 -2
  459. package/dist/types/commands/uninstall/handle-uninstall-completion.d.mts.map +0 -1
  460. package/dist/types/commands/uninstall/output-uninstall-completion.d.mts +0 -6
  461. package/dist/types/commands/uninstall/output-uninstall-completion.d.mts.map +0 -1
  462. package/dist/types/commands/uninstall/teardown-tab-completion.d.mts +0 -6
  463. package/dist/types/commands/uninstall/teardown-tab-completion.d.mts.map +0 -1
  464. package/dist/types/commands/wrapper/add-socket-wrapper.d.mts +0 -2
  465. package/dist/types/commands/wrapper/add-socket-wrapper.d.mts.map +0 -1
  466. package/dist/types/commands/wrapper/check-socket-wrapper-setup.d.mts +0 -2
  467. package/dist/types/commands/wrapper/check-socket-wrapper-setup.d.mts.map +0 -1
  468. package/dist/types/commands/wrapper/cmd-wrapper.d.mts +0 -9
  469. package/dist/types/commands/wrapper/cmd-wrapper.d.mts.map +0 -1
  470. package/dist/types/commands/wrapper/postinstall-wrapper.d.mts +0 -2
  471. package/dist/types/commands/wrapper/postinstall-wrapper.d.mts.map +0 -1
  472. package/dist/types/commands/wrapper/remove-socket-wrapper.d.mts +0 -2
  473. package/dist/types/commands/wrapper/remove-socket-wrapper.d.mts.map +0 -1
  474. package/dist/types/commands/yarn/cmd-yarn.d.mts +0 -10
  475. package/dist/types/commands/yarn/cmd-yarn.d.mts.map +0 -1
  476. package/dist/types/commands.d.mts +0 -203
  477. package/dist/types/commands.d.mts.map +0 -1
  478. package/dist/types/constants.d.mts +0 -299
  479. package/dist/types/constants.d.mts.map +0 -1
  480. package/dist/types/flags.d.mts +0 -18
  481. package/dist/types/flags.d.mts.map +0 -1
  482. package/dist/types/instrument-with-sentry.d.mts +0 -2
  483. package/dist/types/instrument-with-sentry.d.mts.map +0 -1
  484. package/dist/types/npm-cli.d.mts +0 -3
  485. package/dist/types/npm-cli.d.mts.map +0 -1
  486. package/dist/types/npx-cli.d.mts +0 -3
  487. package/dist/types/npx-cli.d.mts.map +0 -1
  488. package/dist/types/pnpm-cli.d.mts +0 -3
  489. package/dist/types/pnpm-cli.d.mts.map +0 -1
  490. package/dist/types/sea/bootstrap.d.mts +0 -2
  491. package/dist/types/sea/bootstrap.d.mts.map +0 -1
  492. package/dist/types/sea/build-sea.d.mts +0 -27
  493. package/dist/types/sea/build-sea.d.mts.map +0 -1
  494. package/dist/types/shadow/common.d.mts +0 -23
  495. package/dist/types/shadow/common.d.mts.map +0 -1
  496. package/dist/types/shadow/npm/arborist/index.d.mts +0 -8
  497. package/dist/types/shadow/npm/arborist/index.d.mts.map +0 -1
  498. package/dist/types/shadow/npm/arborist/lib/arborist/index.d.mts +0 -35
  499. package/dist/types/shadow/npm/arborist/lib/arborist/index.d.mts.map +0 -1
  500. package/dist/types/shadow/npm/arborist/types.d.mts +0 -123
  501. package/dist/types/shadow/npm/arborist/types.d.mts.map +0 -1
  502. package/dist/types/shadow/npm/arborist-helpers.d.mts +0 -24
  503. package/dist/types/shadow/npm/arborist-helpers.d.mts.map +0 -1
  504. package/dist/types/shadow/npm/bin.d.mts +0 -5
  505. package/dist/types/shadow/npm/bin.d.mts.map +0 -1
  506. package/dist/types/shadow/npm/inject.d.mts +0 -2
  507. package/dist/types/shadow/npm/inject.d.mts.map +0 -1
  508. package/dist/types/shadow/npm/install.d.mts +0 -13
  509. package/dist/types/shadow/npm/install.d.mts.map +0 -1
  510. package/dist/types/shadow/npm/paths.d.mts +0 -6
  511. package/dist/types/shadow/npm/paths.d.mts.map +0 -1
  512. package/dist/types/shadow/npm-base.d.mts +0 -11
  513. package/dist/types/shadow/npm-base.d.mts.map +0 -1
  514. package/dist/types/shadow/npx/bin.d.mts +0 -5
  515. package/dist/types/shadow/npx/bin.d.mts.map +0 -1
  516. package/dist/types/shadow/pnpm/bin.d.mts +0 -10
  517. package/dist/types/shadow/pnpm/bin.d.mts.map +0 -1
  518. package/dist/types/shadow/stdio-ipc.d.mts +0 -7
  519. package/dist/types/shadow/stdio-ipc.d.mts.map +0 -1
  520. package/dist/types/shadow/yarn/bin.d.mts +0 -10
  521. package/dist/types/shadow/yarn/bin.d.mts.map +0 -1
  522. package/dist/types/test/json-output-validation.d.mts +0 -37
  523. package/dist/types/test/json-output-validation.d.mts.map +0 -1
  524. package/dist/types/test/mocks/socket-auth.d.mts +0 -88
  525. package/dist/types/test/mocks/socket-auth.d.mts.map +0 -1
  526. package/dist/types/types.d.mts +0 -29
  527. package/dist/types/types.d.mts.map +0 -1
  528. package/dist/types/utils/agent.d.mts +0 -12
  529. package/dist/types/utils/agent.d.mts.map +0 -1
  530. package/dist/types/utils/alert/artifact.d.mts +0 -21
  531. package/dist/types/utils/alert/artifact.d.mts.map +0 -1
  532. package/dist/types/utils/alert/fix.d.mts +0 -6
  533. package/dist/types/utils/alert/fix.d.mts.map +0 -1
  534. package/dist/types/utils/alert/severity.d.mts +0 -14
  535. package/dist/types/utils/alert/severity.d.mts.map +0 -1
  536. package/dist/types/utils/alerts-map.d.mts +0 -27
  537. package/dist/types/utils/alerts-map.d.mts.map +0 -1
  538. package/dist/types/utils/api.d.mts +0 -44
  539. package/dist/types/utils/api.d.mts.map +0 -1
  540. package/dist/types/utils/check-input.d.mts +0 -9
  541. package/dist/types/utils/check-input.d.mts.map +0 -1
  542. package/dist/types/utils/cmd.d.mts +0 -50
  543. package/dist/types/utils/cmd.d.mts.map +0 -1
  544. package/dist/types/utils/coana.d.mts +0 -2
  545. package/dist/types/utils/coana.d.mts.map +0 -1
  546. package/dist/types/utils/color-or-markdown.d.mts +0 -16
  547. package/dist/types/utils/color-or-markdown.d.mts.map +0 -1
  548. package/dist/types/utils/completion.d.mts +0 -11
  549. package/dist/types/utils/completion.d.mts.map +0 -1
  550. package/dist/types/utils/config.d.mts +0 -34
  551. package/dist/types/utils/config.d.mts.map +0 -1
  552. package/dist/types/utils/cve-to-ghsa.d.mts +0 -6
  553. package/dist/types/utils/cve-to-ghsa.d.mts.map +0 -1
  554. package/dist/types/utils/debug.d.mts +0 -45
  555. package/dist/types/utils/debug.d.mts.map +0 -1
  556. package/dist/types/utils/determine-org-slug.d.mts +0 -2
  557. package/dist/types/utils/determine-org-slug.d.mts.map +0 -1
  558. package/dist/types/utils/dlx-binary.d.mts +0 -58
  559. package/dist/types/utils/dlx-binary.d.mts.map +0 -1
  560. package/dist/types/utils/dlx-detection.d.mts +0 -29
  561. package/dist/types/utils/dlx-detection.d.mts.map +0 -1
  562. package/dist/types/utils/dlx.d.mts +0 -36
  563. package/dist/types/utils/dlx.d.mts.map +0 -1
  564. package/dist/types/utils/ecosystem.d.mts +0 -20
  565. package/dist/types/utils/ecosystem.d.mts.map +0 -1
  566. package/dist/types/utils/errors.d.mts +0 -62
  567. package/dist/types/utils/errors.d.mts.map +0 -1
  568. package/dist/types/utils/extract-names.d.mts +0 -15
  569. package/dist/types/utils/extract-names.d.mts.map +0 -1
  570. package/dist/types/utils/fail-msg-with-badge.d.mts +0 -2
  571. package/dist/types/utils/fail-msg-with-badge.d.mts.map +0 -1
  572. package/dist/types/utils/filter-config.d.mts +0 -5
  573. package/dist/types/utils/filter-config.d.mts.map +0 -1
  574. package/dist/types/utils/fs.d.mts +0 -8
  575. package/dist/types/utils/fs.d.mts.map +0 -1
  576. package/dist/types/utils/get-output-kind.d.mts +0 -3
  577. package/dist/types/utils/get-output-kind.d.mts.map +0 -1
  578. package/dist/types/utils/git.d.mts +0 -35
  579. package/dist/types/utils/git.d.mts.map +0 -1
  580. package/dist/types/utils/github.d.mts +0 -38
  581. package/dist/types/utils/github.d.mts.map +0 -1
  582. package/dist/types/utils/glob.d.mts +0 -15
  583. package/dist/types/utils/glob.d.mts.map +0 -1
  584. package/dist/types/utils/lockfile.d.mts +0 -2
  585. package/dist/types/utils/lockfile.d.mts.map +0 -1
  586. package/dist/types/utils/map-to-object.d.mts +0 -10
  587. package/dist/types/utils/map-to-object.d.mts.map +0 -1
  588. package/dist/types/utils/markdown.d.mts +0 -27
  589. package/dist/types/utils/markdown.d.mts.map +0 -1
  590. package/dist/types/utils/meow-with-subcommands.d.mts +0 -83
  591. package/dist/types/utils/meow-with-subcommands.d.mts.map +0 -1
  592. package/dist/types/utils/ms-at-home.d.mts +0 -2
  593. package/dist/types/utils/ms-at-home.d.mts.map +0 -1
  594. package/dist/types/utils/npm-config.d.mts +0 -14
  595. package/dist/types/utils/npm-config.d.mts.map +0 -1
  596. package/dist/types/utils/npm-package-arg.d.mts +0 -8
  597. package/dist/types/utils/npm-package-arg.d.mts.map +0 -1
  598. package/dist/types/utils/npm-paths.d.mts +0 -7
  599. package/dist/types/utils/npm-paths.d.mts.map +0 -1
  600. package/dist/types/utils/npm-spec.d.mts +0 -57
  601. package/dist/types/utils/npm-spec.d.mts.map +0 -1
  602. package/dist/types/utils/objects.d.mts +0 -3
  603. package/dist/types/utils/objects.d.mts.map +0 -1
  604. package/dist/types/utils/organization.d.mts +0 -5
  605. package/dist/types/utils/organization.d.mts.map +0 -1
  606. package/dist/types/utils/output-formatting.d.mts +0 -20
  607. package/dist/types/utils/output-formatting.d.mts.map +0 -1
  608. package/dist/types/utils/package-environment.d.mts +0 -57
  609. package/dist/types/utils/package-environment.d.mts.map +0 -1
  610. package/dist/types/utils/path-resolve.d.mts +0 -14
  611. package/dist/types/utils/path-resolve.d.mts.map +0 -1
  612. package/dist/types/utils/pnpm-paths.d.mts +0 -5
  613. package/dist/types/utils/pnpm-paths.d.mts.map +0 -1
  614. package/dist/types/utils/pnpm.d.mts +0 -11
  615. package/dist/types/utils/pnpm.d.mts.map +0 -1
  616. package/dist/types/utils/purl-to-ghsa.d.mts +0 -6
  617. package/dist/types/utils/purl-to-ghsa.d.mts.map +0 -1
  618. package/dist/types/utils/purl.d.mts +0 -71
  619. package/dist/types/utils/purl.d.mts.map +0 -1
  620. package/dist/types/utils/requirements.d.mts +0 -125
  621. package/dist/types/utils/requirements.d.mts.map +0 -1
  622. package/dist/types/utils/sdk.d.mts +0 -17
  623. package/dist/types/utils/sdk.d.mts.map +0 -1
  624. package/dist/types/utils/semver.d.mts +0 -7
  625. package/dist/types/utils/semver.d.mts.map +0 -1
  626. package/dist/types/utils/serialize-result-json.d.mts +0 -5
  627. package/dist/types/utils/serialize-result-json.d.mts.map +0 -1
  628. package/dist/types/utils/shadow-links.d.mts +0 -5
  629. package/dist/types/utils/shadow-links.d.mts.map +0 -1
  630. package/dist/types/utils/socket-json.d.mts +0 -59
  631. package/dist/types/utils/socket-json.d.mts.map +0 -1
  632. package/dist/types/utils/socket-package-alert.d.mts +0 -80
  633. package/dist/types/utils/socket-package-alert.d.mts.map +0 -1
  634. package/dist/types/utils/socket-url.d.mts +0 -8
  635. package/dist/types/utils/socket-url.d.mts.map +0 -1
  636. package/dist/types/utils/spec.d.mts +0 -5
  637. package/dist/types/utils/spec.d.mts.map +0 -1
  638. package/dist/types/utils/strings.d.mts +0 -14
  639. package/dist/types/utils/strings.d.mts.map +0 -1
  640. package/dist/types/utils/terminal-link.d.mts +0 -52
  641. package/dist/types/utils/terminal-link.d.mts.map +0 -1
  642. package/dist/types/utils/tildify.d.mts +0 -2
  643. package/dist/types/utils/tildify.d.mts.map +0 -1
  644. package/dist/types/utils/translations.d.mts +0 -617
  645. package/dist/types/utils/translations.d.mts.map +0 -1
  646. package/dist/types/utils/walk-nested-map.d.mts +0 -7
  647. package/dist/types/utils/walk-nested-map.d.mts.map +0 -1
  648. package/dist/types/utils/yarn-paths.d.mts +0 -5
  649. package/dist/types/utils/yarn-paths.d.mts.map +0 -1
  650. package/dist/types/utils/yarn-version.d.mts +0 -2
  651. package/dist/types/utils/yarn-version.d.mts.map +0 -1
  652. package/dist/types/yarn-cli.d.mts +0 -3
  653. package/dist/types/yarn-cli.d.mts.map +0 -1
  654. package/dist/utils.js +0 -6146
  655. package/dist/utils.js.map +0 -1
  656. package/dist/vendor.js +0 -162074
  657. package/dist/yarn-cli.js +0 -30
  658. package/dist/yarn-cli.js.map +0 -1
  659. package/external/@socketsecurity/registry/LICENSE +0 -21
  660. package/external/@socketsecurity/registry/README.md +0 -9
  661. package/external/@socketsecurity/registry/extensions.json +0 -28
  662. package/external/@socketsecurity/registry/external/@inquirer/confirm.js +0 -3165
  663. package/external/@socketsecurity/registry/external/@inquirer/input.js +0 -3202
  664. package/external/@socketsecurity/registry/external/@inquirer/password.js +0 -3307
  665. package/external/@socketsecurity/registry/external/@inquirer/search.js +0 -3519
  666. package/external/@socketsecurity/registry/external/@inquirer/select.js +0 -3655
  667. package/external/@socketsecurity/registry/external/@npmcli/package-json/index.js +0 -21406
  668. package/external/@socketsecurity/registry/external/@npmcli/package-json/lib/read-package.js +0 -183
  669. package/external/@socketsecurity/registry/external/@npmcli/package-json/lib/sort.js +0 -274
  670. package/external/@socketsecurity/registry/external/@npmcli/promise-spawn.js +0 -704
  671. package/external/@socketsecurity/registry/external/@socketregistry/is-unicode-supported.js +0 -54
  672. package/external/@socketsecurity/registry/external/@socketregistry/packageurl-js.js +0 -4516
  673. package/external/@socketsecurity/registry/external/@socketregistry/yocto-spinner.js +0 -453
  674. package/external/@socketsecurity/registry/external/@yarnpkg/extensions.js +0 -1406
  675. package/external/@socketsecurity/registry/external/browserslist.js +0 -20496
  676. package/external/@socketsecurity/registry/external/cacache.js +0 -16208
  677. package/external/@socketsecurity/registry/external/debug.js +0 -1163
  678. package/external/@socketsecurity/registry/external/fast-glob.js +0 -7994
  679. package/external/@socketsecurity/registry/external/fast-sort.js +0 -181
  680. package/external/@socketsecurity/registry/external/libnpmpack.js +0 -106271
  681. package/external/@socketsecurity/registry/external/make-fetch-happen.js +0 -38997
  682. package/external/@socketsecurity/registry/external/normalize-package-data.js +0 -5343
  683. package/external/@socketsecurity/registry/external/npm-package-arg.js +0 -5773
  684. package/external/@socketsecurity/registry/external/pacote.js +0 -74109
  685. package/external/@socketsecurity/registry/external/picomatch.js +0 -2307
  686. package/external/@socketsecurity/registry/external/semver.js +0 -2618
  687. package/external/@socketsecurity/registry/external/signal-exit.js +0 -336
  688. package/external/@socketsecurity/registry/external/spdx-correct.js +0 -1457
  689. package/external/@socketsecurity/registry/external/spdx-expression-parse.js +0 -1043
  690. package/external/@socketsecurity/registry/external/streaming-iterables.js +0 -326
  691. package/external/@socketsecurity/registry/external/validate-npm-package-name.js +0 -108
  692. package/external/@socketsecurity/registry/external/which.js +0 -405
  693. package/external/@socketsecurity/registry/external/yoctocolors-cjs.js +0 -101
  694. package/external/@socketsecurity/registry/index.js +0 -31
  695. package/external/@socketsecurity/registry/lib/agent.js +0 -390
  696. package/external/@socketsecurity/registry/lib/arrays.js +0 -89
  697. package/external/@socketsecurity/registry/lib/bin.js +0 -650
  698. package/external/@socketsecurity/registry/lib/constants/abort-controller.js +0 -15
  699. package/external/@socketsecurity/registry/lib/constants/abort-signal.js +0 -27
  700. package/external/@socketsecurity/registry/lib/constants/at-latest.js +0 -3
  701. package/external/@socketsecurity/registry/lib/constants/biome-json.js +0 -3
  702. package/external/@socketsecurity/registry/lib/constants/bun-lock.js +0 -3
  703. package/external/@socketsecurity/registry/lib/constants/bun-lockb.js +0 -3
  704. package/external/@socketsecurity/registry/lib/constants/bun.js +0 -3
  705. package/external/@socketsecurity/registry/lib/constants/ci.js +0 -3
  706. package/external/@socketsecurity/registry/lib/constants/column-limit.js +0 -3
  707. package/external/@socketsecurity/registry/lib/constants/copy-left-licenses.js +0 -27
  708. package/external/@socketsecurity/registry/lib/constants/darwin.js +0 -3
  709. package/external/@socketsecurity/registry/lib/constants/dot-git-dir.js +0 -3
  710. package/external/@socketsecurity/registry/lib/constants/dot-package-lock-json.js +0 -3
  711. package/external/@socketsecurity/registry/lib/constants/dot-socket-dir.js +0 -3
  712. package/external/@socketsecurity/registry/lib/constants/empty-file.js +0 -3
  713. package/external/@socketsecurity/registry/lib/constants/empty-value.js +0 -3
  714. package/external/@socketsecurity/registry/lib/constants/env.js +0 -59
  715. package/external/@socketsecurity/registry/lib/constants/eslint-config-js.js +0 -3
  716. package/external/@socketsecurity/registry/lib/constants/esnext.js +0 -3
  717. package/external/@socketsecurity/registry/lib/constants/exec-path.js +0 -3
  718. package/external/@socketsecurity/registry/lib/constants/ext-cjs.js +0 -3
  719. package/external/@socketsecurity/registry/lib/constants/ext-cmd.js +0 -3
  720. package/external/@socketsecurity/registry/lib/constants/ext-cts.js +0 -3
  721. package/external/@socketsecurity/registry/lib/constants/ext-dts.js +0 -3
  722. package/external/@socketsecurity/registry/lib/constants/ext-js.js +0 -3
  723. package/external/@socketsecurity/registry/lib/constants/ext-json.js +0 -3
  724. package/external/@socketsecurity/registry/lib/constants/ext-lock.js +0 -3
  725. package/external/@socketsecurity/registry/lib/constants/ext-lockb.js +0 -3
  726. package/external/@socketsecurity/registry/lib/constants/ext-md.js +0 -3
  727. package/external/@socketsecurity/registry/lib/constants/ext-mjs.js +0 -3
  728. package/external/@socketsecurity/registry/lib/constants/ext-mts.js +0 -3
  729. package/external/@socketsecurity/registry/lib/constants/ext-ps1.js +0 -3
  730. package/external/@socketsecurity/registry/lib/constants/ext-yaml.js +0 -3
  731. package/external/@socketsecurity/registry/lib/constants/ext-yml.js +0 -3
  732. package/external/@socketsecurity/registry/lib/constants/extensions-json.js +0 -3
  733. package/external/@socketsecurity/registry/lib/constants/extensions.js +0 -3
  734. package/external/@socketsecurity/registry/lib/constants/get-ipc.js +0 -10
  735. package/external/@socketsecurity/registry/lib/constants/gitignore.js +0 -3
  736. package/external/@socketsecurity/registry/lib/constants/index.js +0 -139
  737. package/external/@socketsecurity/registry/lib/constants/ipc-handler.js +0 -19
  738. package/external/@socketsecurity/registry/lib/constants/ipc-object.js +0 -6
  739. package/external/@socketsecurity/registry/lib/constants/ipc-promise.js +0 -47
  740. package/external/@socketsecurity/registry/lib/constants/ipc-target.js +0 -3
  741. package/external/@socketsecurity/registry/lib/constants/k-internals-symbol.js +0 -3
  742. package/external/@socketsecurity/registry/lib/constants/latest.js +0 -3
  743. package/external/@socketsecurity/registry/lib/constants/license-glob-recursive.js +0 -3
  744. package/external/@socketsecurity/registry/lib/constants/license-glob.js +0 -3
  745. package/external/@socketsecurity/registry/lib/constants/license-original-glob-recursive.js +0 -3
  746. package/external/@socketsecurity/registry/lib/constants/license-original-glob.js +0 -3
  747. package/external/@socketsecurity/registry/lib/constants/license-original.js +0 -3
  748. package/external/@socketsecurity/registry/lib/constants/license.js +0 -3
  749. package/external/@socketsecurity/registry/lib/constants/lifecycle-script-names.js +0 -18
  750. package/external/@socketsecurity/registry/lib/constants/loop-sentinel.js +0 -3
  751. package/external/@socketsecurity/registry/lib/constants/maintained-node-versions.js +0 -47
  752. package/external/@socketsecurity/registry/lib/constants/manifest-json.js +0 -3
  753. package/external/@socketsecurity/registry/lib/constants/mit.js +0 -3
  754. package/external/@socketsecurity/registry/lib/constants/node-auth-token.js +0 -3
  755. package/external/@socketsecurity/registry/lib/constants/node-debug-flags.js +0 -9
  756. package/external/@socketsecurity/registry/lib/constants/node-env.js +0 -3
  757. package/external/@socketsecurity/registry/lib/constants/node-harden-flags.js +0 -29
  758. package/external/@socketsecurity/registry/lib/constants/node-modules-glob-recursive.js +0 -3
  759. package/external/@socketsecurity/registry/lib/constants/node-modules.js +0 -3
  760. package/external/@socketsecurity/registry/lib/constants/node-no-warnings-flags.js +0 -16
  761. package/external/@socketsecurity/registry/lib/constants/node-version.js +0 -3
  762. package/external/@socketsecurity/registry/lib/constants/npm-exec-path.js +0 -5
  763. package/external/@socketsecurity/registry/lib/constants/npm-real-exec-path.js +0 -6
  764. package/external/@socketsecurity/registry/lib/constants/npm-shrinkwrap-json.js +0 -3
  765. package/external/@socketsecurity/registry/lib/constants/npm.js +0 -3
  766. package/external/@socketsecurity/registry/lib/constants/npx.js +0 -3
  767. package/external/@socketsecurity/registry/lib/constants/overrides.js +0 -3
  768. package/external/@socketsecurity/registry/lib/constants/package-default-node-range.js +0 -6
  769. package/external/@socketsecurity/registry/lib/constants/package-default-socket-categories.js +0 -3
  770. package/external/@socketsecurity/registry/lib/constants/package-default-version.js +0 -3
  771. package/external/@socketsecurity/registry/lib/constants/package-extensions.js +0 -47
  772. package/external/@socketsecurity/registry/lib/constants/package-json.js +0 -3
  773. package/external/@socketsecurity/registry/lib/constants/package-lock-json.js +0 -3
  774. package/external/@socketsecurity/registry/lib/constants/packument-cache.js +0 -3
  775. package/external/@socketsecurity/registry/lib/constants/pacote-cache-path.js +0 -9
  776. package/external/@socketsecurity/registry/lib/constants/pnpm-exec-path.js +0 -5
  777. package/external/@socketsecurity/registry/lib/constants/pnpm-lock-yaml.js +0 -3
  778. package/external/@socketsecurity/registry/lib/constants/pnpm.js +0 -3
  779. package/external/@socketsecurity/registry/lib/constants/pre-commit.js +0 -3
  780. package/external/@socketsecurity/registry/lib/constants/readme-glob-recursive.js +0 -3
  781. package/external/@socketsecurity/registry/lib/constants/readme-glob.js +0 -3
  782. package/external/@socketsecurity/registry/lib/constants/readme-md.js +0 -3
  783. package/external/@socketsecurity/registry/lib/constants/registry-scope-delimiter.js +0 -3
  784. package/external/@socketsecurity/registry/lib/constants/registry.js +0 -3
  785. package/external/@socketsecurity/registry/lib/constants/resolutions.js +0 -3
  786. package/external/@socketsecurity/registry/lib/constants/socket-github-org.js +0 -3
  787. package/external/@socketsecurity/registry/lib/constants/socket-ipc-handshake.js +0 -3
  788. package/external/@socketsecurity/registry/lib/constants/socket-override-scope.js +0 -3
  789. package/external/@socketsecurity/registry/lib/constants/socket-public-api-token.js +0 -3
  790. package/external/@socketsecurity/registry/lib/constants/socket-registry-npm-org.js +0 -3
  791. package/external/@socketsecurity/registry/lib/constants/socket-registry-package-name.js +0 -3
  792. package/external/@socketsecurity/registry/lib/constants/socket-registry-repo-name.js +0 -3
  793. package/external/@socketsecurity/registry/lib/constants/socket-registry-scope.js +0 -3
  794. package/external/@socketsecurity/registry/lib/constants/socket-security-scope.js +0 -3
  795. package/external/@socketsecurity/registry/lib/constants/spinner.js +0 -4
  796. package/external/@socketsecurity/registry/lib/constants/supports-node-compile-cache-api.js +0 -8
  797. package/external/@socketsecurity/registry/lib/constants/supports-node-compile-cache-env-var.js +0 -8
  798. package/external/@socketsecurity/registry/lib/constants/supports-node-disable-warning-flag.js +0 -8
  799. package/external/@socketsecurity/registry/lib/constants/supports-node-permission-flag.js +0 -8
  800. package/external/@socketsecurity/registry/lib/constants/supports-node-require-module.js +0 -3
  801. package/external/@socketsecurity/registry/lib/constants/supports-node-run.js +0 -8
  802. package/external/@socketsecurity/registry/lib/constants/supports-process-send.js +0 -5
  803. package/external/@socketsecurity/registry/lib/constants/ts-libs-available.js +0 -22
  804. package/external/@socketsecurity/registry/lib/constants/ts-types-available.js +0 -3
  805. package/external/@socketsecurity/registry/lib/constants/tsconfig-json.js +0 -3
  806. package/external/@socketsecurity/registry/lib/constants/undefined-token.js +0 -3
  807. package/external/@socketsecurity/registry/lib/constants/unknown-error.js +0 -3
  808. package/external/@socketsecurity/registry/lib/constants/unknown-value.js +0 -3
  809. package/external/@socketsecurity/registry/lib/constants/unlicenced.js +0 -3
  810. package/external/@socketsecurity/registry/lib/constants/unlicensed.js +0 -3
  811. package/external/@socketsecurity/registry/lib/constants/utf8.js +0 -3
  812. package/external/@socketsecurity/registry/lib/constants/vitest.js +0 -3
  813. package/external/@socketsecurity/registry/lib/constants/vlt-lock-json.js +0 -3
  814. package/external/@socketsecurity/registry/lib/constants/vlt.js +0 -3
  815. package/external/@socketsecurity/registry/lib/constants/win32.js +0 -3
  816. package/external/@socketsecurity/registry/lib/constants/yarn-berry.js +0 -3
  817. package/external/@socketsecurity/registry/lib/constants/yarn-classic.js +0 -3
  818. package/external/@socketsecurity/registry/lib/constants/yarn-exec-path.js +0 -5
  819. package/external/@socketsecurity/registry/lib/constants/yarn-lock.js +0 -3
  820. package/external/@socketsecurity/registry/lib/constants/yarn.js +0 -3
  821. package/external/@socketsecurity/registry/lib/debug.js +0 -264
  822. package/external/@socketsecurity/registry/lib/env.js +0 -62
  823. package/external/@socketsecurity/registry/lib/fs.js +0 -556
  824. package/external/@socketsecurity/registry/lib/functions.js +0 -20
  825. package/external/@socketsecurity/registry/lib/globs.js +0 -145
  826. package/external/@socketsecurity/registry/lib/json.js +0 -69
  827. package/external/@socketsecurity/registry/lib/logger.js +0 -534
  828. package/external/@socketsecurity/registry/lib/objects.js +0 -422
  829. package/external/@socketsecurity/registry/lib/packages.js +0 -1376
  830. package/external/@socketsecurity/registry/lib/path.js +0 -231
  831. package/external/@socketsecurity/registry/lib/promises.js +0 -286
  832. package/external/@socketsecurity/registry/lib/prompts.js +0 -63
  833. package/external/@socketsecurity/registry/lib/regexps.js +0 -23
  834. package/external/@socketsecurity/registry/lib/sorts.js +0 -70
  835. package/external/@socketsecurity/registry/lib/spawn.js +0 -252
  836. package/external/@socketsecurity/registry/lib/spinner.js +0 -205
  837. package/external/@socketsecurity/registry/lib/streams.js +0 -84
  838. package/external/@socketsecurity/registry/lib/strings.js +0 -235
  839. package/external/@socketsecurity/registry/lib/url.js +0 -68
  840. package/external/@socketsecurity/registry/lib/words.js +0 -45
  841. package/external/@socketsecurity/registry/manifest.json +0 -1875
  842. package/external/blessed/LICENSE +0 -20
  843. package/external/blessed/README.md +0 -2421
  844. package/external/blessed/lib/alias.js +0 -528
  845. package/external/blessed/lib/blessed.js +0 -34
  846. package/external/blessed/lib/colors.js +0 -532
  847. package/external/blessed/lib/events.js +0 -191
  848. package/external/blessed/lib/gpmclient.js +0 -223
  849. package/external/blessed/lib/helpers.js +0 -167
  850. package/external/blessed/lib/keys.js +0 -341
  851. package/external/blessed/lib/program.js +0 -4297
  852. package/external/blessed/lib/tput.js +0 -3020
  853. package/external/blessed/lib/unicode.js +0 -792
  854. package/external/blessed/lib/widget.js +0 -62
  855. package/external/blessed/lib/widgets/ansiimage.js +0 -169
  856. package/external/blessed/lib/widgets/bigtext.js +0 -161
  857. package/external/blessed/lib/widgets/box.js +0 -36
  858. package/external/blessed/lib/widgets/button.js +0 -64
  859. package/external/blessed/lib/widgets/checkbox.js +0 -93
  860. package/external/blessed/lib/widgets/element.js +0 -2572
  861. package/external/blessed/lib/widgets/filemanager.js +0 -214
  862. package/external/blessed/lib/widgets/form.js +0 -269
  863. package/external/blessed/lib/widgets/image.js +0 -63
  864. package/external/blessed/lib/widgets/input.js +0 -36
  865. package/external/blessed/lib/widgets/layout.js +0 -235
  866. package/external/blessed/lib/widgets/line.js +0 -58
  867. package/external/blessed/lib/widgets/list.js +0 -601
  868. package/external/blessed/lib/widgets/listbar.js +0 -413
  869. package/external/blessed/lib/widgets/listtable.js +0 -254
  870. package/external/blessed/lib/widgets/loading.js +0 -90
  871. package/external/blessed/lib/widgets/log.js +0 -85
  872. package/external/blessed/lib/widgets/message.js +0 -125
  873. package/external/blessed/lib/widgets/node.js +0 -284
  874. package/external/blessed/lib/widgets/overlayimage.js +0 -719
  875. package/external/blessed/lib/widgets/progressbar.js +0 -159
  876. package/external/blessed/lib/widgets/prompt.js +0 -122
  877. package/external/blessed/lib/widgets/question.js +0 -118
  878. package/external/blessed/lib/widgets/radiobutton.js +0 -63
  879. package/external/blessed/lib/widgets/radioset.js +0 -38
  880. package/external/blessed/lib/widgets/screen.js +0 -2300
  881. package/external/blessed/lib/widgets/scrollablebox.js +0 -391
  882. package/external/blessed/lib/widgets/scrollabletext.js +0 -37
  883. package/external/blessed/lib/widgets/table.js +0 -356
  884. package/external/blessed/lib/widgets/terminal.js +0 -414
  885. package/external/blessed/lib/widgets/text.js +0 -37
  886. package/external/blessed/lib/widgets/textarea.js +0 -344
  887. package/external/blessed/lib/widgets/textbox.js +0 -79
  888. package/external/blessed/lib/widgets/video.js +0 -128
  889. package/external/blessed/usr/fonts/AUTHORS +0 -1
  890. package/external/blessed/usr/fonts/LICENSE +0 -94
  891. package/external/blessed/usr/fonts/README +0 -340
  892. package/external/blessed/usr/fonts/ter-u14b.json +0 -17826
  893. package/external/blessed/usr/fonts/ter-u14n.json +0 -17826
  894. package/external/blessed/usr/linux +0 -0
  895. package/external/blessed/usr/windows-ansi +0 -0
  896. package/external/blessed/usr/xterm +0 -0
  897. package/external/blessed/usr/xterm-256color +0 -0
  898. package/external/blessed/usr/xterm.termcap +0 -243
  899. package/external/blessed/usr/xterm.terminfo +0 -1977
  900. package/external/blessed/vendor/tng.js +0 -1757
  901. package/external/blessed-contrib/LICENSE.md +0 -21
  902. package/external/blessed-contrib/lib/layout/grid.js +0 -409
  903. package/external/blessed-contrib/lib/widget/charts/bar.js +0 -8370
  904. package/external/blessed-contrib/lib/widget/charts/line.js +0 -17924
  905. package/external/blessed-contrib/lib/widget/table.js +0 -187
  906. package/logo-dark.png +0 -0
  907. package/logo-light.png +0 -0
  908. package/requirements.json +0 -120
  909. package/shadow-bin/npm +0 -27
  910. package/shadow-bin/npx +0 -27
  911. package/shadow-bin/pnpm +0 -27
  912. package/shadow-bin/yarn +0 -27
  913. package/translations.json +0 -616
@@ -1,1163 +0,0 @@
1
- 'use strict'
2
-
3
- const require$$1 = require('tty')
4
- const require$$1$1 = require('util')
5
- const require$$0 = require('os')
6
-
7
- const src = { exports: {} }
8
-
9
- const browser = { exports: {} }
10
-
11
- /**
12
- * Helpers.
13
- */
14
- let ms
15
- let hasRequiredMs
16
- function requireMs() {
17
- if (hasRequiredMs) {
18
- return ms
19
- }
20
- hasRequiredMs = 1
21
- const s = 1000
22
- const m = s * 60
23
- const h = m * 60
24
- const d = h * 24
25
- const w = d * 7
26
- const y = d * 365.25
27
-
28
- /**
29
- * Parse or format the given `val`.
30
- *
31
- * Options:
32
- *
33
- * - `long` verbose formatting [false]
34
- *
35
- * @param {String|Number} val
36
- * @param {Object} [options]
37
- * @throws {Error} throw an error if val is not a non-empty string or a number
38
- * @return {String|Number}
39
- * @api public
40
- */
41
-
42
- ms = function (val, options) {
43
- options = options || {}
44
- const type = typeof val
45
- if (type === 'string' && val.length > 0) {
46
- return parse(val)
47
- } else if (type === 'number' && isFinite(val)) {
48
- return options.long ? fmtLong(val) : fmtShort(val)
49
- }
50
- throw new Error(
51
- 'val is not a non-empty string or a valid number. val=' +
52
- JSON.stringify(val)
53
- )
54
- }
55
-
56
- /**
57
- * Parse the given `str` and return milliseconds.
58
- *
59
- * @param {String} str
60
- * @return {Number}
61
- * @api private
62
- */
63
-
64
- function parse(str) {
65
- str = String(str)
66
- if (str.length > 100) {
67
- return
68
- }
69
- const match =
70
- /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
71
- str
72
- )
73
- if (!match) {
74
- return
75
- }
76
- const n = parseFloat(match[1])
77
- const type = (match[2] || 'ms').toLowerCase()
78
- switch (type) {
79
- case 'years':
80
- case 'year':
81
- case 'yrs':
82
- case 'yr':
83
- case 'y':
84
- return n * y
85
- case 'weeks':
86
- case 'week':
87
- case 'w':
88
- return n * w
89
- case 'days':
90
- case 'day':
91
- case 'd':
92
- return n * d
93
- case 'hours':
94
- case 'hour':
95
- case 'hrs':
96
- case 'hr':
97
- case 'h':
98
- return n * h
99
- case 'minutes':
100
- case 'minute':
101
- case 'mins':
102
- case 'min':
103
- case 'm':
104
- return n * m
105
- case 'seconds':
106
- case 'second':
107
- case 'secs':
108
- case 'sec':
109
- case 's':
110
- return n * s
111
- case 'milliseconds':
112
- case 'millisecond':
113
- case 'msecs':
114
- case 'msec':
115
- case 'ms':
116
- return n
117
- default:
118
- return undefined
119
- }
120
- }
121
-
122
- /**
123
- * Short format for `ms`.
124
- *
125
- * @param {Number} ms
126
- * @return {String}
127
- * @api private
128
- */
129
-
130
- function fmtShort(ms) {
131
- const msAbs = Math.abs(ms)
132
- if (msAbs >= d) {
133
- return Math.round(ms / d) + 'd'
134
- }
135
- if (msAbs >= h) {
136
- return Math.round(ms / h) + 'h'
137
- }
138
- if (msAbs >= m) {
139
- return Math.round(ms / m) + 'm'
140
- }
141
- if (msAbs >= s) {
142
- return Math.round(ms / s) + 's'
143
- }
144
- return ms + 'ms'
145
- }
146
-
147
- /**
148
- * Long format for `ms`.
149
- *
150
- * @param {Number} ms
151
- * @return {String}
152
- * @api private
153
- */
154
-
155
- function fmtLong(ms) {
156
- const msAbs = Math.abs(ms)
157
- if (msAbs >= d) {
158
- return plural(ms, msAbs, d, 'day')
159
- }
160
- if (msAbs >= h) {
161
- return plural(ms, msAbs, h, 'hour')
162
- }
163
- if (msAbs >= m) {
164
- return plural(ms, msAbs, m, 'minute')
165
- }
166
- if (msAbs >= s) {
167
- return plural(ms, msAbs, s, 'second')
168
- }
169
- return ms + ' ms'
170
- }
171
-
172
- /**
173
- * Pluralization helper.
174
- */
175
-
176
- function plural(ms, msAbs, n, name) {
177
- const isPlural = msAbs >= n * 1.5
178
- return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '')
179
- }
180
- return ms
181
- }
182
-
183
- let common
184
- let hasRequiredCommon
185
- function requireCommon() {
186
- if (hasRequiredCommon) {
187
- return common
188
- }
189
- hasRequiredCommon = 1
190
- /**
191
- * This is the common logic for both the Node.js and web browser
192
- * implementations of `debug()`.
193
- */
194
-
195
- function setup(env) {
196
- createDebug.debug = createDebug
197
- createDebug.default = createDebug
198
- createDebug.coerce = coerce
199
- createDebug.disable = disable
200
- createDebug.enable = enable
201
- createDebug.enabled = enabled
202
- createDebug.humanize = requireMs()
203
- createDebug.destroy = destroy
204
- Object.keys(env).forEach(key => {
205
- createDebug[key] = env[key]
206
- })
207
-
208
- /**
209
- * The currently active debug mode names, and names to skip.
210
- */
211
-
212
- createDebug.names = []
213
- createDebug.skips = []
214
-
215
- /**
216
- * Map of special "%n" handling functions, for the debug "format" argument.
217
- *
218
- * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
219
- */
220
- createDebug.formatters = {}
221
-
222
- /**
223
- * Selects a color for a debug namespace
224
- * @param {String} namespace The namespace string for the debug instance to be colored
225
- * @return {Number|String} An ANSI color code for the given namespace
226
- * @api private
227
- */
228
- function selectColor(namespace) {
229
- let hash = 0
230
- for (let i = 0; i < namespace.length; i++) {
231
- hash = (hash << 5) - hash + namespace.charCodeAt(i)
232
- hash |= 0 // Convert to 32bit integer
233
- }
234
- return createDebug.colors[Math.abs(hash) % createDebug.colors.length]
235
- }
236
- createDebug.selectColor = selectColor
237
-
238
- /**
239
- * Create a debugger with the given `namespace`.
240
- *
241
- * @param {String} namespace
242
- * @return {Function}
243
- * @api public
244
- */
245
- function createDebug(namespace) {
246
- let prevTime
247
- let enableOverride = null
248
- let namespacesCache
249
- let enabledCache
250
- function debug(...args) {
251
- // Disabled?
252
- if (!debug.enabled) {
253
- return
254
- }
255
- const self = debug
256
-
257
- // Set `diff` timestamp
258
- const curr = Number(new Date())
259
- const ms = curr - (prevTime || curr)
260
- self.diff = ms
261
- self.prev = prevTime
262
- self.curr = curr
263
- prevTime = curr
264
- args[0] = createDebug.coerce(args[0])
265
- if (typeof args[0] !== 'string') {
266
- // Anything else let's inspect with %O
267
- args.unshift('%O')
268
- }
269
-
270
- // Apply any `formatters` transformations
271
- let index = 0
272
- args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
273
- // If we encounter an escaped % then don't increase the array index
274
- if (match === '%%') {
275
- return '%'
276
- }
277
- index++
278
- const formatter = createDebug.formatters[format]
279
- if (typeof formatter === 'function') {
280
- const val = args[index]
281
- match = formatter.call(self, val)
282
-
283
- // Now we need to remove `args[index]` since it's inlined in the `format`
284
- args.splice(index, 1)
285
- index--
286
- }
287
- return match
288
- })
289
-
290
- // Apply env-specific formatting (colors, etc.)
291
- createDebug.formatArgs.call(self, args)
292
- const logFn = self.log || createDebug.log
293
- logFn.apply(self, args)
294
- }
295
- debug.namespace = namespace
296
- debug.useColors = createDebug.useColors()
297
- debug.color = createDebug.selectColor(namespace)
298
- debug.extend = extend
299
- debug.destroy = createDebug.destroy // XXX Temporary. Will be removed in the next major release.
300
-
301
- Object.defineProperty(debug, 'enabled', {
302
- enumerable: true,
303
- configurable: false,
304
- get: () => {
305
- if (enableOverride !== null) {
306
- return enableOverride
307
- }
308
- if (namespacesCache !== createDebug.namespaces) {
309
- namespacesCache = createDebug.namespaces
310
- enabledCache = createDebug.enabled(namespace)
311
- }
312
- return enabledCache
313
- },
314
- set: v => {
315
- enableOverride = v
316
- }
317
- })
318
-
319
- // Env-specific initialization logic for debug instances
320
- if (typeof createDebug.init === 'function') {
321
- createDebug.init(debug)
322
- }
323
- return debug
324
- }
325
- function extend(namespace, delimiter) {
326
- const newDebug = createDebug(
327
- this.namespace +
328
- (typeof delimiter === 'undefined' ? ':' : delimiter) +
329
- namespace
330
- )
331
- newDebug.log = this.log
332
- return newDebug
333
- }
334
-
335
- /**
336
- * Enables a debug mode by namespaces. This can include modes
337
- * separated by a colon and wildcards.
338
- *
339
- * @param {String} namespaces
340
- * @api public
341
- */
342
- function enable(namespaces) {
343
- createDebug.save(namespaces)
344
- createDebug.namespaces = namespaces
345
- createDebug.names = []
346
- createDebug.skips = []
347
- const split = (typeof namespaces === 'string' ? namespaces : '')
348
- .trim()
349
- .replace(/\s+/g, ',')
350
- .split(',')
351
- .filter(Boolean)
352
- for (const ns of split) {
353
- if (ns[0] === '-') {
354
- createDebug.skips.push(ns.slice(1))
355
- } else {
356
- createDebug.names.push(ns)
357
- }
358
- }
359
- }
360
-
361
- /**
362
- * Checks if the given string matches a namespace template, honoring
363
- * asterisks as wildcards.
364
- *
365
- * @param {String} search
366
- * @param {String} template
367
- * @return {Boolean}
368
- */
369
- function matchesTemplate(search, template) {
370
- let searchIndex = 0
371
- let templateIndex = 0
372
- let starIndex = -1
373
- let matchIndex = 0
374
- while (searchIndex < search.length) {
375
- if (
376
- templateIndex < template.length &&
377
- (template[templateIndex] === search[searchIndex] ||
378
- template[templateIndex] === '*')
379
- ) {
380
- // Match character or proceed with wildcard
381
- if (template[templateIndex] === '*') {
382
- starIndex = templateIndex
383
- matchIndex = searchIndex
384
- templateIndex++ // Skip the '*'
385
- } else {
386
- searchIndex++
387
- templateIndex++
388
- }
389
- } else if (starIndex !== -1) {
390
- // eslint-disable-line no-negated-condition
391
- // Backtrack to the last '*' and try to match more characters
392
- templateIndex = starIndex + 1
393
- matchIndex++
394
- searchIndex = matchIndex
395
- } else {
396
- return false // No match
397
- }
398
- }
399
-
400
- // Handle trailing '*' in template
401
- while (
402
- templateIndex < template.length &&
403
- template[templateIndex] === '*'
404
- ) {
405
- templateIndex++
406
- }
407
- return templateIndex === template.length
408
- }
409
-
410
- /**
411
- * Disable debug output.
412
- *
413
- * @return {String} namespaces
414
- * @api public
415
- */
416
- function disable() {
417
- const namespaces = [
418
- ...createDebug.names,
419
- ...createDebug.skips.map(namespace => '-' + namespace)
420
- ].join(',')
421
- createDebug.enable('')
422
- return namespaces
423
- }
424
-
425
- /**
426
- * Returns true if the given mode name is enabled, false otherwise.
427
- *
428
- * @param {String} name
429
- * @return {Boolean}
430
- * @api public
431
- */
432
- function enabled(name) {
433
- for (const skip of createDebug.skips) {
434
- if (matchesTemplate(name, skip)) {
435
- return false
436
- }
437
- }
438
- for (const ns of createDebug.names) {
439
- if (matchesTemplate(name, ns)) {
440
- return true
441
- }
442
- }
443
- return false
444
- }
445
-
446
- /**
447
- * Coerce `val`.
448
- *
449
- * @param {Mixed} val
450
- * @return {Mixed}
451
- * @api private
452
- */
453
- function coerce(val) {
454
- if (val instanceof Error) {
455
- return val.stack || val.message
456
- }
457
- return val
458
- }
459
-
460
- /**
461
- * XXX DO NOT USE. This is a temporary stub function.
462
- * XXX It WILL be removed in the next major release.
463
- */
464
- function destroy() {
465
- console.warn(
466
- 'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'
467
- )
468
- }
469
- createDebug.enable(createDebug.load())
470
- return createDebug
471
- }
472
- common = setup
473
- return common
474
- }
475
-
476
- /* eslint-env browser */
477
- let hasRequiredBrowser
478
- function requireBrowser() {
479
- if (hasRequiredBrowser) {
480
- return browser.exports
481
- }
482
- hasRequiredBrowser = 1
483
- ;(function (module, exports) {
484
- /**
485
- * This is the web browser implementation of `debug()`.
486
- */
487
-
488
- exports.formatArgs = formatArgs
489
- exports.save = save
490
- exports.load = load
491
- exports.useColors = useColors
492
- exports.storage = localstorage()
493
- exports.destroy = (() => {
494
- let warned = false
495
- return () => {
496
- if (!warned) {
497
- warned = true
498
- console.warn(
499
- 'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'
500
- )
501
- }
502
- }
503
- })()
504
-
505
- /**
506
- * Colors.
507
- */
508
-
509
- exports.colors = [
510
- '#0000CC',
511
- '#0000FF',
512
- '#0033CC',
513
- '#0033FF',
514
- '#0066CC',
515
- '#0066FF',
516
- '#0099CC',
517
- '#0099FF',
518
- '#00CC00',
519
- '#00CC33',
520
- '#00CC66',
521
- '#00CC99',
522
- '#00CCCC',
523
- '#00CCFF',
524
- '#3300CC',
525
- '#3300FF',
526
- '#3333CC',
527
- '#3333FF',
528
- '#3366CC',
529
- '#3366FF',
530
- '#3399CC',
531
- '#3399FF',
532
- '#33CC00',
533
- '#33CC33',
534
- '#33CC66',
535
- '#33CC99',
536
- '#33CCCC',
537
- '#33CCFF',
538
- '#6600CC',
539
- '#6600FF',
540
- '#6633CC',
541
- '#6633FF',
542
- '#66CC00',
543
- '#66CC33',
544
- '#9900CC',
545
- '#9900FF',
546
- '#9933CC',
547
- '#9933FF',
548
- '#99CC00',
549
- '#99CC33',
550
- '#CC0000',
551
- '#CC0033',
552
- '#CC0066',
553
- '#CC0099',
554
- '#CC00CC',
555
- '#CC00FF',
556
- '#CC3300',
557
- '#CC3333',
558
- '#CC3366',
559
- '#CC3399',
560
- '#CC33CC',
561
- '#CC33FF',
562
- '#CC6600',
563
- '#CC6633',
564
- '#CC9900',
565
- '#CC9933',
566
- '#CCCC00',
567
- '#CCCC33',
568
- '#FF0000',
569
- '#FF0033',
570
- '#FF0066',
571
- '#FF0099',
572
- '#FF00CC',
573
- '#FF00FF',
574
- '#FF3300',
575
- '#FF3333',
576
- '#FF3366',
577
- '#FF3399',
578
- '#FF33CC',
579
- '#FF33FF',
580
- '#FF6600',
581
- '#FF6633',
582
- '#FF9900',
583
- '#FF9933',
584
- '#FFCC00',
585
- '#FFCC33'
586
- ]
587
-
588
- /**
589
- * Currently only WebKit-based Web Inspectors, Firefox >= v31,
590
- * and the Firebug extension (any Firefox version) are known
591
- * to support "%c" CSS customizations.
592
- *
593
- * TODO: add a `localStorage` variable to explicitly enable/disable colors
594
- */
595
-
596
- // eslint-disable-next-line complexity
597
- function useColors() {
598
- // NB: In an Electron preload script, document will be defined but not fully
599
- // initialized. Since we know we're in Chrome, we'll just detect this case
600
- // explicitly
601
- if (
602
- typeof window !== 'undefined' &&
603
- window.process &&
604
- (window.process.type === 'renderer' || window.process.__nwjs)
605
- ) {
606
- return true
607
- }
608
-
609
- // Internet Explorer and Edge do not support colors.
610
- if (
611
- typeof navigator !== 'undefined' &&
612
- navigator.userAgent &&
613
- navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)
614
- ) {
615
- return false
616
- }
617
- let m
618
-
619
- // Is webkit? http://stackoverflow.com/a/16459606/376773
620
- // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
621
- // eslint-disable-next-line no-return-assign
622
- return (
623
- (typeof document !== 'undefined' &&
624
- document.documentElement &&
625
- document.documentElement.style &&
626
- document.documentElement.style.WebkitAppearance) ||
627
- // Is firebug? http://stackoverflow.com/a/398120/376773
628
- (typeof window !== 'undefined' &&
629
- window.console &&
630
- (window.console.firebug ||
631
- (window.console.exception && window.console.table))) ||
632
- // Is firefox >= v31?
633
- // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
634
- (typeof navigator !== 'undefined' &&
635
- navigator.userAgent &&
636
- (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) &&
637
- parseInt(m[1], 10) >= 31) ||
638
- // Double check webkit in userAgent just in case we are in a worker
639
- (typeof navigator !== 'undefined' &&
640
- navigator.userAgent &&
641
- navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))
642
- )
643
- }
644
-
645
- /**
646
- * Colorize log arguments if enabled.
647
- *
648
- * @api public
649
- */
650
-
651
- function formatArgs(args) {
652
- args[0] =
653
- (this.useColors ? '%c' : '') +
654
- this.namespace +
655
- (this.useColors ? ' %c' : ' ') +
656
- args[0] +
657
- (this.useColors ? '%c ' : ' ') +
658
- '+' +
659
- module.exports.humanize(this.diff)
660
- if (!this.useColors) {
661
- return
662
- }
663
- const c = 'color: ' + this.color
664
- args.splice(1, 0, c, 'color: inherit')
665
-
666
- // The final "%c" is somewhat tricky, because there could be other
667
- // arguments passed either before or after the %c, so we need to
668
- // figure out the correct index to insert the CSS into
669
- let index = 0
670
- let lastC = 0
671
- args[0].replace(/%[a-zA-Z%]/g, match => {
672
- if (match === '%%') {
673
- return
674
- }
675
- index++
676
- if (match === '%c') {
677
- // We only are interested in the *last* %c
678
- // (the user may have provided their own)
679
- lastC = index
680
- }
681
- })
682
- args.splice(lastC, 0, c)
683
- }
684
-
685
- /**
686
- * Invokes `console.debug()` when available.
687
- * No-op when `console.debug` is not a "function".
688
- * If `console.debug` is not available, falls back
689
- * to `console.log`.
690
- *
691
- * @api public
692
- */
693
- exports.log = console.debug || console.log || (() => {})
694
-
695
- /**
696
- * Save `namespaces`.
697
- *
698
- * @param {String} namespaces
699
- * @api private
700
- */
701
- function save(namespaces) {
702
- try {
703
- if (namespaces) {
704
- exports.storage.setItem('debug', namespaces)
705
- } else {
706
- exports.storage.removeItem('debug')
707
- }
708
- } catch (error) {
709
- // Swallow
710
- // XXX (@Qix-) should we be logging these?
711
- }
712
- }
713
-
714
- /**
715
- * Load `namespaces`.
716
- *
717
- * @return {String} returns the previously persisted debug modes
718
- * @api private
719
- */
720
- function load() {
721
- let r
722
- try {
723
- r = exports.storage.getItem('debug') || exports.storage.getItem('DEBUG')
724
- } catch (error) {
725
- // Swallow
726
- // XXX (@Qix-) should we be logging these?
727
- }
728
-
729
- // If debug isn't set in LS, and we're in Electron, try to load $DEBUG
730
- if (!r && typeof process !== 'undefined' && 'env' in process) {
731
- r = process.env.DEBUG
732
- }
733
- return r
734
- }
735
-
736
- /**
737
- * Localstorage attempts to return the localstorage.
738
- *
739
- * This is necessary because safari throws
740
- * when a user disables cookies/localstorage
741
- * and you attempt to access it.
742
- *
743
- * @return {LocalStorage}
744
- * @api private
745
- */
746
-
747
- function localstorage() {
748
- try {
749
- // TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context
750
- // The Browser also has localStorage in the global context.
751
- return localStorage
752
- } catch (error) {
753
- // Swallow
754
- // XXX (@Qix-) should we be logging these?
755
- }
756
- }
757
- module.exports = requireCommon()(exports)
758
- const { formatters } = module.exports
759
-
760
- /**
761
- * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
762
- */
763
-
764
- formatters.j = function (v) {
765
- try {
766
- return JSON.stringify(v)
767
- } catch (error) {
768
- return '[UnexpectedJSONParseError]: ' + error.message
769
- }
770
- }
771
- })(browser, browser.exports)
772
- return browser.exports
773
- }
774
-
775
- const node = { exports: {} }
776
-
777
- let hasFlag
778
- let hasRequiredHasFlag
779
- function requireHasFlag() {
780
- if (hasRequiredHasFlag) {
781
- return hasFlag
782
- }
783
- hasRequiredHasFlag = 1
784
- hasFlag = (flag, argv = process.argv) => {
785
- const prefix = flag.startsWith('-') ? '' : flag.length === 1 ? '-' : '--'
786
- const position = argv.indexOf(prefix + flag)
787
- const terminatorPosition = argv.indexOf('--')
788
- return (
789
- position !== -1 &&
790
- (terminatorPosition === -1 || position < terminatorPosition)
791
- )
792
- }
793
- return hasFlag
794
- }
795
-
796
- let supportsColor_1
797
- let hasRequiredSupportsColor
798
- function requireSupportsColor() {
799
- if (hasRequiredSupportsColor) {
800
- return supportsColor_1
801
- }
802
- hasRequiredSupportsColor = 1
803
- const os = require$$0
804
- const tty = require$$1
805
- const hasFlag = requireHasFlag()
806
- const { env } = process
807
- let forceColor
808
- if (
809
- hasFlag('no-color') ||
810
- hasFlag('no-colors') ||
811
- hasFlag('color=false') ||
812
- hasFlag('color=never')
813
- ) {
814
- forceColor = 0
815
- } else if (
816
- hasFlag('color') ||
817
- hasFlag('colors') ||
818
- hasFlag('color=true') ||
819
- hasFlag('color=always')
820
- ) {
821
- forceColor = 1
822
- }
823
- if ('FORCE_COLOR' in env) {
824
- if (env.FORCE_COLOR === 'true') {
825
- forceColor = 1
826
- } else if (env.FORCE_COLOR === 'false') {
827
- forceColor = 0
828
- } else {
829
- forceColor =
830
- env.FORCE_COLOR.length === 0
831
- ? 1
832
- : Math.min(parseInt(env.FORCE_COLOR, 10), 3)
833
- }
834
- }
835
- function translateLevel(level) {
836
- if (level === 0) {
837
- return false
838
- }
839
- return {
840
- level,
841
- hasBasic: true,
842
- has256: level >= 2,
843
- has16m: level >= 3
844
- }
845
- }
846
- function supportsColor(haveStream, streamIsTTY) {
847
- if (forceColor === 0) {
848
- return 0
849
- }
850
- if (
851
- hasFlag('color=16m') ||
852
- hasFlag('color=full') ||
853
- hasFlag('color=truecolor')
854
- ) {
855
- return 3
856
- }
857
- if (hasFlag('color=256')) {
858
- return 2
859
- }
860
- if (haveStream && !streamIsTTY && forceColor === undefined) {
861
- return 0
862
- }
863
- const min = forceColor || 0
864
- if (env.TERM === 'dumb') {
865
- return min
866
- }
867
- if (process.platform === 'win32') {
868
- // Windows 10 build 10586 is the first Windows release that supports 256 colors.
869
- // Windows 10 build 14931 is the first release that supports 16m/TrueColor.
870
- const osRelease = os.release().split('.')
871
- if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
872
- return Number(osRelease[2]) >= 14931 ? 3 : 2
873
- }
874
- return 1
875
- }
876
- if ('CI' in env) {
877
- if (
878
- [
879
- 'TRAVIS',
880
- 'CIRCLECI',
881
- 'APPVEYOR',
882
- 'GITLAB_CI',
883
- 'GITHUB_ACTIONS',
884
- 'BUILDKITE'
885
- ].some(sign => sign in env) ||
886
- env.CI_NAME === 'codeship'
887
- ) {
888
- return 1
889
- }
890
- return min
891
- }
892
- if ('TEAMCITY_VERSION' in env) {
893
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0
894
- }
895
- if (env.COLORTERM === 'truecolor') {
896
- return 3
897
- }
898
- if ('TERM_PROGRAM' in env) {
899
- const version = parseInt(
900
- (env.TERM_PROGRAM_VERSION || '').split('.')[0],
901
- 10
902
- )
903
- switch (env.TERM_PROGRAM) {
904
- case 'iTerm.app':
905
- return version >= 3 ? 3 : 2
906
- case 'Apple_Terminal':
907
- return 2
908
- // No default
909
- }
910
- }
911
- if (/-256(color)?$/i.test(env.TERM)) {
912
- return 2
913
- }
914
- if (
915
- /^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(
916
- env.TERM
917
- )
918
- ) {
919
- return 1
920
- }
921
- if ('COLORTERM' in env) {
922
- return 1
923
- }
924
- return min
925
- }
926
- function getSupportLevel(stream) {
927
- const level = supportsColor(stream, stream && stream.isTTY)
928
- return translateLevel(level)
929
- }
930
- supportsColor_1 = {
931
- supportsColor: getSupportLevel,
932
- stdout: translateLevel(supportsColor(true, tty.isatty(1))),
933
- stderr: translateLevel(supportsColor(true, tty.isatty(2)))
934
- }
935
- return supportsColor_1
936
- }
937
-
938
- /**
939
- * Module dependencies.
940
- */
941
- let hasRequiredNode
942
- function requireNode() {
943
- if (hasRequiredNode) {
944
- return node.exports
945
- }
946
- hasRequiredNode = 1
947
- ;(function (module, exports) {
948
- const tty = require$$1
949
- const util = require$$1$1
950
-
951
- /**
952
- * This is the Node.js implementation of `debug()`.
953
- */
954
-
955
- exports.init = init
956
- exports.log = log
957
- exports.formatArgs = formatArgs
958
- exports.save = save
959
- exports.load = load
960
- exports.useColors = useColors
961
- exports.destroy = util.deprecate(
962
- () => {},
963
- 'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'
964
- )
965
-
966
- /**
967
- * Colors.
968
- */
969
-
970
- exports.colors = [6, 2, 3, 4, 5, 1]
971
- try {
972
- // Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)
973
- // eslint-disable-next-line import/no-extraneous-dependencies
974
- const supportsColor = requireSupportsColor()
975
- if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
976
- exports.colors = [
977
- 20, 21, 26, 27, 32, 33, 38, 39, 40, 41, 42, 43, 44, 45, 56, 57, 62,
978
- 63, 68, 69, 74, 75, 76, 77, 78, 79, 80, 81, 92, 93, 98, 99, 112, 113,
979
- 128, 129, 134, 135, 148, 149, 160, 161, 162, 163, 164, 165, 166, 167,
980
- 168, 169, 170, 171, 172, 173, 178, 179, 184, 185, 196, 197, 198, 199,
981
- 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 214, 215, 220, 221
982
- ]
983
- }
984
- } catch (error) {
985
- // Swallow - we only care if `supports-color` is available; it doesn't have to be.
986
- }
987
-
988
- /**
989
- * Build up the default `inspectOpts` object from the environment variables.
990
- *
991
- * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js
992
- */
993
-
994
- exports.inspectOpts = Object.keys(process.env)
995
- .filter(key => {
996
- return /^debug_/i.test(key)
997
- })
998
- .reduce((obj, key) => {
999
- // Camel-case
1000
- const prop = key
1001
- .substring(6)
1002
- .toLowerCase()
1003
- .replace(/_([a-z])/g, (_, k) => {
1004
- return k.toUpperCase()
1005
- })
1006
-
1007
- // Coerce string value into JS value
1008
- let val = process.env[key]
1009
- if (/^(yes|on|true|enabled)$/i.test(val)) {
1010
- val = true
1011
- } else if (/^(no|off|false|disabled)$/i.test(val)) {
1012
- val = false
1013
- } else if (val === 'null') {
1014
- val = null
1015
- } else {
1016
- val = Number(val)
1017
- }
1018
- obj[prop] = val
1019
- return obj
1020
- }, {})
1021
-
1022
- /**
1023
- * Is stdout a TTY? Colored output is enabled when `true`.
1024
- */
1025
-
1026
- function useColors() {
1027
- return 'colors' in exports.inspectOpts
1028
- ? Boolean(exports.inspectOpts.colors)
1029
- : tty.isatty(process.stderr.fd)
1030
- }
1031
-
1032
- /**
1033
- * Adds ANSI color escape codes if enabled.
1034
- *
1035
- * @api public
1036
- */
1037
-
1038
- function formatArgs(args) {
1039
- const { namespace: name, useColors } = this
1040
- if (useColors) {
1041
- const c = this.color
1042
- const colorCode = '\u001B[3' + (c < 8 ? c : '8;5;' + c)
1043
- const prefix = ` ${colorCode};1m${name} \u001B[0m`
1044
- args[0] = prefix + args[0].split('\n').join('\n' + prefix)
1045
- args.push(
1046
- colorCode + 'm+' + module.exports.humanize(this.diff) + '\u001B[0m'
1047
- )
1048
- } else {
1049
- args[0] = getDate() + name + ' ' + args[0]
1050
- }
1051
- }
1052
- function getDate() {
1053
- if (exports.inspectOpts.hideDate) {
1054
- return ''
1055
- }
1056
- return new Date().toISOString() + ' '
1057
- }
1058
-
1059
- /**
1060
- * Invokes `util.formatWithOptions()` with the specified arguments and writes to stderr.
1061
- */
1062
-
1063
- function log(...args) {
1064
- return process.stderr.write(
1065
- util.formatWithOptions(exports.inspectOpts, ...args) + '\n'
1066
- )
1067
- }
1068
-
1069
- /**
1070
- * Save `namespaces`.
1071
- *
1072
- * @param {String} namespaces
1073
- * @api private
1074
- */
1075
- function save(namespaces) {
1076
- if (namespaces) {
1077
- process.env.DEBUG = namespaces
1078
- } else {
1079
- // If you set a process.env field to null or undefined, it gets cast to the
1080
- // string 'null' or 'undefined'. Just delete instead.
1081
- delete process.env.DEBUG
1082
- }
1083
- }
1084
-
1085
- /**
1086
- * Load `namespaces`.
1087
- *
1088
- * @return {String} returns the previously persisted debug modes
1089
- * @api private
1090
- */
1091
-
1092
- function load() {
1093
- return process.env.DEBUG
1094
- }
1095
-
1096
- /**
1097
- * Init logic for `debug` instances.
1098
- *
1099
- * Create a new `inspectOpts` object in case `useColors` is set
1100
- * differently for a particular `debug` instance.
1101
- */
1102
-
1103
- function init(debug) {
1104
- debug.inspectOpts = {}
1105
- const keys = Object.keys(exports.inspectOpts)
1106
- for (let i = 0; i < keys.length; i++) {
1107
- debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]]
1108
- }
1109
- }
1110
- module.exports = requireCommon()(exports)
1111
- const { formatters } = module.exports
1112
-
1113
- /**
1114
- * Map %o to `util.inspect()`, all on a single line.
1115
- */
1116
-
1117
- formatters.o = function (v) {
1118
- this.inspectOpts.colors = this.useColors
1119
- return util
1120
- .inspect(v, this.inspectOpts)
1121
- .split('\n')
1122
- .map(str => str.trim())
1123
- .join(' ')
1124
- }
1125
-
1126
- /**
1127
- * Map %O to `util.inspect()`, allowing multiple lines if needed.
1128
- */
1129
-
1130
- formatters.O = function (v) {
1131
- this.inspectOpts.colors = this.useColors
1132
- return util.inspect(v, this.inspectOpts)
1133
- }
1134
- })(node, node.exports)
1135
- return node.exports
1136
- }
1137
-
1138
- /**
1139
- * Detect Electron renderer / nwjs process, which is node, but we should
1140
- * treat as a browser.
1141
- */
1142
- let hasRequiredSrc
1143
- function requireSrc() {
1144
- if (hasRequiredSrc) {
1145
- return src.exports
1146
- }
1147
- hasRequiredSrc = 1
1148
- if (
1149
- typeof process === 'undefined' ||
1150
- process.type === 'renderer' ||
1151
- process.browser === true ||
1152
- process.__nwjs
1153
- ) {
1154
- src.exports = requireBrowser()
1155
- } else {
1156
- src.exports = requireNode()
1157
- }
1158
- return src.exports
1159
- }
1160
-
1161
- const srcExports = requireSrc()
1162
-
1163
- module.exports = srcExports