socket 1.1.21 → 1.1.23
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/CHANGELOG.md +21 -0
- package/README.md +37 -56
- package/dist/cli.js +35 -25
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +6 -3
- package/dist/constants.js.map +1 -1
- package/dist/flags.js +8 -8
- package/dist/flags.js.map +1 -1
- package/dist/npm-cli.js +6 -2
- package/dist/npm-cli.js.map +1 -1
- package/dist/pnpm-cli.js +6 -2
- package/dist/pnpm-cli.js.map +1 -1
- package/dist/shadow-npm-bin2.js +7 -3
- package/dist/shadow-npm-bin2.js.map +1 -1
- package/dist/shadow-pnpm-bin2.js +40 -36
- package/dist/shadow-pnpm-bin2.js.map +1 -1
- package/dist/shadow-yarn-bin.js +14 -7
- package/dist/shadow-yarn-bin.js.map +1 -1
- package/dist/tsconfig.dts.tsbuildinfo +1 -1
- package/dist/types/commands/ci/cmd-ci.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 +2 -2
- package/dist/types/commands/fix/handle-fix.d.mts.map +1 -1
- package/dist/types/commands/fix/types.d.mts +1 -1
- package/dist/types/commands/fix/types.d.mts.map +1 -1
- package/dist/types/commands/scan/suggest_branch_slug.d.mts.map +1 -1
- package/dist/types/constants.d.mts +3 -1
- package/dist/types/constants.d.mts.map +1 -1
- package/dist/types/flags.d.mts.map +1 -1
- package/dist/types/sea/bootstrap.d.mts +2 -0
- package/dist/types/sea/bootstrap.d.mts.map +1 -0
- package/dist/types/sea/build-sea.d.mts +27 -0
- package/dist/types/sea/build-sea.d.mts.map +1 -0
- package/dist/types/shadow/common.d.mts +0 -8
- package/dist/types/shadow/common.d.mts.map +1 -1
- package/dist/types/shadow/npm-base.d.mts.map +1 -1
- package/dist/types/shadow/pnpm/bin.d.mts.map +1 -1
- package/dist/types/shadow/yarn/bin.d.mts.map +1 -1
- package/dist/types/utils/agent.d.mts.map +1 -1
- package/dist/types/utils/cmd.d.mts +25 -4
- package/dist/types/utils/cmd.d.mts.map +1 -1
- package/dist/types/utils/dlx.d.mts.map +1 -1
- package/dist/types/utils/extract-names.d.mts +15 -0
- package/dist/types/utils/extract-names.d.mts.map +1 -0
- package/dist/types/utils/git.d.mts.map +1 -1
- package/dist/types/utils/meow-with-subcommands.d.mts.map +1 -1
- package/dist/utils.js +90 -32
- package/dist/utils.js.map +1 -1
- package/dist/yarn-cli.js +6 -2
- package/dist/yarn-cli.js.map +1 -1
- package/package.json +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,27 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
6
6
|
|
|
7
|
+
## [1.1.23](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.23) - 2025-09-22
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
- Enhanced `--no-apply-fixes` flag naming for improved clarity (previously `--dont-apply-fixes`)
|
|
11
|
+
- Streamlined documentation and help text for better user experience
|
|
12
|
+
- Improved `pnpm dlx` operations by removing unnecessary `--ignore-scripts` flag
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
- Resolved JSON example formatting in usage documentation
|
|
16
|
+
- Enhanced test reliability for cdxgen on Windows platforms
|
|
17
|
+
- Improved error handling in optimize command for pnpm environments
|
|
18
|
+
|
|
19
|
+
## [1.1.22](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.22) - 2025-09-20
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
- Rename `--only-compute` flag to `--dont-apply-fixes` for `socket fix`, but keep old flag as an alias.
|
|
23
|
+
|
|
24
|
+
### Fixed
|
|
25
|
+
- Resolved interactive prompts in `socket optimize` when using pnpm
|
|
26
|
+
- Sanitize extracted git repository names to be compatible with the Socket API.
|
|
27
|
+
|
|
7
28
|
## [1.1.21](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.22) - 2025-09-20
|
|
8
29
|
|
|
9
30
|
### Added
|
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[](https://socket.dev/npm/package/socket)
|
|
4
4
|
[](https://twitter.com/SocketSecurity)
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
CLI for [Socket.dev] security analysis
|
|
7
7
|
|
|
8
8
|
## Usage
|
|
9
9
|
|
|
@@ -14,73 +14,58 @@ socket --help
|
|
|
14
14
|
|
|
15
15
|
## Commands
|
|
16
16
|
|
|
17
|
-
- `socket npm [args...]` and `socket npx [args...]` - Wraps
|
|
18
|
-
integrate [Socket.dev] and preempt installation of alerted packages using the
|
|
19
|
-
builtin resolution of `npm` to precisely determine package installations
|
|
17
|
+
- `socket npm [args...]` and `socket npx [args...]` - Wraps npm/npx with Socket security scanning
|
|
20
18
|
|
|
21
|
-
- `socket
|
|
22
|
-
[`@socketregistry`](https://github.com/SocketDev/socket-registry) overrides
|
|
23
|
-
_(👀 [our blog post](https://socket.dev/blog/introducing-socket-optimize))_
|
|
19
|
+
- `socket fix` - Fix CVEs in dependencies
|
|
24
20
|
|
|
25
|
-
|
|
26
|
-
- `--prod` - Add overrides for only production dependencies
|
|
21
|
+
- `socket optimize` - Optimize dependencies with [`@socketregistry`](https://github.com/SocketDev/socket-registry) overrides
|
|
27
22
|
|
|
28
|
-
- `socket cdxgen [command]` -
|
|
29
|
-
[cdxgen](https://cyclonedx.github.io/cdxgen/#/?id=getting-started). See
|
|
30
|
-
[their documentation](https://cyclonedx.github.io/cdxgen/#/CLI?id=getting-help)
|
|
31
|
-
for commands.
|
|
23
|
+
- `socket cdxgen [command]` - Run [cdxgen](https://cyclonedx.github.io/cdxgen/#/?id=getting-started) for SBOM generation
|
|
32
24
|
|
|
33
25
|
## Aliases
|
|
34
26
|
|
|
35
27
|
All aliases support the flags and arguments of the commands they alias.
|
|
36
28
|
|
|
37
|
-
- `socket ci` -
|
|
29
|
+
- `socket ci` - Alias for `socket scan create --report` (creates report and exits with error if unhealthy)
|
|
38
30
|
|
|
39
31
|
## Flags
|
|
40
32
|
|
|
41
33
|
### Output flags
|
|
42
34
|
|
|
43
|
-
- `--json` -
|
|
44
|
-
- `--markdown` -
|
|
35
|
+
- `--json` - Output as JSON
|
|
36
|
+
- `--markdown` - Output as Markdown
|
|
45
37
|
|
|
46
38
|
### Other flags
|
|
47
39
|
|
|
48
|
-
- `--dry-run` - Run
|
|
49
|
-
- `--debug` -
|
|
50
|
-
- `--help` -
|
|
51
|
-
- `--max-old-space-size` - Set Node
|
|
52
|
-
- `--max-semi-space-size` - Set Node
|
|
53
|
-
- `--version` -
|
|
40
|
+
- `--dry-run` - Run without uploading
|
|
41
|
+
- `--debug` - Show debug output
|
|
42
|
+
- `--help` - Show help
|
|
43
|
+
- `--max-old-space-size` - Set Node.js memory limit
|
|
44
|
+
- `--max-semi-space-size` - Set Node.js heap size
|
|
45
|
+
- `--version` - Show version
|
|
54
46
|
|
|
55
47
|
## Configuration files
|
|
56
48
|
|
|
57
|
-
Socket CLI reads
|
|
58
|
-
|
|
59
|
-
run it in. It supports the version 2 of the `socket.yml` file format and makes
|
|
60
|
-
use of the `projectIgnorePaths` to excludes files when creating a report.
|
|
49
|
+
Socket CLI reads [`socket.yml`](https://docs.socket.dev/docs/socket-yml) configuration files.
|
|
50
|
+
Supports version 2 format with `projectIgnorePaths` for excluding files from reports.
|
|
61
51
|
|
|
62
52
|
## Environment variables
|
|
63
53
|
|
|
64
|
-
- `SOCKET_CLI_API_TOKEN` -
|
|
65
|
-
- `SOCKET_CLI_CONFIG` -
|
|
66
|
-
- `SOCKET_CLI_GITHUB_API_URL` -
|
|
67
|
-
- `SOCKET_CLI_GIT_USER_EMAIL` -
|
|
68
|
-
|
|
69
|
-
- `
|
|
70
|
-
|
|
71
|
-
- `
|
|
72
|
-
|
|
73
|
-
- `
|
|
74
|
-
- `
|
|
75
|
-
- `SOCKET_CLI_ORG_SLUG` - Specify the Socket organization slug<br><br>
|
|
76
|
-
- `SOCKET_CLI_ACCEPT_RISKS` - Accept risks of a Socket wrapped npm/npx run
|
|
77
|
-
- `SOCKET_CLI_VIEW_ALL_RISKS` - View all risks of a Socket wrapped npm/npx run
|
|
54
|
+
- `SOCKET_CLI_API_TOKEN` - Socket API token
|
|
55
|
+
- `SOCKET_CLI_CONFIG` - JSON configuration object
|
|
56
|
+
- `SOCKET_CLI_GITHUB_API_URL` - GitHub API base URL
|
|
57
|
+
- `SOCKET_CLI_GIT_USER_EMAIL` - Git user email (default: `github-actions[bot]@users.noreply.github.com`)
|
|
58
|
+
- `SOCKET_CLI_GIT_USER_NAME` - Git user name (default: `github-actions[bot]`)
|
|
59
|
+
- `SOCKET_CLI_GITHUB_TOKEN` - GitHub token with repo access (alias: `GITHUB_TOKEN`)
|
|
60
|
+
- `SOCKET_CLI_NO_API_TOKEN` - Disable default API token
|
|
61
|
+
- `SOCKET_CLI_NPM_PATH` - Path to npm directory
|
|
62
|
+
- `SOCKET_CLI_ORG_SLUG` - Socket organization slug
|
|
63
|
+
- `SOCKET_CLI_ACCEPT_RISKS` - Accept npm/npx risks
|
|
64
|
+
- `SOCKET_CLI_VIEW_ALL_RISKS` - Show all npm/npx risks
|
|
78
65
|
|
|
79
66
|
## Contributing
|
|
80
67
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
To run locally execute the following commands:
|
|
68
|
+
Run locally:
|
|
84
69
|
|
|
85
70
|
```
|
|
86
71
|
npm install
|
|
@@ -88,23 +73,19 @@ npm run build
|
|
|
88
73
|
npm exec socket
|
|
89
74
|
```
|
|
90
75
|
|
|
91
|
-
###
|
|
76
|
+
### Development environment variables
|
|
92
77
|
|
|
93
|
-
- `SOCKET_CLI_API_BASE_URL` -
|
|
94
|
-
|
|
95
|
-
- `
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
- `SOCKET_CLI_API_TIMEOUT` - Set the timeout in milliseconds for Socket API requests
|
|
99
|
-
- `SOCKET_CLI_DEBUG` - Enable debug logging in Socket CLI
|
|
100
|
-
- `DEBUG` - Enable debug logging based on the [`debug`](https://socket.dev/npm/package/debug) package
|
|
78
|
+
- `SOCKET_CLI_API_BASE_URL` - API base URL (default: `https://api.socket.dev/v0/`)
|
|
79
|
+
- `SOCKET_CLI_API_PROXY` - Proxy for API requests (aliases: `HTTPS_PROXY`, `https_proxy`, `HTTP_PROXY`, `http_proxy`)
|
|
80
|
+
- `SOCKET_CLI_API_TIMEOUT` - API request timeout in milliseconds
|
|
81
|
+
- `SOCKET_CLI_DEBUG` - Enable debug logging
|
|
82
|
+
- `DEBUG` - Enable [`debug`](https://socket.dev/npm/package/debug) package logging
|
|
101
83
|
|
|
102
84
|
## See also
|
|
103
85
|
|
|
104
|
-
- [
|
|
105
|
-
- [Socket
|
|
106
|
-
- [
|
|
107
|
-
- [`@socketsecurity/sdk`](https://github.com/SocketDev/socket-sdk-js) - The SDK used by Socket CLI
|
|
86
|
+
- [Socket API Reference](https://docs.socket.dev/reference)
|
|
87
|
+
- [Socket GitHub App](https://github.com/apps/socket-security)
|
|
88
|
+
- [`@socketsecurity/sdk`](https://github.com/SocketDev/socket-sdk-js)
|
|
108
89
|
|
|
109
90
|
[Socket.dev]: https://socket.dev/
|
|
110
91
|
|
package/dist/cli.js
CHANGED
|
@@ -2378,7 +2378,7 @@ async function handleCi(autoManifest) {
|
|
|
2378
2378
|
|
|
2379
2379
|
const config$k = {
|
|
2380
2380
|
commandName: 'ci',
|
|
2381
|
-
description: '
|
|
2381
|
+
description: 'Alias for `socket scan create --report` (creates report and exits with error if unhealthy)',
|
|
2382
2382
|
hidden: false,
|
|
2383
2383
|
flags: {
|
|
2384
2384
|
...flags.commonFlags,
|
|
@@ -3544,12 +3544,12 @@ async function getFixEnv() {
|
|
|
3544
3544
|
|
|
3545
3545
|
async function coanaFix(fixConfig) {
|
|
3546
3546
|
const {
|
|
3547
|
+
applyFixes,
|
|
3547
3548
|
autopilot,
|
|
3548
3549
|
cwd,
|
|
3549
3550
|
ghsas,
|
|
3550
3551
|
glob,
|
|
3551
3552
|
limit,
|
|
3552
|
-
onlyCompute,
|
|
3553
3553
|
orgSlug,
|
|
3554
3554
|
outputFile,
|
|
3555
3555
|
spinner
|
|
@@ -3594,7 +3594,7 @@ async function coanaFix(fixConfig) {
|
|
|
3594
3594
|
const shouldOpenPrs = fixEnv.isCi && fixEnv.repoInfo;
|
|
3595
3595
|
if (!shouldOpenPrs) {
|
|
3596
3596
|
// Inform user about local mode when fixes will be applied.
|
|
3597
|
-
if (
|
|
3597
|
+
if (applyFixes && ghsas.length) {
|
|
3598
3598
|
const envCheck = checkCiEnvVars();
|
|
3599
3599
|
if (envCheck.present.length) {
|
|
3600
3600
|
// Some CI vars are set but not all - show what's missing.
|
|
@@ -3616,7 +3616,7 @@ async function coanaFix(fixConfig) {
|
|
|
3616
3616
|
}
|
|
3617
3617
|
};
|
|
3618
3618
|
}
|
|
3619
|
-
const fixCResult = await utils.spawnCoanaDlx(['compute-fixes-and-upgrade-purls', cwd, '--manifests-tar-hash', tarHash, '--apply-fixes-to', ...(isAll ? ['all'] : ghsas), ...(fixConfig.rangeStyle ? ['--range-style', fixConfig.rangeStyle] : []), ...(glob ? ['--glob', glob] : []), ...(
|
|
3619
|
+
const fixCResult = await utils.spawnCoanaDlx(['compute-fixes-and-upgrade-purls', cwd, '--manifests-tar-hash', tarHash, '--apply-fixes-to', ...(isAll ? ['all'] : ghsas), ...(fixConfig.rangeStyle ? ['--range-style', fixConfig.rangeStyle] : []), ...(glob ? ['--glob', glob] : []), ...(!applyFixes ? [constants.FLAG_DRY_RUN] : []), ...(outputFile ? ['--output-file', outputFile] : []), ...fixConfig.unknownFlags], fixConfig.orgSlug, {
|
|
3620
3620
|
cwd,
|
|
3621
3621
|
spinner,
|
|
3622
3622
|
stdio: 'inherit'
|
|
@@ -3903,13 +3903,13 @@ async function convertIdsToGhsas(ids) {
|
|
|
3903
3903
|
return validGhsas;
|
|
3904
3904
|
}
|
|
3905
3905
|
async function handleFix({
|
|
3906
|
+
applyFixes,
|
|
3906
3907
|
autopilot,
|
|
3907
3908
|
cwd,
|
|
3908
3909
|
ghsas,
|
|
3909
3910
|
glob,
|
|
3910
3911
|
limit,
|
|
3911
3912
|
minSatisfying,
|
|
3912
|
-
onlyCompute,
|
|
3913
3913
|
orgSlug,
|
|
3914
3914
|
outputFile,
|
|
3915
3915
|
outputKind,
|
|
@@ -3926,7 +3926,7 @@ async function handleFix({
|
|
|
3926
3926
|
glob,
|
|
3927
3927
|
limit,
|
|
3928
3928
|
minSatisfying,
|
|
3929
|
-
|
|
3929
|
+
applyFixes,
|
|
3930
3930
|
outputFile,
|
|
3931
3931
|
outputKind,
|
|
3932
3932
|
prCheck,
|
|
@@ -3935,6 +3935,7 @@ async function handleFix({
|
|
|
3935
3935
|
});
|
|
3936
3936
|
await outputFixResult(await coanaFix({
|
|
3937
3937
|
autopilot,
|
|
3938
|
+
applyFixes,
|
|
3938
3939
|
cwd,
|
|
3939
3940
|
// Convert mixed CVE/GHSA/PURL inputs to GHSA IDs only
|
|
3940
3941
|
ghsas: await convertIdsToGhsas(ghsas),
|
|
@@ -3944,14 +3945,13 @@ async function handleFix({
|
|
|
3944
3945
|
rangeStyle,
|
|
3945
3946
|
spinner,
|
|
3946
3947
|
unknownFlags,
|
|
3947
|
-
onlyCompute,
|
|
3948
3948
|
outputFile
|
|
3949
3949
|
}), outputKind);
|
|
3950
3950
|
}
|
|
3951
3951
|
|
|
3952
3952
|
const CMD_NAME$t = 'fix';
|
|
3953
3953
|
const DEFAULT_LIMIT = 10;
|
|
3954
|
-
const description$z = '
|
|
3954
|
+
const description$z = 'Fix CVEs in dependencies';
|
|
3955
3955
|
const hidden$s = false;
|
|
3956
3956
|
const cmdFix = {
|
|
3957
3957
|
description: description$z,
|
|
@@ -3964,6 +3964,14 @@ const generalFlags$2 = {
|
|
|
3964
3964
|
default: false,
|
|
3965
3965
|
description: `Enable auto-merge for pull requests that Socket opens.\nSee ${vendor.terminalLinkExports('GitHub documentation', 'https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-auto-merge-for-pull-requests-in-your-repository')} for managing auto-merge for pull requests in your repository.`
|
|
3966
3966
|
},
|
|
3967
|
+
applyFixes: {
|
|
3968
|
+
aliases: ['onlyCompute'],
|
|
3969
|
+
type: 'boolean',
|
|
3970
|
+
default: true,
|
|
3971
|
+
description: 'Compute fixes only, do not apply them. Logs what upgrades would be applied. If combined with --output-file, the output file will contain the upgrades that would be applied.',
|
|
3972
|
+
// Hidden to allow custom documenting of the negated `--no-apply-fixes` variant.
|
|
3973
|
+
hidden: true
|
|
3974
|
+
},
|
|
3967
3975
|
id: {
|
|
3968
3976
|
type: 'string',
|
|
3969
3977
|
default: [],
|
|
@@ -3989,11 +3997,6 @@ Available styles:
|
|
|
3989
3997
|
* preserve - Retain the existing version range style as-is
|
|
3990
3998
|
`.trim()
|
|
3991
3999
|
},
|
|
3992
|
-
onlyCompute: {
|
|
3993
|
-
type: 'boolean',
|
|
3994
|
-
default: false,
|
|
3995
|
-
description: 'Compute fixes only, do not apply them. Logs what upgrades would be applied. If combined with --output-file, the output file will contain the upgrades that would be applied.'
|
|
3996
|
-
},
|
|
3997
4000
|
outputFile: {
|
|
3998
4001
|
type: 'string',
|
|
3999
4002
|
default: '',
|
|
@@ -4075,7 +4078,14 @@ async function run$K(argv, importMeta, {
|
|
|
4075
4078
|
${utils.getFlagApiRequirementsOutput(`${parentName}:${CMD_NAME$t}`)}
|
|
4076
4079
|
|
|
4077
4080
|
Options
|
|
4078
|
-
${utils.getFlagListOutput(
|
|
4081
|
+
${utils.getFlagListOutput({
|
|
4082
|
+
...config.flags,
|
|
4083
|
+
// Explicitly document the negated --no-apply-fixes variant.
|
|
4084
|
+
noApplyFixes: {
|
|
4085
|
+
...config.flags['applyFixes'],
|
|
4086
|
+
hidden: false
|
|
4087
|
+
}
|
|
4088
|
+
})}
|
|
4079
4089
|
|
|
4080
4090
|
Environment Variables (for CI/PR mode)
|
|
4081
4091
|
CI Set to enable CI mode
|
|
@@ -4098,13 +4108,13 @@ async function run$K(argv, importMeta, {
|
|
|
4098
4108
|
allowUnknownFlags: false
|
|
4099
4109
|
});
|
|
4100
4110
|
const {
|
|
4111
|
+
applyFixes,
|
|
4101
4112
|
autopilot,
|
|
4102
4113
|
glob,
|
|
4103
4114
|
json,
|
|
4104
4115
|
limit,
|
|
4105
4116
|
markdown,
|
|
4106
4117
|
maxSatisfying,
|
|
4107
|
-
onlyCompute,
|
|
4108
4118
|
outputFile,
|
|
4109
4119
|
prCheck,
|
|
4110
4120
|
rangeStyle,
|
|
@@ -4149,6 +4159,7 @@ async function run$K(argv, importMeta, {
|
|
|
4149
4159
|
const ghsas = arrays.arrayUnique([...utils.cmdFlagValueToArray(cli.flags['id']), ...utils.cmdFlagValueToArray(cli.flags['ghsa']), ...utils.cmdFlagValueToArray(cli.flags['purl'])]);
|
|
4150
4160
|
await handleFix({
|
|
4151
4161
|
autopilot,
|
|
4162
|
+
applyFixes,
|
|
4152
4163
|
cwd,
|
|
4153
4164
|
ghsas,
|
|
4154
4165
|
glob,
|
|
@@ -4160,7 +4171,6 @@ async function run$K(argv, importMeta, {
|
|
|
4160
4171
|
rangeStyle,
|
|
4161
4172
|
spinner,
|
|
4162
4173
|
unknownFlags,
|
|
4163
|
-
onlyCompute,
|
|
4164
4174
|
outputFile
|
|
4165
4175
|
});
|
|
4166
4176
|
}
|
|
@@ -4361,7 +4371,7 @@ const cmdInstall = {
|
|
|
4361
4371
|
async function outputCmdJson(cwd) {
|
|
4362
4372
|
logger.logger.info('Target cwd:', constants.default.ENV.VITEST ? constants.REDACTED : utils.tildify(cwd));
|
|
4363
4373
|
const sockJsonPath = path.join(cwd, constants.SOCKET_JSON);
|
|
4364
|
-
const tildeSockJsonPath = constants.default.ENV.VITEST ?
|
|
4374
|
+
const tildeSockJsonPath = constants.default.ENV.VITEST ? constants.REDACTED : utils.tildify(sockJsonPath);
|
|
4365
4375
|
if (!fs$1.existsSync(sockJsonPath)) {
|
|
4366
4376
|
logger.logger.fail(`Not found: ${tildeSockJsonPath}`);
|
|
4367
4377
|
process.exitCode = 1;
|
|
@@ -4987,7 +4997,7 @@ const yargsConfig = {
|
|
|
4987
4997
|
};
|
|
4988
4998
|
const config$e = {
|
|
4989
4999
|
commandName: 'cdxgen',
|
|
4990
|
-
description: '
|
|
5000
|
+
description: 'Run cdxgen for SBOM generation',
|
|
4991
5001
|
hidden: false,
|
|
4992
5002
|
// Stub out flags and help.
|
|
4993
5003
|
// TODO: Convert yargs to meow.
|
|
@@ -6335,7 +6345,7 @@ async function run$y(argv, importMeta, {
|
|
|
6335
6345
|
|
|
6336
6346
|
const require$5 = require$$5.createRequire((typeof document === 'undefined' ? require$$0.pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('cli.js', document.baseURI).href)));
|
|
6337
6347
|
const CMD_NAME$r = constants.NPM;
|
|
6338
|
-
const description$w = '
|
|
6348
|
+
const description$w = 'Wraps npm with Socket security scanning';
|
|
6339
6349
|
const hidden$q = false;
|
|
6340
6350
|
const cmdNpm = {
|
|
6341
6351
|
description: description$w,
|
|
@@ -6413,7 +6423,7 @@ async function run$x(argv, importMeta, context) {
|
|
|
6413
6423
|
|
|
6414
6424
|
const require$4 = require$$5.createRequire((typeof document === 'undefined' ? require$$0.pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('cli.js', document.baseURI).href)));
|
|
6415
6425
|
const CMD_NAME$q = constants.NPX;
|
|
6416
|
-
const description$v = '
|
|
6426
|
+
const description$v = 'Wraps npx with Socket security scanning';
|
|
6417
6427
|
const hidden$p = false;
|
|
6418
6428
|
const cmdNpx = {
|
|
6419
6429
|
description: description$v,
|
|
@@ -7485,12 +7495,12 @@ async function run$u(argv, importMeta, {
|
|
|
7485
7495
|
pin: {
|
|
7486
7496
|
type: 'boolean',
|
|
7487
7497
|
default: false,
|
|
7488
|
-
description: 'Pin overrides to
|
|
7498
|
+
description: 'Pin overrides to latest version'
|
|
7489
7499
|
},
|
|
7490
7500
|
prod: {
|
|
7491
7501
|
type: 'boolean',
|
|
7492
7502
|
default: false,
|
|
7493
|
-
description: '
|
|
7503
|
+
description: 'Add overrides for production dependencies only'
|
|
7494
7504
|
}
|
|
7495
7505
|
},
|
|
7496
7506
|
help: (command, config) => `
|
|
@@ -9526,7 +9536,7 @@ async function run$m(argv, importMeta, {
|
|
|
9526
9536
|
|
|
9527
9537
|
const require$3 = require$$5.createRequire((typeof document === 'undefined' ? require$$0.pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('cli.js', document.baseURI).href)));
|
|
9528
9538
|
const CMD_NAME$g = constants.PNPM;
|
|
9529
|
-
const description$j = '
|
|
9539
|
+
const description$j = 'Wraps pnpm with Socket security scanning';
|
|
9530
9540
|
const hidden$g = true;
|
|
9531
9541
|
const cmdPnpm = {
|
|
9532
9542
|
description: description$j,
|
|
@@ -14687,7 +14697,7 @@ async function run$1(argv, importMeta, {
|
|
|
14687
14697
|
|
|
14688
14698
|
const require$1 = require$$5.createRequire((typeof document === 'undefined' ? require$$0.pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('cli.js', document.baseURI).href)));
|
|
14689
14699
|
const CMD_NAME = constants.YARN;
|
|
14690
|
-
const description = '
|
|
14700
|
+
const description = 'Wraps yarn with Socket security scanning';
|
|
14691
14701
|
const hidden = true;
|
|
14692
14702
|
const cmdYarn = {
|
|
14693
14703
|
description,
|
|
@@ -14944,5 +14954,5 @@ void (async () => {
|
|
|
14944
14954
|
await utils.captureException(e);
|
|
14945
14955
|
}
|
|
14946
14956
|
})();
|
|
14947
|
-
//# debugId=
|
|
14957
|
+
//# debugId=7d7feb5c-caaa-4477-9563-76861e408418
|
|
14948
14958
|
//# sourceMappingURL=cli.js.map
|