@socketsecurity/cli-with-sentry 1.0.8 → 1.0.10
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 +130 -115
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +3 -3
- package/dist/constants.js.map +1 -1
- package/dist/shadow-npm-bin.js +4 -3
- package/dist/shadow-npm-bin.js.map +1 -1
- 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/git.d.mts.map +1 -1
- package/dist/types/commands/fix/handle-fix.d.mts +3 -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/optimize/ls-by-agent.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/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/shadow/npm/bin.d.mts.map +1 -1
- package/dist/types/utils/coana.d.mts.map +1 -1
- package/dist/types/utils/meow-with-subcommands.d.mts +1 -2
- package/dist/types/utils/meow-with-subcommands.d.mts.map +1 -1
- package/dist/types/utils/package-environment.d.mts.map +1 -1
- package/dist/utils.js +9 -9
- package/dist/utils.js.map +1 -1
- package/dist/vendor.js +3329 -906
- package/external/@socketsecurity/registry/external/@inquirer/confirm.js +60 -21
- package/external/@socketsecurity/registry/external/@inquirer/input.js +60 -21
- package/external/@socketsecurity/registry/external/@inquirer/password.js +60 -21
- package/external/@socketsecurity/registry/external/@inquirer/search.js +61 -22
- package/external/@socketsecurity/registry/external/@inquirer/select.js +61 -22
- package/external/@socketsecurity/registry/external/ansi-regex.js +13 -0
- package/external/@socketsecurity/registry/external/libnpmpack.js +137 -146
- package/external/@socketsecurity/registry/external/make-fetch-happen.js +85 -94
- package/external/@socketsecurity/registry/external/normalize-package-data.js +17 -404
- package/external/@socketsecurity/registry/external/pacote.js +124 -133
- package/external/@socketsecurity/registry/lib/strings.js +16 -0
- package/external/blessed-contrib/lib/widget/table.js +47 -12
- package/package.json +10 -7
- 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/dist/utils.js
CHANGED
|
@@ -1339,7 +1339,6 @@ ${isRootCommand ? ` $ ${name} scan create --json` : ''}${isRootCommand ? `\
|
|
|
1339
1339
|
*/
|
|
1340
1340
|
function meowOrExit({
|
|
1341
1341
|
argv,
|
|
1342
|
-
collectUnknownFlags = true,
|
|
1343
1342
|
config,
|
|
1344
1343
|
importMeta,
|
|
1345
1344
|
parentName
|
|
@@ -1353,7 +1352,7 @@ function meowOrExit({
|
|
|
1353
1352
|
// meow will exit(0) before printing the banner.
|
|
1354
1353
|
booleanDefault: undefined,
|
|
1355
1354
|
// We want to detect whether a bool flag is given at all.
|
|
1356
|
-
collectUnknownFlags,
|
|
1355
|
+
collectUnknownFlags: true,
|
|
1357
1356
|
description: config.description,
|
|
1358
1357
|
flags: config.flags,
|
|
1359
1358
|
help: config.help(command, config),
|
|
@@ -2819,10 +2818,11 @@ async function spawnCoana(args, options, extra) {
|
|
|
2819
2818
|
}, extra);
|
|
2820
2819
|
return {
|
|
2821
2820
|
ok: true,
|
|
2822
|
-
data: output.stdout.trim()
|
|
2821
|
+
data: strings.stripAnsi(output.stdout.trim())
|
|
2823
2822
|
};
|
|
2824
2823
|
} catch (e) {
|
|
2825
|
-
const
|
|
2824
|
+
const stderr = e?.stderr;
|
|
2825
|
+
const message = stderr ? strings.stripAnsi(stderr.trim()) : e?.message;
|
|
2826
2826
|
return {
|
|
2827
2827
|
ok: false,
|
|
2828
2828
|
data: e,
|
|
@@ -2873,11 +2873,11 @@ const readLockFileByAgent = (() => {
|
|
|
2873
2873
|
// To print a Yarn lockfile to your console without writing it to disk
|
|
2874
2874
|
// use `bun bun.lockb`.
|
|
2875
2875
|
// https://bun.sh/guides/install/yarnlock
|
|
2876
|
-
return (await spawn.spawn(agentExecPath, [lockPath], {
|
|
2876
|
+
return strings.stripAnsi((await spawn.spawn(agentExecPath, [lockPath], {
|
|
2877
2877
|
cwd,
|
|
2878
2878
|
// Lazily access constants.WIN32.
|
|
2879
2879
|
shell: constants.WIN32
|
|
2880
|
-
})).stdout.trim();
|
|
2880
|
+
})).stdout.trim());
|
|
2881
2881
|
}
|
|
2882
2882
|
return undefined;
|
|
2883
2883
|
})], [NPM, defaultReader], [PNPM, defaultReader], [VLT, defaultReader], [YARN_BERRY, defaultReader], [YARN_CLASSIC, defaultReader]]);
|
|
@@ -2923,11 +2923,11 @@ async function getAgentVersion(agentExecPath, cwd) {
|
|
|
2923
2923
|
// and tildes (~).
|
|
2924
2924
|
vendor.semverExports.coerce(
|
|
2925
2925
|
// All package managers support the "--version" flag.
|
|
2926
|
-
(await spawn.spawn(agentExecPath, ['--version'], {
|
|
2926
|
+
strings.stripAnsi((await spawn.spawn(agentExecPath, ['--version'], {
|
|
2927
2927
|
cwd,
|
|
2928
2928
|
// Lazily access constants.WIN32.
|
|
2929
2929
|
shell: constants.WIN32
|
|
2930
|
-
})).stdout.trim()) ?? undefined;
|
|
2930
|
+
})).stdout.trim())) ?? undefined;
|
|
2931
2931
|
} catch (e) {
|
|
2932
2932
|
debug.debugFn('catch: unexpected\n', e);
|
|
2933
2933
|
}
|
|
@@ -3296,5 +3296,5 @@ exports.tildify = tildify;
|
|
|
3296
3296
|
exports.updateConfigValue = updateConfigValue;
|
|
3297
3297
|
exports.walkNestedMap = walkNestedMap;
|
|
3298
3298
|
exports.writeSocketJson = writeSocketJson;
|
|
3299
|
-
//# debugId=
|
|
3299
|
+
//# debugId=8f15309d-d08e-48ed-be22-b7f674429aeb
|
|
3300
3300
|
//# sourceMappingURL=utils.js.map
|