@socketsecurity/cli-with-sentry 1.0.7 → 1.0.9
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.
- package/dist/cli.js +135 -109
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +8 -3
- package/dist/constants.js.map +1 -1
- package/dist/shadow-npm-bin.js +5 -5
- package/dist/shadow-npm-bin.js.map +1 -1
- package/dist/socket-completion.bash +23 -7
- package/dist/types/commands/analytics/cmd-analytics.d.mts.map +1 -1
- package/dist/types/commands/audit-log/cmd-audit-log.d.mts.map +1 -1
- package/dist/types/commands/config/cmd-config-auto.d.mts.map +1 -1
- package/dist/types/commands/config/cmd-config-get.d.mts.map +1 -1
- package/dist/types/commands/config/cmd-config-list.d.mts.map +1 -1
- package/dist/types/commands/config/cmd-config-set.d.mts.map +1 -1
- package/dist/types/commands/config/cmd-config-unset.d.mts.map +1 -1
- package/dist/types/commands/fix/agent-fix.d.mts +4 -4
- package/dist/types/commands/fix/agent-fix.d.mts.map +1 -1
- package/dist/types/commands/fix/cmd-fix.d.mts.map +1 -1
- package/dist/types/commands/fix/handle-fix.d.mts +4 -3
- package/dist/types/commands/fix/handle-fix.d.mts.map +1 -1
- package/dist/types/commands/fix/npm-fix.d.mts +2 -2
- package/dist/types/commands/fix/npm-fix.d.mts.map +1 -1
- package/dist/types/commands/fix/pnpm-fix.d.mts +2 -2
- package/dist/types/commands/fix/pnpm-fix.d.mts.map +1 -1
- package/dist/types/commands/install/setup-tab-completion.d.mts.map +1 -1
- package/dist/types/commands/manifest/cmd-manifest-cdxgen.d.mts.map +1 -1
- package/dist/types/commands/npm/cmd-npm.d.mts.map +1 -1
- package/dist/types/commands/npx/cmd-npx.d.mts.map +1 -1
- package/dist/types/commands/organization/cmd-organization-dependencies.d.mts.map +1 -1
- package/dist/types/commands/organization/cmd-organization-list.d.mts.map +1 -1
- package/dist/types/commands/organization/cmd-organization-policy-license.d.mts.map +1 -1
- package/dist/types/commands/organization/cmd-organization-policy-security.d.mts.map +1 -1
- package/dist/types/commands/organization/cmd-organization-quota.d.mts.map +1 -1
- package/dist/types/commands/package/cmd-package-score.d.mts.map +1 -1
- package/dist/types/commands/raw-npm/cmd-raw-npm.d.mts.map +1 -1
- package/dist/types/commands/raw-npx/cmd-raw-npx.d.mts.map +1 -1
- package/dist/types/commands/repository/cmd-repository-create.d.mts.map +1 -1
- package/dist/types/commands/repository/cmd-repository-list.d.mts.map +1 -1
- package/dist/types/commands/repository/cmd-repository-update.d.mts.map +1 -1
- package/dist/types/commands/repository/cmd-repository-view.d.mts.map +1 -1
- package/dist/types/commands/scan/cmd-scan-del.d.mts.map +1 -1
- package/dist/types/commands/scan/cmd-scan-diff.d.mts.map +1 -1
- package/dist/types/commands/scan/cmd-scan-reach.d.mts.map +1 -1
- package/dist/types/commands/scan/handle-scan-reach.d.mts +8 -0
- package/dist/types/commands/scan/handle-scan-reach.d.mts.map +1 -0
- package/dist/types/commands/threat-feed/cmd-threat-feed.d.mts.map +1 -1
- package/dist/types/constants.d.mts.map +1 -1
- package/dist/types/utils/alerts-map.d.mts.map +1 -1
- package/dist/types/utils/api.d.mts.map +1 -1
- package/dist/types/utils/meow-with-subcommands.d.mts +1 -3
- package/dist/types/utils/meow-with-subcommands.d.mts.map +1 -1
- package/dist/utils.js +33 -45
- package/dist/utils.js.map +1 -1
- package/dist/vendor.js +3008 -583
- package/external/@coana-tech/cli/cli.mjs +1 -1
- package/external/@socketsecurity/registry/lib/constants/npm-real-exec-path.js +2 -40
- package/external/@socketsecurity/registry/lib/npm.js +102 -71
- package/external/@socketsecurity/registry/lib/spinner.js +6 -0
- package/external/blessed-contrib/lib/widget/charts/bar.js +4 -3
- package/external/blessed-contrib/lib/widget/charts/line.js +4 -3
- package/external/blessed-contrib/lib/widget/table.js +3 -3
- package/package.json +17 -16
- package/dist/types/commands/scan/handle-reach-scan.d.mts +0 -3
- package/dist/types/commands/scan/handle-reach-scan.d.mts.map +0 -1
- package/external/node-gyp/.release-please-manifest.json +0 -3
- package/external/node-gyp/CHANGELOG.md +0 -1053
- package/external/node-gyp/CODE_OF_CONDUCT.md +0 -4
- package/external/node-gyp/CONTRIBUTING.md +0 -34
- package/external/node-gyp/LICENSE +0 -24
- package/external/node-gyp/README.md +0 -273
- package/external/node-gyp/SECURITY.md +0 -2
- package/external/node-gyp/addon.gypi +0 -204
- package/external/node-gyp/bin/node-gyp.js +0 -137
- package/external/node-gyp/eslint.config.js +0 -3
- package/external/node-gyp/gyp/.release-please-manifest.json +0 -3
- package/external/node-gyp/gyp/LICENSE +0 -28
- package/external/node-gyp/gyp/data/ninja/build.ninja +0 -4
- package/external/node-gyp/gyp/data/win/large-pdb-shim.cc +0 -12
- package/external/node-gyp/gyp/docs/GypVsCMake.md +0 -116
- package/external/node-gyp/gyp/docs/Hacking.md +0 -46
- package/external/node-gyp/gyp/docs/InputFormatReference.md +0 -1083
- package/external/node-gyp/gyp/docs/LanguageSpecification.md +0 -430
- package/external/node-gyp/gyp/docs/README.md +0 -27
- package/external/node-gyp/gyp/docs/Testing.md +0 -450
- package/external/node-gyp/gyp/docs/UserDocumentation.md +0 -965
- package/external/node-gyp/gyp/gyp +0 -8
- package/external/node-gyp/gyp/gyp.bat +0 -5
- package/external/node-gyp/gyp/gyp_main.py +0 -45
- package/external/node-gyp/gyp/pylib/gyp/MSVSNew.py +0 -365
- package/external/node-gyp/gyp/pylib/gyp/MSVSProject.py +0 -206
- package/external/node-gyp/gyp/pylib/gyp/MSVSSettings.py +0 -1272
- package/external/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py +0 -1547
- package/external/node-gyp/gyp/pylib/gyp/MSVSToolFile.py +0 -59
- package/external/node-gyp/gyp/pylib/gyp/MSVSUserFile.py +0 -152
- package/external/node-gyp/gyp/pylib/gyp/MSVSUtil.py +0 -270
- package/external/node-gyp/gyp/pylib/gyp/MSVSVersion.py +0 -574
- package/external/node-gyp/gyp/pylib/gyp/__init__.py +0 -704
- package/external/node-gyp/gyp/pylib/gyp/common.py +0 -709
- package/external/node-gyp/gyp/pylib/gyp/common_test.py +0 -173
- package/external/node-gyp/gyp/pylib/gyp/easy_xml.py +0 -169
- package/external/node-gyp/gyp/pylib/gyp/easy_xml_test.py +0 -113
- package/external/node-gyp/gyp/pylib/gyp/flock_tool.py +0 -55
- package/external/node-gyp/gyp/pylib/gyp/generator/__init__.py +0 -0
- package/external/node-gyp/gyp/pylib/gyp/generator/analyzer.py +0 -805
- package/external/node-gyp/gyp/pylib/gyp/generator/android.py +0 -1172
- package/external/node-gyp/gyp/pylib/gyp/generator/cmake.py +0 -1319
- package/external/node-gyp/gyp/pylib/gyp/generator/compile_commands_json.py +0 -128
- package/external/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py +0 -104
- package/external/node-gyp/gyp/pylib/gyp/generator/eclipse.py +0 -462
- package/external/node-gyp/gyp/pylib/gyp/generator/gypd.py +0 -89
- package/external/node-gyp/gyp/pylib/gyp/generator/gypsh.py +0 -56
- package/external/node-gyp/gyp/pylib/gyp/generator/make.py +0 -2745
- package/external/node-gyp/gyp/pylib/gyp/generator/msvs.py +0 -3976
- package/external/node-gyp/gyp/pylib/gyp/generator/msvs_test.py +0 -44
- package/external/node-gyp/gyp/pylib/gyp/generator/ninja.py +0 -2965
- package/external/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +0 -67
- package/external/node-gyp/gyp/pylib/gyp/generator/xcode.py +0 -1391
- package/external/node-gyp/gyp/pylib/gyp/generator/xcode_test.py +0 -26
- package/external/node-gyp/gyp/pylib/gyp/input.py +0 -3112
- package/external/node-gyp/gyp/pylib/gyp/input_test.py +0 -99
- package/external/node-gyp/gyp/pylib/gyp/mac_tool.py +0 -767
- package/external/node-gyp/gyp/pylib/gyp/msvs_emulation.py +0 -1260
- package/external/node-gyp/gyp/pylib/gyp/ninja_syntax.py +0 -174
- package/external/node-gyp/gyp/pylib/gyp/simple_copy.py +0 -61
- package/external/node-gyp/gyp/pylib/gyp/win_tool.py +0 -373
- package/external/node-gyp/gyp/pylib/gyp/xcode_emulation.py +0 -1939
- package/external/node-gyp/gyp/pylib/gyp/xcode_emulation_test.py +0 -54
- package/external/node-gyp/gyp/pylib/gyp/xcode_ninja.py +0 -303
- package/external/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +0 -3196
- package/external/node-gyp/gyp/pylib/gyp/xml_fix.py +0 -65
- package/external/node-gyp/gyp/pylib/packaging/LICENSE +0 -3
- package/external/node-gyp/gyp/pylib/packaging/LICENSE.APACHE +0 -177
- package/external/node-gyp/gyp/pylib/packaging/LICENSE.BSD +0 -23
- package/external/node-gyp/gyp/pylib/packaging/__init__.py +0 -15
- package/external/node-gyp/gyp/pylib/packaging/_elffile.py +0 -108
- package/external/node-gyp/gyp/pylib/packaging/_manylinux.py +0 -252
- package/external/node-gyp/gyp/pylib/packaging/_musllinux.py +0 -83
- package/external/node-gyp/gyp/pylib/packaging/_parser.py +0 -359
- package/external/node-gyp/gyp/pylib/packaging/_structures.py +0 -61
- package/external/node-gyp/gyp/pylib/packaging/_tokenizer.py +0 -192
- package/external/node-gyp/gyp/pylib/packaging/markers.py +0 -252
- package/external/node-gyp/gyp/pylib/packaging/metadata.py +0 -825
- package/external/node-gyp/gyp/pylib/packaging/py.typed +0 -0
- package/external/node-gyp/gyp/pylib/packaging/requirements.py +0 -90
- package/external/node-gyp/gyp/pylib/packaging/specifiers.py +0 -1030
- package/external/node-gyp/gyp/pylib/packaging/tags.py +0 -553
- package/external/node-gyp/gyp/pylib/packaging/utils.py +0 -172
- package/external/node-gyp/gyp/pylib/packaging/version.py +0 -563
- package/external/node-gyp/gyp/pyproject.toml +0 -115
- package/external/node-gyp/gyp/release-please-config.json +0 -11
- package/external/node-gyp/gyp/test_gyp.py +0 -261
- package/external/node-gyp/lib/Find-VisualStudio.cs +0 -250
- package/external/node-gyp/lib/build.js +0 -230
- package/external/node-gyp/lib/clean.js +0 -15
- package/external/node-gyp/lib/configure.js +0 -328
- package/external/node-gyp/lib/create-config-gypi.js +0 -153
- package/external/node-gyp/lib/download.js +0 -41
- package/external/node-gyp/lib/find-node-directory.js +0 -63
- package/external/node-gyp/lib/find-python.js +0 -310
- package/external/node-gyp/lib/find-visualstudio.js +0 -600
- package/external/node-gyp/lib/install.js +0 -415
- package/external/node-gyp/lib/list.js +0 -26
- package/external/node-gyp/lib/log.js +0 -168
- package/external/node-gyp/lib/node-gyp.js +0 -188
- package/external/node-gyp/lib/process-release.js +0 -148
- package/external/node-gyp/lib/rebuild.js +0 -12
- package/external/node-gyp/lib/remove.js +0 -43
- package/external/node-gyp/lib/util.js +0 -81
- package/external/node-gyp/macOS_Catalina_acid_test.sh +0 -21
- package/external/node-gyp/package.json +0 -52
- package/external/node-gyp/release-please-config.json +0 -40
- package/external/node-gyp/src/win_delay_load_hook.cc +0 -41
|
@@ -221973,7 +221973,7 @@ async function onlineScan(dependencyTree, apiKey, timeout) {
|
|
|
221973
221973
|
}
|
|
221974
221974
|
|
|
221975
221975
|
// dist/version.js
|
|
221976
|
-
var version2 = "14.9.
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
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(
|
|
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
|
|
112
|
+
function isNpmAuditFlag(cmdArg) {
|
|
110
113
|
return auditFlags.has(cmdArg)
|
|
111
114
|
}
|
|
112
115
|
|
|
113
116
|
/*@__NO_SIDE_EFFECTS__*/
|
|
114
|
-
function
|
|
117
|
+
function isNpmFundFlag(cmdArg) {
|
|
115
118
|
return fundFlags.has(cmdArg)
|
|
116
119
|
}
|
|
117
120
|
|
|
118
121
|
/*@__NO_SIDE_EFFECTS__*/
|
|
119
|
-
function
|
|
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
|
|
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
|
|
134
|
+
function isNpmProgressFlag(cmdArg) {
|
|
132
135
|
return progressFlags.has(cmdArg)
|
|
133
136
|
}
|
|
134
137
|
|
|
135
138
|
/*@__NO_SIDE_EFFECTS__*/
|
|
136
|
-
function
|
|
139
|
+
function resolveBinPathSync(binPath) {
|
|
137
140
|
const fs = getFs()
|
|
138
|
-
const
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
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
|
|
183
|
-
|
|
184
|
-
const
|
|
185
|
-
if (
|
|
186
|
-
|
|
187
|
-
const
|
|
188
|
-
|
|
189
|
-
|
|
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
|
|
193
|
-
// https://github.com/npm/cli/blob/v11.2
|
|
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
|
|
201
|
-
// https://github.com/npm/cli/blob/v11.2
|
|
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
|
|
209
|
-
// https://github.com/npm/cli/blob/v11.2
|
|
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
|
-
?
|
|
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
|
|
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
|
|
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
|
|
389
|
+
return resolveBinPathSync(getWhich().sync(binName, options))
|
|
358
390
|
}
|
|
359
391
|
|
|
360
392
|
module.exports = {
|
|
361
393
|
execNpm,
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
resolveBinPath,
|
|
394
|
+
isNpmAuditFlag,
|
|
395
|
+
isNpmFundFlag,
|
|
396
|
+
isNpmLoglevelFlag,
|
|
397
|
+
isNpmNodeOptionsFlag,
|
|
398
|
+
isNpmProgressFlag,
|
|
399
|
+
resolveBinPathSync,
|
|
369
400
|
runBin,
|
|
370
|
-
|
|
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('
|
|
4
|
-
var require$$0$1 = require('
|
|
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
|
-
|
|
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('
|
|
4
|
-
var require$$2$1 = require('
|
|
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
|
-
|
|
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('
|
|
4
|
-
var require$$1 = require('
|
|
5
|
-
var require$$2 = require('
|
|
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.
|
|
3
|
+
"version": "1.0.9",
|
|
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,18 +78,18 @@
|
|
|
78
78
|
"update:deps": "npx --yes npm-check-updates"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
|
-
"@babel/core": "7.27.
|
|
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.
|
|
88
|
-
"@coana-tech/cli": "14.9.
|
|
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",
|
|
92
|
-
"@eslint/js": "9.
|
|
92
|
+
"@eslint/js": "9.30.0",
|
|
93
93
|
"@npmcli/arborist": "9.1.2",
|
|
94
94
|
"@npmcli/config": "10.3.0",
|
|
95
95
|
"@octokit/graphql": "9.0.1",
|
|
@@ -112,14 +112,14 @@
|
|
|
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.
|
|
116
|
-
"@socketsecurity/sdk": "1.4.
|
|
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",
|
|
120
120
|
"@types/micromatch": "4.0.9",
|
|
121
121
|
"@types/mock-fs": "4.13.4",
|
|
122
|
-
"@types/node": "24.0.
|
|
122
|
+
"@types/node": "24.0.7",
|
|
123
123
|
"@types/npmcli__arborist": "6.3.1",
|
|
124
124
|
"@types/npmcli__config": "6.0.3",
|
|
125
125
|
"@types/proc-log": "3.0.4",
|
|
@@ -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.
|
|
130
|
+
"@typescript/native-preview": "7.0.0-dev.20250628.1",
|
|
131
131
|
"@vitest/coverage-v8": "3.2.4",
|
|
132
132
|
"blessed": "0.1.81",
|
|
133
133
|
"blessed-contrib": "4.11.0",
|
|
@@ -137,9 +137,9 @@
|
|
|
137
137
|
"custompatch": "1.1.7",
|
|
138
138
|
"del-cli": "6.0.0",
|
|
139
139
|
"dev-null-cli": "2.0.0",
|
|
140
|
-
"eslint": "9.
|
|
141
|
-
"eslint-import-resolver-typescript": "4.4.
|
|
142
|
-
"eslint-plugin-import-x": "4.16.
|
|
140
|
+
"eslint": "9.30.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",
|
|
@@ -148,20 +148,21 @@
|
|
|
148
148
|
"husky": "9.1.7",
|
|
149
149
|
"ignore": "7.0.5",
|
|
150
150
|
"js-yaml": "npm:@zkochan/js-yaml@0.0.7",
|
|
151
|
-
"knip": "5.61.
|
|
151
|
+
"knip": "5.61.3",
|
|
152
152
|
"lint-staged": "16.1.2",
|
|
153
153
|
"magic-string": "0.30.17",
|
|
154
154
|
"meow": "13.2.0",
|
|
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
|
-
"
|
|
163
|
+
"registry-auth-token": "5.1.0",
|
|
164
|
+
"registry-url": "7.2.0",
|
|
165
|
+
"rollup": "4.44.1",
|
|
165
166
|
"semver": "7.7.2",
|
|
166
167
|
"synp": "1.9.14",
|
|
167
168
|
"terminal-link": "2.1.1",
|
|
@@ -237,6 +238,6 @@
|
|
|
237
238
|
"strict": true
|
|
238
239
|
},
|
|
239
240
|
"dependencies": {
|
|
240
|
-
"@sentry/node": "9.
|
|
241
|
+
"@sentry/node": "9.33.0"
|
|
241
242
|
}
|
|
242
243
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"handle-reach-scan.d.mts","sourceRoot":"","sources":["../../../../src/commands/scan/handle-reach-scan.mts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,wBAAsB,eAAe,CACnC,IAAI,EAAE,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,EAClC,GAAG,EAAE,MAAM,EACX,UAAU,EAAE,UAAU,iBAwBvB"}
|