@socketsecurity/cli-with-sentry 1.16.1 → 1.17.1

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 (316) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/LICENSE +87 -0
  3. package/README.md +13 -13
  4. package/bin/cli.js +9 -9
  5. package/dist/.config/tsconfig.dts.tsbuildinfo +1 -1
  6. package/dist/cli.js +2114 -4292
  7. package/dist/cli.js.map +1 -1
  8. package/dist/constants.js +71 -87
  9. package/dist/constants.js.map +1 -1
  10. package/dist/env-helpers.js +63 -0
  11. package/dist/env-helpers.js.map +1 -0
  12. package/dist/instrument-with-sentry.js +7 -7
  13. package/dist/instrument-with-sentry.js.map +1 -1
  14. package/dist/manifest-scripts/dotnet-tool/Microsoft.Build.Locator.dll +0 -0
  15. package/dist/manifest-scripts/dotnet-tool/socket-facts-dotnet.deps.json +2 -2
  16. package/dist/manifest-scripts/dotnet-tool/socket-facts-dotnet.dll +0 -0
  17. package/dist/manifest-scripts/maven-extension/coana-maven-extension.jar +0 -0
  18. package/dist/runtime-constants.js +345 -0
  19. package/dist/runtime-constants.js.map +1 -0
  20. package/dist/shadow-npm-bin2.js +9 -13
  21. package/dist/shadow-npm-bin2.js.map +1 -1
  22. package/dist/shadow-npm-inject.js +10 -15
  23. package/dist/shadow-npm-inject.js.map +1 -1
  24. package/dist/shadow-npx-bin.js.map +1 -1
  25. package/dist/shadow-pnpm-bin2.js +21 -25
  26. package/dist/shadow-pnpm-bin2.js.map +1 -1
  27. package/dist/shadow-yarn-bin.js +4 -6
  28. package/dist/shadow-yarn-bin.js.map +1 -1
  29. package/dist/socket-completion.bash +0 -0
  30. package/dist/spawn-sync.js +47 -0
  31. package/dist/spawn-sync.js.map +1 -0
  32. package/dist/spinner.js +182 -0
  33. package/dist/spinner.js.map +1 -0
  34. package/dist/types/commands/fix/generated-socket-facts.d.mts +5 -2
  35. package/dist/types/commands/fix/handle-fix.d.mts +1 -1
  36. package/dist/types/commands/fix/types.d.mts +1 -1
  37. package/dist/types/commands/manifest/bazel/process.d.mts +2 -2
  38. package/dist/types/commands/manifest/convert-dotnet-to-facts.d.mts +3 -6
  39. package/dist/types/commands/manifest/discover-manifest-roots.d.mts +10 -11
  40. package/dist/types/commands/manifest/generate-recursive-manifests.d.mts +16 -30
  41. package/dist/types/commands/manifest/generate_auto_manifest.d.mts +6 -11
  42. package/dist/types/commands/manifest/load-build.d.mts +3 -11
  43. package/dist/types/commands/manifest/run-manifest-facts.d.mts +88 -29
  44. package/dist/types/commands/manifest/scripts/build-tool.d.mts +2 -0
  45. package/dist/types/commands/optimize/add-overrides.d.mts +2 -2
  46. package/dist/types/commands/optimize/get-dependency-entries.d.mts +1 -1
  47. package/dist/types/commands/optimize/get-overrides-by-agent.d.mts +16 -7
  48. package/dist/types/commands/optimize/update-lockfile.d.mts +2 -2
  49. package/dist/types/commands/optimize/update-manifest-by-agent.d.mts +4 -2
  50. package/dist/types/commands/package/fetch-purls-shallow-score.d.mts +2 -2
  51. package/dist/types/commands/scan/fetch-supported-scan-file-names.d.mts +1 -1
  52. package/dist/types/commands/scan/generate-report.d.mts +1 -1
  53. package/dist/types/commands/scan/handle-create-new-scan.d.mts +5 -1
  54. package/dist/types/commands/scan/output-create-new-scan.d.mts +1 -1
  55. package/dist/types/commands/scan/output-diff-scan.d.mts +4 -2
  56. package/dist/types/commands/scan/perform-reachability-analysis.d.mts +4 -5
  57. package/dist/types/commands/scan/run-dynamic-sbom-inference.d.mts +7 -15
  58. package/dist/types/constants/runtime.d.mts +417 -0
  59. package/dist/types/constants.d.mts +9 -10
  60. package/dist/types/paths/coana.d.mts +5 -0
  61. package/dist/types/paths/uv.d.mts +2 -0
  62. package/dist/types/sea/adapters/cdxgen-worker.d.mts +1 -0
  63. package/dist/types/sea/adapters/synp-worker.d.mts +1 -0
  64. package/dist/types/sea/build/cdxgen-fixture.d.mts +4 -0
  65. package/dist/types/sea/build/smoke-test.d.mts +2 -0
  66. package/dist/types/sea/build-sea.d.mts +4 -2
  67. package/dist/types/sea/download-bytes.d.mts +0 -1
  68. package/dist/types/sea/paths/archive.d.mts +3 -0
  69. package/dist/types/sea/paths/coana-cache.d.mts +1 -0
  70. package/dist/types/sea/paths/native-tools.d.mts +13 -0
  71. package/dist/types/sea/pnpm-lock.d.mts +22 -0
  72. package/dist/types/sea/rollup-workers.d.mts +1 -0
  73. package/dist/types/sea/runtime.d.mts +4 -3
  74. package/dist/types/sea/vfs-digest.d.mts +2 -0
  75. package/dist/types/shadow/common.d.mts +1 -1
  76. package/dist/types/shadow/npm/arborist-helpers.d.mts +1 -1
  77. package/dist/types/shadow/npm/bin.d.mts +1 -1
  78. package/dist/types/shadow/npm/install.d.mts +3 -3
  79. package/dist/types/shadow/npm-base.d.mts +1 -1
  80. package/dist/types/shadow/npx/bin.d.mts +1 -1
  81. package/dist/types/shadow/pnpm/bin.d.mts +1 -1
  82. package/dist/types/shadow/yarn/bin.d.mts +1 -1
  83. package/dist/types/test/mocks/socket-auth.d.mts +40 -39
  84. package/dist/types/utils/agent.d.mts +6 -1
  85. package/dist/types/utils/alert/artifact.d.mts +1 -1
  86. package/dist/types/utils/alerts-map.d.mts +1 -1
  87. package/dist/types/utils/api.d.mts +1 -1
  88. package/dist/types/utils/arrays.d.mts +6 -0
  89. package/dist/types/utils/bin.d.mts +26 -0
  90. package/dist/types/utils/{coana-release.d.mts → coana/release.d.mts} +5 -3
  91. package/dist/types/utils/debug.d.mts +23 -49
  92. package/dist/types/utils/dlx.d.mts +1 -1
  93. package/dist/types/utils/ecosystem.d.mts +1 -9
  94. package/dist/types/utils/env.d.mts +24 -0
  95. package/dist/types/utils/errors.d.mts +2 -2
  96. package/dist/types/utils/escape-regexp.d.mts +6 -0
  97. package/dist/types/utils/fs.d.mts +33 -0
  98. package/dist/types/utils/github.d.mts +1 -1
  99. package/dist/types/utils/globs.d.mts +1 -0
  100. package/dist/types/utils/logger.d.mts +51 -0
  101. package/dist/types/utils/objects.d.mts +11 -0
  102. package/dist/types/utils/package-environment.d.mts +3 -3
  103. package/dist/types/utils/packages.d.mts +65 -0
  104. package/dist/types/utils/path.d.mts +3 -0
  105. package/dist/types/utils/promises.d.mts +23 -0
  106. package/dist/types/utils/prompts.d.mts +25 -0
  107. package/dist/types/utils/purl.d.mts +4 -1
  108. package/dist/types/utils/socket-package-alert.d.mts +1 -1
  109. package/dist/types/utils/socket-url.d.mts +1 -1
  110. package/dist/types/utils/sorts.d.mts +1 -0
  111. package/dist/types/utils/spawn-sync.d.mts +3 -0
  112. package/dist/types/utils/spawn.d.mts +67 -0
  113. package/dist/types/utils/spec.d.mts +1 -1
  114. package/dist/types/utils/spinner.d.mts +46 -0
  115. package/dist/types/utils/streams.d.mts +3 -0
  116. package/dist/types/utils/strings.d.mts +6 -0
  117. package/dist/types/utils/url.d.mts +2 -0
  118. package/dist/types/utils/words.d.mts +1 -0
  119. package/dist/utils.js +4475 -803
  120. package/dist/utils.js.map +1 -1
  121. package/dist/vendor.js +39737 -41318
  122. package/external/blessed-contrib/lib/widget/charts/line.js +172 -149
  123. package/package.json +41 -37
  124. package/shadow-bin/npm +0 -0
  125. package/shadow-bin/npx +0 -0
  126. package/shadow-bin/pnpm +0 -0
  127. package/shadow-bin/yarn +0 -0
  128. package/dist/types/commands/manifest/convert-gradle-to-facts.d.mts +0 -19
  129. package/dist/types/commands/manifest/convert-maven-to-facts.d.mts +0 -19
  130. package/dist/types/commands/manifest/convert-sbt-to-facts.d.mts +0 -22
  131. package/dist/types/commands/manifest/enumerate-workspaces.d.mts +0 -22
  132. package/dist/types/commands/manifest/expand-env-var-refs.d.mts +0 -9
  133. package/dist/types/sea/archive-paths.d.mts +0 -6
  134. package/external/@socketsecurity/registry/LICENSE +0 -21
  135. package/external/@socketsecurity/registry/README.md +0 -9
  136. package/external/@socketsecurity/registry/extensions.json +0 -28
  137. package/external/@socketsecurity/registry/external/@inquirer/confirm.js +0 -3165
  138. package/external/@socketsecurity/registry/external/@inquirer/input.js +0 -3202
  139. package/external/@socketsecurity/registry/external/@inquirer/password.js +0 -3307
  140. package/external/@socketsecurity/registry/external/@inquirer/search.js +0 -3519
  141. package/external/@socketsecurity/registry/external/@inquirer/select.js +0 -3655
  142. package/external/@socketsecurity/registry/external/@npmcli/package-json/index.js +0 -21406
  143. package/external/@socketsecurity/registry/external/@npmcli/package-json/lib/read-package.js +0 -183
  144. package/external/@socketsecurity/registry/external/@npmcli/package-json/lib/sort.js +0 -274
  145. package/external/@socketsecurity/registry/external/@npmcli/promise-spawn.js +0 -704
  146. package/external/@socketsecurity/registry/external/@socketregistry/is-unicode-supported.js +0 -54
  147. package/external/@socketsecurity/registry/external/@socketregistry/packageurl-js.js +0 -4516
  148. package/external/@socketsecurity/registry/external/@socketregistry/yocto-spinner.js +0 -453
  149. package/external/@socketsecurity/registry/external/@yarnpkg/extensions.js +0 -1406
  150. package/external/@socketsecurity/registry/external/browserslist.js +0 -20496
  151. package/external/@socketsecurity/registry/external/cacache.js +0 -16208
  152. package/external/@socketsecurity/registry/external/debug.js +0 -1163
  153. package/external/@socketsecurity/registry/external/fast-glob.js +0 -7994
  154. package/external/@socketsecurity/registry/external/fast-sort.js +0 -181
  155. package/external/@socketsecurity/registry/external/libnpmpack.js +0 -106271
  156. package/external/@socketsecurity/registry/external/make-fetch-happen.js +0 -38997
  157. package/external/@socketsecurity/registry/external/normalize-package-data.js +0 -5343
  158. package/external/@socketsecurity/registry/external/npm-package-arg.js +0 -5773
  159. package/external/@socketsecurity/registry/external/pacote.js +0 -74109
  160. package/external/@socketsecurity/registry/external/picomatch.js +0 -2307
  161. package/external/@socketsecurity/registry/external/semver.js +0 -2618
  162. package/external/@socketsecurity/registry/external/signal-exit.js +0 -336
  163. package/external/@socketsecurity/registry/external/spdx-correct.js +0 -1457
  164. package/external/@socketsecurity/registry/external/spdx-expression-parse.js +0 -1043
  165. package/external/@socketsecurity/registry/external/streaming-iterables.js +0 -326
  166. package/external/@socketsecurity/registry/external/validate-npm-package-name.js +0 -108
  167. package/external/@socketsecurity/registry/external/which.js +0 -405
  168. package/external/@socketsecurity/registry/external/yoctocolors-cjs.js +0 -101
  169. package/external/@socketsecurity/registry/index.js +0 -31
  170. package/external/@socketsecurity/registry/lib/agent.js +0 -390
  171. package/external/@socketsecurity/registry/lib/arrays.js +0 -89
  172. package/external/@socketsecurity/registry/lib/bin.js +0 -650
  173. package/external/@socketsecurity/registry/lib/constants/abort-controller.js +0 -15
  174. package/external/@socketsecurity/registry/lib/constants/abort-signal.js +0 -27
  175. package/external/@socketsecurity/registry/lib/constants/at-latest.js +0 -3
  176. package/external/@socketsecurity/registry/lib/constants/biome-json.js +0 -3
  177. package/external/@socketsecurity/registry/lib/constants/bun-lock.js +0 -3
  178. package/external/@socketsecurity/registry/lib/constants/bun-lockb.js +0 -3
  179. package/external/@socketsecurity/registry/lib/constants/bun.js +0 -3
  180. package/external/@socketsecurity/registry/lib/constants/ci.js +0 -3
  181. package/external/@socketsecurity/registry/lib/constants/column-limit.js +0 -3
  182. package/external/@socketsecurity/registry/lib/constants/copy-left-licenses.js +0 -27
  183. package/external/@socketsecurity/registry/lib/constants/darwin.js +0 -3
  184. package/external/@socketsecurity/registry/lib/constants/dot-git-dir.js +0 -3
  185. package/external/@socketsecurity/registry/lib/constants/dot-package-lock-json.js +0 -3
  186. package/external/@socketsecurity/registry/lib/constants/dot-socket-dir.js +0 -3
  187. package/external/@socketsecurity/registry/lib/constants/empty-file.js +0 -3
  188. package/external/@socketsecurity/registry/lib/constants/empty-value.js +0 -3
  189. package/external/@socketsecurity/registry/lib/constants/env.js +0 -59
  190. package/external/@socketsecurity/registry/lib/constants/eslint-config-js.js +0 -3
  191. package/external/@socketsecurity/registry/lib/constants/esnext.js +0 -3
  192. package/external/@socketsecurity/registry/lib/constants/exec-path.js +0 -3
  193. package/external/@socketsecurity/registry/lib/constants/ext-cjs.js +0 -3
  194. package/external/@socketsecurity/registry/lib/constants/ext-cmd.js +0 -3
  195. package/external/@socketsecurity/registry/lib/constants/ext-cts.js +0 -3
  196. package/external/@socketsecurity/registry/lib/constants/ext-dts.js +0 -3
  197. package/external/@socketsecurity/registry/lib/constants/ext-js.js +0 -3
  198. package/external/@socketsecurity/registry/lib/constants/ext-json.js +0 -3
  199. package/external/@socketsecurity/registry/lib/constants/ext-lock.js +0 -3
  200. package/external/@socketsecurity/registry/lib/constants/ext-lockb.js +0 -3
  201. package/external/@socketsecurity/registry/lib/constants/ext-md.js +0 -3
  202. package/external/@socketsecurity/registry/lib/constants/ext-mjs.js +0 -3
  203. package/external/@socketsecurity/registry/lib/constants/ext-mts.js +0 -3
  204. package/external/@socketsecurity/registry/lib/constants/ext-ps1.js +0 -3
  205. package/external/@socketsecurity/registry/lib/constants/ext-yaml.js +0 -3
  206. package/external/@socketsecurity/registry/lib/constants/ext-yml.js +0 -3
  207. package/external/@socketsecurity/registry/lib/constants/extensions-json.js +0 -3
  208. package/external/@socketsecurity/registry/lib/constants/extensions.js +0 -3
  209. package/external/@socketsecurity/registry/lib/constants/get-ipc.js +0 -10
  210. package/external/@socketsecurity/registry/lib/constants/gitignore.js +0 -3
  211. package/external/@socketsecurity/registry/lib/constants/index.js +0 -139
  212. package/external/@socketsecurity/registry/lib/constants/ipc-handler.js +0 -19
  213. package/external/@socketsecurity/registry/lib/constants/ipc-object.js +0 -6
  214. package/external/@socketsecurity/registry/lib/constants/ipc-promise.js +0 -47
  215. package/external/@socketsecurity/registry/lib/constants/ipc-target.js +0 -3
  216. package/external/@socketsecurity/registry/lib/constants/k-internals-symbol.js +0 -3
  217. package/external/@socketsecurity/registry/lib/constants/latest.js +0 -3
  218. package/external/@socketsecurity/registry/lib/constants/license-glob-recursive.js +0 -3
  219. package/external/@socketsecurity/registry/lib/constants/license-glob.js +0 -3
  220. package/external/@socketsecurity/registry/lib/constants/license-original-glob-recursive.js +0 -3
  221. package/external/@socketsecurity/registry/lib/constants/license-original-glob.js +0 -3
  222. package/external/@socketsecurity/registry/lib/constants/license-original.js +0 -3
  223. package/external/@socketsecurity/registry/lib/constants/license.js +0 -3
  224. package/external/@socketsecurity/registry/lib/constants/lifecycle-script-names.js +0 -18
  225. package/external/@socketsecurity/registry/lib/constants/loop-sentinel.js +0 -3
  226. package/external/@socketsecurity/registry/lib/constants/maintained-node-versions.js +0 -47
  227. package/external/@socketsecurity/registry/lib/constants/manifest-json.js +0 -3
  228. package/external/@socketsecurity/registry/lib/constants/mit.js +0 -3
  229. package/external/@socketsecurity/registry/lib/constants/node-auth-token.js +0 -3
  230. package/external/@socketsecurity/registry/lib/constants/node-debug-flags.js +0 -9
  231. package/external/@socketsecurity/registry/lib/constants/node-env.js +0 -3
  232. package/external/@socketsecurity/registry/lib/constants/node-harden-flags.js +0 -29
  233. package/external/@socketsecurity/registry/lib/constants/node-modules-glob-recursive.js +0 -3
  234. package/external/@socketsecurity/registry/lib/constants/node-modules.js +0 -3
  235. package/external/@socketsecurity/registry/lib/constants/node-no-warnings-flags.js +0 -16
  236. package/external/@socketsecurity/registry/lib/constants/node-version.js +0 -3
  237. package/external/@socketsecurity/registry/lib/constants/npm-exec-path.js +0 -5
  238. package/external/@socketsecurity/registry/lib/constants/npm-real-exec-path.js +0 -6
  239. package/external/@socketsecurity/registry/lib/constants/npm-shrinkwrap-json.js +0 -3
  240. package/external/@socketsecurity/registry/lib/constants/npm.js +0 -3
  241. package/external/@socketsecurity/registry/lib/constants/npx.js +0 -3
  242. package/external/@socketsecurity/registry/lib/constants/overrides.js +0 -3
  243. package/external/@socketsecurity/registry/lib/constants/package-default-node-range.js +0 -6
  244. package/external/@socketsecurity/registry/lib/constants/package-default-socket-categories.js +0 -3
  245. package/external/@socketsecurity/registry/lib/constants/package-default-version.js +0 -3
  246. package/external/@socketsecurity/registry/lib/constants/package-extensions.js +0 -47
  247. package/external/@socketsecurity/registry/lib/constants/package-json.js +0 -3
  248. package/external/@socketsecurity/registry/lib/constants/package-lock-json.js +0 -3
  249. package/external/@socketsecurity/registry/lib/constants/packument-cache.js +0 -3
  250. package/external/@socketsecurity/registry/lib/constants/pacote-cache-path.js +0 -9
  251. package/external/@socketsecurity/registry/lib/constants/pnpm-exec-path.js +0 -5
  252. package/external/@socketsecurity/registry/lib/constants/pnpm-lock-yaml.js +0 -3
  253. package/external/@socketsecurity/registry/lib/constants/pnpm.js +0 -3
  254. package/external/@socketsecurity/registry/lib/constants/pre-commit.js +0 -3
  255. package/external/@socketsecurity/registry/lib/constants/readme-glob-recursive.js +0 -3
  256. package/external/@socketsecurity/registry/lib/constants/readme-glob.js +0 -3
  257. package/external/@socketsecurity/registry/lib/constants/readme-md.js +0 -3
  258. package/external/@socketsecurity/registry/lib/constants/registry-scope-delimiter.js +0 -3
  259. package/external/@socketsecurity/registry/lib/constants/registry.js +0 -3
  260. package/external/@socketsecurity/registry/lib/constants/resolutions.js +0 -3
  261. package/external/@socketsecurity/registry/lib/constants/socket-github-org.js +0 -3
  262. package/external/@socketsecurity/registry/lib/constants/socket-ipc-handshake.js +0 -3
  263. package/external/@socketsecurity/registry/lib/constants/socket-override-scope.js +0 -3
  264. package/external/@socketsecurity/registry/lib/constants/socket-public-api-token.js +0 -3
  265. package/external/@socketsecurity/registry/lib/constants/socket-registry-npm-org.js +0 -3
  266. package/external/@socketsecurity/registry/lib/constants/socket-registry-package-name.js +0 -3
  267. package/external/@socketsecurity/registry/lib/constants/socket-registry-repo-name.js +0 -3
  268. package/external/@socketsecurity/registry/lib/constants/socket-registry-scope.js +0 -3
  269. package/external/@socketsecurity/registry/lib/constants/socket-security-scope.js +0 -3
  270. package/external/@socketsecurity/registry/lib/constants/spinner.js +0 -4
  271. package/external/@socketsecurity/registry/lib/constants/supports-node-compile-cache-api.js +0 -8
  272. package/external/@socketsecurity/registry/lib/constants/supports-node-compile-cache-env-var.js +0 -8
  273. package/external/@socketsecurity/registry/lib/constants/supports-node-disable-warning-flag.js +0 -8
  274. package/external/@socketsecurity/registry/lib/constants/supports-node-permission-flag.js +0 -8
  275. package/external/@socketsecurity/registry/lib/constants/supports-node-require-module.js +0 -3
  276. package/external/@socketsecurity/registry/lib/constants/supports-node-run.js +0 -8
  277. package/external/@socketsecurity/registry/lib/constants/supports-process-send.js +0 -5
  278. package/external/@socketsecurity/registry/lib/constants/ts-libs-available.js +0 -22
  279. package/external/@socketsecurity/registry/lib/constants/ts-types-available.js +0 -3
  280. package/external/@socketsecurity/registry/lib/constants/tsconfig-json.js +0 -3
  281. package/external/@socketsecurity/registry/lib/constants/undefined-token.js +0 -3
  282. package/external/@socketsecurity/registry/lib/constants/unknown-error.js +0 -3
  283. package/external/@socketsecurity/registry/lib/constants/unknown-value.js +0 -3
  284. package/external/@socketsecurity/registry/lib/constants/unlicenced.js +0 -3
  285. package/external/@socketsecurity/registry/lib/constants/unlicensed.js +0 -3
  286. package/external/@socketsecurity/registry/lib/constants/utf8.js +0 -3
  287. package/external/@socketsecurity/registry/lib/constants/vitest.js +0 -3
  288. package/external/@socketsecurity/registry/lib/constants/vlt-lock-json.js +0 -3
  289. package/external/@socketsecurity/registry/lib/constants/vlt.js +0 -3
  290. package/external/@socketsecurity/registry/lib/constants/win32.js +0 -3
  291. package/external/@socketsecurity/registry/lib/constants/yarn-berry.js +0 -3
  292. package/external/@socketsecurity/registry/lib/constants/yarn-classic.js +0 -3
  293. package/external/@socketsecurity/registry/lib/constants/yarn-exec-path.js +0 -5
  294. package/external/@socketsecurity/registry/lib/constants/yarn-lock.js +0 -3
  295. package/external/@socketsecurity/registry/lib/constants/yarn.js +0 -3
  296. package/external/@socketsecurity/registry/lib/debug.js +0 -264
  297. package/external/@socketsecurity/registry/lib/env.js +0 -62
  298. package/external/@socketsecurity/registry/lib/fs.js +0 -556
  299. package/external/@socketsecurity/registry/lib/functions.js +0 -20
  300. package/external/@socketsecurity/registry/lib/globs.js +0 -145
  301. package/external/@socketsecurity/registry/lib/json.js +0 -69
  302. package/external/@socketsecurity/registry/lib/logger.js +0 -534
  303. package/external/@socketsecurity/registry/lib/objects.js +0 -422
  304. package/external/@socketsecurity/registry/lib/packages.js +0 -1379
  305. package/external/@socketsecurity/registry/lib/path.js +0 -231
  306. package/external/@socketsecurity/registry/lib/promises.js +0 -286
  307. package/external/@socketsecurity/registry/lib/prompts.js +0 -63
  308. package/external/@socketsecurity/registry/lib/regexps.js +0 -23
  309. package/external/@socketsecurity/registry/lib/sorts.js +0 -70
  310. package/external/@socketsecurity/registry/lib/spawn.js +0 -252
  311. package/external/@socketsecurity/registry/lib/spinner.js +0 -205
  312. package/external/@socketsecurity/registry/lib/streams.js +0 -84
  313. package/external/@socketsecurity/registry/lib/strings.js +0 -235
  314. package/external/@socketsecurity/registry/lib/url.js +0 -68
  315. package/external/@socketsecurity/registry/lib/words.js +0 -45
  316. package/external/@socketsecurity/registry/manifest.json +0 -1875
@@ -1,405 +0,0 @@
1
- 'use strict'
2
-
3
- const require$$0 = require('fs')
4
- const require$$1 = require('fs/promises')
5
- const require$$1$1 = require('path')
6
-
7
- const cjs = {}
8
-
9
- const posix = {}
10
-
11
- let hasRequiredPosix
12
- function requirePosix() {
13
- if (hasRequiredPosix) {
14
- return posix
15
- }
16
- hasRequiredPosix = 1
17
- /**
18
- * This is the Posix implementation of isexe, which uses the file
19
- * mode and uid/gid values.
20
- *
21
- * @module
22
- */
23
- Object.defineProperty(posix, '__esModule', {
24
- value: true
25
- })
26
- posix.sync = posix.isexe = void 0
27
- const fs_1 = require$$0
28
- const promises_1 = require$$1
29
- /**
30
- * Determine whether a path is executable according to the mode and
31
- * current (or specified) user and group IDs.
32
- */
33
- const isexe = async (path, options = {}) => {
34
- const { ignoreErrors = false } = options
35
- try {
36
- return checkStat(await (0, promises_1.stat)(path), options)
37
- } catch (e) {
38
- const er = e
39
- if (ignoreErrors || er.code === 'EACCES') {
40
- return false
41
- }
42
- throw er
43
- }
44
- }
45
- posix.isexe = isexe
46
- /**
47
- * Synchronously determine whether a path is executable according to
48
- * the mode and current (or specified) user and group IDs.
49
- */
50
- const sync = (path, options = {}) => {
51
- const { ignoreErrors = false } = options
52
- try {
53
- return checkStat((0, fs_1.statSync)(path), options)
54
- } catch (e) {
55
- const er = e
56
- if (ignoreErrors || er.code === 'EACCES') {
57
- return false
58
- }
59
- throw er
60
- }
61
- }
62
- posix.sync = sync
63
- const checkStat = (stat, options) => stat.isFile() && checkMode(stat, options)
64
- const checkMode = (stat, options) => {
65
- const myUid = options.uid ?? process.getuid?.()
66
- const myGroups = options.groups ?? process.getgroups?.() ?? []
67
- const myGid = options.gid ?? process.getgid?.() ?? myGroups[0]
68
- if (myUid === undefined || myGid === undefined) {
69
- throw new Error('cannot get uid or gid')
70
- }
71
- const groups = new Set([myGid, ...myGroups])
72
- const mod = stat.mode
73
- const uid = stat.uid
74
- const gid = stat.gid
75
- const u = parseInt('100', 8)
76
- const g = parseInt('010', 8)
77
- const o = parseInt('001', 8)
78
- const ug = u | g
79
- return !!(
80
- mod & o ||
81
- (mod & g && groups.has(gid)) ||
82
- (mod & u && uid === myUid) ||
83
- (mod & ug && myUid === 0)
84
- )
85
- }
86
- return posix
87
- }
88
-
89
- const win32 = {}
90
-
91
- let hasRequiredWin32
92
- function requireWin32() {
93
- if (hasRequiredWin32) {
94
- return win32
95
- }
96
- hasRequiredWin32 = 1
97
- /**
98
- * This is the Windows implementation of isexe, which uses the file
99
- * extension and PATHEXT setting.
100
- *
101
- * @module
102
- */
103
- Object.defineProperty(win32, '__esModule', {
104
- value: true
105
- })
106
- win32.sync = win32.isexe = void 0
107
- const fs_1 = require$$0
108
- const promises_1 = require$$1
109
- /**
110
- * Determine whether a path is executable based on the file extension
111
- * and PATHEXT environment variable (or specified pathExt option)
112
- */
113
- const isexe = async (path, options = {}) => {
114
- const { ignoreErrors = false } = options
115
- try {
116
- return checkStat(await (0, promises_1.stat)(path), path, options)
117
- } catch (e) {
118
- const er = e
119
- if (ignoreErrors || er.code === 'EACCES') {
120
- return false
121
- }
122
- throw er
123
- }
124
- }
125
- win32.isexe = isexe
126
- /**
127
- * Synchronously determine whether a path is executable based on the file
128
- * extension and PATHEXT environment variable (or specified pathExt option)
129
- */
130
- const sync = (path, options = {}) => {
131
- const { ignoreErrors = false } = options
132
- try {
133
- return checkStat((0, fs_1.statSync)(path), path, options)
134
- } catch (e) {
135
- const er = e
136
- if (ignoreErrors || er.code === 'EACCES') {
137
- return false
138
- }
139
- throw er
140
- }
141
- }
142
- win32.sync = sync
143
- const checkPathExt = (path, options) => {
144
- const { pathExt = process.env.PATHEXT || '' } = options
145
- const peSplit = pathExt.split(';')
146
- if (peSplit.indexOf('') !== -1) {
147
- return true
148
- }
149
- for (let i = 0; i < peSplit.length; i++) {
150
- const p = peSplit[i].toLowerCase()
151
- const ext = path.substring(path.length - p.length).toLowerCase()
152
- if (p && ext === p) {
153
- return true
154
- }
155
- }
156
- return false
157
- }
158
- const checkStat = (stat, path, options) =>
159
- stat.isFile() && checkPathExt(path, options)
160
- return win32
161
- }
162
-
163
- const options = {}
164
-
165
- let hasRequiredOptions
166
- function requireOptions() {
167
- if (hasRequiredOptions) {
168
- return options
169
- }
170
- hasRequiredOptions = 1
171
- Object.defineProperty(options, '__esModule', {
172
- value: true
173
- })
174
- return options
175
- }
176
-
177
- let hasRequiredCjs
178
- function requireCjs() {
179
- if (hasRequiredCjs) {
180
- return cjs
181
- }
182
- hasRequiredCjs = 1
183
- ;(function (exports) {
184
- const __createBinding =
185
- (this && this.__createBinding) ||
186
- (Object.create
187
- ? function (o, m, k, k2) {
188
- if (k2 === undefined) {
189
- k2 = k
190
- }
191
- let desc = Object.getOwnPropertyDescriptor(m, k)
192
- if (
193
- !desc ||
194
- ('get' in desc
195
- ? !m.__esModule
196
- : desc.writable || desc.configurable)
197
- ) {
198
- desc = {
199
- enumerable: true,
200
- get: function () {
201
- return m[k]
202
- }
203
- }
204
- }
205
- Object.defineProperty(o, k2, desc)
206
- }
207
- : function (o, m, k, k2) {
208
- if (k2 === undefined) {
209
- k2 = k
210
- }
211
- o[k2] = m[k]
212
- })
213
- const __setModuleDefault =
214
- (this && this.__setModuleDefault) ||
215
- (Object.create
216
- ? function (o, v) {
217
- Object.defineProperty(o, 'default', {
218
- enumerable: true,
219
- value: v
220
- })
221
- }
222
- : function (o, v) {
223
- o['default'] = v
224
- })
225
- const __importStar =
226
- (this && this.__importStar) ||
227
- function (mod) {
228
- if (mod && mod.__esModule) {
229
- return mod
230
- }
231
- const result = {}
232
- if (mod != null) {
233
- for (var k in mod)
234
- if (k !== 'default' && Object.prototype.hasOwnProperty.call(mod, k))
235
- __createBinding(result, mod, k)
236
- }
237
- __setModuleDefault(result, mod)
238
- return result
239
- }
240
- const __exportStar =
241
- (this && this.__exportStar) ||
242
- function (m, exports) {
243
- for (const p in m) {
244
- if (
245
- p !== 'default' &&
246
- !Object.prototype.hasOwnProperty.call(exports, p)
247
- )
248
- __createBinding(exports, m, p)
249
- }
250
- }
251
- Object.defineProperty(exports, '__esModule', {
252
- value: true
253
- })
254
- exports.sync = exports.isexe = exports.posix = exports.win32 = void 0
255
- const posix = __importStar(requirePosix())
256
- exports.posix = posix
257
- const win32 = __importStar(requireWin32())
258
- exports.win32 = win32
259
- __exportStar(requireOptions(), exports)
260
- const platform = process.env._ISEXE_TEST_PLATFORM_ || process.platform
261
- const impl = platform === 'win32' ? win32 : posix
262
- /**
263
- * Determine whether a path is executable on the current platform.
264
- */
265
- exports.isexe = impl.isexe
266
- /**
267
- * Synchronously determine whether a path is executable on the
268
- * current platform.
269
- */
270
- exports.sync = impl.sync
271
- })(cjs)
272
- return cjs
273
- }
274
-
275
- let lib
276
- let hasRequiredLib
277
- function requireLib() {
278
- if (hasRequiredLib) {
279
- return lib
280
- }
281
- hasRequiredLib = 1
282
- const { isexe, sync: isexeSync } = requireCjs()
283
- const { join, delimiter, sep, posix } = require$$1$1
284
- const isWindows = process.platform === 'win32'
285
-
286
- // used to check for slashed in commands passed in. always checks for the posix
287
- // seperator on all platforms, and checks for the current separator when not on
288
- // a posix platform. don't use the isWindows check for this since that is mocked
289
- // in tests but we still need the code to actually work when called. that is also
290
- // why it is ignored from coverage.
291
- /* istanbul ignore next */
292
- const rSlash = new RegExp(
293
- `[${posix.sep}${sep === posix.sep ? '' : sep}]`.replace(/(\\)/g, '\\$1')
294
- )
295
- const rRel = new RegExp(`^\\.${rSlash.source}`)
296
- const getNotFoundError = cmd =>
297
- Object.assign(new Error(`not found: ${cmd}`), {
298
- code: 'ENOENT'
299
- })
300
- const getPathInfo = (
301
- cmd,
302
- {
303
- path: optPath = process.env.PATH,
304
- pathExt: optPathExt = process.env.PATHEXT,
305
- delimiter: optDelimiter = delimiter
306
- }
307
- ) => {
308
- // If it has a slash, then we don't bother searching the pathenv.
309
- // just check the file itself, and that's it.
310
- const pathEnv = cmd.match(rSlash)
311
- ? ['']
312
- : [
313
- // windows always checks the cwd first
314
- ...(isWindows ? [process.cwd()] : []),
315
- ...(optPath || /* istanbul ignore next: very unusual */ '').split(
316
- optDelimiter
317
- )
318
- ]
319
- if (isWindows) {
320
- const pathExtExe =
321
- optPathExt || ['.EXE', '.CMD', '.BAT', '.COM'].join(optDelimiter)
322
- const pathExt = pathExtExe
323
- .split(optDelimiter)
324
- .flatMap(item => [item, item.toLowerCase()])
325
- if (cmd.includes('.') && pathExt[0] !== '') {
326
- pathExt.unshift('')
327
- }
328
- return {
329
- pathEnv,
330
- pathExt,
331
- pathExtExe
332
- }
333
- }
334
- return {
335
- pathEnv,
336
- pathExt: ['']
337
- }
338
- }
339
- const getPathPart = (raw, cmd) => {
340
- const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw
341
- const prefix = !pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : ''
342
- return prefix + join(pathPart, cmd)
343
- }
344
- const which = async (cmd, opt = {}) => {
345
- const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)
346
- const found = []
347
- for (const envPart of pathEnv) {
348
- const p = getPathPart(envPart, cmd)
349
- for (const ext of pathExt) {
350
- const withExt = p + ext
351
- const is = await isexe(withExt, {
352
- pathExt: pathExtExe,
353
- ignoreErrors: true
354
- })
355
- if (is) {
356
- if (!opt.all) {
357
- return withExt
358
- }
359
- found.push(withExt)
360
- }
361
- }
362
- }
363
- if (opt.all && found.length) {
364
- return found
365
- }
366
- if (opt.nothrow) {
367
- return null
368
- }
369
- throw getNotFoundError(cmd)
370
- }
371
- const whichSync = (cmd, opt = {}) => {
372
- const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)
373
- const found = []
374
- for (const pathEnvPart of pathEnv) {
375
- const p = getPathPart(pathEnvPart, cmd)
376
- for (const ext of pathExt) {
377
- const withExt = p + ext
378
- const is = isexeSync(withExt, {
379
- pathExt: pathExtExe,
380
- ignoreErrors: true
381
- })
382
- if (is) {
383
- if (!opt.all) {
384
- return withExt
385
- }
386
- found.push(withExt)
387
- }
388
- }
389
- }
390
- if (opt.all && found.length) {
391
- return found
392
- }
393
- if (opt.nothrow) {
394
- return null
395
- }
396
- throw getNotFoundError(cmd)
397
- }
398
- lib = which
399
- which.sync = whichSync
400
- return lib
401
- }
402
-
403
- const libExports = requireLib()
404
-
405
- module.exports = libExports
@@ -1,101 +0,0 @@
1
- 'use strict'
2
-
3
- const require$$0 = require('tty')
4
-
5
- let yoctocolorsCjs
6
- let hasRequiredYoctocolorsCjs
7
- function requireYoctocolorsCjs() {
8
- if (hasRequiredYoctocolorsCjs) {
9
- return yoctocolorsCjs
10
- }
11
- hasRequiredYoctocolorsCjs = 1
12
- const tty = require$$0 // eslint-disable-line unicorn/prefer-module
13
-
14
- // eslint-disable-next-line no-warning-comments
15
- // TODO: Use a better method when it's added to Node.js (https://github.com/nodejs/node/pull/40240)
16
- // Lots of optionals here to support Deno.
17
- const hasColors = tty?.WriteStream?.prototype?.hasColors?.() ?? false
18
- const format = (open, close) => {
19
- if (!hasColors) {
20
- return input => input
21
- }
22
- const openCode = `\u001B[${open}m`
23
- const closeCode = `\u001B[${close}m`
24
- return input => {
25
- const string = input + '' // eslint-disable-line no-implicit-coercion -- This is faster.
26
- let index = string.indexOf(closeCode)
27
- if (index === -1) {
28
- // Note: Intentionally not using string interpolation for performance reasons.
29
- return openCode + string + closeCode
30
- }
31
-
32
- // Handle nested colors.
33
-
34
- // We could have done this, but it's too slow (as of Node.js 22).
35
- // return openCode + string.replaceAll(closeCode, openCode) + closeCode;
36
-
37
- let result = openCode
38
- let lastIndex = 0
39
-
40
- // SGR 22 resets both bold (1) and dim (2). When we encounter a nested
41
- // close for styles that use 22, we need to re-open the outer style.
42
- const reopenOnNestedClose = close === 22
43
- const replaceCode = (reopenOnNestedClose ? closeCode : '') + openCode
44
- while (index !== -1) {
45
- result += string.slice(lastIndex, index) + replaceCode
46
- lastIndex = index + closeCode.length
47
- index = string.indexOf(closeCode, lastIndex)
48
- }
49
- result += string.slice(lastIndex) + closeCode
50
- return result
51
- }
52
- }
53
- const colors = {}
54
- colors.reset = format(0, 0)
55
- colors.bold = format(1, 22)
56
- colors.dim = format(2, 22)
57
- colors.italic = format(3, 23)
58
- colors.underline = format(4, 24)
59
- colors.overline = format(53, 55)
60
- colors.inverse = format(7, 27)
61
- colors.hidden = format(8, 28)
62
- colors.strikethrough = format(9, 29)
63
- colors.black = format(30, 39)
64
- colors.red = format(31, 39)
65
- colors.green = format(32, 39)
66
- colors.yellow = format(33, 39)
67
- colors.blue = format(34, 39)
68
- colors.magenta = format(35, 39)
69
- colors.cyan = format(36, 39)
70
- colors.white = format(37, 39)
71
- colors.gray = format(90, 39)
72
- colors.bgBlack = format(40, 49)
73
- colors.bgRed = format(41, 49)
74
- colors.bgGreen = format(42, 49)
75
- colors.bgYellow = format(43, 49)
76
- colors.bgBlue = format(44, 49)
77
- colors.bgMagenta = format(45, 49)
78
- colors.bgCyan = format(46, 49)
79
- colors.bgWhite = format(47, 49)
80
- colors.bgGray = format(100, 49)
81
- colors.redBright = format(91, 39)
82
- colors.greenBright = format(92, 39)
83
- colors.yellowBright = format(93, 39)
84
- colors.blueBright = format(94, 39)
85
- colors.magentaBright = format(95, 39)
86
- colors.cyanBright = format(96, 39)
87
- colors.whiteBright = format(97, 39)
88
- colors.bgRedBright = format(101, 49)
89
- colors.bgGreenBright = format(102, 49)
90
- colors.bgYellowBright = format(103, 49)
91
- colors.bgBlueBright = format(104, 49)
92
- colors.bgMagentaBright = format(105, 49)
93
- colors.bgCyanBright = format(106, 49)
94
- colors.bgWhiteBright = format(107, 49)
95
- yoctocolorsCjs = colors // eslint-disable-line unicorn/prefer-module
96
- return yoctocolorsCjs
97
- }
98
-
99
- const yoctocolorsCjsExports = /*@__PURE__*/ requireYoctocolorsCjs()
100
-
101
- module.exports = yoctocolorsCjsExports
@@ -1,31 +0,0 @@
1
- 'use strict'
2
-
3
- let _PackageURL
4
- /*@__NO_SIDE_EFFECTS__*/
5
- function getPackageURL() {
6
- if (_PackageURL === undefined) {
7
- // The 'packageurl-js' package is browser safe.
8
- const packageUrlJs = /*@__PURE__*/ require('./external/@socketregistry/packageurl-js')
9
- _PackageURL = packageUrlJs.PackageURL
10
- }
11
- return _PackageURL
12
- }
13
-
14
- /*@__NO_SIDE_EFFECTS__*/
15
- function getManifestData(eco, sockRegPkgName) {
16
- const registryManifest = /*@__PURE__*/ require('./manifest.json')
17
- if (eco) {
18
- const entries = registryManifest[eco]
19
- return sockRegPkgName
20
- ? entries?.find(
21
- ({ 0: purlStr }) =>
22
- getPackageURL().fromString(purlStr).name === sockRegPkgName
23
- )?.[1]
24
- : entries
25
- }
26
- return registryManifest
27
- }
28
-
29
- module.exports = {
30
- getManifestData
31
- }