@socketsecurity/cli-with-sentry 1.0.6 → 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.
- package/dist/cli.js +55 -34
- 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/shadow-npm-inject.js.map +1 -1
- package/dist/socket-completion.bash +23 -7
- package/dist/types/commands/fix/cmd-fix.d.mts.map +1 -1
- package/dist/types/commands/fix/handle-fix.d.mts +2 -1
- package/dist/types/commands/fix/handle-fix.d.mts.map +1 -1
- package/dist/types/commands/fix/npm-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/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/constants.d.mts.map +1 -1
- package/dist/types/shadow/npm/arborist/types.d.mts +5 -1
- package/dist/types/shadow/npm/arborist/types.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 +2 -3
- package/dist/types/utils/meow-with-subcommands.d.mts.map +1 -1
- package/dist/utils.js +34 -45
- package/dist/utils.js.map +1 -1
- package/dist/vendor.js +27 -24
- 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 +11 -12
- 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
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
|
|
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
|
-
|
|
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.
|
|
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.
|
|
32994
|
+
"@socketsecurity/registry": "1.0.215"
|
|
32986
32995
|
};
|
|
32987
32996
|
var devDependencies = {
|
|
32988
|
-
"@biomejs/biome": "2.0.
|
|
32997
|
+
"@biomejs/biome": "2.0.5",
|
|
32989
32998
|
"@dotenvx/dotenvx": "1.45.1",
|
|
32990
|
-
"@eslint/compat": "1.3.
|
|
32999
|
+
"@eslint/compat": "1.3.1",
|
|
32991
33000
|
"@eslint/js": "9.29.0",
|
|
32992
|
-
"@types/node": "24.0.
|
|
32993
|
-
"@typescript-eslint/parser": "8.
|
|
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.
|
|
32998
|
-
"eslint-plugin-import-x": "4.
|
|
32999
|
-
"eslint-plugin-jsdoc": "51.2.
|
|
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.
|
|
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
|
|
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 =
|
|
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
|
|
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
|
-
|
|
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 =
|
|
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=
|
|
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.
|
|
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.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.
|
|
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",
|
|
@@ -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.
|
|
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",
|
|
@@ -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.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.
|
|
142
|
-
"eslint-plugin-import-x": "4.16.
|
|
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.
|
|
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.
|
|
239
|
+
"@sentry/node": "9.33.0"
|
|
241
240
|
}
|
|
242
241
|
}
|