@socketsecurity/cli-with-sentry 0.15.10 → 0.15.12

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 (403) hide show
  1. package/bin/cli.js +6 -6
  2. package/dist/.config/tsconfig.dts.tsbuildinfo +1 -1
  3. package/dist/cli.js +5731 -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 +38333 -51605
  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/cacache.js +1 -2
  341. package/external/@socketsecurity/registry/external/libnpmpack.js +36 -76
  342. package/external/@socketsecurity/registry/external/make-fetch-happen.js +31 -67
  343. package/external/@socketsecurity/registry/external/pacote.js +36 -76
  344. package/external/@socketsecurity/registry/external/tinyglobby.js +3 -6
  345. package/external/@socketsecurity/registry/external/which.js +2 -4
  346. package/external/@socketsecurity/registry/lib/logger.d.ts +4 -1
  347. package/external/@socketsecurity/registry/lib/logger.js +160 -73
  348. package/external/@socketsecurity/registry/lib/spinner.js +5 -1
  349. package/external/@socketsecurity/registry/package.json +2 -2
  350. package/external/blessed/lib/alias.js +475 -468
  351. package/external/blessed/lib/blessed.js +12 -12
  352. package/external/blessed/lib/colors.js +234 -194
  353. package/external/blessed/lib/events.js +64 -70
  354. package/external/blessed/lib/gpmclient.js +117 -141
  355. package/external/blessed/lib/helpers.js +89 -94
  356. package/external/blessed/lib/keys.js +169 -342
  357. package/external/blessed/lib/program.js +2130 -2365
  358. package/external/blessed/lib/tput.js +1183 -1276
  359. package/external/blessed/lib/unicode.js +400 -522
  360. package/external/blessed/lib/widget.js +14 -14
  361. package/external/blessed/lib/widgets/ansiimage.js +90 -96
  362. package/external/blessed/lib/widgets/bigtext.js +91 -102
  363. package/external/blessed/lib/widgets/box.js +8 -8
  364. package/external/blessed/lib/widgets/button.js +23 -23
  365. package/external/blessed/lib/widgets/checkbox.js +50 -54
  366. package/external/blessed/lib/widgets/element.js +1415 -1716
  367. package/external/blessed/lib/widgets/filemanager.js +107 -118
  368. package/external/blessed/lib/widgets/form.js +144 -178
  369. package/external/blessed/lib/widgets/image.js +26 -36
  370. package/external/blessed/lib/widgets/input.js +8 -8
  371. package/external/blessed/lib/widgets/layout.js +103 -119
  372. package/external/blessed/lib/widgets/line.js +17 -20
  373. package/external/blessed/lib/widgets/list.js +349 -402
  374. package/external/blessed/lib/widgets/listbar.js +265 -306
  375. package/external/blessed/lib/widgets/listtable.js +133 -146
  376. package/external/blessed/lib/widgets/loading.js +31 -31
  377. package/external/blessed/lib/widgets/log.js +41 -40
  378. package/external/blessed/lib/widgets/message.js +64 -86
  379. package/external/blessed/lib/widgets/node.js +175 -207
  380. package/external/blessed/lib/widgets/overlayimage.js +360 -437
  381. package/external/blessed/lib/widgets/progressbar.js +79 -88
  382. package/external/blessed/lib/widgets/prompt.js +54 -61
  383. package/external/blessed/lib/widgets/question.js +48 -61
  384. package/external/blessed/lib/widgets/radiobutton.js +26 -27
  385. package/external/blessed/lib/widgets/radioset.js +8 -8
  386. package/external/blessed/lib/widgets/screen.js +1186 -1375
  387. package/external/blessed/lib/widgets/scrollablebox.js +202 -228
  388. package/external/blessed/lib/widgets/scrollabletext.js +9 -9
  389. package/external/blessed/lib/widgets/table.js +187 -216
  390. package/external/blessed/lib/widgets/terminal.js +258 -298
  391. package/external/blessed/lib/widgets/text.js +9 -9
  392. package/external/blessed/lib/widgets/textarea.js +188 -222
  393. package/external/blessed/lib/widgets/textbox.js +34 -36
  394. package/external/blessed/lib/widgets/video.js +55 -59
  395. package/external/blessed/usr/fonts/ter-u14b.json +1 -1
  396. package/external/blessed/usr/fonts/ter-u14n.json +1 -1
  397. package/external/blessed/vendor/tng.js +1016 -1144
  398. package/external/blessed-contrib/lib/layout/grid.js +345 -377
  399. package/external/blessed-contrib/lib/widget/charts/bar.js +6612 -7139
  400. package/external/blessed-contrib/lib/widget/charts/line.js +16224 -23941
  401. package/external/blessed-contrib/lib/widget/table.js +78 -96
  402. package/package.json +9 -9
  403. package/dist/types/commands/cdxgen/run-cdxgen.d.mts.map +0 -1
@@ -1,15 +1,4 @@
1
- export declare function mdTableStringNumber(
2
- title1: string,
3
- title2: string,
4
- obj: Record<string, number | string>
5
- ): string
6
- export declare function mdTable<T extends Array<Record<string, string>>>(
7
- logs: T,
8
- cols: Array<string & keyof T[number]>,
9
- titles?: string[]
10
- ): string
11
- export declare function mdTableOfPairs(
12
- arr: Array<[string, string]>,
13
- cols: string[]
14
- ): string
15
- //# sourceMappingURL=markdown.d.mts.map
1
+ export declare function mdTableStringNumber(title1: string, title2: string, obj: Record<string, number | string>): string;
2
+ export declare function mdTable<T extends Array<Record<string, string>>>(logs: T, cols: Array<string & keyof T[number]>, titles?: string[]): string;
3
+ export declare function mdTableOfPairs(arr: Array<[string, string]>, cols: string[]): string;
4
+ //# sourceMappingURL=markdown.d.mts.map
@@ -1,57 +1,45 @@
1
- import type { MeowFlags } from '../flags.mts'
2
- import type { Options } from 'meow'
1
+ import type { MeowFlags } from '../flags.mts';
2
+ import type { Options } from 'meow';
3
3
  interface CliAlias {
4
- description: string
5
- argv: readonly string[]
6
- hidden?: boolean | undefined
4
+ description: string;
5
+ argv: readonly string[];
6
+ hidden?: boolean | undefined;
7
7
  }
8
- type CliAliases = Record<string, CliAlias>
9
- type CliSubcommandRun = (
10
- argv: string[] | readonly string[],
11
- importMeta: ImportMeta,
12
- context: {
13
- parentName: string
14
- }
15
- ) => Promise<void> | void
8
+ type CliAliases = Record<string, CliAlias>;
9
+ type CliSubcommandRun = (argv: string[] | readonly string[], importMeta: ImportMeta, context: {
10
+ parentName: string;
11
+ }) => Promise<void> | void;
16
12
  export interface CliSubcommand {
17
- description: string
18
- hidden?: boolean | undefined
19
- run: CliSubcommandRun
13
+ description: string;
14
+ hidden?: boolean | undefined;
15
+ run: CliSubcommandRun;
20
16
  }
21
17
  export interface CliCommandConfig {
22
- commandName: string
23
- description: string
24
- hidden: boolean
25
- flags: MeowFlags
26
- help: (command: string, config: CliCommandConfig) => string
18
+ commandName: string;
19
+ description: string;
20
+ hidden: boolean;
21
+ flags: MeowFlags;
22
+ help: (command: string, config: CliCommandConfig) => string;
27
23
  }
28
24
  interface MeowOptions extends Options<any> {
29
- aliases?: CliAliases | undefined
30
- argv: readonly string[]
31
- name: string
32
- defaultSub?: string
25
+ aliases?: CliAliases | undefined;
26
+ argv: readonly string[];
27
+ name: string;
28
+ defaultSub?: string;
33
29
  }
34
- export declare function getLastSeenCommand(): string
35
- export declare function meowWithSubcommands(
36
- subcommands: Record<string, CliSubcommand>,
37
- options: MeowOptions
38
- ): Promise<void>
30
+ export declare function getLastSeenCommand(): string;
31
+ export declare function meowWithSubcommands(subcommands: Record<string, CliSubcommand>, options: MeowOptions): Promise<void>;
39
32
  /**
40
33
  * Note: meow will exit immediately if it calls its .showHelp()
41
34
  */
42
- export declare function meowOrExit({
43
- allowUnknownFlags, // commands that pass-through args need to allow this
44
- argv,
45
- config,
46
- importMeta,
47
- parentName
48
- }: {
49
- allowUnknownFlags?: boolean | undefined
50
- argv: readonly string[]
51
- config: CliCommandConfig
52
- parentName: string
53
- importMeta: ImportMeta
54
- }): import('meow').Result<MeowFlags>
55
- export declare function emitBanner(name: string): void
56
- export {}
57
- //# sourceMappingURL=meow-with-subcommands.d.mts.map
35
+ export declare function meowOrExit({ allowUnknownFlags, // commands that pass-through args need to allow this
36
+ argv, config, importMeta, parentName, }: {
37
+ allowUnknownFlags?: boolean | undefined;
38
+ argv: readonly string[];
39
+ config: CliCommandConfig;
40
+ parentName: string;
41
+ importMeta: ImportMeta;
42
+ }): import("meow").Result<MeowFlags>;
43
+ export declare function emitBanner(name: string): void;
44
+ export {};
45
+ //# sourceMappingURL=meow-with-subcommands.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"meow-with-subcommands.d.mts","sourceRoot":"","sources":["../../../src/utils/meow-with-subcommands.mts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAEnC,UAAU,QAAQ;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,SAAS,MAAM,EAAE,CAAA;IACvB,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC7B;AAED,KAAK,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAA;AAE1C,KAAK,gBAAgB,GAAG,CACtB,IAAI,EAAE,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,EAClC,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,KAC5B,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;AAEzB,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC5B,GAAG,EAAE,gBAAgB,CAAA;CACtB;AAKD,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,OAAO,CAAA;IACf,KAAK,EAAE,SAAS,CAAA;IAChB,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,KAAK,MAAM,CAAA;CAC5D;AAED,UAAU,WAAY,SAAQ,OAAO,CAAC,GAAG,CAAC;IACxC,OAAO,CAAC,EAAE,UAAU,GAAG,SAAS,CAAA;IAChC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAA;IACvB,IAAI,EAAE,MAAM,CAAA;IAEZ,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAMD,wBAAgB,kBAAkB,IAAI,MAAM,CAE3C;AAED,wBAAsB,mBAAmB,CACvC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,EAC1C,OAAO,EAAE,WAAW,GACnB,OAAO,CAAC,IAAI,CAAC,CA2Kf;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,EACzB,iBAAiB,EAAE,qDAAqD;AACxE,IAAI,EACJ,MAAM,EACN,UAAU,EACV,UAAU,EACX,EAAE;IACD,iBAAiB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IACvC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAA;IACvB,MAAM,EAAE,gBAAgB,CAAA;IACxB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,UAAU,CAAA;CACvB,oCAoDA;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,QAUtC"}
1
+ {"version":3,"file":"meow-with-subcommands.d.mts","sourceRoot":"","sources":["../../../src/utils/meow-with-subcommands.mts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAEnC,UAAU,QAAQ;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,SAAS,MAAM,EAAE,CAAA;IACvB,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC7B;AAED,KAAK,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAA;AAE1C,KAAK,gBAAgB,GAAG,CACtB,IAAI,EAAE,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,EAClC,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,KAC5B,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;AAEzB,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC5B,GAAG,EAAE,gBAAgB,CAAA;CACtB;AAKD,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,OAAO,CAAA;IACf,KAAK,EAAE,SAAS,CAAA;IAChB,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,KAAK,MAAM,CAAA;CAC5D;AAED,UAAU,WAAY,SAAQ,OAAO,CAAC,GAAG,CAAC;IACxC,OAAO,CAAC,EAAE,UAAU,GAAG,SAAS,CAAA;IAChC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAA;IACvB,IAAI,EAAE,MAAM,CAAA;IAEZ,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAMD,wBAAgB,kBAAkB,IAAI,MAAM,CAE3C;AAED,wBAAsB,mBAAmB,CACvC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,EAC1C,OAAO,EAAE,WAAW,GACnB,OAAO,CAAC,IAAI,CAAC,CA2Kf;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,EACzB,iBAAiB,EAAE,qDAAqD;AACxE,IAAI,EACJ,MAAM,EACN,UAAU,EACV,UAAU,GACX,EAAE;IACD,iBAAiB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IACvC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAA;IACvB,MAAM,EAAE,gBAAgB,CAAA;IACxB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,UAAU,CAAA;CACvB,oCAoDA;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,QAUtC"}
@@ -1,7 +1,7 @@
1
- export declare function isNpmBinPathShadowed(): boolean
2
- export declare function isNpxBinPathShadowed(): boolean
3
- export declare function getNpmBinPath(): string
4
- export declare function getNpmPath(): string
5
- export declare function getNpmRequire(): NodeJS.Require
6
- export declare function getNpxBinPath(): string
7
- //# sourceMappingURL=npm-paths.d.mts.map
1
+ export declare function isNpmBinPathShadowed(): boolean;
2
+ export declare function isNpxBinPathShadowed(): boolean;
3
+ export declare function getNpmBinPath(): string;
4
+ export declare function getNpmPath(): string;
5
+ export declare function getNpmRequire(): NodeJS.Require;
6
+ export declare function getNpxBinPath(): string;
7
+ //# sourceMappingURL=npm-paths.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"npm-paths.d.mts","sourceRoot":"","sources":["../../../src/utils/npm-paths.mts"],"names":[],"mappings":"AAqCA,wBAAgB,oBAAoB,YAEnC;AAED,wBAAgB,oBAAoB,YAEnC;AAGD,wBAAgB,aAAa,IAAI,MAAM,CAQtC;AAGD,wBAAgB,UAAU,WAkBzB;AAGD,wBAAgB,aAAa,IAAI,MAAM,CAAC,OAAO,CAS9C;AAGD,wBAAgB,aAAa,IAAI,MAAM,CAQtC"}
1
+ {"version":3,"file":"npm-paths.d.mts","sourceRoot":"","sources":["../../../src/utils/npm-paths.mts"],"names":[],"mappings":"AAqCA,wBAAgB,oBAAoB,YAEnC;AAED,wBAAgB,oBAAoB,YAEnC;AAGD,wBAAgB,aAAa,IAAI,MAAM,CAQtC;AAGD,wBAAgB,UAAU,WAkBzB;AAGD,wBAAgB,aAAa,IAAI,MAAM,CAAC,OAAO,CAY9C;AAGD,wBAAgB,aAAa,IAAI,MAAM,CAQtC"}
@@ -1,8 +1,3 @@
1
- export declare function createEnum<const T extends Record<string, any>>(
2
- obj: T
3
- ): Readonly<T>
4
- export declare function pick<T extends Record<string, any>, K extends keyof T>(
5
- input: T,
6
- keys: K[] | readonly K[]
7
- ): Pick<T, K>
8
- //# sourceMappingURL=objects.d.mts.map
1
+ export declare function createEnum<const T extends Record<string, any>>(obj: T): Readonly<T>;
2
+ export declare function pick<T extends Record<string, any>, K extends keyof T>(input: T, keys: K[] | readonly K[]): Pick<T, K>;
3
+ //# sourceMappingURL=objects.d.mts.map
@@ -1,25 +1,15 @@
1
- import type { MeowFlags } from '../flags.mts'
1
+ import type { MeowFlags } from '../flags.mts';
2
2
  type HelpListOptions = {
3
- keyPrefix: string
4
- padName: number
5
- }
6
- type ListDescription =
7
- | {
8
- description: string
9
- }
10
- | {
11
- description: string
12
- hidden: boolean
13
- }
14
- export declare function getFlagListOutput(
15
- list: MeowFlags,
16
- indent: number,
17
- { keyPrefix, padName }?: HelpListOptions
18
- ): string
19
- export declare function getHelpListOutput(
20
- list: Record<string, ListDescription>,
21
- indent: number,
22
- { keyPrefix, padName }?: HelpListOptions
23
- ): string
24
- export {}
25
- //# sourceMappingURL=output-formatting.d.mts.map
3
+ keyPrefix: string;
4
+ padName: number;
5
+ };
6
+ type ListDescription = {
7
+ description: string;
8
+ } | {
9
+ description: string;
10
+ hidden: boolean;
11
+ };
12
+ export declare function getFlagListOutput(list: MeowFlags, indent: number, { keyPrefix, padName }?: HelpListOptions): string;
13
+ export declare function getHelpListOutput(list: Record<string, ListDescription>, indent: number, { keyPrefix, padName }?: HelpListOptions): string;
14
+ export {};
15
+ //# sourceMappingURL=output-formatting.d.mts.map
@@ -1,75 +1,54 @@
1
- import { Logger } from '@socketsecurity/registry/lib/logger'
2
- import type { Remap } from '@socketsecurity/registry/lib/objects'
3
- import type { EditablePackageJson } from '@socketsecurity/registry/lib/packages'
4
- import type { SemVer } from 'semver'
5
- export declare const AGENTS: readonly [
6
- 'bun',
7
- 'npm',
8
- 'pnpm',
9
- 'yarn/berry',
10
- 'yarn/classic',
11
- 'vlt'
12
- ]
13
- export type Agent = (typeof AGENTS)[number]
1
+ import { Logger } from '@socketsecurity/registry/lib/logger';
2
+ import type { Remap } from '@socketsecurity/registry/lib/objects';
3
+ import type { EditablePackageJson } from '@socketsecurity/registry/lib/packages';
4
+ import type { SemVer } from 'semver';
5
+ export declare const AGENTS: readonly ["bun", "npm", "pnpm", "yarn/berry", "yarn/classic", "vlt"];
6
+ export type Agent = (typeof AGENTS)[number];
14
7
  type EnvBase = {
15
- agent: Agent
16
- agentExecPath: string
17
- agentSupported: boolean
18
- features: {
19
- npmBuggyOverrides: boolean
20
- }
21
- nodeSupported: boolean
22
- nodeVersion: SemVer
23
- npmExecPath: string
24
- pkgRequirements: {
25
- agent: string
26
- node: string
27
- }
28
- pkgSupports: {
29
- agent: boolean
30
- node: boolean
31
- }
32
- }
33
- export type EnvDetails = Readonly<
34
- Remap<
35
- EnvBase & {
36
- agentVersion: SemVer
37
- editablePkgJson: EditablePackageJson
38
- lockName: string
39
- lockPath: string
40
- lockSrc: string
41
- pkgPath: string
42
- }
43
- >
44
- >
45
- export type PartialEnvDetails = Readonly<
46
- Remap<
47
- EnvBase & {
48
- agentVersion: SemVer | undefined
49
- editablePkgJson: EditablePackageJson | undefined
50
- lockName: string | undefined
51
- lockPath: string | undefined
52
- lockSrc: string | undefined
53
- pkgPath: string | undefined
54
- }
55
- >
56
- >
8
+ agent: Agent;
9
+ agentExecPath: string;
10
+ agentSupported: boolean;
11
+ features: {
12
+ npmBuggyOverrides: boolean;
13
+ };
14
+ nodeSupported: boolean;
15
+ nodeVersion: SemVer;
16
+ npmExecPath: string;
17
+ pkgRequirements: {
18
+ agent: string;
19
+ node: string;
20
+ };
21
+ pkgSupports: {
22
+ agent: boolean;
23
+ node: boolean;
24
+ };
25
+ };
26
+ export type EnvDetails = Readonly<Remap<EnvBase & {
27
+ agentVersion: SemVer;
28
+ editablePkgJson: EditablePackageJson;
29
+ lockName: string;
30
+ lockPath: string;
31
+ lockSrc: string;
32
+ pkgPath: string;
33
+ }>>;
34
+ export type PartialEnvDetails = Readonly<Remap<EnvBase & {
35
+ agentVersion: SemVer | undefined;
36
+ editablePkgJson: EditablePackageJson | undefined;
37
+ lockName: string | undefined;
38
+ lockPath: string | undefined;
39
+ lockSrc: string | undefined;
40
+ pkgPath: string | undefined;
41
+ }>>;
57
42
  export type DetectOptions = {
58
- cwd?: string | undefined
59
- onUnknown?: (pkgManager: string | undefined) => void
60
- }
61
- export declare function detectPackageEnvironment({
62
- cwd,
63
- onUnknown
64
- }?: DetectOptions): Promise<EnvDetails | PartialEnvDetails>
43
+ cwd?: string | undefined;
44
+ onUnknown?: (pkgManager: string | undefined) => void;
45
+ };
46
+ export declare function detectPackageEnvironment({ cwd, onUnknown, }?: DetectOptions): Promise<EnvDetails | PartialEnvDetails>;
65
47
  export type DetectAndValidateOptions = {
66
- cmdName?: string | undefined
67
- logger?: Logger | undefined
68
- prod?: boolean | undefined
69
- }
70
- export declare function detectAndValidatePackageEnvironment(
71
- cwd: string,
72
- options?: DetectAndValidateOptions | undefined
73
- ): Promise<void | EnvDetails>
74
- export {}
75
- //# sourceMappingURL=package-environment.d.mts.map
48
+ cmdName?: string | undefined;
49
+ logger?: Logger | undefined;
50
+ prod?: boolean | undefined;
51
+ };
52
+ export declare function detectAndValidatePackageEnvironment(cwd: string, options?: DetectAndValidateOptions | undefined): Promise<void | EnvDetails>;
53
+ export {};
54
+ //# sourceMappingURL=package-environment.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"package-environment.d.mts","sourceRoot":"","sources":["../../../src/utils/package-environment.mts"],"names":[],"mappings":"AASA,OAAO,EAAE,MAAM,EAAE,MAAM,qCAAqC,CAAA;AAU5D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAA;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAA;AAChF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAiBpC,eAAO,MAAM,MAAM,sEAA2D,CAAA;AAE9E,MAAM,MAAM,KAAK,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,CAAC,CAAA;AA0I3C,KAAK,OAAO,GAAG;IACb,KAAK,EAAE,KAAK,CAAA;IACZ,aAAa,EAAE,MAAM,CAAA;IACrB,cAAc,EAAE,OAAO,CAAA;IACvB,QAAQ,EAAE;QAGR,iBAAiB,EAAE,OAAO,CAAA;KAC3B,CAAA;IACD,aAAa,EAAE,OAAO,CAAA;IACtB,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,eAAe,EAAE;QACf,KAAK,EAAE,MAAM,CAAA;QACb,IAAI,EAAE,MAAM,CAAA;KACb,CAAA;IACD,WAAW,EAAE;QACX,KAAK,EAAE,OAAO,CAAA;QACd,IAAI,EAAE,OAAO,CAAA;KACd,CAAA;CACF,CAAA;AAED,MAAM,MAAM,UAAU,GAAG,QAAQ,CAC/B,KAAK,CACH,OAAO,GAAG;IACR,YAAY,EAAE,MAAM,CAAA;IACpB,eAAe,EAAE,mBAAmB,CAAA;IACpC,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;CAChB,CACF,CACF,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG,QAAQ,CACtC,KAAK,CACH,OAAO,GAAG;IACR,YAAY,EAAE,MAAM,GAAG,SAAS,CAAA;IAChC,eAAe,EAAE,mBAAmB,GAAG,SAAS,CAAA;IAChD,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;CAC5B,CACF,CACF,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACxB,SAAS,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAA;CACrD,CAAA;AAED,wBAAsB,wBAAwB,CAAC,EAC7C,GAAmB,EACnB,SAAS,EACV,GAAE,aAAkB,GAAG,OAAO,CAAC,UAAU,GAAG,iBAAiB,CAAC,CAgK9D;AAED,MAAM,MAAM,wBAAwB,GAAG;IACrC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC3B,CAAA;AAED,wBAAsB,mCAAmC,CACvD,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,wBAAwB,GAAG,SAAS,GAC7C,OAAO,CAAC,IAAI,GAAG,UAAU,CAAC,CA2G5B"}
1
+ {"version":3,"file":"package-environment.d.mts","sourceRoot":"","sources":["../../../src/utils/package-environment.mts"],"names":[],"mappings":"AASA,OAAO,EAAE,MAAM,EAAE,MAAM,qCAAqC,CAAA;AAU5D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAA;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAA;AAChF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAiBpC,eAAO,MAAM,MAAM,sEAA2D,CAAA;AAE9E,MAAM,MAAM,KAAK,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,CAAC,CAAA;AA0I3C,KAAK,OAAO,GAAG;IACb,KAAK,EAAE,KAAK,CAAA;IACZ,aAAa,EAAE,MAAM,CAAA;IACrB,cAAc,EAAE,OAAO,CAAA;IACvB,QAAQ,EAAE;QAGR,iBAAiB,EAAE,OAAO,CAAA;KAC3B,CAAA;IACD,aAAa,EAAE,OAAO,CAAA;IACtB,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,eAAe,EAAE;QACf,KAAK,EAAE,MAAM,CAAA;QACb,IAAI,EAAE,MAAM,CAAA;KACb,CAAA;IACD,WAAW,EAAE;QACX,KAAK,EAAE,OAAO,CAAA;QACd,IAAI,EAAE,OAAO,CAAA;KACd,CAAA;CACF,CAAA;AAED,MAAM,MAAM,UAAU,GAAG,QAAQ,CAC/B,KAAK,CACH,OAAO,GAAG;IACR,YAAY,EAAE,MAAM,CAAA;IACpB,eAAe,EAAE,mBAAmB,CAAA;IACpC,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;CAChB,CACF,CACF,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG,QAAQ,CACtC,KAAK,CACH,OAAO,GAAG;IACR,YAAY,EAAE,MAAM,GAAG,SAAS,CAAA;IAChC,eAAe,EAAE,mBAAmB,GAAG,SAAS,CAAA;IAChD,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;CAC5B,CACF,CACF,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACxB,SAAS,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAA;CACrD,CAAA;AAED,wBAAsB,wBAAwB,CAAC,EAC7C,GAAmB,EACnB,SAAS,GACV,GAAE,aAAkB,GAAG,OAAO,CAAC,UAAU,GAAG,iBAAiB,CAAC,CAgK9D;AAED,MAAM,MAAM,wBAAwB,GAAG;IACrC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC3B,CAAA;AAED,wBAAsB,mCAAmC,CACvD,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,wBAAwB,GAAG,SAAS,GAC7C,OAAO,CAAC,IAAI,GAAG,UAAU,CAAC,CA2G5B"}
@@ -1,15 +1,10 @@
1
- import type { SocketYml } from '@socketsecurity/config'
2
- import type { SocketSdkReturnType } from '@socketsecurity/sdk'
1
+ import type { SocketYml } from '@socketsecurity/config';
2
+ import type { SocketSdkReturnType } from '@socketsecurity/sdk';
3
3
  export declare function findBinPathDetailsSync(binName: string): {
4
- name: string
5
- path: string | undefined
6
- shadowed: boolean
7
- }
8
- export declare function findNpmPathSync(npmBinPath: string): string | undefined
9
- export declare function getPackageFilesForScan(
10
- cwd: string,
11
- inputPaths: string[],
12
- supportedFiles: SocketSdkReturnType<'getReportSupportedFiles'>['data'],
13
- config?: SocketYml | undefined
14
- ): Promise<string[]>
15
- //# sourceMappingURL=path-resolve.d.mts.map
4
+ name: string;
5
+ path: string | undefined;
6
+ shadowed: boolean;
7
+ };
8
+ export declare function findNpmPathSync(npmBinPath: string): string | undefined;
9
+ export declare function getPackageFilesForScan(cwd: string, inputPaths: string[], supportedFiles: SocketSdkReturnType<'getReportSupportedFiles'>['data'], config?: SocketYml | undefined): Promise<string[]>;
10
+ //# sourceMappingURL=path-resolve.d.mts.map
@@ -1,7 +1,9 @@
1
- import type { LockfileObject } from '@pnpm/lockfile.fs'
2
- import type { SemVer } from 'semver'
3
- export declare function extractPurlsFromPnpmLockfile(
4
- lockfile: LockfileObject
5
- ): Promise<string[]>
6
- export declare function parsePnpmLockfileVersion(version: string): SemVer
7
- //# sourceMappingURL=pnpm.d.mts.map
1
+ import type { LockfileObject } from '@pnpm/lockfile.fs';
2
+ import type { SemVer } from 'semver';
3
+ export declare function extractPurlsFromPnpmLockfile(lockfile: LockfileObject): Promise<string[]>;
4
+ export declare function isPnpmDepPath(maybeDepPath: string): boolean;
5
+ export declare function parsePnpmLockfileVersion(version: string): SemVer;
6
+ export declare function readPnpmLockfile(lockfilePath: string): Promise<LockfileObject | null>;
7
+ export declare function stripLeadingPnpmDepPathSlash(depPath: string): string;
8
+ export declare function stripPnpmPeerSuffix(depPath: string): string;
9
+ //# sourceMappingURL=pnpm.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pnpm.d.mts","sourceRoot":"","sources":["../../../src/utils/pnpm.mts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,cAAc,EAAmB,MAAM,mBAAmB,CAAA;AACxE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAEpC,wBAAsB,4BAA4B,CAChD,QAAQ,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,EAAE,CAAC,CA4BnB;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEhE"}
1
+ {"version":3,"file":"pnpm.d.mts","sourceRoot":"","sources":["../../../src/utils/pnpm.mts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,cAAc,EAAmB,MAAM,mBAAmB,CAAA;AACxE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAEpC,wBAAsB,4BAA4B,CAChD,QAAQ,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,EAAE,CAAC,CA8BnB;AAED,wBAAgB,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAE3D;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEhE;AAED,wBAAsB,gBAAgB,CACpC,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CAIhC;AAED,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEpE;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAG3D"}
@@ -1,12 +1,8 @@
1
- import { SocketSdk } from '@socketsecurity/sdk'
2
- import type { CResult } from '../types.mts'
3
- export declare function getDefaultToken(): string | undefined
4
- export declare function getVisibleTokenPrefix(): string
5
- export declare function hasDefaultToken(): boolean
6
- export declare function getPublicToken(): string
7
- export declare function setupSdk(
8
- apiToken?: string | undefined,
9
- apiBaseUrl?: string | undefined,
10
- proxy?: string | undefined
11
- ): Promise<CResult<SocketSdk>>
12
- //# sourceMappingURL=sdk.d.mts.map
1
+ import { SocketSdk } from '@socketsecurity/sdk';
2
+ import type { CResult } from '../types.mts';
3
+ export declare function getDefaultToken(): string | undefined;
4
+ export declare function getVisibleTokenPrefix(): string;
5
+ export declare function hasDefaultToken(): boolean;
6
+ export declare function getPublicToken(): string;
7
+ export declare function setupSdk(apiToken?: string | undefined, apiBaseUrl?: string | undefined, proxy?: string | undefined): Promise<CResult<SocketSdk>>;
8
+ //# sourceMappingURL=sdk.d.mts.map
@@ -1,17 +1,5 @@
1
- export declare const RangeStyles: string[]
2
- export type RangeStyle =
3
- | 'caret'
4
- | 'gt'
5
- | 'gte'
6
- | 'lt'
7
- | 'lte'
8
- | 'pin'
9
- | 'preserve'
10
- | 'tilde'
11
- export declare function applyRange(
12
- refRange: string,
13
- version: string,
14
- style?: RangeStyle
15
- ): string
16
- export declare function getMajor(version: string): number | null
17
- //# sourceMappingURL=semver.d.mts.map
1
+ export declare const RangeStyles: string[];
2
+ export type RangeStyle = 'caret' | 'gt' | 'gte' | 'lt' | 'lte' | 'pin' | 'preserve' | 'tilde';
3
+ export declare function applyRange(refRange: string, version: string, style?: RangeStyle): string;
4
+ export declare function getMajor(version: string): number | null;
5
+ //# sourceMappingURL=semver.d.mts.map
@@ -1,3 +1,3 @@
1
- import type { CResult } from '../types.mts'
2
- export declare function serializeResultJson(data: CResult<unknown>): string
3
- //# sourceMappingURL=serialize-result-json.d.mts.map
1
+ import type { CResult } from '../types.mts';
2
+ export declare function serializeResultJson(data: CResult<unknown>): string;
3
+ //# sourceMappingURL=serialize-result-json.d.mts.map
@@ -1,90 +1,71 @@
1
- import { ALERT_SEVERITY } from './alert/severity.mts'
2
- import type {
3
- ALERT_ACTION,
4
- CompactSocketArtifact,
5
- CompactSocketArtifactAlert
6
- } from './alert/artifact.mts'
7
- import type { Spinner } from '@socketsecurity/registry/lib/spinner'
1
+ import { ALERT_SEVERITY } from './alert/severity.mts';
2
+ import type { ALERT_ACTION, CompactSocketArtifact, CompactSocketArtifactAlert } from './alert/artifact.mts';
3
+ import type { Spinner } from '@socketsecurity/registry/lib/spinner';
8
4
  export declare const ALERT_SEVERITY_COLOR: Readonly<{
9
- readonly critical: 'magenta'
10
- readonly high: 'red'
11
- readonly middle: 'yellow'
12
- readonly low: 'white'
13
- }>
5
+ readonly critical: "magenta";
6
+ readonly high: "red";
7
+ readonly middle: "yellow";
8
+ readonly low: "white";
9
+ }>;
14
10
  export declare const ALERT_SEVERITY_ORDER: Readonly<{
15
- readonly critical: 0
16
- readonly high: 1
17
- readonly middle: 2
18
- readonly low: 3
19
- readonly none: 4
20
- }>
11
+ readonly critical: 0;
12
+ readonly high: 1;
13
+ readonly middle: 2;
14
+ readonly low: 3;
15
+ readonly none: 4;
16
+ }>;
21
17
  export type SocketPackageAlert = {
22
- name: string
23
- version: string
24
- key: string
25
- type: string
26
- blocked: boolean
27
- critical: boolean
28
- fixable: boolean
29
- raw: CompactSocketArtifactAlert
30
- upgradable: boolean
31
- }
32
- export type AlertsByPkgId = Map<string, SocketPackageAlert[]>
18
+ name: string;
19
+ version: string;
20
+ key: string;
21
+ type: string;
22
+ blocked: boolean;
23
+ critical: boolean;
24
+ fixable: boolean;
25
+ raw: CompactSocketArtifactAlert;
26
+ upgradable: boolean;
27
+ };
28
+ export type AlertsByPkgId = Map<string, SocketPackageAlert[]>;
33
29
  export type RiskCounts = {
34
- critical: number
35
- high: number
36
- middle: number
37
- low: number
38
- }
30
+ critical: number;
31
+ high: number;
32
+ middle: number;
33
+ low: number;
34
+ };
39
35
  export type AlertIncludeFilter = {
40
- actions?: ALERT_ACTION[] | undefined
41
- blocked?: boolean | undefined
42
- critical?: boolean | undefined
43
- cve?: boolean | undefined
44
- existing?: boolean | undefined
45
- unfixable?: boolean | undefined
46
- upgradable?: boolean | undefined
47
- }
36
+ actions?: ALERT_ACTION[] | undefined;
37
+ blocked?: boolean | undefined;
38
+ critical?: boolean | undefined;
39
+ cve?: boolean | undefined;
40
+ existing?: boolean | undefined;
41
+ unfixable?: boolean | undefined;
42
+ upgradable?: boolean | undefined;
43
+ };
48
44
  export type AddSocketArtifactAlertToAlertsMapOptions = {
49
- consolidate?: boolean | undefined
50
- include?: AlertIncludeFilter | undefined
51
- overrides?:
52
- | {
53
- [key: string]: string
54
- }
55
- | undefined
56
- spinner?: Spinner | undefined
57
- }
58
- export declare function addArtifactToAlertsMap<T extends AlertsByPkgId>(
59
- artifact: CompactSocketArtifact,
60
- alertsByPkgId: T,
61
- options?: AddSocketArtifactAlertToAlertsMapOptions | undefined
62
- ): Promise<T>
45
+ consolidate?: boolean | undefined;
46
+ include?: AlertIncludeFilter | undefined;
47
+ overrides?: {
48
+ [key: string]: string;
49
+ } | undefined;
50
+ spinner?: Spinner | undefined;
51
+ };
52
+ export declare function addArtifactToAlertsMap<T extends AlertsByPkgId>(artifact: CompactSocketArtifact, alertsByPkgId: T, options?: AddSocketArtifactAlertToAlertsMapOptions | undefined): Promise<T>;
63
53
  export type CveExcludeFilter = {
64
- upgradable?: boolean | undefined
65
- }
66
- export type CveInfoByAlertKey = Map<
67
- string,
68
- {
69
- firstPatchedVersionIdentifier: string
70
- vulnerableVersionRange: string
71
- }
72
- >
73
- export type CveInfoByPkgName = Map<string, CveInfoByAlertKey>
54
+ upgradable?: boolean | undefined;
55
+ };
56
+ export type CveInfoByAlertKey = Map<string, {
57
+ firstPatchedVersionIdentifier: string;
58
+ vulnerableVersionRange: string;
59
+ }>;
60
+ export type CveInfoByPkgName = Map<string, CveInfoByAlertKey>;
74
61
  export type GetCveInfoByPackageOptions = {
75
- exclude?: CveExcludeFilter | undefined
76
- limit?: number | undefined
77
- }
78
- export declare function getCveInfoFromAlertsMap(
79
- alertsMap: AlertsByPkgId,
80
- options?: GetCveInfoByPackageOptions | undefined
81
- ): CveInfoByPkgName | null
62
+ exclude?: CveExcludeFilter | undefined;
63
+ limit?: number | undefined;
64
+ };
65
+ export declare function getCveInfoFromAlertsMap(alertsMap: AlertsByPkgId, options?: GetCveInfoByPackageOptions | undefined): CveInfoByPkgName | null;
82
66
  export type LogAlertsMapOptions = {
83
- hideAt?: `${keyof typeof ALERT_SEVERITY}` | 'none' | undefined
84
- output?: NodeJS.WriteStream | undefined
85
- }
86
- export declare function logAlertsMap(
87
- alertsMap: AlertsByPkgId,
88
- options: LogAlertsMapOptions
89
- ): void
90
- //# sourceMappingURL=socket-package-alert.d.mts.map
67
+ hideAt?: `${keyof typeof ALERT_SEVERITY}` | 'none' | undefined;
68
+ output?: NodeJS.WriteStream | undefined;
69
+ };
70
+ export declare function logAlertsMap(alertsMap: AlertsByPkgId, options: LogAlertsMapOptions): void;
71
+ //# sourceMappingURL=socket-package-alert.d.mts.map
@@ -1,15 +1,9 @@
1
- import type { PackageURL } from '@socketregistry/packageurl-js'
2
- import type { components } from '@socketsecurity/sdk/types/api'
3
- type PurlLikeType = PackageURL | components['schemas']['SocketPURL']
4
- export declare function getPkgFullNameFromPurlObj(purlObj: PurlLikeType): string
5
- export declare function getSocketDevAlertUrl(alertType: string): string
6
- export declare function getSocketDevPackageOverviewUrlFromPurl(
7
- purlObj: PurlLikeType
8
- ): string
9
- export declare function getSocketDevPackageOverviewUrl(
10
- ecosystem: string,
11
- fullName: string,
12
- version?: string | undefined
13
- ): string
14
- export {}
15
- //# sourceMappingURL=socket-url.d.mts.map
1
+ import type { PackageURL } from '@socketregistry/packageurl-js';
2
+ import type { components } from '@socketsecurity/sdk/types/api';
3
+ type PurlLikeType = PackageURL | components['schemas']['SocketPURL'];
4
+ export declare function getPkgFullNameFromPurlObj(purlObj: PurlLikeType): string;
5
+ export declare function getSocketDevAlertUrl(alertType: string): string;
6
+ export declare function getSocketDevPackageOverviewUrlFromPurl(purlObj: PurlLikeType): string;
7
+ export declare function getSocketDevPackageOverviewUrl(ecosystem: string, fullName: string, version?: string | undefined): string;
8
+ export {};
9
+ //# sourceMappingURL=socket-url.d.mts.map
@@ -1,7 +1,4 @@
1
- import { PackageURL } from '@socketregistry/packageurl-js'
2
- export declare function idToPurl(id: string): string
3
- export declare function isDepPath(maybeDepPath: string): boolean
4
- export declare function resolvePackageVersion(purlObj: PackageURL): string
5
- export declare function stripLeadingSlash(depPath: string): string
6
- export declare function stripPeerSuffix(depPath: string): string
7
- //# sourceMappingURL=spec.d.mts.map
1
+ import { PackageURL } from '@socketregistry/packageurl-js';
2
+ export declare function idToPurl(id: string): string;
3
+ export declare function resolvePackageVersion(purlObj: PackageURL): string;
4
+ //# sourceMappingURL=spec.d.mts.map