@socketsecurity/cli-with-sentry 1.0.7 → 1.0.8

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 (140) hide show
  1. package/dist/cli.js +41 -31
  2. package/dist/cli.js.map +1 -1
  3. package/dist/constants.js +8 -3
  4. package/dist/constants.js.map +1 -1
  5. package/dist/shadow-npm-bin.js +5 -5
  6. package/dist/shadow-npm-bin.js.map +1 -1
  7. package/dist/socket-completion.bash +23 -7
  8. package/dist/types/commands/fix/cmd-fix.d.mts.map +1 -1
  9. package/dist/types/commands/fix/handle-fix.d.mts +2 -1
  10. package/dist/types/commands/fix/handle-fix.d.mts.map +1 -1
  11. package/dist/types/commands/install/setup-tab-completion.d.mts.map +1 -1
  12. package/dist/types/commands/manifest/cmd-manifest-cdxgen.d.mts.map +1 -1
  13. package/dist/types/commands/npm/cmd-npm.d.mts.map +1 -1
  14. package/dist/types/commands/npx/cmd-npx.d.mts.map +1 -1
  15. package/dist/types/commands/raw-npm/cmd-raw-npm.d.mts.map +1 -1
  16. package/dist/types/commands/raw-npx/cmd-raw-npx.d.mts.map +1 -1
  17. package/dist/types/constants.d.mts.map +1 -1
  18. package/dist/types/utils/alerts-map.d.mts.map +1 -1
  19. package/dist/types/utils/api.d.mts.map +1 -1
  20. package/dist/types/utils/meow-with-subcommands.d.mts +2 -3
  21. package/dist/types/utils/meow-with-subcommands.d.mts.map +1 -1
  22. package/dist/utils.js +34 -45
  23. package/dist/utils.js.map +1 -1
  24. package/dist/vendor.js +27 -24
  25. package/external/@coana-tech/cli/cli.mjs +1 -1
  26. package/external/@socketsecurity/registry/lib/constants/npm-real-exec-path.js +2 -40
  27. package/external/@socketsecurity/registry/lib/npm.js +102 -71
  28. package/external/@socketsecurity/registry/lib/spinner.js +6 -0
  29. package/external/blessed-contrib/lib/widget/charts/bar.js +4 -3
  30. package/external/blessed-contrib/lib/widget/charts/line.js +4 -3
  31. package/external/blessed-contrib/lib/widget/table.js +3 -3
  32. package/package.json +11 -12
  33. package/external/node-gyp/.release-please-manifest.json +0 -3
  34. package/external/node-gyp/CHANGELOG.md +0 -1053
  35. package/external/node-gyp/CODE_OF_CONDUCT.md +0 -4
  36. package/external/node-gyp/CONTRIBUTING.md +0 -34
  37. package/external/node-gyp/LICENSE +0 -24
  38. package/external/node-gyp/README.md +0 -273
  39. package/external/node-gyp/SECURITY.md +0 -2
  40. package/external/node-gyp/addon.gypi +0 -204
  41. package/external/node-gyp/bin/node-gyp.js +0 -137
  42. package/external/node-gyp/eslint.config.js +0 -3
  43. package/external/node-gyp/gyp/.release-please-manifest.json +0 -3
  44. package/external/node-gyp/gyp/LICENSE +0 -28
  45. package/external/node-gyp/gyp/data/ninja/build.ninja +0 -4
  46. package/external/node-gyp/gyp/data/win/large-pdb-shim.cc +0 -12
  47. package/external/node-gyp/gyp/docs/GypVsCMake.md +0 -116
  48. package/external/node-gyp/gyp/docs/Hacking.md +0 -46
  49. package/external/node-gyp/gyp/docs/InputFormatReference.md +0 -1083
  50. package/external/node-gyp/gyp/docs/LanguageSpecification.md +0 -430
  51. package/external/node-gyp/gyp/docs/README.md +0 -27
  52. package/external/node-gyp/gyp/docs/Testing.md +0 -450
  53. package/external/node-gyp/gyp/docs/UserDocumentation.md +0 -965
  54. package/external/node-gyp/gyp/gyp +0 -8
  55. package/external/node-gyp/gyp/gyp.bat +0 -5
  56. package/external/node-gyp/gyp/gyp_main.py +0 -45
  57. package/external/node-gyp/gyp/pylib/gyp/MSVSNew.py +0 -365
  58. package/external/node-gyp/gyp/pylib/gyp/MSVSProject.py +0 -206
  59. package/external/node-gyp/gyp/pylib/gyp/MSVSSettings.py +0 -1272
  60. package/external/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py +0 -1547
  61. package/external/node-gyp/gyp/pylib/gyp/MSVSToolFile.py +0 -59
  62. package/external/node-gyp/gyp/pylib/gyp/MSVSUserFile.py +0 -152
  63. package/external/node-gyp/gyp/pylib/gyp/MSVSUtil.py +0 -270
  64. package/external/node-gyp/gyp/pylib/gyp/MSVSVersion.py +0 -574
  65. package/external/node-gyp/gyp/pylib/gyp/__init__.py +0 -704
  66. package/external/node-gyp/gyp/pylib/gyp/common.py +0 -709
  67. package/external/node-gyp/gyp/pylib/gyp/common_test.py +0 -173
  68. package/external/node-gyp/gyp/pylib/gyp/easy_xml.py +0 -169
  69. package/external/node-gyp/gyp/pylib/gyp/easy_xml_test.py +0 -113
  70. package/external/node-gyp/gyp/pylib/gyp/flock_tool.py +0 -55
  71. package/external/node-gyp/gyp/pylib/gyp/generator/__init__.py +0 -0
  72. package/external/node-gyp/gyp/pylib/gyp/generator/analyzer.py +0 -805
  73. package/external/node-gyp/gyp/pylib/gyp/generator/android.py +0 -1172
  74. package/external/node-gyp/gyp/pylib/gyp/generator/cmake.py +0 -1319
  75. package/external/node-gyp/gyp/pylib/gyp/generator/compile_commands_json.py +0 -128
  76. package/external/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py +0 -104
  77. package/external/node-gyp/gyp/pylib/gyp/generator/eclipse.py +0 -462
  78. package/external/node-gyp/gyp/pylib/gyp/generator/gypd.py +0 -89
  79. package/external/node-gyp/gyp/pylib/gyp/generator/gypsh.py +0 -56
  80. package/external/node-gyp/gyp/pylib/gyp/generator/make.py +0 -2745
  81. package/external/node-gyp/gyp/pylib/gyp/generator/msvs.py +0 -3976
  82. package/external/node-gyp/gyp/pylib/gyp/generator/msvs_test.py +0 -44
  83. package/external/node-gyp/gyp/pylib/gyp/generator/ninja.py +0 -2965
  84. package/external/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +0 -67
  85. package/external/node-gyp/gyp/pylib/gyp/generator/xcode.py +0 -1391
  86. package/external/node-gyp/gyp/pylib/gyp/generator/xcode_test.py +0 -26
  87. package/external/node-gyp/gyp/pylib/gyp/input.py +0 -3112
  88. package/external/node-gyp/gyp/pylib/gyp/input_test.py +0 -99
  89. package/external/node-gyp/gyp/pylib/gyp/mac_tool.py +0 -767
  90. package/external/node-gyp/gyp/pylib/gyp/msvs_emulation.py +0 -1260
  91. package/external/node-gyp/gyp/pylib/gyp/ninja_syntax.py +0 -174
  92. package/external/node-gyp/gyp/pylib/gyp/simple_copy.py +0 -61
  93. package/external/node-gyp/gyp/pylib/gyp/win_tool.py +0 -373
  94. package/external/node-gyp/gyp/pylib/gyp/xcode_emulation.py +0 -1939
  95. package/external/node-gyp/gyp/pylib/gyp/xcode_emulation_test.py +0 -54
  96. package/external/node-gyp/gyp/pylib/gyp/xcode_ninja.py +0 -303
  97. package/external/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +0 -3196
  98. package/external/node-gyp/gyp/pylib/gyp/xml_fix.py +0 -65
  99. package/external/node-gyp/gyp/pylib/packaging/LICENSE +0 -3
  100. package/external/node-gyp/gyp/pylib/packaging/LICENSE.APACHE +0 -177
  101. package/external/node-gyp/gyp/pylib/packaging/LICENSE.BSD +0 -23
  102. package/external/node-gyp/gyp/pylib/packaging/__init__.py +0 -15
  103. package/external/node-gyp/gyp/pylib/packaging/_elffile.py +0 -108
  104. package/external/node-gyp/gyp/pylib/packaging/_manylinux.py +0 -252
  105. package/external/node-gyp/gyp/pylib/packaging/_musllinux.py +0 -83
  106. package/external/node-gyp/gyp/pylib/packaging/_parser.py +0 -359
  107. package/external/node-gyp/gyp/pylib/packaging/_structures.py +0 -61
  108. package/external/node-gyp/gyp/pylib/packaging/_tokenizer.py +0 -192
  109. package/external/node-gyp/gyp/pylib/packaging/markers.py +0 -252
  110. package/external/node-gyp/gyp/pylib/packaging/metadata.py +0 -825
  111. package/external/node-gyp/gyp/pylib/packaging/py.typed +0 -0
  112. package/external/node-gyp/gyp/pylib/packaging/requirements.py +0 -90
  113. package/external/node-gyp/gyp/pylib/packaging/specifiers.py +0 -1030
  114. package/external/node-gyp/gyp/pylib/packaging/tags.py +0 -553
  115. package/external/node-gyp/gyp/pylib/packaging/utils.py +0 -172
  116. package/external/node-gyp/gyp/pylib/packaging/version.py +0 -563
  117. package/external/node-gyp/gyp/pyproject.toml +0 -115
  118. package/external/node-gyp/gyp/release-please-config.json +0 -11
  119. package/external/node-gyp/gyp/test_gyp.py +0 -261
  120. package/external/node-gyp/lib/Find-VisualStudio.cs +0 -250
  121. package/external/node-gyp/lib/build.js +0 -230
  122. package/external/node-gyp/lib/clean.js +0 -15
  123. package/external/node-gyp/lib/configure.js +0 -328
  124. package/external/node-gyp/lib/create-config-gypi.js +0 -153
  125. package/external/node-gyp/lib/download.js +0 -41
  126. package/external/node-gyp/lib/find-node-directory.js +0 -63
  127. package/external/node-gyp/lib/find-python.js +0 -310
  128. package/external/node-gyp/lib/find-visualstudio.js +0 -600
  129. package/external/node-gyp/lib/install.js +0 -415
  130. package/external/node-gyp/lib/list.js +0 -26
  131. package/external/node-gyp/lib/log.js +0 -168
  132. package/external/node-gyp/lib/node-gyp.js +0 -188
  133. package/external/node-gyp/lib/process-release.js +0 -148
  134. package/external/node-gyp/lib/rebuild.js +0 -12
  135. package/external/node-gyp/lib/remove.js +0 -43
  136. package/external/node-gyp/lib/util.js +0 -81
  137. package/external/node-gyp/macOS_Catalina_acid_test.sh +0 -21
  138. package/external/node-gyp/package.json +0 -52
  139. package/external/node-gyp/release-please-config.json +0 -40
  140. package/external/node-gyp/src/win_delay_load_hook.cc +0 -41
package/dist/vendor.js CHANGED
@@ -8273,8 +8273,9 @@ const validate$4 = (flags, options) => {
8273
8273
  const reportUnknownFlags = unknownFlags => {
8274
8274
  console.error([`Unknown flag${unknownFlags.length > 1 ? 's' : ''}`, ...unknownFlags].join('\n'));
8275
8275
  };
8276
+ const collectUnknownFlags = input => input.filter(item => typeof item === 'string' && item.startsWith('-'));
8276
8277
  const checkUnknownFlags = input => {
8277
- const unknownFlags = input.filter(item => typeof item === 'string' && item.startsWith('-'));
8278
+ const unknownFlags = collectUnknownFlags(input);
8278
8279
  if (unknownFlags.length > 0) {
8279
8280
  reportUnknownFlags(unknownFlags);
8280
8281
  process$2.exit(2);
@@ -8366,6 +8367,12 @@ const buildResult = (options, parserOptions) => {
8366
8367
  const flags = camelcaseKeys(argv, {
8367
8368
  exclude: ['--', /^\w$/]
8368
8369
  });
8370
+ const unknownFlags = options.collectUnknownFlags ? collectUnknownFlags(options.allowUnknownFlags ? yargsParser$1(options.argv, buildParserOptions({
8371
+ ...options,
8372
+ allowUnknownFlags: false,
8373
+ autoHelp: false,
8374
+ autoVersion: false
8375
+ }))._ : input) : [];
8369
8376
  const unnormalizedFlags = {
8370
8377
  ...flags
8371
8378
  };
@@ -8382,6 +8389,7 @@ const buildResult = (options, parserOptions) => {
8382
8389
  return {
8383
8390
  input,
8384
8391
  flags,
8392
+ unknownFlags,
8385
8393
  unnormalizedFlags,
8386
8394
  pkg: package_,
8387
8395
  help,
@@ -8897,8 +8905,9 @@ const updater$1 = async ({
8897
8905
  function getAugmentedNamespace(n) {
8898
8906
  if (Object.prototype.hasOwnProperty.call(n, '__esModule')) return n;
8899
8907
  var f = n.default;
8908
+ var a;
8900
8909
  if (typeof f == "function") {
8901
- var a = function a () {
8910
+ a = function a () {
8902
8911
  var isInstance = false;
8903
8912
  try {
8904
8913
  isInstance = this instanceof a;
@@ -32899,7 +32908,7 @@ var isInteractiveExports = /*@__PURE__*/ requireIsInteractive();
32899
32908
  var dist$e = {};
32900
32909
 
32901
32910
  var name$2 = "@socketsecurity/sdk";
32902
- var version$5 = "1.4.48";
32911
+ var version$5 = "1.4.50";
32903
32912
  var license = "MIT";
32904
32913
  var description = "SDK for the Socket API client";
32905
32914
  var author = {
@@ -32982,21 +32991,21 @@ var scripts = {
32982
32991
  "update:deps": "npx --yes npm-check-updates"
32983
32992
  };
32984
32993
  var dependencies = {
32985
- "@socketsecurity/registry": "1.0.209"
32994
+ "@socketsecurity/registry": "1.0.215"
32986
32995
  };
32987
32996
  var devDependencies = {
32988
- "@biomejs/biome": "2.0.4",
32997
+ "@biomejs/biome": "2.0.5",
32989
32998
  "@dotenvx/dotenvx": "1.45.1",
32990
- "@eslint/compat": "1.3.0",
32999
+ "@eslint/compat": "1.3.1",
32991
33000
  "@eslint/js": "9.29.0",
32992
- "@types/node": "24.0.3",
32993
- "@typescript-eslint/parser": "8.34.1",
33001
+ "@types/node": "24.0.4",
33002
+ "@typescript-eslint/parser": "8.35.0",
32994
33003
  "@vitest/coverage-v8": "3.2.4",
32995
33004
  "del-cli": "6.0.0",
32996
33005
  eslint: "9.29.0",
32997
- "eslint-import-resolver-typescript": "4.4.3",
32998
- "eslint-plugin-import-x": "4.15.2",
32999
- "eslint-plugin-jsdoc": "51.2.1",
33006
+ "eslint-import-resolver-typescript": "4.4.4",
33007
+ "eslint-plugin-import-x": "4.16.0",
33008
+ "eslint-plugin-jsdoc": "51.2.3",
33000
33009
  "eslint-plugin-n": "17.20.0",
33001
33010
  "eslint-plugin-sort-destructure-keys": "2.0.0",
33002
33011
  "eslint-plugin-unicorn": "56.0.1",
@@ -33010,7 +33019,7 @@ var devDependencies = {
33010
33019
  oxlint: "1.3.0",
33011
33020
  "type-coverage": "2.29.7",
33012
33021
  typescript: "~5.8.3",
33013
- "typescript-eslint": "8.34.1",
33022
+ "typescript-eslint": "8.35.0",
33014
33023
  vitest: "3.2.4"
33015
33024
  };
33016
33025
  var overrides = {
@@ -68052,7 +68061,7 @@ function requireDefinitions$1() {
68052
68061
  flatten
68053
68062
  }),
68054
68063
  'node-gyp': new Definition('node-gyp', {
68055
- default: require.resolve('../external/node-gyp/bin/node-gyp.js'),
68064
+ default: require('./constants.js').npmNmNodeGypPath,
68056
68065
  defaultDescription: `
68057
68066
  The path to the node-gyp bin that ships with npm
68058
68067
  `,
@@ -94353,7 +94362,7 @@ function requireSetPath() {
94353
94362
  } = require$$0$a;
94354
94363
  // the path here is relative, even though it does not need to be
94355
94364
  // in order to make the posix tests pass in windows
94356
- const nodeGypPath = resolve(__dirname, '../lib/node-gyp-bin');
94365
+ const nodeGypPath = require('./constants.js').npmNmNodeGypPath;
94357
94366
 
94358
94367
  // Windows typically calls its PATH environ 'Path', but this is not
94359
94368
  // guaranteed, nor is it guaranteed to be the only one. Merge them
@@ -94423,7 +94432,7 @@ function requireMakeSpawnArgs() {
94423
94432
  npm_config_node_gyp = env.npm_config_node_gyp;
94424
94433
  } else {
94425
94434
  // default
94426
- npm_config_node_gyp = require.resolve('../external/node-gyp/bin/node-gyp.js');
94435
+ npm_config_node_gyp = require('./constants.js').npmNmNodeGypPath;
94427
94436
  }
94428
94437
  const spawnEnv = setPATH(path, binPaths, {
94429
94438
  // we need to at least save the PATH environment var
@@ -137129,13 +137138,7 @@ function requireNode$1() {
137129
137138
 
137130
137139
  // if they're links, they match if the targets match
137131
137140
  if (this.isLink) {
137132
- if (node.isLink) {
137133
- if (this.target && node.target) {
137134
- return this.target.matches(node.target);
137135
- }
137136
- } else {
137137
- return false;
137138
- }
137141
+ return node.isLink && this.target.matches(node.target);
137139
137142
  }
137140
137143
 
137141
137144
  // if they're two project root nodes, they're different if the paths differ
@@ -168148,7 +168151,7 @@ if (nodeVersion) {
168148
168151
  }
168149
168152
  // Creates a yargs-parser instance using Node.js standard libraries:
168150
168153
  const env = process ? process.env : {};
168151
- const require$1 = Module.createRequire ? Module.createRequire((typeof document === 'undefined' ? require$$0$6.pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('vendor.js', document.baseURI).href))) : undefined;
168154
+ const require$1 =Module.createRequire(require$$0$6.pathToFileURL(__filename).href)
168152
168155
  const parser = new YargsParser({
168153
168156
  cwd: process.cwd,
168154
168157
  env: () => {
@@ -170172,5 +170175,5 @@ exports.terminalLinkExports = terminalLinkExports;
170172
170175
  exports.updater = updater$1;
170173
170176
  exports.yargsParser = yargsParser;
170174
170177
  exports.yoctocolorsCjsExports = yoctocolorsCjsExports;
170175
- //# debugId=3ec6e371-ddfa-4a70-ae6f-721e3182f605
170178
+ //# debugId=7092173f-4e2e-4cb3-9738-4a6fc3927919
170176
170179
  //# sourceMappingURL=vendor.js.map
@@ -221973,7 +221973,7 @@ async function onlineScan(dependencyTree, apiKey, timeout) {
221973
221973
  }
221974
221974
 
221975
221975
  // dist/version.js
221976
- var version2 = "14.9.32";
221976
+ var version2 = "14.9.33";
221977
221977
 
221978
221978
  // ../../node_modules/.pnpm/axios@1.9.0/node_modules/axios/lib/helpers/bind.js
221979
221979
  function bind2(fn2, thisArg) {
@@ -1,44 +1,6 @@
1
1
  'use strict'
2
2
 
3
- // Use non-'node:' prefixed require to avoid Webpack errors.
4
- // eslint-disable-next-line n/prefer-node-protocol
5
- const fs = /*@__PURE__*/ require('fs')
6
-
3
+ const { resolveBinPathSync } = /*@__PURE__*/ require('../npm')
7
4
  const which = /*@__PURE__*/ require('../../external/which')
8
5
 
9
- const WIN32 = require('./win32')
10
-
11
- // Will throw if not found.
12
- let binPath = which.sync('npm')
13
-
14
- // Lazily access constants.WIN32.
15
- if (WIN32) {
16
- // Use non-'node:' prefixed require to avoid Webpack errors.
17
- // eslint-disable-next-line n/prefer-node-protocol
18
- const path = /*@__PURE__*/ require('path')
19
-
20
- // The npm.CMD looks like:
21
- // :: Created by npm, please don't edit manually.
22
- // @ECHO OFF
23
- //
24
- // SETLOCAL
25
- //
26
- // SET "NODE_EXE=%~dp0\node.exe"
27
- // IF NOT EXIST "%NODE_EXE%" (
28
- // SET "NODE_EXE=node"
29
- // )
30
- //
31
- // SET "NPM_PREFIX_JS=%~dp0\node_modules\npm\bin\npm-prefix.js"
32
- // SET "NPM_CLI_JS=%~dp0\node_modules\npm\bin\npm-cli.js"
33
- // FOR /F "delims=" %%F IN ('CALL "%NODE_EXE%" "%NPM_PREFIX_JS%"') DO (
34
- // SET "NPM_PREFIX_NPM_CLI_JS=%%F\node_modules\npm\bin\npm-cli.js"
35
- // )
36
- // IF EXIST "%NPM_PREFIX_NPM_CLI_JS%" (
37
- // SET "NPM_CLI_JS=%NPM_PREFIX_NPM_CLI_JS%"
38
- // )
39
- //
40
- // "%NODE_EXE%" "%NPM_CLI_JS%" %*
41
- binPath = path.join(path.dirname(binPath), 'node_modules/npm/bin/npm-cli.js')
42
- }
43
-
44
- module.exports = fs.realpathSync.native(binPath)
6
+ module.exports = resolveBinPathSync(which.sync('npm'))
@@ -1,6 +1,7 @@
1
1
  'use strict'
2
2
 
3
3
  const { isDebug } = /*@__PURE__*/ require('./debug')
4
+ const { readJsonSync } = /*@__PURE__*/ require('./fs')
4
5
  const { isRelative } = /*@__PURE__*/ require('./path')
5
6
  const { spawn } = /*@__PURE__*/ require('./spawn')
6
7
 
@@ -59,12 +60,14 @@ function execNpm(args, options) {
59
60
  const terminatorPos = args.indexOf('--')
60
61
  const npmArgs = (
61
62
  terminatorPos === -1 ? args : args.slice(0, terminatorPos)
62
- ).filter(a => !isAuditFlag(a) && !isFundFlag(a) && !isProgressFlag(a))
63
+ ).filter(
64
+ a => !isNpmAuditFlag(a) && !isNpmFundFlag(a) && !isNpmProgressFlag(a)
65
+ )
63
66
  const otherArgs = terminatorPos === -1 ? [] : args.slice(terminatorPos)
64
67
  const logLevelArgs =
65
68
  // The default value of loglevel is "notice". We default to "warn" which is
66
69
  // one level quieter.
67
- useDebug || npmArgs.some(isLoglevelFlag) ? [] : ['--loglevel', 'warn']
70
+ useDebug || npmArgs.some(isNpmLoglevelFlag) ? [] : ['--loglevel', 'warn']
68
71
  return spawn(
69
72
  /*@__PURE__*/ require('./constants/exec-path'),
70
73
  [
@@ -106,107 +109,136 @@ function getNotResolvedError(binPath, source = '') {
106
109
  }
107
110
 
108
111
  /*@__NO_SIDE_EFFECTS__*/
109
- function isAuditFlag(cmdArg) {
112
+ function isNpmAuditFlag(cmdArg) {
110
113
  return auditFlags.has(cmdArg)
111
114
  }
112
115
 
113
116
  /*@__NO_SIDE_EFFECTS__*/
114
- function isFundFlag(cmdArg) {
117
+ function isNpmFundFlag(cmdArg) {
115
118
  return fundFlags.has(cmdArg)
116
119
  }
117
120
 
118
121
  /*@__NO_SIDE_EFFECTS__*/
119
- function isLoglevelFlag(cmdArg) {
122
+ function isNpmLoglevelFlag(cmdArg) {
120
123
  // https://docs.npmjs.com/cli/v11/using-npm/logging#setting-log-levels
121
124
  return cmdArg.startsWith('--loglevel=') || logFlags.has(cmdArg)
122
125
  }
123
126
 
124
127
  /*@__NO_SIDE_EFFECTS__*/
125
- function isNodeOptionsFlag(cmdArg) {
128
+ function isNpmNodeOptionsFlag(cmdArg) {
126
129
  // https://docs.npmjs.com/cli/v9/using-npm/config#node-options
127
130
  return cmdArg.startsWith('--node-options=')
128
131
  }
129
132
 
130
133
  /*@__NO_SIDE_EFFECTS__*/
131
- function isProgressFlag(cmdArg) {
134
+ function isNpmProgressFlag(cmdArg) {
132
135
  return progressFlags.has(cmdArg)
133
136
  }
134
137
 
135
138
  /*@__NO_SIDE_EFFECTS__*/
136
- function realExecPathSync(npmOrNpxExecPath) {
139
+ function resolveBinPathSync(binPath) {
137
140
  const fs = getFs()
138
- const WIN32 = /*@__PURE__*/ require('./constants/win32')
139
- let binPath = npmOrNpxExecPath
140
- if (WIN32) {
141
- const path = getPath()
142
- const basename = path.basename(npmOrNpxExecPath).toLoweCase()
143
- if (basename.endsWith('.cmd')) {
144
- const basenameWithoutExt = basename.slice(0, -4)
145
- if (basenameWithoutExt === 'npm' || basenameWithoutExt === 'npx') {
146
- // The npm.CMD looks like:
147
- // :: Created by npm, please don't edit manually.
148
- // @ECHO OFF
149
- //
150
- // SETLOCAL
151
- //
152
- // SET "NODE_EXE=%~dp0\node.exe"
153
- // IF NOT EXIST "%NODE_EXE%" (
154
- // SET "NODE_EXE=node"
155
- // )
156
- //
157
- // SET "NPM_PREFIX_JS=%~dp0\node_modules\npm\bin\npm-prefix.js"
158
- // SET "NPM_CLI_JS=%~dp0\node_modules\npm\bin\npm-cli.js"
159
- // FOR /F "delims=" %%F IN ('CALL "%NODE_EXE%" "%NPM_PREFIX_JS%"') DO (
160
- // SET "NPM_PREFIX_NPM_CLI_JS=%%F\node_modules\npm\bin\npm-cli.js"
161
- // )
162
- // IF EXIST "%NPM_PREFIX_NPM_CLI_JS%" (
163
- // SET "NPM_CLI_JS=%NPM_PREFIX_NPM_CLI_JS%"
164
- // )
165
- //
166
- // "%NODE_EXE%" "%NPM_CLI_JS%" %*
167
- binPath = path.join(
168
- path.dirname(npmOrNpxExecPath),
169
- `node_modules/npm/bin/${basenameWithoutExt}-cli.js`
141
+ const path = getPath()
142
+ const ext = path.extname(binPath)
143
+ const extLowered = ext.toLowerCase()
144
+ const basename = path.basename(binPath, ext)
145
+ const voltaIndex =
146
+ basename === 'node'
147
+ ? -1
148
+ : (/(?<=[\\/]\.volta[\\/])/i.exec(binPath)?.index ?? -1)
149
+
150
+ if (voltaIndex !== -1) {
151
+ const voltaPath = binPath.slice(0, voltaIndex)
152
+ const voltaToolsPath = path.join(voltaPath, 'tools')
153
+ const voltaImagePath = path.join(voltaToolsPath, 'image')
154
+ const voltaUserPath = path.join(voltaToolsPath, 'user')
155
+ const voltaPlatform = readJsonSync(
156
+ path.join(voltaUserPath, 'platform.json')
157
+ )
158
+ const voltaNodeVersion = voltaPlatform?.node?.runtime
159
+ const voltaNpmVersion = voltaPlatform?.node?.npm
160
+ let voltaBinPath = ''
161
+ if (basename === 'npm' || basename === 'npx') {
162
+ if (voltaNpmVersion) {
163
+ const relCliPath = `bin/${basename}-cli.js`
164
+ voltaBinPath = path.join(
165
+ voltaImagePath,
166
+ `npm/${voltaNpmVersion}/${relCliPath}`
170
167
  )
168
+ if (voltaNodeVersion && !fs.existsSync(voltaBinPath)) {
169
+ voltaBinPath = path.join(
170
+ voltaImagePath,
171
+ `node/${voltaNodeVersion}/lib/node_modules/npm/${relCliPath}`
172
+ )
173
+ if (!fs.existsSync(voltaBinPath)) {
174
+ voltaBinPath = ''
175
+ }
176
+ }
177
+ }
178
+ } else {
179
+ const voltaUserBinPath = path.join(voltaUserPath, 'bin')
180
+ const binInfo = readJsonSync(
181
+ path.join(voltaUserBinPath, `${basename}.json`)
182
+ )
183
+ const binPackage = binInfo?.package
184
+ if (binPackage) {
185
+ voltaBinPath = path.join(
186
+ voltaImagePath,
187
+ `packages/${binPackage}/bin/${basename}`
188
+ )
189
+ if (!fs.existsSync(voltaBinPath)) {
190
+ voltaBinPath = `${voltaBinPath}.cmd`
191
+ if (!fs.existsSync(voltaBinPath)) {
192
+ voltaBinPath = ''
193
+ }
194
+ }
171
195
  }
172
196
  }
197
+ if (voltaBinPath) {
198
+ return fs.realpathSync.native(voltaBinPath)
199
+ }
173
200
  }
174
- return fs.realpathSync.native(binPath)
175
- }
176
201
 
177
- /*@__NO_SIDE_EFFECTS__*/
178
- function resolveBinPath(binPath) {
179
- const fs = getFs()
180
202
  const WIN32 = /*@__PURE__*/ require('./constants/win32')
181
203
  if (WIN32) {
182
- const path = getPath()
183
- const ext = path.extname(binPath)
184
- const extLowered = ext.toLowerCase()
185
- if (extLowered === '' || extLowered === '.cmd' || extLowered === '.ps1') {
186
- const basename = path.basename(binPath, ext)
187
- const source = fs.readFileSync(binPath, 'utf8')
188
- let relPath
189
- if (basename === 'npm' || basename === 'npx') {
204
+ const hasKnownExt =
205
+ extLowered === '' || extLowered === '.cmd' || extLowered === '.ps1'
206
+ const isNpmOrNpx = basename === 'npm' || basename === 'npx'
207
+ if (hasKnownExt && isNpmOrNpx) {
208
+ // The quick route assumes a bin path like: C:\Program Files\nodejs\npm.cmd
209
+ const quickPath = path.join(
210
+ path.dirname(binPath),
211
+ `node_modules/npm/bin/${basename}-cli.js`
212
+ )
213
+ if (fs.existsSync(quickPath)) {
214
+ return fs.realpathSync.native(quickPath)
215
+ }
216
+ }
217
+
218
+ let relPath = ''
219
+ const source = fs.readFileSync(binPath, 'utf8')
220
+ if (hasKnownExt) {
221
+ if (isNpmOrNpx) {
190
222
  if (extLowered === '.cmd') {
191
223
  // "npm.cmd" and "npx.cmd" defined by
192
- // https://github.com/npm/cli/blob/v11.2.0/bin/npm.cmd
193
- // https://github.com/npm/cli/blob/v11.2.0/bin/npx.cmd
224
+ // https://github.com/npm/cli/blob/v11.4.2/bin/npm.cmd
225
+ // https://github.com/npm/cli/blob/v11.4.2/bin/npx.cmd
194
226
  relPath =
195
227
  basename === 'npm'
196
228
  ? /(?<="NPM_CLI_JS=%~dp0\\).*(?=")/.exec(source)?.[0]
197
229
  : /(?<="NPX_CLI_JS=%~dp0\\).*(?=")/.exec(source)?.[0]
198
230
  } else if (extLowered === '') {
199
231
  // Extensionless "npm" and "npx" defined by
200
- // https://github.com/npm/cli/blob/v11.2.0/bin/npm.cmd
201
- // https://github.com/npm/cli/blob/v11.2.0/bin/npx.cmd
232
+ // https://github.com/npm/cli/blob/v11.4.2/bin/npm
233
+ // https://github.com/npm/cli/blob/v11.4.2/bin/npx
202
234
  relPath =
203
235
  basename === 'npm'
204
236
  ? /(?<=NPM_CLI_JS="\$CLI_BASEDIR\/).*(?=")/.exec(source)?.[0]
205
237
  : /(?<=NPX_CLI_JS="\$CLI_BASEDIR\/).*(?=")/.exec(source)?.[0]
206
238
  } else if (extLowered === '.ps1') {
207
239
  // "npm.ps1" and "npx.ps1" defined by
208
- // https://github.com/npm/cli/blob/v11.2.0/bin/npm.ps1
209
- // https://github.com/npm/cli/blob/v11.2.0/bin/npx.ps1
240
+ // https://github.com/npm/cli/blob/v11.4.2/bin/npm.ps1
241
+ // https://github.com/npm/cli/blob/v11.4.2/bin/npx.ps1
210
242
  relPath =
211
243
  basename === 'npm'
212
244
  ? /(?<=\$NPM_CLI_JS="\$PSScriptRoot\/).*(?=")/.exec(source)?.[0]
@@ -314,7 +346,7 @@ function runBin(binPath, args, options) {
314
346
  [
315
347
  .../*@__PURE__*/ require('./constants/node-no-warnings-flags'),
316
348
  isRelative(binPath) || getPath().isAbsolute(binPath)
317
- ? resolveBinPath(binPath)
349
+ ? resolveBinPathSync(binPath)
318
350
  : whichBinSync(binPath),
319
351
  ...args
320
352
  ],
@@ -323,7 +355,7 @@ function runBin(binPath, args, options) {
323
355
  }
324
356
 
325
357
  /*@__NO_SIDE_EFFECTS__*/
326
- function runScript(scriptName, args, options) {
358
+ function runNpmScript(scriptName, args, options) {
327
359
  const { prepost, ...spawnOptions } = { __proto__: null, ...options }
328
360
  const useNodeRun =
329
361
  !prepost && /*@__PURE__*/ require('./constants/supports-node-run')
@@ -348,26 +380,25 @@ async function whichBin(binName, options) {
348
380
  const which = getWhich()
349
381
  // Depending on options `which` may throw if `binName` is not found.
350
382
  // The default behavior is to throw when `binName` is not found.
351
- return resolveBinPath(await which(binName, options))
383
+ return resolveBinPathSync(await which(binName, options))
352
384
  }
353
385
 
354
386
  function whichBinSync(binName, options) {
355
387
  // Depending on options `which` may throw if `binName` is not found.
356
388
  // The default behavior is to throw when `binName` is not found.
357
- return resolveBinPath(getWhich().sync(binName, options))
389
+ return resolveBinPathSync(getWhich().sync(binName, options))
358
390
  }
359
391
 
360
392
  module.exports = {
361
393
  execNpm,
362
- isAuditFlag,
363
- isFundFlag,
364
- isLoglevelFlag,
365
- isNodeOptionsFlag,
366
- isProgressFlag,
367
- realExecPathSync,
368
- resolveBinPath,
394
+ isNpmAuditFlag,
395
+ isNpmFundFlag,
396
+ isNpmLoglevelFlag,
397
+ isNpmNodeOptionsFlag,
398
+ isNpmProgressFlag,
399
+ resolveBinPathSync,
369
400
  runBin,
370
- runScript,
401
+ runNpmScript,
371
402
  whichBin,
372
403
  whichBinSync
373
404
  }
@@ -120,6 +120,12 @@ function Spinner(options) {
120
120
  }
121
121
 
122
122
  start(...args) {
123
+ const text = args.at(0)
124
+ // We clear this.text on start when `text` is falsy because yocto-spinner
125
+ // would not clear it otherwise.
126
+ if (typeof text !== 'string' || !text) {
127
+ this.setText('')
128
+ }
123
129
  return this.#apply('start', args)
124
130
  }
125
131
 
@@ -1,13 +1,14 @@
1
1
  'use strict';
2
2
 
3
- var require$$2$1 = require('../../../../blessed/lib/widgets/node');
4
- var require$$0$1 = require('../../../../blessed/lib/widgets/box');
3
+ var require$$2$1 = require('blessed/lib/widgets/node');
4
+ var require$$0$1 = require('blessed/lib/widgets/box');
5
5
 
6
6
  function getAugmentedNamespace(n) {
7
7
  if (Object.prototype.hasOwnProperty.call(n, '__esModule')) return n;
8
8
  var f = n.default;
9
+ var a;
9
10
  if (typeof f == "function") {
10
- var a = function a () {
11
+ a = function a () {
11
12
  var isInstance = false;
12
13
  try {
13
14
  isInstance = this instanceof a;
@@ -1,13 +1,14 @@
1
1
  'use strict';
2
2
 
3
- var require$$0$1 = require('../../../../blessed/lib/widgets/box');
4
- var require$$2$1 = require('../../../../blessed/lib/widgets/node');
3
+ var require$$0$1 = require('blessed/lib/widgets/box');
4
+ var require$$2$1 = require('blessed/lib/widgets/node');
5
5
 
6
6
  function getAugmentedNamespace(n) {
7
7
  if (Object.prototype.hasOwnProperty.call(n, '__esModule')) return n;
8
8
  var f = n.default;
9
+ var a;
9
10
  if (typeof f == "function") {
10
- var a = function a () {
11
+ a = function a () {
11
12
  var isInstance = false;
12
13
  try {
13
14
  isInstance = this instanceof a;
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var require$$0 = require('../../../blessed/lib/widgets/box');
4
- var require$$1 = require('../../../blessed/lib/widgets/list');
5
- var require$$2 = require('../../../blessed/lib/widgets/node');
3
+ var require$$0 = require('blessed/lib/widgets/box');
4
+ var require$$1 = require('blessed/lib/widgets/list');
5
+ var require$$2 = require('blessed/lib/widgets/node');
6
6
 
7
7
  var ansiRegex;
8
8
  var hasRequiredAnsiRegex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@socketsecurity/cli-with-sentry",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "CLI for Socket.dev, includes Sentry error handling, otherwise identical to the regular `socket` package",
5
5
  "homepage": "https://github.com/SocketDev/socket-cli",
6
6
  "license": "MIT",
@@ -78,14 +78,14 @@
78
78
  "update:deps": "npx --yes npm-check-updates"
79
79
  },
80
80
  "devDependencies": {
81
- "@babel/core": "7.27.4",
81
+ "@babel/core": "7.27.7",
82
82
  "@babel/plugin-proposal-export-default-from": "7.27.1",
83
83
  "@babel/plugin-transform-export-namespace-from": "7.27.1",
84
84
  "@babel/plugin-transform-runtime": "7.27.4",
85
85
  "@babel/preset-typescript": "7.27.1",
86
86
  "@babel/runtime": "7.27.6",
87
- "@biomejs/biome": "2.0.5",
88
- "@coana-tech/cli": "14.9.32",
87
+ "@biomejs/biome": "2.0.6",
88
+ "@coana-tech/cli": "14.9.33",
89
89
  "@cyclonedx/cdxgen": "11.4.1",
90
90
  "@dotenvx/dotenvx": "1.45.1",
91
91
  "@eslint/compat": "1.3.1",
@@ -112,8 +112,8 @@
112
112
  "@socketregistry/is-interactive": "1.0.6",
113
113
  "@socketregistry/packageurl-js": "1.0.8",
114
114
  "@socketsecurity/config": "3.0.1",
115
- "@socketsecurity/registry": "1.0.212",
116
- "@socketsecurity/sdk": "1.4.48",
115
+ "@socketsecurity/registry": "1.0.216",
116
+ "@socketsecurity/sdk": "1.4.50",
117
117
  "@types/blessed": "0.1.25",
118
118
  "@types/cmd-shim": "5.0.2",
119
119
  "@types/js-yaml": "4.0.9",
@@ -127,7 +127,7 @@
127
127
  "@types/which": "3.0.4",
128
128
  "@types/yargs-parser": "21.0.3",
129
129
  "@typescript-eslint/parser": "8.35.0",
130
- "@typescript/native-preview": "7.0.0-dev.20250625.1",
130
+ "@typescript/native-preview": "7.0.0-dev.20250627.1",
131
131
  "@vitest/coverage-v8": "3.2.4",
132
132
  "blessed": "0.1.81",
133
133
  "blessed-contrib": "4.11.0",
@@ -138,8 +138,8 @@
138
138
  "del-cli": "6.0.0",
139
139
  "dev-null-cli": "2.0.0",
140
140
  "eslint": "9.29.0",
141
- "eslint-import-resolver-typescript": "4.4.3",
142
- "eslint-plugin-import-x": "4.16.0",
141
+ "eslint-import-resolver-typescript": "4.4.4",
142
+ "eslint-plugin-import-x": "4.16.1",
143
143
  "eslint-plugin-n": "17.20.0",
144
144
  "eslint-plugin-sort-destructure-keys": "2.0.0",
145
145
  "eslint-plugin-unicorn": "56.0.1",
@@ -155,13 +155,12 @@
155
155
  "micromatch": "4.0.8",
156
156
  "mock-fs": "5.5.0",
157
157
  "nock": "14.0.5",
158
- "node-gyp": "11.2.0",
159
158
  "npm-package-arg": "12.0.2",
160
159
  "npm-run-all2": "8.0.4",
161
160
  "open": "10.1.2",
162
161
  "oxlint": "1.3.0",
163
162
  "pony-cause": "2.1.11",
164
- "rollup": "4.44.0",
163
+ "rollup": "4.44.1",
165
164
  "semver": "7.7.2",
166
165
  "synp": "1.9.14",
167
166
  "terminal-link": "2.1.1",
@@ -237,6 +236,6 @@
237
236
  "strict": true
238
237
  },
239
238
  "dependencies": {
240
- "@sentry/node": "9.32.0"
239
+ "@sentry/node": "9.33.0"
241
240
  }
242
241
  }
@@ -1,3 +0,0 @@
1
- {
2
- ".": "11.2.0"
3
- }