@socketsecurity/cli-with-sentry 0.15.11 → 0.15.13

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 (405) hide show
  1. package/bin/cli.js +6 -6
  2. package/dist/.config/tsconfig.dts.tsbuildinfo +1 -1
  3. package/dist/cli.js +5739 -6607
  4. package/dist/cli.js.map +1 -1
  5. package/dist/constants.js +274 -305
  6. package/dist/constants.js.map +1 -1
  7. package/dist/instrument-with-sentry.js +28 -34
  8. package/dist/instrument-with-sentry.js.map +1 -1
  9. package/dist/shadow-bin.js +96 -123
  10. package/dist/shadow-bin.js.map +1 -1
  11. package/dist/shadow-inject.js +470 -580
  12. package/dist/shadow-inject.js.map +1 -1
  13. package/dist/socket-completion.bash +221 -0
  14. package/dist/types/cli.d.mts +2 -2
  15. package/dist/types/commands/analytics/cmd-analytics.d.mts +9 -15
  16. package/dist/types/commands/analytics/fetch-org-analytics.d.mts +4 -6
  17. package/dist/types/commands/analytics/fetch-repo-analytics.d.mts +4 -7
  18. package/dist/types/commands/analytics/handle-analytics.d.mts +9 -15
  19. package/dist/types/commands/analytics/handle-analytics.d.mts.map +1 -1
  20. package/dist/types/commands/analytics/output-analytics.d.mts +26 -46
  21. package/dist/types/commands/analytics/output-analytics.d.mts.map +1 -1
  22. package/dist/types/commands/audit-log/cmd-audit-log.d.mts +9 -15
  23. package/dist/types/commands/audit-log/fetch-audit-log.d.mts +10 -16
  24. package/dist/types/commands/audit-log/fetch-audit-log.d.mts.map +1 -1
  25. package/dist/types/commands/audit-log/handle-audit-log.d.mts +9 -15
  26. package/dist/types/commands/audit-log/handle-audit-log.d.mts.map +1 -1
  27. package/dist/types/commands/audit-log/output-audit-log.d.mts +22 -47
  28. package/dist/types/commands/audit-log/output-audit-log.d.mts.map +1 -1
  29. package/dist/types/commands/cdxgen/cmd-cdxgen.d.mts +9 -15
  30. package/dist/types/commands/cdxgen/cmd-cdxgen.d.mts.map +1 -1
  31. package/dist/types/commands/cdxgen/handle-cdxgen.d.mts +4 -0
  32. package/dist/types/commands/cdxgen/handle-cdxgen.d.mts.map +1 -0
  33. package/dist/types/commands/ci/cmd-ci.d.mts +9 -15
  34. package/dist/types/commands/ci/fetch-default-org-slug.d.mts +3 -3
  35. package/dist/types/commands/ci/handle-ci.d.mts +2 -2
  36. package/dist/types/commands/config/cmd-config-auto.d.mts +9 -15
  37. package/dist/types/commands/config/cmd-config-get.d.mts +9 -15
  38. package/dist/types/commands/config/cmd-config-list.d.mts +9 -15
  39. package/dist/types/commands/config/cmd-config-set.d.mts +9 -15
  40. package/dist/types/commands/config/cmd-config-unset.d.mts +9 -15
  41. package/dist/types/commands/config/cmd-config.d.mts +3 -3
  42. package/dist/types/commands/config/discover-config-value.d.mts +3 -5
  43. package/dist/types/commands/config/discover-config-value.d.mts.map +1 -1
  44. package/dist/types/commands/config/handle-config-auto.d.mts +7 -10
  45. package/dist/types/commands/config/handle-config-auto.d.mts.map +1 -1
  46. package/dist/types/commands/config/handle-config-get.d.mts +7 -10
  47. package/dist/types/commands/config/handle-config-get.d.mts.map +1 -1
  48. package/dist/types/commands/config/handle-config-set.d.mts +8 -12
  49. package/dist/types/commands/config/handle-config-set.d.mts.map +1 -1
  50. package/dist/types/commands/config/handle-config-unset.d.mts +7 -10
  51. package/dist/types/commands/config/handle-config-unset.d.mts.map +1 -1
  52. package/dist/types/commands/config/output-config-auto.d.mts +4 -8
  53. package/dist/types/commands/config/output-config-get.d.mts +4 -8
  54. package/dist/types/commands/config/output-config-list.d.mts +6 -9
  55. package/dist/types/commands/config/output-config-list.d.mts.map +1 -1
  56. package/dist/types/commands/config/output-config-set.d.mts +3 -6
  57. package/dist/types/commands/config/output-config-unset.d.mts +3 -6
  58. package/dist/types/commands/dependencies/cmd-dependencies.d.mts +9 -15
  59. package/dist/types/commands/dependencies/fetch-dependencies.d.mts +7 -10
  60. package/dist/types/commands/dependencies/fetch-dependencies.d.mts.map +1 -1
  61. package/dist/types/commands/dependencies/handle-dependencies.d.mts +7 -11
  62. package/dist/types/commands/dependencies/handle-dependencies.d.mts.map +1 -1
  63. package/dist/types/commands/dependencies/output-dependencies.d.mts +8 -15
  64. package/dist/types/commands/dependencies/output-dependencies.d.mts.map +1 -1
  65. package/dist/types/commands/diff-scan/cmd-diff-scan-get.d.mts +9 -15
  66. package/dist/types/commands/diff-scan/cmd-diff-scan.d.mts +3 -3
  67. package/dist/types/commands/diff-scan/fetch-diff-scan.d.mts +8 -12
  68. package/dist/types/commands/diff-scan/fetch-diff-scan.d.mts.map +1 -1
  69. package/dist/types/commands/diff-scan/handle-diff-scan.d.mts +10 -17
  70. package/dist/types/commands/diff-scan/handle-diff-scan.d.mts.map +1 -1
  71. package/dist/types/commands/diff-scan/output-diff-scan.d.mts +8 -15
  72. package/dist/types/commands/diff-scan/output-diff-scan.d.mts.map +1 -1
  73. package/dist/types/commands/fix/cmd-fix.d.mts +9 -15
  74. package/dist/types/commands/fix/git.d.mts +14 -49
  75. package/dist/types/commands/fix/npm-fix.d.mts +4 -16
  76. package/dist/types/commands/fix/npm-fix.d.mts.map +1 -1
  77. package/dist/types/commands/fix/open-pr.d.mts +20 -46
  78. package/dist/types/commands/fix/open-pr.d.mts.map +1 -1
  79. package/dist/types/commands/fix/pnpm-fix.d.mts +4 -16
  80. package/dist/types/commands/fix/pnpm-fix.d.mts.map +1 -1
  81. package/dist/types/commands/fix/run-fix.d.mts +3 -3
  82. package/dist/types/commands/fix/shared.d.mts +9 -15
  83. package/dist/types/commands/fix/types.d.mts +16 -16
  84. package/dist/types/commands/info/cmd-info.d.mts +9 -15
  85. package/dist/types/commands/info/fetch-package-info.d.mts +3 -7
  86. package/dist/types/commands/info/handle-package-info.d.mts +15 -22
  87. package/dist/types/commands/info/handle-package-info.d.mts.map +1 -1
  88. package/dist/types/commands/info/output-package-info.d.mts +10 -18
  89. package/dist/types/commands/info/output-package-info.d.mts.map +1 -1
  90. package/dist/types/commands/install/cmd-install-completion.d.mts +10 -0
  91. package/dist/types/commands/install/cmd-install-completion.d.mts.map +1 -0
  92. package/dist/types/commands/install/cmd-install.d.mts +3 -0
  93. package/dist/types/commands/install/cmd-install.d.mts.map +1 -0
  94. package/dist/types/commands/install/handle-install-completion.d.mts +2 -0
  95. package/dist/types/commands/install/handle-install-completion.d.mts.map +1 -0
  96. package/dist/types/commands/install/output-install-completion.d.mts +12 -0
  97. package/dist/types/commands/install/output-install-completion.d.mts.map +1 -0
  98. package/dist/types/commands/install/setup-tab-completion.d.mts +13 -0
  99. package/dist/types/commands/install/setup-tab-completion.d.mts.map +1 -0
  100. package/dist/types/commands/login/apply-login.d.mts +2 -7
  101. package/dist/types/commands/login/attempt-login.d.mts +2 -5
  102. package/dist/types/commands/login/attempt-login.d.mts.map +1 -1
  103. package/dist/types/commands/login/cmd-login.d.mts +9 -15
  104. package/dist/types/commands/logout/apply-logout.d.mts +2 -2
  105. package/dist/types/commands/logout/attempt-logout.d.mts +2 -2
  106. package/dist/types/commands/logout/cmd-logout.d.mts +9 -15
  107. package/dist/types/commands/manifest/cmd-manifest-auto.d.mts +9 -15
  108. package/dist/types/commands/manifest/cmd-manifest-cdxgen.d.mts +10 -0
  109. package/dist/types/commands/manifest/cmd-manifest-cdxgen.d.mts.map +1 -0
  110. package/dist/types/commands/manifest/cmd-manifest-conda.d.mts +9 -15
  111. package/dist/types/commands/manifest/cmd-manifest-gradle.d.mts +9 -15
  112. package/dist/types/commands/manifest/cmd-manifest-kotlin.d.mts +9 -15
  113. package/dist/types/commands/manifest/cmd-manifest-scala.d.mts +9 -15
  114. package/dist/types/commands/manifest/cmd-manifest.d.mts +9 -15
  115. package/dist/types/commands/manifest/cmd-manifest.d.mts.map +1 -1
  116. package/dist/types/commands/manifest/convert-conda-to-requirements.d.mts +7 -15
  117. package/dist/types/commands/manifest/convert_gradle_to_maven.d.mts +2 -8
  118. package/dist/types/commands/manifest/convert_sbt_to_maven.d.mts +2 -8
  119. package/dist/types/commands/manifest/handle-manifest-conda.d.mts +3 -9
  120. package/dist/types/commands/manifest/output-requirements.d.mts +6 -10
  121. package/dist/types/commands/{cdxgen → manifest}/run-cdxgen.d.mts +2 -2
  122. package/dist/types/commands/manifest/run-cdxgen.d.mts.map +1 -0
  123. package/dist/types/commands/npm/cmd-npm.d.mts +9 -15
  124. package/dist/types/commands/npx/cmd-npx.d.mts +9 -15
  125. package/dist/types/commands/oops/cmd-oops.d.mts +9 -15
  126. package/dist/types/commands/optimize/add-overrides.d.mts +18 -22
  127. package/dist/types/commands/optimize/apply-optimization.d.mts +2 -6
  128. package/dist/types/commands/optimize/cmd-optimize.d.mts +9 -15
  129. package/dist/types/commands/optimize/deps-includes-by-agent.d.mts +4 -7
  130. package/dist/types/commands/optimize/get-dependency-entries.d.mts +3 -5
  131. package/dist/types/commands/optimize/get-overrides-by-agent.d.mts +8 -11
  132. package/dist/types/commands/optimize/lockfile-includes-by-agent.d.mts +3 -10
  133. package/dist/types/commands/optimize/ls-by-agent.d.mts +6 -13
  134. package/dist/types/commands/optimize/shared.d.mts +2 -2
  135. package/dist/types/commands/optimize/types.d.mts +7 -7
  136. package/dist/types/commands/optimize/update-lockfile.d.mts +9 -12
  137. package/dist/types/commands/optimize/update-manifest-by-agent.d.mts +5 -11
  138. package/dist/types/commands/organization/cmd-organization-list.d.mts +9 -15
  139. package/dist/types/commands/organization/cmd-organization-policy-license.d.mts +9 -15
  140. package/dist/types/commands/organization/cmd-organization-policy-security.d.mts +9 -15
  141. package/dist/types/commands/organization/cmd-organization-policy.d.mts +3 -3
  142. package/dist/types/commands/organization/cmd-organization-quota.d.mts +9 -15
  143. package/dist/types/commands/organization/cmd-organization.d.mts +3 -3
  144. package/dist/types/commands/organization/fetch-license-policy.d.mts +4 -6
  145. package/dist/types/commands/organization/fetch-organization-list.d.mts +4 -6
  146. package/dist/types/commands/organization/fetch-quota.d.mts +4 -6
  147. package/dist/types/commands/organization/fetch-security-policy.d.mts +4 -6
  148. package/dist/types/commands/organization/handle-license-policy.d.mts +3 -6
  149. package/dist/types/commands/organization/handle-organization-list.d.mts +3 -5
  150. package/dist/types/commands/organization/handle-quota.d.mts +3 -3
  151. package/dist/types/commands/organization/handle-security-policy.d.mts +3 -6
  152. package/dist/types/commands/organization/output-license-policy.d.mts +4 -7
  153. package/dist/types/commands/organization/output-organization-list.d.mts +4 -7
  154. package/dist/types/commands/organization/output-quota.d.mts +4 -7
  155. package/dist/types/commands/organization/output-security-policy.d.mts +4 -7
  156. package/dist/types/commands/package/cmd-package-score.d.mts +9 -15
  157. package/dist/types/commands/package/cmd-package-shallow.d.mts +16 -22
  158. package/dist/types/commands/package/cmd-package.d.mts +3 -3
  159. package/dist/types/commands/package/fetch-purl-deep-score.d.mts +49 -51
  160. package/dist/types/commands/package/fetch-purls-shallow-score.d.mts +4 -6
  161. package/dist/types/commands/package/handle-purl-deep-score.d.mts +3 -6
  162. package/dist/types/commands/package/handle-purls-shallow-score.d.mts +6 -9
  163. package/dist/types/commands/package/handle-purls-shallow-score.d.mts.map +1 -1
  164. package/dist/types/commands/package/output-purl-score.d.mts +4 -8
  165. package/dist/types/commands/package/output-purls-shallow-score.d.mts +4 -8
  166. package/dist/types/commands/package/parse-package-specifiers.d.mts +5 -8
  167. package/dist/types/commands/raw-npm/cmd-raw-npm.d.mts +9 -15
  168. package/dist/types/commands/raw-npm/run-raw-npm.d.mts +2 -4
  169. package/dist/types/commands/raw-npx/cmd-raw-npx.d.mts +9 -15
  170. package/dist/types/commands/raw-npx/run-raw-npx.d.mts +2 -4
  171. package/dist/types/commands/report/cmd-report-create.d.mts +9 -15
  172. package/dist/types/commands/report/cmd-report-view.d.mts +9 -15
  173. package/dist/types/commands/report/cmd-report.d.mts +3 -3
  174. package/dist/types/commands/repos/cmd-repos-create.d.mts +9 -15
  175. package/dist/types/commands/repos/cmd-repos-del.d.mts +9 -15
  176. package/dist/types/commands/repos/cmd-repos-list.d.mts +9 -15
  177. package/dist/types/commands/repos/cmd-repos-update.d.mts +9 -15
  178. package/dist/types/commands/repos/cmd-repos-view.d.mts +9 -15
  179. package/dist/types/commands/repos/cmd-repos.d.mts +3 -3
  180. package/dist/types/commands/repos/fetch-create-repo.d.mts +11 -18
  181. package/dist/types/commands/repos/fetch-create-repo.d.mts.map +1 -1
  182. package/dist/types/commands/repos/fetch-delete-repo.d.mts +4 -7
  183. package/dist/types/commands/repos/fetch-list-repos.d.mts +10 -16
  184. package/dist/types/commands/repos/fetch-list-repos.d.mts.map +1 -1
  185. package/dist/types/commands/repos/fetch-update-repo.d.mts +11 -18
  186. package/dist/types/commands/repos/fetch-update-repo.d.mts.map +1 -1
  187. package/dist/types/commands/repos/fetch-view-repo.d.mts +4 -7
  188. package/dist/types/commands/repos/handle-create-repo.d.mts +10 -20
  189. package/dist/types/commands/repos/handle-create-repo.d.mts.map +1 -1
  190. package/dist/types/commands/repos/handle-delete-repo.d.mts +3 -7
  191. package/dist/types/commands/repos/handle-list-repos.d.mts +10 -17
  192. package/dist/types/commands/repos/handle-list-repos.d.mts.map +1 -1
  193. package/dist/types/commands/repos/handle-update-repo.d.mts +10 -20
  194. package/dist/types/commands/repos/handle-update-repo.d.mts.map +1 -1
  195. package/dist/types/commands/repos/handle-view-repo.d.mts +3 -7
  196. package/dist/types/commands/repos/output-create-repo.d.mts +4 -8
  197. package/dist/types/commands/repos/output-delete-repo.d.mts +4 -8
  198. package/dist/types/commands/repos/output-list-repos.d.mts +4 -7
  199. package/dist/types/commands/repos/output-update-repo.d.mts +4 -8
  200. package/dist/types/commands/repos/output-view-repo.d.mts +4 -7
  201. package/dist/types/commands/scan/cmd-scan-create.d.mts +9 -15
  202. package/dist/types/commands/scan/cmd-scan-del.d.mts +9 -15
  203. package/dist/types/commands/scan/cmd-scan-diff.d.mts +9 -15
  204. package/dist/types/commands/scan/cmd-scan-list.d.mts +3 -3
  205. package/dist/types/commands/scan/cmd-scan-metadata.d.mts +3 -3
  206. package/dist/types/commands/scan/cmd-scan-report.d.mts +3 -3
  207. package/dist/types/commands/scan/cmd-scan-view.d.mts +3 -3
  208. package/dist/types/commands/scan/cmd-scan.d.mts +3 -3
  209. package/dist/types/commands/scan/fetch-create-org-full-scan.d.mts +11 -26
  210. package/dist/types/commands/scan/fetch-create-org-full-scan.d.mts.map +1 -1
  211. package/dist/types/commands/scan/fetch-delete-org-full-scan.d.mts +4 -7
  212. package/dist/types/commands/scan/fetch-diff-scan.d.mts +8 -12
  213. package/dist/types/commands/scan/fetch-diff-scan.d.mts.map +1 -1
  214. package/dist/types/commands/scan/fetch-list-scans.d.mts +13 -22
  215. package/dist/types/commands/scan/fetch-list-scans.d.mts.map +1 -1
  216. package/dist/types/commands/scan/fetch-report-data.d.mts +8 -14
  217. package/dist/types/commands/scan/fetch-scan-metadata.d.mts +4 -7
  218. package/dist/types/commands/scan/fetch-scan.d.mts +4 -7
  219. package/dist/types/commands/scan/fetch-supported-scan-file-names.d.mts +4 -6
  220. package/dist/types/commands/scan/generate-report.d.mts +36 -50
  221. package/dist/types/commands/scan/generate-report.d.mts.map +1 -1
  222. package/dist/types/commands/scan/handle-create-new-scan.d.mts +20 -37
  223. package/dist/types/commands/scan/handle-create-new-scan.d.mts.map +1 -1
  224. package/dist/types/commands/scan/handle-delete-scan.d.mts +3 -7
  225. package/dist/types/commands/scan/handle-diff-scan.d.mts +10 -17
  226. package/dist/types/commands/scan/handle-diff-scan.d.mts.map +1 -1
  227. package/dist/types/commands/scan/handle-list-scans.d.mts +13 -23
  228. package/dist/types/commands/scan/handle-list-scans.d.mts.map +1 -1
  229. package/dist/types/commands/scan/handle-scan-metadata.d.mts +3 -7
  230. package/dist/types/commands/scan/handle-scan-report.d.mts +12 -21
  231. package/dist/types/commands/scan/handle-scan-report.d.mts.map +1 -1
  232. package/dist/types/commands/scan/handle-scan-view.d.mts +3 -8
  233. package/dist/types/commands/scan/output-create-new-scan.d.mts +4 -8
  234. package/dist/types/commands/scan/output-delete-scan.d.mts +4 -7
  235. package/dist/types/commands/scan/output-diff-scan.d.mts +8 -15
  236. package/dist/types/commands/scan/output-diff-scan.d.mts.map +1 -1
  237. package/dist/types/commands/scan/output-list-scans.d.mts +4 -7
  238. package/dist/types/commands/scan/output-scan-metadata.d.mts +4 -8
  239. package/dist/types/commands/scan/output-scan-report.d.mts +20 -38
  240. package/dist/types/commands/scan/output-scan-report.d.mts.map +1 -1
  241. package/dist/types/commands/scan/output-scan-view.d.mts +4 -10
  242. package/dist/types/commands/scan/stream-scan.d.mts +2 -6
  243. package/dist/types/commands/scan/suggest-org-slug.d.mts +2 -2
  244. package/dist/types/commands/scan/suggest-repo-slug.d.mts +4 -4
  245. package/dist/types/commands/scan/suggest_branch_slug.d.mts +2 -4
  246. package/dist/types/commands/scan/suggest_target.d.mts +2 -2
  247. package/dist/types/commands/threat-feed/cmd-threat-feed.d.mts +9 -15
  248. package/dist/types/commands/threat-feed/fetch-threat-feed.d.mts +10 -16
  249. package/dist/types/commands/threat-feed/fetch-threat-feed.d.mts.map +1 -1
  250. package/dist/types/commands/threat-feed/handle-threat-feed.d.mts +10 -17
  251. package/dist/types/commands/threat-feed/handle-threat-feed.d.mts.map +1 -1
  252. package/dist/types/commands/threat-feed/output-threat-feed.d.mts +4 -7
  253. package/dist/types/commands/threat-feed/types.d.mts +12 -12
  254. package/dist/types/commands/uninstall/cmd-uninstall-completion.d.mts +9 -0
  255. package/dist/types/commands/uninstall/cmd-uninstall-completion.d.mts.map +1 -0
  256. package/dist/types/commands/uninstall/cmd-uninstall.d.mts +3 -0
  257. package/dist/types/commands/uninstall/cmd-uninstall.d.mts.map +1 -0
  258. package/dist/types/commands/uninstall/handle-uninstall-completion.d.mts +2 -0
  259. package/dist/types/commands/uninstall/handle-uninstall-completion.d.mts.map +1 -0
  260. package/dist/types/commands/uninstall/output-uninstall-completion.d.mts +6 -0
  261. package/dist/types/commands/uninstall/output-uninstall-completion.d.mts.map +1 -0
  262. package/dist/types/commands/uninstall/teardown-tab-completion.d.mts +6 -0
  263. package/dist/types/commands/uninstall/teardown-tab-completion.d.mts.map +1 -0
  264. package/dist/types/commands/wrapper/add-socket-wrapper.d.mts +2 -2
  265. package/dist/types/commands/wrapper/check-socket-wrapper-setup.d.mts +2 -2
  266. package/dist/types/commands/wrapper/cmd-wrapper.d.mts +9 -15
  267. package/dist/types/commands/wrapper/postinstall-wrapper.d.mts +2 -2
  268. package/dist/types/commands/wrapper/postinstall-wrapper.d.mts.map +1 -1
  269. package/dist/types/commands/wrapper/remove-socket-wrapper.d.mts +2 -2
  270. package/dist/types/constants.d.mts +125 -135
  271. package/dist/types/constants.d.mts.map +1 -1
  272. package/dist/types/flags.d.mts +14 -17
  273. package/dist/types/flags.d.mts.map +1 -1
  274. package/dist/types/instrument-with-sentry.d.mts +2 -2
  275. package/dist/types/shadow/npm/arborist/index.d.mts +2 -2
  276. package/dist/types/shadow/npm/arborist/lib/arborist/index.d.mts +19 -24
  277. package/dist/types/shadow/npm/arborist/lib/arborist/types.d.mts +43 -71
  278. package/dist/types/shadow/npm/arborist/lib/dep-valid.d.mts +3 -8
  279. package/dist/types/shadow/npm/arborist/lib/edge.d.mts +58 -71
  280. package/dist/types/shadow/npm/arborist/lib/node.d.mts +55 -91
  281. package/dist/types/shadow/npm/arborist/lib/override-set.d.mts +26 -32
  282. package/dist/types/shadow/npm/arborist-helpers.d.mts +33 -66
  283. package/dist/types/shadow/npm/arborist-helpers.d.mts.map +1 -1
  284. package/dist/types/shadow/npm/bin.d.mts +2 -5
  285. package/dist/types/shadow/npm/inject.d.mts +2 -2
  286. package/dist/types/shadow/npm/install.d.mts +11 -16
  287. package/dist/types/shadow/npm/link.d.mts +2 -5
  288. package/dist/types/shadow/npm/paths.d.mts +7 -7
  289. package/dist/types/shadow/npm/proc-log/index.d.mts +3 -6
  290. package/dist/types/types.d.mts +15 -17
  291. package/dist/types/utils/agent.d.mts +11 -14
  292. package/dist/types/utils/alert/artifact.d.mts +32 -50
  293. package/dist/types/utils/alert/fix.d.mts +5 -5
  294. package/dist/types/utils/alert/severity.d.mts +12 -24
  295. package/dist/types/utils/alerts-map.d.mts +23 -36
  296. package/dist/types/utils/api.d.mts +11 -34
  297. package/dist/types/utils/check-input.d.mts +9 -12
  298. package/dist/types/utils/cmd.d.mts +4 -4
  299. package/dist/types/utils/color-or-markdown.d.mts +14 -23
  300. package/dist/types/utils/color-or-markdown.d.mts.map +1 -1
  301. package/dist/types/utils/completion.d.mts +11 -0
  302. package/dist/types/utils/completion.d.mts.map +1 -0
  303. package/dist/types/utils/config.d.mts +22 -31
  304. package/dist/types/utils/config.d.mts.map +1 -1
  305. package/dist/types/utils/determine-org-slug.d.mts +2 -7
  306. package/dist/types/utils/errors.d.mts +12 -21
  307. package/dist/types/utils/fail-msg-with-badge.d.mts +2 -5
  308. package/dist/types/utils/fs.d.mts +21 -52
  309. package/dist/types/utils/get-output-kind.d.mts +3 -6
  310. package/dist/types/utils/glob.d.mts +13 -24
  311. package/dist/types/utils/map-to-object.d.mts +4 -6
  312. package/dist/types/utils/markdown.d.mts +4 -15
  313. package/dist/types/utils/meow-with-subcommands.d.mts +34 -46
  314. package/dist/types/utils/meow-with-subcommands.d.mts.map +1 -1
  315. package/dist/types/utils/npm-paths.d.mts +7 -7
  316. package/dist/types/utils/npm-paths.d.mts.map +1 -1
  317. package/dist/types/utils/objects.d.mts +3 -8
  318. package/dist/types/utils/output-formatting.d.mts +14 -24
  319. package/dist/types/utils/package-environment.d.mts +51 -72
  320. package/dist/types/utils/package-environment.d.mts.map +1 -1
  321. package/dist/types/utils/path-resolve.d.mts +9 -14
  322. package/dist/types/utils/pnpm.d.mts +9 -7
  323. package/dist/types/utils/pnpm.d.mts.map +1 -1
  324. package/dist/types/utils/sdk.d.mts +8 -12
  325. package/dist/types/utils/semver.d.mts +5 -17
  326. package/dist/types/utils/serialize-result-json.d.mts +3 -3
  327. package/dist/types/utils/socket-package-alert.d.mts +62 -81
  328. package/dist/types/utils/socket-url.d.mts +9 -15
  329. package/dist/types/utils/spec.d.mts +4 -7
  330. package/dist/types/utils/spec.d.mts.map +1 -1
  331. package/dist/types/utils/strings.d.mts +2 -5
  332. package/dist/types/utils/translations.d.mts +592 -592
  333. package/dist/types/utils/walk-nested-map.d.mts +7 -10
  334. package/dist/utils.js +1531 -1833
  335. package/dist/utils.js.map +1 -1
  336. package/dist/vendor.js +39272 -51880
  337. package/dist/vendor.js.map +1 -1
  338. package/external/@socketsecurity/registry/external/@npmcli/package-json/index.js +5 -8
  339. package/external/@socketsecurity/registry/external/@npmcli/promise-spawn.js +2 -4
  340. package/external/@socketsecurity/registry/external/@socketregistry/yocto-spinner.js +1 -1
  341. package/external/@socketsecurity/registry/external/@socketregistry/yocto-spinner.js.map +1 -1
  342. package/external/@socketsecurity/registry/external/cacache.js +1 -2
  343. package/external/@socketsecurity/registry/external/libnpmpack.js +36 -76
  344. package/external/@socketsecurity/registry/external/make-fetch-happen.js +31 -67
  345. package/external/@socketsecurity/registry/external/pacote.js +36 -76
  346. package/external/@socketsecurity/registry/external/tinyglobby.js +3 -6
  347. package/external/@socketsecurity/registry/external/which.js +2 -4
  348. package/external/@socketsecurity/registry/lib/constants/skip-tests-by-ecosystem.js +5 -1
  349. package/external/@socketsecurity/registry/lib/logger.d.ts +3 -1
  350. package/external/@socketsecurity/registry/lib/logger.js +152 -70
  351. package/external/@socketsecurity/registry/package.json +3 -3
  352. package/external/blessed/lib/alias.js +475 -468
  353. package/external/blessed/lib/blessed.js +12 -12
  354. package/external/blessed/lib/colors.js +234 -194
  355. package/external/blessed/lib/events.js +64 -70
  356. package/external/blessed/lib/gpmclient.js +117 -141
  357. package/external/blessed/lib/helpers.js +89 -94
  358. package/external/blessed/lib/keys.js +169 -342
  359. package/external/blessed/lib/program.js +2130 -2365
  360. package/external/blessed/lib/tput.js +1183 -1276
  361. package/external/blessed/lib/unicode.js +400 -522
  362. package/external/blessed/lib/widget.js +14 -14
  363. package/external/blessed/lib/widgets/ansiimage.js +90 -96
  364. package/external/blessed/lib/widgets/bigtext.js +91 -102
  365. package/external/blessed/lib/widgets/box.js +8 -8
  366. package/external/blessed/lib/widgets/button.js +23 -23
  367. package/external/blessed/lib/widgets/checkbox.js +50 -54
  368. package/external/blessed/lib/widgets/element.js +1415 -1716
  369. package/external/blessed/lib/widgets/filemanager.js +107 -118
  370. package/external/blessed/lib/widgets/form.js +144 -178
  371. package/external/blessed/lib/widgets/image.js +26 -36
  372. package/external/blessed/lib/widgets/input.js +8 -8
  373. package/external/blessed/lib/widgets/layout.js +103 -119
  374. package/external/blessed/lib/widgets/line.js +17 -20
  375. package/external/blessed/lib/widgets/list.js +349 -402
  376. package/external/blessed/lib/widgets/listbar.js +265 -306
  377. package/external/blessed/lib/widgets/listtable.js +133 -146
  378. package/external/blessed/lib/widgets/loading.js +31 -31
  379. package/external/blessed/lib/widgets/log.js +41 -40
  380. package/external/blessed/lib/widgets/message.js +64 -86
  381. package/external/blessed/lib/widgets/node.js +175 -207
  382. package/external/blessed/lib/widgets/overlayimage.js +360 -437
  383. package/external/blessed/lib/widgets/progressbar.js +79 -88
  384. package/external/blessed/lib/widgets/prompt.js +54 -61
  385. package/external/blessed/lib/widgets/question.js +48 -61
  386. package/external/blessed/lib/widgets/radiobutton.js +26 -27
  387. package/external/blessed/lib/widgets/radioset.js +8 -8
  388. package/external/blessed/lib/widgets/screen.js +1186 -1375
  389. package/external/blessed/lib/widgets/scrollablebox.js +202 -228
  390. package/external/blessed/lib/widgets/scrollabletext.js +9 -9
  391. package/external/blessed/lib/widgets/table.js +187 -216
  392. package/external/blessed/lib/widgets/terminal.js +258 -298
  393. package/external/blessed/lib/widgets/text.js +9 -9
  394. package/external/blessed/lib/widgets/textarea.js +188 -222
  395. package/external/blessed/lib/widgets/textbox.js +34 -36
  396. package/external/blessed/lib/widgets/video.js +55 -59
  397. package/external/blessed/usr/fonts/ter-u14b.json +1 -1
  398. package/external/blessed/usr/fonts/ter-u14n.json +1 -1
  399. package/external/blessed/vendor/tng.js +1016 -1144
  400. package/external/blessed-contrib/lib/layout/grid.js +345 -377
  401. package/external/blessed-contrib/lib/widget/charts/bar.js +6612 -7139
  402. package/external/blessed-contrib/lib/widget/charts/line.js +16224 -23941
  403. package/external/blessed-contrib/lib/widget/table.js +78 -96
  404. package/package.json +13 -13
  405. package/dist/types/commands/cdxgen/run-cdxgen.d.mts.map +0 -1
@@ -7025,10 +7025,9 @@ function requireCommonjs$4() {
7025
7025
  }
7026
7026
  const result = {}
7027
7027
  if (mod != null) {
7028
- for (const k in mod) {
7028
+ for (var k in mod)
7029
7029
  if (k !== 'default' && Object.prototype.hasOwnProperty.call(mod, k))
7030
7030
  __createBinding(result, mod, k)
7031
- }
7032
7031
  }
7033
7032
  __setModuleDefault(result, mod)
7034
7033
  return result
@@ -10962,10 +10961,9 @@ function requireCjs$1() {
10962
10961
  }
10963
10962
  const result = {}
10964
10963
  if (mod != null) {
10965
- for (const k in mod) {
10964
+ for (var k in mod)
10966
10965
  if (k !== 'default' && Object.prototype.hasOwnProperty.call(mod, k))
10967
10966
  __createBinding(result, mod, k)
10968
- }
10969
10967
  }
10970
10968
  __setModuleDefault(result, mod)
10971
10969
  return result
@@ -10977,9 +10975,8 @@ function requireCjs$1() {
10977
10975
  if (
10978
10976
  p !== 'default' &&
10979
10977
  !Object.prototype.hasOwnProperty.call(exports, p)
10980
- ) {
10978
+ )
10981
10979
  __createBinding(exports, m, p)
10982
- }
10983
10980
  }
10984
10981
  }
10985
10982
  Object.defineProperty(exports, '__esModule', {
@@ -15058,7 +15055,7 @@ function requireDevEngines() {
15058
15055
  const satisfies = requireSatisfies()
15059
15056
  const validRange = requireValid()
15060
15057
  const recognizedOnFail = new Set(['ignore', 'warn', 'error', 'download'])
15061
- const recognizedProperties = new Set(['name', 'version', 'onFail'])
15058
+ const recognizedProperties = ['name', 'version', 'onFail']
15062
15059
  const recognizedEngines = ['packageManager', 'runtime', 'cpu', 'libc', 'os']
15063
15060
 
15064
15061
  /** checks a devEngine dependency */
@@ -15073,7 +15070,7 @@ function requireDevEngines() {
15073
15070
  }
15074
15071
  const properties = Object.keys(wanted)
15075
15072
  for (const prop of properties) {
15076
- if (!recognizedProperties.has(prop)) {
15073
+ if (!recognizedProperties.includes(prop)) {
15077
15074
  throw new Error(`Invalid property "${prop}" for "${engine}"`)
15078
15075
  }
15079
15076
  }
@@ -31686,9 +31683,7 @@ function requireChownr() {
31686
31683
  if (typeof child === 'string') {
31687
31684
  return fs.lstat(path.resolve(p, child), (er, stats) => {
31688
31685
  // Skip ENOENT error
31689
- if (er) {
31690
- return cb(er.code !== 'ENOENT' ? er : null)
31691
- }
31686
+ if (er) return cb(er.code !== 'ENOENT' ? er : null)
31692
31687
  stats.name = child
31693
31688
  chownrKid(p, stats, uid, gid, cb)
31694
31689
  })
@@ -35126,9 +35121,8 @@ function requireCommonjs$2() {
35126
35121
  function (o) {
35127
35122
  const ar = []
35128
35123
  for (const k in o) {
35129
- if (Object.prototype.hasOwnProperty.call(o, k)) {
35124
+ if (Object.prototype.hasOwnProperty.call(o, k))
35130
35125
  ar[ar.length] = k
35131
- }
35132
35126
  }
35133
35127
  return ar
35134
35128
  }
@@ -35140,9 +35134,8 @@ function requireCommonjs$2() {
35140
35134
  }
35141
35135
  const result = {}
35142
35136
  if (mod != null) {
35143
- for (let k = ownKeys(mod), i = 0; i < k.length; i++) {
35137
+ for (var k = ownKeys(mod), i = 0; i < k.length; i++)
35144
35138
  if (k[i] !== 'default') __createBinding(result, mod, k[i])
35145
- }
35146
35139
  }
35147
35140
  __setModuleDefault(result, mod)
35148
35141
  return result
@@ -38585,13 +38578,10 @@ function requireDbcsCodec() {
38585
38578
  // Some chars can be decoded, but need not be encoded.
38586
38579
  const skipEncodeChars = {}
38587
38580
  if (codecOptions.encodeSkipVals) {
38588
- for (let i = 0; i < codecOptions.encodeSkipVals.length; i++) {
38589
- const val = codecOptions.encodeSkipVals[i]
38590
- if (typeof val === 'number') {
38591
- skipEncodeChars[val] = true
38592
- } else {
38593
- for (var j = val.from; j <= val.to; j++) skipEncodeChars[j] = true
38594
- }
38581
+ for (var i = 0; i < codecOptions.encodeSkipVals.length; i++) {
38582
+ var val = codecOptions.encodeSkipVals[i]
38583
+ if (typeof val === 'number') skipEncodeChars[val] = true
38584
+ else for (var j = val.from; j <= val.to; j++) skipEncodeChars[j] = true
38595
38585
  }
38596
38586
  }
38597
38587
 
@@ -38601,14 +38591,11 @@ function requireDbcsCodec() {
38601
38591
  // Add more encoding pairs when needed.
38602
38592
  if (codecOptions.encodeAdd) {
38603
38593
  for (const uChar in codecOptions.encodeAdd) {
38604
- if (
38605
- Object.prototype.hasOwnProperty.call(codecOptions.encodeAdd, uChar)
38606
- ) {
38594
+ if (Object.prototype.hasOwnProperty.call(codecOptions.encodeAdd, uChar))
38607
38595
  this._setEncodeChar(
38608
38596
  uChar.charCodeAt(0),
38609
38597
  codecOptions.encodeAdd[uChar]
38610
38598
  )
38611
- }
38612
38599
  }
38613
38600
  }
38614
38601
  this.defCharSB =
@@ -44942,9 +44929,8 @@ function requireEncodings() {
44942
44929
  for (let i = 0; i < modules.length; i++) {
44943
44930
  const module = modules[i]
44944
44931
  for (const enc in module) {
44945
- if (Object.prototype.hasOwnProperty.call(module, enc)) {
44932
+ if (Object.prototype.hasOwnProperty.call(module, enc))
44946
44933
  exports[enc] = module[enc]
44947
- }
44948
44934
  }
44949
44935
  }
44950
44936
  })(encodings)
@@ -50888,10 +50874,9 @@ function requireHelpers$2() {
50888
50874
  }
50889
50875
  const result = {}
50890
50876
  if (mod != null) {
50891
- for (const k in mod) {
50877
+ for (var k in mod)
50892
50878
  if (k !== 'default' && Object.prototype.hasOwnProperty.call(mod, k))
50893
50879
  __createBinding(result, mod, k)
50894
- }
50895
50880
  }
50896
50881
  __setModuleDefault(result, mod)
50897
50882
  return result
@@ -50994,10 +50979,9 @@ function requireDist$v() {
50994
50979
  }
50995
50980
  const result = {}
50996
50981
  if (mod != null) {
50997
- for (const k in mod) {
50982
+ for (var k in mod)
50998
50983
  if (k !== 'default' && Object.prototype.hasOwnProperty.call(mod, k))
50999
50984
  __createBinding(result, mod, k)
51000
- }
51001
50985
  }
51002
50986
  __setModuleDefault(result, mod)
51003
50987
  return result
@@ -51009,9 +50993,8 @@ function requireDist$v() {
51009
50993
  if (
51010
50994
  p !== 'default' &&
51011
50995
  !Object.prototype.hasOwnProperty.call(exports, p)
51012
- ) {
50996
+ )
51013
50997
  __createBinding(exports, m, p)
51014
- }
51015
50998
  }
51016
50999
  }
51017
51000
  Object.defineProperty(exports, '__esModule', {
@@ -51236,10 +51219,9 @@ function requireDist$u() {
51236
51219
  }
51237
51220
  const result = {}
51238
51221
  if (mod != null) {
51239
- for (const k in mod) {
51222
+ for (var k in mod)
51240
51223
  if (k !== 'default' && Object.prototype.hasOwnProperty.call(mod, k))
51241
51224
  __createBinding(result, mod, k)
51242
- }
51243
51225
  }
51244
51226
  __setModuleDefault(result, mod)
51245
51227
  return result
@@ -51562,10 +51544,9 @@ function requireDist$t() {
51562
51544
  }
51563
51545
  const result = {}
51564
51546
  if (mod != null) {
51565
- for (const k in mod) {
51547
+ for (var k in mod)
51566
51548
  if (k !== 'default' && Object.prototype.hasOwnProperty.call(mod, k))
51567
51549
  __createBinding(result, mod, k)
51568
- }
51569
51550
  }
51570
51551
  __setModuleDefault(result, mod)
51571
51552
  return result
@@ -53643,13 +53624,9 @@ function requireJsbn() {
53643
53624
  // (public) Constructor
53644
53625
  function BigInteger(a, b, c) {
53645
53626
  if (a != null) {
53646
- if ('number' == typeof a) {
53647
- this.fromNumber(a, b, c)
53648
- } else if (b == null && 'string' != typeof a) {
53649
- this.fromString(a, 256)
53650
- } else {
53651
- this.fromString(a, b)
53652
- }
53627
+ if ('number' == typeof a) this.fromNumber(a, b, c)
53628
+ else if (b == null && 'string' != typeof a) this.fromString(a, 256)
53629
+ else this.fromString(a, b)
53653
53630
  }
53654
53631
  }
53655
53632
 
@@ -53925,9 +53902,7 @@ function requireJsbn() {
53925
53902
  return this.s < 0 ? -r : r
53926
53903
  }
53927
53904
  while (--i >= 0) {
53928
- if ((r = this[i] - a[i]) != 0) {
53929
- return r
53930
- }
53905
+ if ((r = this[i] - a[i]) != 0) return r
53931
53906
  }
53932
53907
  return 0
53933
53908
  }
@@ -54747,9 +54722,7 @@ function requireJsbn() {
54747
54722
  // (public) returns index of lowest 1-bit (or -1 if none)
54748
54723
  function bnGetLowestSetBit() {
54749
54724
  for (let i = 0; i < this.t; ++i) {
54750
- if (this[i] != 0) {
54751
- return i * this.DB + lbit(this[i])
54752
- }
54725
+ if (this[i] != 0) return i * this.DB + lbit(this[i])
54753
54726
  }
54754
54727
  if (this.s < 0) {
54755
54728
  return this.t * this.DB
@@ -55185,11 +55158,8 @@ function requireJsbn() {
55185
55158
  let d = this.DV % n,
55186
55159
  r = this.s < 0 ? n - 1 : 0
55187
55160
  if (this.t > 0) {
55188
- if (d == 0) {
55189
- r = this[0] % n
55190
- } else {
55191
- for (var i = this.t - 1; i >= 0; --i) r = (d * r + this[i]) % n
55192
- }
55161
+ if (d == 0) r = this[0] % n
55162
+ else for (var i = this.t - 1; i >= 0; --i) r = (d * r + this[i]) % n
55193
55163
  }
55194
55164
  return r
55195
55165
  }
@@ -55286,9 +55256,7 @@ function requireJsbn() {
55286
55256
  x = this.abs()
55287
55257
  if (x.t == 1 && x[0] <= lowprimes[lowprimes.length - 1]) {
55288
55258
  for (i = 0; i < lowprimes.length; ++i) {
55289
- if (x[0] == lowprimes[i]) {
55290
- return true
55291
- }
55259
+ if (x[0] == lowprimes[i]) return true
55292
55260
  }
55293
55261
  return false
55294
55262
  }
@@ -55304,9 +55272,7 @@ function requireJsbn() {
55304
55272
  }
55305
55273
  m = x.modInt(m)
55306
55274
  while (i < j) {
55307
- if (m % lowprimes[i++] == 0) {
55308
- return false
55309
- }
55275
+ if (m % lowprimes[i++] == 0) return false
55310
55276
  }
55311
55277
  }
55312
55278
  return x.millerRabin(t)
@@ -55884,10 +55850,9 @@ function requireIpv4() {
55884
55850
  }
55885
55851
  const result = {}
55886
55852
  if (mod != null) {
55887
- for (const k in mod) {
55853
+ for (var k in mod)
55888
55854
  if (k !== 'default' && Object.prototype.hasOwnProperty.call(mod, k))
55889
55855
  __createBinding(result, mod, k)
55890
- }
55891
55856
  }
55892
55857
  __setModuleDefault(result, mod)
55893
55858
  return result
@@ -56450,10 +56415,9 @@ function requireRegularExpressions() {
56450
56415
  }
56451
56416
  const result = {}
56452
56417
  if (mod != null) {
56453
- for (const k in mod) {
56418
+ for (var k in mod)
56454
56419
  if (k !== 'default' && Object.prototype.hasOwnProperty.call(mod, k))
56455
56420
  __createBinding(result, mod, k)
56456
- }
56457
56421
  }
56458
56422
  __setModuleDefault(result, mod)
56459
56423
  return result
@@ -56608,10 +56572,9 @@ function requireIpv6() {
56608
56572
  }
56609
56573
  const result = {}
56610
56574
  if (mod != null) {
56611
- for (const k in mod) {
56575
+ for (var k in mod)
56612
56576
  if (k !== 'default' && Object.prototype.hasOwnProperty.call(mod, k))
56613
56577
  __createBinding(result, mod, k)
56614
- }
56615
56578
  }
56616
56579
  __setModuleDefault(result, mod)
56617
56580
  return result
@@ -57741,10 +57704,9 @@ function requireIpAddress() {
57741
57704
  }
57742
57705
  const result = {}
57743
57706
  if (mod != null) {
57744
- for (const k in mod) {
57707
+ for (var k in mod)
57745
57708
  if (k !== 'default' && Object.prototype.hasOwnProperty.call(mod, k))
57746
57709
  __createBinding(result, mod, k)
57747
- }
57748
57710
  }
57749
57711
  __setModuleDefault(result, mod)
57750
57712
  return result
@@ -59067,9 +59029,8 @@ function requireBuild$3() {
59067
59029
  if (
59068
59030
  p !== 'default' &&
59069
59031
  !Object.prototype.hasOwnProperty.call(exports, p)
59070
- ) {
59032
+ )
59071
59033
  __createBinding(exports, m, p)
59072
- }
59073
59034
  }
59074
59035
  }
59075
59036
  Object.defineProperty(exports, '__esModule', {
@@ -59133,10 +59094,9 @@ function requireDist$s() {
59133
59094
  }
59134
59095
  const result = {}
59135
59096
  if (mod != null) {
59136
- for (const k in mod) {
59097
+ for (var k in mod)
59137
59098
  if (k !== 'default' && Object.prototype.hasOwnProperty.call(mod, k))
59138
59099
  __createBinding(result, mod, k)
59139
- }
59140
59100
  }
59141
59101
  __setModuleDefault(result, mod)
59142
59102
  return result
@@ -59805,7 +59765,7 @@ function requireRemote$3() {
59805
59765
  // EINVALIDPROXY // invalid protocol from @npmcli/agent
59806
59766
  // EINVALIDRESPONSE // invalid status code from @npmcli/agent
59807
59767
  ])
59808
- const RETRY_TYPES = new Set(['request-timeout'])
59768
+ const RETRY_TYPES = ['request-timeout']
59809
59769
 
59810
59770
  // make a request directly to the remote source,
59811
59771
  // retrying certain classes of errors as well as
@@ -59888,7 +59848,7 @@ function requireRemote$3() {
59888
59848
  // can re-throw to allow the retry
59889
59849
  const isRetryError =
59890
59850
  err.retried instanceof fetch.Response ||
59891
- (RETRY_ERRORS.has(code) && RETRY_TYPES.has(err.type))
59851
+ (RETRY_ERRORS.has(code) && RETRY_TYPES.includes(err.type))
59892
59852
  if (req.method === 'POST' || isRetryError) {
59893
59853
  throw err
59894
59854
  }
@@ -1377,9 +1377,8 @@ function requireCommonjs$4() {
1377
1377
  function (o) {
1378
1378
  const ar = []
1379
1379
  for (const k in o) {
1380
- if (Object.prototype.hasOwnProperty.call(o, k)) {
1380
+ if (Object.prototype.hasOwnProperty.call(o, k))
1381
1381
  ar[ar.length] = k
1382
- }
1383
1382
  }
1384
1383
  return ar
1385
1384
  }
@@ -1391,9 +1390,8 @@ function requireCommonjs$4() {
1391
1390
  }
1392
1391
  const result = {}
1393
1392
  if (mod != null) {
1394
- for (let k = ownKeys(mod), i = 0; i < k.length; i++) {
1393
+ for (var k = ownKeys(mod), i = 0; i < k.length; i++)
1395
1394
  if (k[i] !== 'default') __createBinding(result, mod, k[i])
1396
- }
1397
1395
  }
1398
1396
  __setModuleDefault(result, mod)
1399
1397
  return result
@@ -4836,13 +4834,10 @@ function requireDbcsCodec() {
4836
4834
  // Some chars can be decoded, but need not be encoded.
4837
4835
  const skipEncodeChars = {}
4838
4836
  if (codecOptions.encodeSkipVals) {
4839
- for (let i = 0; i < codecOptions.encodeSkipVals.length; i++) {
4840
- const val = codecOptions.encodeSkipVals[i]
4841
- if (typeof val === 'number') {
4842
- skipEncodeChars[val] = true
4843
- } else {
4844
- for (var j = val.from; j <= val.to; j++) skipEncodeChars[j] = true
4845
- }
4837
+ for (var i = 0; i < codecOptions.encodeSkipVals.length; i++) {
4838
+ var val = codecOptions.encodeSkipVals[i]
4839
+ if (typeof val === 'number') skipEncodeChars[val] = true
4840
+ else for (var j = val.from; j <= val.to; j++) skipEncodeChars[j] = true
4846
4841
  }
4847
4842
  }
4848
4843
 
@@ -4852,14 +4847,11 @@ function requireDbcsCodec() {
4852
4847
  // Add more encoding pairs when needed.
4853
4848
  if (codecOptions.encodeAdd) {
4854
4849
  for (const uChar in codecOptions.encodeAdd) {
4855
- if (
4856
- Object.prototype.hasOwnProperty.call(codecOptions.encodeAdd, uChar)
4857
- ) {
4850
+ if (Object.prototype.hasOwnProperty.call(codecOptions.encodeAdd, uChar))
4858
4851
  this._setEncodeChar(
4859
4852
  uChar.charCodeAt(0),
4860
4853
  codecOptions.encodeAdd[uChar]
4861
4854
  )
4862
- }
4863
4855
  }
4864
4856
  }
4865
4857
  this.defCharSB =
@@ -11193,9 +11185,8 @@ function requireEncodings() {
11193
11185
  for (let i = 0; i < modules.length; i++) {
11194
11186
  const module = modules[i]
11195
11187
  for (const enc in module) {
11196
- if (Object.prototype.hasOwnProperty.call(module, enc)) {
11188
+ if (Object.prototype.hasOwnProperty.call(module, enc))
11197
11189
  exports[enc] = module[enc]
11198
- }
11199
11190
  }
11200
11191
  }
11201
11192
  })(encodings)
@@ -26379,10 +26370,9 @@ function requireCommonjs$1() {
26379
26370
  }
26380
26371
  const result = {}
26381
26372
  if (mod != null) {
26382
- for (const k in mod) {
26373
+ for (var k in mod)
26383
26374
  if (k !== 'default' && Object.prototype.hasOwnProperty.call(mod, k))
26384
26375
  __createBinding(result, mod, k)
26385
- }
26386
26376
  }
26387
26377
  __setModuleDefault(result, mod)
26388
26378
  return result
@@ -32458,10 +32448,9 @@ function requireHelpers$2() {
32458
32448
  }
32459
32449
  const result = {}
32460
32450
  if (mod != null) {
32461
- for (const k in mod) {
32451
+ for (var k in mod)
32462
32452
  if (k !== 'default' && Object.prototype.hasOwnProperty.call(mod, k))
32463
32453
  __createBinding(result, mod, k)
32464
- }
32465
32454
  }
32466
32455
  __setModuleDefault(result, mod)
32467
32456
  return result
@@ -32564,10 +32553,9 @@ function requireDist$3() {
32564
32553
  }
32565
32554
  const result = {}
32566
32555
  if (mod != null) {
32567
- for (const k in mod) {
32556
+ for (var k in mod)
32568
32557
  if (k !== 'default' && Object.prototype.hasOwnProperty.call(mod, k))
32569
32558
  __createBinding(result, mod, k)
32570
- }
32571
32559
  }
32572
32560
  __setModuleDefault(result, mod)
32573
32561
  return result
@@ -32579,9 +32567,8 @@ function requireDist$3() {
32579
32567
  if (
32580
32568
  p !== 'default' &&
32581
32569
  !Object.prototype.hasOwnProperty.call(exports, p)
32582
- ) {
32570
+ )
32583
32571
  __createBinding(exports, m, p)
32584
- }
32585
32572
  }
32586
32573
  }
32587
32574
  Object.defineProperty(exports, '__esModule', {
@@ -32806,10 +32793,9 @@ function requireDist$2() {
32806
32793
  }
32807
32794
  const result = {}
32808
32795
  if (mod != null) {
32809
- for (const k in mod) {
32796
+ for (var k in mod)
32810
32797
  if (k !== 'default' && Object.prototype.hasOwnProperty.call(mod, k))
32811
32798
  __createBinding(result, mod, k)
32812
- }
32813
32799
  }
32814
32800
  __setModuleDefault(result, mod)
32815
32801
  return result
@@ -33132,10 +33118,9 @@ function requireDist$1() {
33132
33118
  }
33133
33119
  const result = {}
33134
33120
  if (mod != null) {
33135
- for (const k in mod) {
33121
+ for (var k in mod)
33136
33122
  if (k !== 'default' && Object.prototype.hasOwnProperty.call(mod, k))
33137
33123
  __createBinding(result, mod, k)
33138
- }
33139
33124
  }
33140
33125
  __setModuleDefault(result, mod)
33141
33126
  return result
@@ -35213,13 +35198,9 @@ function requireJsbn() {
35213
35198
  // (public) Constructor
35214
35199
  function BigInteger(a, b, c) {
35215
35200
  if (a != null) {
35216
- if ('number' == typeof a) {
35217
- this.fromNumber(a, b, c)
35218
- } else if (b == null && 'string' != typeof a) {
35219
- this.fromString(a, 256)
35220
- } else {
35221
- this.fromString(a, b)
35222
- }
35201
+ if ('number' == typeof a) this.fromNumber(a, b, c)
35202
+ else if (b == null && 'string' != typeof a) this.fromString(a, 256)
35203
+ else this.fromString(a, b)
35223
35204
  }
35224
35205
  }
35225
35206
 
@@ -35495,9 +35476,7 @@ function requireJsbn() {
35495
35476
  return this.s < 0 ? -r : r
35496
35477
  }
35497
35478
  while (--i >= 0) {
35498
- if ((r = this[i] - a[i]) != 0) {
35499
- return r
35500
- }
35479
+ if ((r = this[i] - a[i]) != 0) return r
35501
35480
  }
35502
35481
  return 0
35503
35482
  }
@@ -36317,9 +36296,7 @@ function requireJsbn() {
36317
36296
  // (public) returns index of lowest 1-bit (or -1 if none)
36318
36297
  function bnGetLowestSetBit() {
36319
36298
  for (let i = 0; i < this.t; ++i) {
36320
- if (this[i] != 0) {
36321
- return i * this.DB + lbit(this[i])
36322
- }
36299
+ if (this[i] != 0) return i * this.DB + lbit(this[i])
36323
36300
  }
36324
36301
  if (this.s < 0) {
36325
36302
  return this.t * this.DB
@@ -36755,11 +36732,8 @@ function requireJsbn() {
36755
36732
  let d = this.DV % n,
36756
36733
  r = this.s < 0 ? n - 1 : 0
36757
36734
  if (this.t > 0) {
36758
- if (d == 0) {
36759
- r = this[0] % n
36760
- } else {
36761
- for (var i = this.t - 1; i >= 0; --i) r = (d * r + this[i]) % n
36762
- }
36735
+ if (d == 0) r = this[0] % n
36736
+ else for (var i = this.t - 1; i >= 0; --i) r = (d * r + this[i]) % n
36763
36737
  }
36764
36738
  return r
36765
36739
  }
@@ -36856,9 +36830,7 @@ function requireJsbn() {
36856
36830
  x = this.abs()
36857
36831
  if (x.t == 1 && x[0] <= lowprimes[lowprimes.length - 1]) {
36858
36832
  for (i = 0; i < lowprimes.length; ++i) {
36859
- if (x[0] == lowprimes[i]) {
36860
- return true
36861
- }
36833
+ if (x[0] == lowprimes[i]) return true
36862
36834
  }
36863
36835
  return false
36864
36836
  }
@@ -36874,9 +36846,7 @@ function requireJsbn() {
36874
36846
  }
36875
36847
  m = x.modInt(m)
36876
36848
  while (i < j) {
36877
- if (m % lowprimes[i++] == 0) {
36878
- return false
36879
- }
36849
+ if (m % lowprimes[i++] == 0) return false
36880
36850
  }
36881
36851
  }
36882
36852
  return x.millerRabin(t)
@@ -37454,10 +37424,9 @@ function requireIpv4() {
37454
37424
  }
37455
37425
  const result = {}
37456
37426
  if (mod != null) {
37457
- for (const k in mod) {
37427
+ for (var k in mod)
37458
37428
  if (k !== 'default' && Object.prototype.hasOwnProperty.call(mod, k))
37459
37429
  __createBinding(result, mod, k)
37460
- }
37461
37430
  }
37462
37431
  __setModuleDefault(result, mod)
37463
37432
  return result
@@ -38020,10 +37989,9 @@ function requireRegularExpressions() {
38020
37989
  }
38021
37990
  const result = {}
38022
37991
  if (mod != null) {
38023
- for (const k in mod) {
37992
+ for (var k in mod)
38024
37993
  if (k !== 'default' && Object.prototype.hasOwnProperty.call(mod, k))
38025
37994
  __createBinding(result, mod, k)
38026
- }
38027
37995
  }
38028
37996
  __setModuleDefault(result, mod)
38029
37997
  return result
@@ -38178,10 +38146,9 @@ function requireIpv6() {
38178
38146
  }
38179
38147
  const result = {}
38180
38148
  if (mod != null) {
38181
- for (const k in mod) {
38149
+ for (var k in mod)
38182
38150
  if (k !== 'default' && Object.prototype.hasOwnProperty.call(mod, k))
38183
38151
  __createBinding(result, mod, k)
38184
- }
38185
38152
  }
38186
38153
  __setModuleDefault(result, mod)
38187
38154
  return result
@@ -39311,10 +39278,9 @@ function requireIpAddress() {
39311
39278
  }
39312
39279
  const result = {}
39313
39280
  if (mod != null) {
39314
- for (const k in mod) {
39281
+ for (var k in mod)
39315
39282
  if (k !== 'default' && Object.prototype.hasOwnProperty.call(mod, k))
39316
39283
  __createBinding(result, mod, k)
39317
- }
39318
39284
  }
39319
39285
  __setModuleDefault(result, mod)
39320
39286
  return result
@@ -40637,9 +40603,8 @@ function requireBuild() {
40637
40603
  if (
40638
40604
  p !== 'default' &&
40639
40605
  !Object.prototype.hasOwnProperty.call(exports, p)
40640
- ) {
40606
+ )
40641
40607
  __createBinding(exports, m, p)
40642
- }
40643
40608
  }
40644
40609
  }
40645
40610
  Object.defineProperty(exports, '__esModule', {
@@ -40703,10 +40668,9 @@ function requireDist() {
40703
40668
  }
40704
40669
  const result = {}
40705
40670
  if (mod != null) {
40706
- for (const k in mod) {
40671
+ for (var k in mod)
40707
40672
  if (k !== 'default' && Object.prototype.hasOwnProperty.call(mod, k))
40708
40673
  __createBinding(result, mod, k)
40709
- }
40710
40674
  }
40711
40675
  __setModuleDefault(result, mod)
40712
40676
  return result
@@ -41375,7 +41339,7 @@ function requireRemote() {
41375
41339
  // EINVALIDPROXY // invalid protocol from @npmcli/agent
41376
41340
  // EINVALIDRESPONSE // invalid status code from @npmcli/agent
41377
41341
  ])
41378
- const RETRY_TYPES = new Set(['request-timeout'])
41342
+ const RETRY_TYPES = ['request-timeout']
41379
41343
 
41380
41344
  // make a request directly to the remote source,
41381
41345
  // retrying certain classes of errors as well as
@@ -41458,7 +41422,7 @@ function requireRemote() {
41458
41422
  // can re-throw to allow the retry
41459
41423
  const isRetryError =
41460
41424
  err.retried instanceof fetch.Response ||
41461
- (RETRY_ERRORS.has(code) && RETRY_TYPES.has(err.type))
41425
+ (RETRY_ERRORS.has(code) && RETRY_TYPES.includes(err.type))
41462
41426
  if (req.method === 'POST' || isRetryError) {
41463
41427
  throw err
41464
41428
  }