@socketsecurity/cli-with-sentry 1.16.0 → 1.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (316) hide show
  1. package/CHANGELOG.md +19 -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 +2120 -4305
  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 -6
  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 +4481 -806
  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 +43 -36
  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
package/dist/constants.js CHANGED
@@ -3,14 +3,16 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var u = require('node:fs');
6
- var require$$1 = require('node:module');
6
+ var require$$6 = require('node:module');
7
7
  var os = require('node:os');
8
8
  var path = require('node:path');
9
9
  var require$$0 = require('node:url');
10
- var registryConstants = require('../external/@socketsecurity/registry/lib/constants');
10
+ var runtimeConstants = require('./runtime-constants.js');
11
+ var envHelpers = require('./env-helpers.js');
12
+ var spawnSync = require('./spawn-sync.js');
11
13
 
12
14
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
13
- const require$1 = require$$1.createRequire((typeof document === 'undefined' ? require$$0.pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('constants.js', document.baseURI).href)));
15
+ const require$1 = require$$6.createRequire((typeof document === 'undefined' ? require$$0.pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('constants.js', document.baseURI).href)));
14
16
  const __filename$1 = require$$0.fileURLToPath((typeof document === 'undefined' ? require$$0.pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('constants.js', document.baseURI).href)));
15
17
  // Using `path.dirname(__filename)` to resolve `__dirname` works for both 'dist'
16
18
  // AND 'src' directories because constants.js and constants.mts respectively are
@@ -95,14 +97,8 @@ const {
95
97
  YARN,
96
98
  YARN_BERRY,
97
99
  YARN_CLASSIC,
98
- YARN_LOCK,
99
- kInternalsSymbol,
100
- [kInternalsSymbol]: {
101
- attributes: registryConstantsAttribs,
102
- createConstantsObject,
103
- getIpc
104
- }
105
- } = registryConstants;
100
+ YARN_LOCK
101
+ } = runtimeConstants.runtimeConstants;
106
102
  // Socket CLI specific constants that are not in socket-registry.
107
103
  const ALERT_TYPE_CRITICAL_CVE = 'criticalCVE';
108
104
  const ALERT_TYPE_CVE = 'cve';
@@ -111,7 +107,7 @@ const ALERT_TYPE_MILD_CVE = 'mildCVE';
111
107
  const API_V0_URL = 'https://api.socket.dev/v0/';
112
108
  // The Coana CLI version Socket CLI runs by default. Coana's release workflow
113
109
  // rewrites this line in its bump PRs.
114
- const COANA_CLI_VERSION = '15.15.2';
110
+ const COANA_CLI_VERSION = '15.15.5';
115
111
  const CONFIG_KEY_API_BASE_URL = 'apiBaseUrl';
116
112
  const CONFIG_KEY_API_PROXY = 'apiProxy';
117
113
  const CONFIG_KEY_API_TOKEN = 'apiToken';
@@ -203,8 +199,7 @@ function getNpmStdioPipeOptions() {
203
199
  _npmStdioPipeOptions = {
204
200
  cwd: process.cwd(),
205
201
  // On Windows, npm is often a .cmd file that requires shell execution.
206
- // The spawn function from @socketsecurity/registry will handle this properly
207
- // when shell is true.
202
+ // The local spawn helper handles .cmd files when shell is true.
208
203
  shell: constants.WIN32
209
204
  };
210
205
  }
@@ -214,10 +209,6 @@ const LAZY_ENV = () => {
214
209
  const {
215
210
  env
216
211
  } = process;
217
- const envHelpers = /*@__PURE__*/require$1('../external/@socketsecurity/registry/lib/env');
218
- const envAsBoolean = envHelpers.envAsBoolean;
219
- const envAsNumber = envHelpers.envAsNumber;
220
- const envAsString = envHelpers.envAsString;
221
212
  // Keep this leaf independent from dist/utils.js. That chunk imports
222
213
  // constants.js, so requiring it here forms a runtime cycle that Node SEA's
223
214
  // VFS loader cannot safely resolve.
@@ -238,39 +229,39 @@ const LAZY_ENV = () => {
238
229
  return undefined;
239
230
  }
240
231
  })();
241
- const GITHUB_TOKEN = envAsString(env['GITHUB_TOKEN']);
242
- const INLINED_SOCKET_CLI_PUBLISHED_BUILD = envAsBoolean(true);
232
+ const GITHUB_TOKEN = envHelpers.envAsString(env['GITHUB_TOKEN']);
233
+ const INLINED_SOCKET_CLI_PUBLISHED_BUILD = envHelpers.envAsBoolean(true);
243
234
  // We inline some environment values so that they CANNOT be influenced by user
244
235
  // provided environment variables.
245
236
  return Object.freeze({
246
237
  __proto__: null,
247
- // Lazily access registryConstants.ENV.
248
- ...registryConstants.ENV,
238
+ // Start with the environment values captured by the inline constants module.
239
+ ...runtimeConstants.runtimeConstants.ENV,
249
240
  // Disable using GitHub's workflow actions/cache.
250
241
  // https://github.com/actions/cache
251
- DISABLE_GITHUB_CACHE: envAsBoolean(env['DISABLE_GITHUB_CACHE']),
242
+ DISABLE_GITHUB_CACHE: envHelpers.envAsBoolean(env['DISABLE_GITHUB_CACHE']),
252
243
  // The API URL. For example, https://api.github.com.
253
244
  // https://docs.github.com/en/codespaces/developing-in-a-codespace/default-environment-variables-for-your-codespace#list-of-default-environment-variables
254
- GITHUB_API_URL: envAsString(env['GITHUB_API_URL']) || 'https://api.github.com',
245
+ GITHUB_API_URL: envHelpers.envAsString(env['GITHUB_API_URL']) || 'https://api.github.com',
255
246
  // The name of the base ref or target branch of the pull request in a workflow
256
247
  // run. This is only set when the event that triggers a workflow run is either
257
248
  // pull_request or pull_request_target. For example, main.
258
249
  // https://docs.github.com/en/codespaces/developing-in-a-codespace/default-environment-variables-for-your-codespace#list-of-default-environment-variables
259
- GITHUB_BASE_REF: envAsString(env['GITHUB_BASE_REF']),
250
+ GITHUB_BASE_REF: envHelpers.envAsString(env['GITHUB_BASE_REF']),
260
251
  // The short ref name of the branch or tag that triggered the GitHub workflow
261
252
  // run. This value matches the branch or tag name shown on GitHub. For example,
262
253
  // feature-branch-1. For pull requests, the format is <pr_number>/merge.
263
254
  // https://docs.github.com/en/codespaces/developing-in-a-codespace/default-environment-variables-for-your-codespace#list-of-default-environment-variables
264
- GITHUB_REF_NAME: envAsString(env['GITHUB_REF_NAME']),
255
+ GITHUB_REF_NAME: envHelpers.envAsString(env['GITHUB_REF_NAME']),
265
256
  // The type of ref that triggered the workflow run. Valid values are branch or tag.
266
257
  // https://docs.github.com/en/codespaces/developing-in-a-codespace/default-environment-variables-for-your-codespace#list-of-default-environment-variables
267
- GITHUB_REF_TYPE: envAsString(env['GITHUB_REF_TYPE']),
258
+ GITHUB_REF_TYPE: envHelpers.envAsString(env['GITHUB_REF_TYPE']),
268
259
  // The owner and repository name. For example, octocat/Hello-World.
269
260
  // https://docs.github.com/en/codespaces/developing-in-a-codespace/default-environment-variables-for-your-codespace#list-of-default-environment-variables
270
- GITHUB_REPOSITORY: envAsString(env['GITHUB_REPOSITORY']),
261
+ GITHUB_REPOSITORY: envHelpers.envAsString(env['GITHUB_REPOSITORY']),
271
262
  // The URL of the GitHub server. For example, https://github.com.
272
263
  // https://docs.github.com/en/codespaces/developing-in-a-codespace/default-environment-variables-for-your-codespace#list-of-default-environment-variables
273
- GITHUB_SERVER_URL: envAsString(env['GITHUB_SERVER_URL']) || 'https://github.com',
264
+ GITHUB_SERVER_URL: envHelpers.envAsString(env['GITHUB_SERVER_URL']) || 'https://github.com',
274
265
  // The GITHUB_TOKEN secret is a GitHub App installation access token.
275
266
  // The token's permissions are limited to the repository that contains the
276
267
  // workflow.
@@ -278,48 +269,48 @@ const LAZY_ENV = () => {
278
269
  GITHUB_TOKEN,
279
270
  // Comp-time inlined @cyclonedx/cdxgen package version.
280
271
  // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_CYCLONEDX_CDXGEN_VERSION']".
281
- INLINED_SOCKET_CLI_CYCLONEDX_CDXGEN_VERSION: envAsString("12.1.2"),
272
+ INLINED_SOCKET_CLI_CYCLONEDX_CDXGEN_VERSION: envHelpers.envAsString("12.9.2"),
282
273
  // Comp-time inlined Socket package homepage.
283
274
  // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_HOMEPAGE']".
284
- INLINED_SOCKET_CLI_HOMEPAGE: envAsString("https://github.com/SocketDev/socket-cli"),
275
+ INLINED_SOCKET_CLI_HOMEPAGE: envHelpers.envAsString("https://github.com/SocketDev/socket-cli"),
285
276
  // Comp-time inlined flag to determine if this is the Legacy build.
286
277
  // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_LEGACY_BUILD']".
287
- INLINED_SOCKET_CLI_LEGACY_BUILD: envAsBoolean(false),
278
+ INLINED_SOCKET_CLI_LEGACY_BUILD: envHelpers.envAsBoolean(false),
288
279
  // Comp-time inlined Socket package name.
289
280
  // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_NAME']".
290
- INLINED_SOCKET_CLI_NAME: envAsString("@socketsecurity/cli"),
281
+ INLINED_SOCKET_CLI_NAME: envHelpers.envAsString("@socketsecurity/cli-with-sentry"),
291
282
  // Comp-time inlined flag to determine if this is a published build.
292
283
  // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_PUBLISHED_BUILD']".
293
284
  INLINED_SOCKET_CLI_PUBLISHED_BUILD,
294
285
  // Comp-time inlined flag to determine if this is the Sentry build.
295
286
  // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_SENTRY_BUILD']".
296
- INLINED_SOCKET_CLI_SENTRY_BUILD: envAsBoolean(true),
287
+ INLINED_SOCKET_CLI_SENTRY_BUILD: envHelpers.envAsBoolean(true),
297
288
  // Comp-time inlined synp package version.
298
289
  // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_SYNP_VERSION']".
299
- INLINED_SOCKET_CLI_SYNP_VERSION: envAsString("1.9.14"),
290
+ INLINED_SOCKET_CLI_SYNP_VERSION: envHelpers.envAsString("1.9.14"),
300
291
  // Comp-time inlined Socket package version.
301
292
  // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION']".
302
- INLINED_SOCKET_CLI_VERSION: envAsString("1.16.0"),
293
+ INLINED_SOCKET_CLI_VERSION: envHelpers.envAsString("1.17.0"),
303
294
  // Comp-time inlined Socket package version hash.
304
295
  // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION_HASH']".
305
- INLINED_SOCKET_CLI_VERSION_HASH: envAsString("1.16.0:7034b6910:d11d966e"),
296
+ INLINED_SOCKET_CLI_VERSION_HASH: envHelpers.envAsString("1.17.0:6b57739f1:76d23bd1"),
306
297
  // Enable the module compile cache for the Node.js instance.
307
298
  // https://nodejs.org/api/cli.html#node_compile_cachedir
308
299
  NODE_COMPILE_CACHE: constants.SUPPORTS_NODE_COMPILE_CACHE_ENV_VAR ? constants.socketCachePath : '',
309
- // Redefine registryConstants.ENV.NODE_ENV to account for the
300
+ // Redefine runtimeConstants.ENV.NODE_ENV to account for the
310
301
  // INLINED_SOCKET_CLI_PUBLISHED_BUILD environment variable.
311
- NODE_ENV: envAsString(env['NODE_ENV']).toLowerCase() === 'production' ? 'production' : INLINED_SOCKET_CLI_PUBLISHED_BUILD ? '' : 'development',
302
+ NODE_ENV: envHelpers.envAsString(env['NODE_ENV']).toLowerCase() === 'production' ? 'production' : INLINED_SOCKET_CLI_PUBLISHED_BUILD ? '' : 'development',
312
303
  // Well known "root" CAs (like VeriSign) will be extended with the extra
313
304
  // certificates in file. The file should consist of one or more trusted
314
305
  // certificates in PEM format.
315
306
  // https://nodejs.org/api/cli.html#node_extra_ca_certsfile
316
- NODE_EXTRA_CA_CERTS: envAsString(env['NODE_EXTRA_CA_CERTS']) ||
307
+ NODE_EXTRA_CA_CERTS: envHelpers.envAsString(env['NODE_EXTRA_CA_CERTS']) ||
317
308
  // Commonly used environment variable to specify the path to a single
318
309
  // PEM-encoded certificate file.
319
- envAsString(env['SSL_CERT_FILE']),
310
+ envHelpers.envAsString(env['SSL_CERT_FILE']),
320
311
  // npm cache directory path. Used to detect if running from npm's npx cache
321
312
  // for temporary execution contexts.
322
- npm_config_cache: envAsString(env['npm_config_cache']),
313
+ npm_config_cache: envHelpers.envAsString(env['npm_config_cache']),
323
314
  // Package manager user agent string that identifies which package manager
324
315
  // is executing commands. Used to detect temporary execution contexts like
325
316
  // npx, pnpm dlx, or yarn dlx.
@@ -329,69 +320,69 @@ const LAZY_ENV = () => {
329
320
  // - yarn: 'yarn/version npm/? node/version os arch' (e.g., 'yarn/1.22.0 npm/? node/v20.0.0 darwin x64')
330
321
  // - pnpm: 'pnpm/version node/version os arch' (Note: Not set for pnpm dlx/create/init)
331
322
  // - When running via exec/npx/dlx, the string may contain 'exec', 'npx', or 'dlx'
332
- npm_config_user_agent: envAsString(env['npm_config_user_agent']),
323
+ npm_config_user_agent: envHelpers.envAsString(env['npm_config_user_agent']),
333
324
  // PATH is an environment variable that lists directories where executable
334
325
  // programs are located. When a command is run, the system searches these
335
326
  // directories to find the executable.
336
- PATH: envAsString(env['PATH']),
327
+ PATH: envHelpers.envAsString(env['PATH']),
337
328
  // Accept risks of a Socket wrapped npm/npx run.
338
- SOCKET_CLI_ACCEPT_RISKS: envAsBoolean(env[SOCKET_CLI_ACCEPT_RISKS]),
329
+ SOCKET_CLI_ACCEPT_RISKS: envHelpers.envAsBoolean(env[SOCKET_CLI_ACCEPT_RISKS]),
339
330
  // Enable debug logging in Socket CLI.
340
- SOCKET_CLI_DEBUG: envAsBoolean(env['SOCKET_CLI_DEBUG']),
331
+ SOCKET_CLI_DEBUG: envHelpers.envAsBoolean(env['SOCKET_CLI_DEBUG']),
341
332
  // Change the base URL for Socket API calls.
342
333
  // https://github.com/SocketDev/socket-cli?tab=readme-ov-file#environment-variables-for-development
343
- SOCKET_CLI_API_BASE_URL: envAsString(env['SOCKET_CLI_API_BASE_URL']) ||
334
+ SOCKET_CLI_API_BASE_URL: envHelpers.envAsString(env['SOCKET_CLI_API_BASE_URL']) ||
344
335
  // TODO: Remove legacy environment variable name.
345
- envAsString(env['SOCKET_SECURITY_API_BASE_URL']) || savedConfigValue('apiBaseUrl') || API_V0_URL,
336
+ envHelpers.envAsString(env['SOCKET_SECURITY_API_BASE_URL']) || savedConfigValue('apiBaseUrl') || API_V0_URL,
346
337
  // Set the proxy that all requests are routed through.
347
338
  // https://github.com/SocketDev/socket-cli?tab=readme-ov-file#environment-variables-for-development
348
- SOCKET_CLI_API_PROXY: envAsString(env['SOCKET_CLI_API_PROXY']) ||
339
+ SOCKET_CLI_API_PROXY: envHelpers.envAsString(env['SOCKET_CLI_API_PROXY']) ||
349
340
  // TODO: Remove legacy environment variable name.
350
- envAsString(env['SOCKET_SECURITY_API_PROXY']) ||
341
+ envHelpers.envAsString(env['SOCKET_SECURITY_API_PROXY']) ||
351
342
  // Commonly used environment variables to specify routing requests through
352
343
  // a proxy server.
353
- envAsString(env['HTTPS_PROXY']) || envAsString(env['https_proxy']) || envAsString(env['HTTP_PROXY']) || envAsString(env['http_proxy']),
344
+ envHelpers.envAsString(env['HTTPS_PROXY']) || envHelpers.envAsString(env['https_proxy']) || envHelpers.envAsString(env['HTTP_PROXY']) || envHelpers.envAsString(env['http_proxy']),
354
345
  // Set the timeout in milliseconds for Socket API requests.
355
346
  // https://nodejs.org/api/http.html#httprequesturl-options-callback
356
- SOCKET_CLI_API_TIMEOUT: envAsNumber(env['SOCKET_CLI_API_TIMEOUT']),
347
+ SOCKET_CLI_API_TIMEOUT: envHelpers.envAsNumber(env['SOCKET_CLI_API_TIMEOUT']),
357
348
  // Set the Socket API token.
358
349
  // https://github.com/SocketDev/socket-cli?tab=readme-ov-file#environment-variables
359
- SOCKET_CLI_API_TOKEN: SOCKET_CLI_API_TOKEN_VARIABLES.map(name => envAsString(env[name])).find(Boolean) ?? '',
350
+ SOCKET_CLI_API_TOKEN: SOCKET_CLI_API_TOKEN_VARIABLES.map(name => envHelpers.envAsString(env[name])).find(Boolean) ?? '',
360
351
  // A JSON stringified Socket configuration object.
361
- SOCKET_CLI_CONFIG: envAsString(env['SOCKET_CLI_CONFIG']),
352
+ SOCKET_CLI_CONFIG: envHelpers.envAsString(env['SOCKET_CLI_CONFIG']),
362
353
  // The git config user.email used by Socket CLI.
363
- SOCKET_CLI_GIT_USER_EMAIL: envAsString(env['SOCKET_CLI_GIT_USER_EMAIL']) || 'github-actions[bot]@users.noreply.github.com',
354
+ SOCKET_CLI_GIT_USER_EMAIL: envHelpers.envAsString(env['SOCKET_CLI_GIT_USER_EMAIL']) || 'github-actions[bot]@users.noreply.github.com',
364
355
  // The git config user.name used by Socket CLI.
365
- SOCKET_CLI_GIT_USER_NAME: envAsString(env['SOCKET_CLI_GIT_USER_NAME']) || envAsString(env['SOCKET_CLI_GIT_USERNAME']) || 'github-actions[bot]',
356
+ SOCKET_CLI_GIT_USER_NAME: envHelpers.envAsString(env['SOCKET_CLI_GIT_USER_NAME']) || envHelpers.envAsString(env['SOCKET_CLI_GIT_USERNAME']) || 'github-actions[bot]',
366
357
  // Change the base URL for GitHub REST API calls.
367
358
  // https://docs.github.com/en/rest
368
- SOCKET_CLI_GITHUB_API_URL: envAsString(env['SOCKET_CLI_GITHUB_API_URL']) || socketJson?.defaults?.scan?.github?.githubApiUrl || 'https://api.github.com',
359
+ SOCKET_CLI_GITHUB_API_URL: envHelpers.envAsString(env['SOCKET_CLI_GITHUB_API_URL']) || socketJson?.defaults?.scan?.github?.githubApiUrl || 'https://api.github.com',
369
360
  // A classic GitHub personal access token with the "repo" scope or a
370
361
  // fine-grained access token with at least read/write permissions set for
371
362
  // "Contents" and "Pull Request".
372
363
  // https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens
373
- SOCKET_CLI_GITHUB_TOKEN: envAsString(env['SOCKET_CLI_GITHUB_TOKEN']) ||
364
+ SOCKET_CLI_GITHUB_TOKEN: envHelpers.envAsString(env['SOCKET_CLI_GITHUB_TOKEN']) ||
374
365
  // TODO: Remove undocumented legacy environment variable name.
375
- envAsString(env['SOCKET_SECURITY_GITHUB_PAT']) || GITHUB_TOKEN,
366
+ envHelpers.envAsString(env['SOCKET_SECURITY_GITHUB_PAT']) || GITHUB_TOKEN,
376
367
  // Make the default API token `undefined`.
377
- SOCKET_CLI_NO_API_TOKEN: envAsBoolean(env['SOCKET_CLI_NO_API_TOKEN']),
368
+ SOCKET_CLI_NO_API_TOKEN: envHelpers.envAsBoolean(env['SOCKET_CLI_NO_API_TOKEN']),
378
369
  // The absolute location of the npm directory.
379
- SOCKET_CLI_NPM_PATH: envAsString(env['SOCKET_CLI_NPM_PATH']),
370
+ SOCKET_CLI_NPM_PATH: envHelpers.envAsString(env['SOCKET_CLI_NPM_PATH']),
380
371
  // Specify the Socket organization slug.
381
- SOCKET_CLI_ORG_SLUG: envAsString(env['SOCKET_CLI_ORG_SLUG']) ||
372
+ SOCKET_CLI_ORG_SLUG: envHelpers.envAsString(env['SOCKET_CLI_ORG_SLUG']) ||
382
373
  // Coana CLI accepts the SOCKET_ORG_SLUG environment variable.
383
- envAsString(env['SOCKET_ORG_SLUG']),
374
+ envHelpers.envAsString(env['SOCKET_ORG_SLUG']),
384
375
  // Explicit external socket-patch executable for standalone builds.
385
- SOCKET_CLI_SOCKET_PATCH_PATH: envAsString(env['SOCKET_CLI_SOCKET_PATCH_PATH']),
376
+ SOCKET_CLI_SOCKET_PATCH_PATH: envHelpers.envAsString(env['SOCKET_CLI_SOCKET_PATCH_PATH']),
386
377
  // View all risks of a Socket wrapped npm/npx run.
387
- SOCKET_CLI_VIEW_ALL_RISKS: envAsBoolean(env[SOCKET_CLI_VIEW_ALL_RISKS]),
378
+ SOCKET_CLI_VIEW_ALL_RISKS: envHelpers.envAsBoolean(env[SOCKET_CLI_VIEW_ALL_RISKS]),
388
379
  // Override the public patch API proxy URL for socket-patch.
389
- SOCKET_PATCH_PROXY_URL: envAsString(env['SOCKET_PATCH_PROXY_URL']),
380
+ SOCKET_PATCH_PROXY_URL: envHelpers.envAsString(env['SOCKET_PATCH_PROXY_URL']),
390
381
  // Specifies the type of terminal or terminal emulator being used by the process.
391
- TERM: envAsString(env['TERM']),
392
- // Redefine registryConstants.ENV.VITEST to account for the
382
+ TERM: envHelpers.envAsString(env['TERM']),
383
+ // Redefine runtimeConstants.ENV.VITEST to account for the
393
384
  // INLINED_SOCKET_CLI_PUBLISHED_BUILD environment variable.
394
- VITEST: INLINED_SOCKET_CLI_PUBLISHED_BUILD ? false : envAsBoolean(false)
385
+ VITEST: INLINED_SOCKET_CLI_PUBLISHED_BUILD ? false : envHelpers.envAsBoolean(false)
395
386
  });
396
387
  };
397
388
  const lazyBashRcPath = () => path.join(constants.homePath, '.bashrc');
@@ -435,7 +426,7 @@ const lazyMinimumVersionByAgent = () => new Map([
435
426
  const lazyNmBinPath = () => path.join(constants.rootPath, 'node_modules/.bin');
436
427
  const lazyNodeDebugFlags = () => constants.ENV.SOCKET_CLI_DEBUG ? ['--trace-uncaught', '--trace-warnings'] : [];
437
428
 
438
- // Redefine registryConstants.nodeHardenFlags to account for the
429
+ // Redefine runtimeConstants.nodeHardenFlags to account for the
439
430
  // INLINED_SOCKET_CLI_SENTRY_BUILD environment variable.
440
431
  const lazyNodeHardenFlags = () => Object.freeze(
441
432
  // Harden Node security.
@@ -464,14 +455,10 @@ const lazyNodeMemoryFlags = () => {
464
455
  return Object.freeze([`--max-old-space-size=${getMaxOldSpaceSizeFlag()}`, `--max-semi-space-size=${getMaxSemiSpaceSizeFlag()}`]);
465
456
  };
466
457
  const lazyNpmCachePath = () => {
467
- const spawnHelpers = /*@__PURE__*/require$1('../external/@socketsecurity/registry/lib/spawn');
468
- const spawnSync = spawnHelpers.spawnSync;
469
- return spawnSync(constants.npmExecPath, ['config', 'get', 'cache'], getNpmStdioPipeOptions()).stdout;
458
+ return spawnSync.spawnSync(constants.npmExecPath, ['config', 'get', 'cache'], getNpmStdioPipeOptions()).stdout;
470
459
  };
471
460
  const lazyNpmGlobalPrefix = () => {
472
- const spawnHelpers = /*@__PURE__*/require$1('../external/@socketsecurity/registry/lib/spawn');
473
- const spawnSync = spawnHelpers.spawnSync;
474
- return spawnSync(constants.npmExecPath, ['prefix', '-g'], getNpmStdioPipeOptions()).stdout;
461
+ return spawnSync.spawnSync(constants.npmExecPath, ['prefix', '-g'], getNpmStdioPipeOptions()).stdout;
475
462
  };
476
463
  const lazyNpmNmNodeGypPath = () => path.join(constants.npmRealExecPath, '../../node_modules/node-gyp/bin/node-gyp.js');
477
464
  const lazyProcessEnv = () => Object.setPrototypeOf(Object.fromEntries(Object.entries(constants.ENV).reduce((entries, entry) => {
@@ -523,8 +510,8 @@ const lazySocketAppDataPath = () => {
523
510
  if (WIN32) {
524
511
  const {
525
512
  logger
526
- } = /*@__PURE__*/require$1('../external/@socketsecurity/registry/lib/logger');
527
- logger.warn(`Missing %LOCALAPPDATA%.`);
513
+ } = /*@__PURE__*/require$1('./utils.js');
514
+ logger.warn('Missing %LOCALAPPDATA%.');
528
515
  } else {
529
516
  dataHome = path.join(constants.homePath, constants.DARWIN ? 'Library/Application Support' : '.local/share');
530
517
  }
@@ -532,10 +519,9 @@ const lazySocketAppDataPath = () => {
532
519
  return dataHome ? path.join(dataHome, 'socket/settings') : undefined;
533
520
  };
534
521
  const lazySocketCachePath = () => path.join(constants.rootPath, '.cache');
535
- const lazySocketRegistryPath = () => path.join(constants.externalPath, '@socketsecurity/registry');
536
522
  const lazyZshRcPath = () => path.join(constants.homePath, '.zshrc');
537
- const constants = createConstantsObject({
538
- ...registryConstantsAttribs.props,
523
+ const constants = runtimeConstants.createConstantsObject({
524
+ ...runtimeConstants.runtimeConstantsAttribs.props,
539
525
  ALERT_TYPE_CRITICAL_CVE,
540
526
  ALERT_TYPE_CVE,
541
527
  ALERT_TYPE_MEDIUM_CVE,
@@ -667,11 +653,10 @@ const constants = createConstantsObject({
667
653
  shadowYarnBinPath: undefined,
668
654
  socketAppDataPath: undefined,
669
655
  socketCachePath: undefined,
670
- socketRegistryPath: undefined,
671
656
  zshRcPath: undefined
672
657
  }, {
673
658
  getters: {
674
- ...registryConstantsAttribs.getters,
659
+ ...runtimeConstants.runtimeConstantsAttribs.getters,
675
660
  ENV: LAZY_ENV,
676
661
  bashRcPath: lazyBashRcPath,
677
662
  binCliPath: lazyBinCliPath,
@@ -703,12 +688,11 @@ const constants = createConstantsObject({
703
688
  shadowYarnBinPath: lazyShadowYarnBinPath,
704
689
  socketAppDataPath: lazySocketAppDataPath,
705
690
  socketCachePath: lazySocketCachePath,
706
- socketRegistryPath: lazySocketRegistryPath,
707
691
  zshRcPath: lazyZshRcPath
708
692
  },
709
693
  internals: {
710
- ...registryConstantsAttribs.internals,
711
- getIpc,
694
+ ...runtimeConstants.runtimeConstantsAttribs.internals,
695
+ getIpc: runtimeConstants.getIpc,
712
696
  getSentry() {
713
697
  return _Sentry;
714
698
  },
@@ -888,5 +872,5 @@ exports.YARN_CLASSIC = YARN_CLASSIC;
888
872
  exports.YARN_LOCK = YARN_LOCK;
889
873
  exports.default = constants;
890
874
  exports.resolveBlessedTerm = resolveBlessedTerm;
891
- //# debugId=e73219ce-e91c-4467-945d-bbb9534560e1
875
+ //# debugId=14e6629d-11dc-43f9-9e26-51396e02739b
892
876
  //# sourceMappingURL=constants.js.map