socket 1.1.143 → 1.1.144
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 +5 -0
- package/dist/cli.js +6 -21
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +3 -3
- package/dist/constants.js.map +1 -1
- package/dist/manifest-scripts/maven-extension/coana-maven-extension.jar +0 -0
- package/dist/tsconfig.dts.tsbuildinfo +1 -1
- package/dist/types/commands/scan/cmd-scan-create.d.mts.map +1 -1
- package/dist/types/commands/scan/cmd-scan-reach.d.mts.map +1 -1
- package/dist/types/commands/scan/reachability-flags.d.mts.map +1 -1
- package/dist/types/utils/ecosystem.d.mts +7 -0
- package/dist/types/utils/ecosystem.d.mts.map +1 -1
- package/dist/utils.js +23 -1
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,11 @@ 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.144](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.144) - 2026-07-23
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
- `--reach-ecosystems` now rejects ecosystems the reachability engine cannot analyze, failing fast at the CLI with a clear message listing the supported ecosystems instead of erroring partway through a scan.
|
|
11
|
+
|
|
7
12
|
## [1.1.143](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.143) - 2026-07-10
|
|
8
13
|
|
|
9
14
|
### Changed
|
package/dist/cli.js
CHANGED
|
@@ -11445,7 +11445,7 @@ const reachabilityFlags = {
|
|
|
11445
11445
|
reachEcosystems: {
|
|
11446
11446
|
type: 'string',
|
|
11447
11447
|
isMultiple: true,
|
|
11448
|
-
description:
|
|
11448
|
+
description: `List of ecosystems to conduct reachability analysis on, as either a comma separated value or as multiple flags. Supported: ${utils.getReachabilityEcosystemChoices().join(', ')}. Defaults to all supported ecosystems.`
|
|
11449
11449
|
},
|
|
11450
11450
|
reachExcludePaths: {
|
|
11451
11451
|
type: 'string',
|
|
@@ -17702,16 +17702,8 @@ async function run$d(argv, importMeta, {
|
|
|
17702
17702
|
tmp
|
|
17703
17703
|
} = cli.flags;
|
|
17704
17704
|
|
|
17705
|
-
// Validate ecosystem values.
|
|
17706
|
-
const reachEcosystems = [];
|
|
17707
|
-
const reachEcosystemsRaw = utils.cmdFlagValueToArray(cli.flags['reachEcosystems']);
|
|
17708
|
-
const validEcosystems = utils.getEcosystemChoicesForMeow();
|
|
17709
|
-
for (const ecosystem of reachEcosystemsRaw) {
|
|
17710
|
-
if (!validEcosystems.includes(ecosystem)) {
|
|
17711
|
-
throw new Error(`Invalid ecosystem: "${ecosystem}". Valid values are: ${arrays.joinAnd(validEcosystems)}`);
|
|
17712
|
-
}
|
|
17713
|
-
reachEcosystems.push(ecosystem);
|
|
17714
|
-
}
|
|
17705
|
+
// Validate ecosystem values against the reachability-supported set.
|
|
17706
|
+
const reachEcosystems = utils.parseReachEcosystems(utils.cmdFlagValueToArray(cli.flags['reachEcosystems']));
|
|
17715
17707
|
const dryRun = !!cli.flags['dryRun'];
|
|
17716
17708
|
let {
|
|
17717
17709
|
autoManifest,
|
|
@@ -19974,15 +19966,8 @@ async function run$7(argv, importMeta, {
|
|
|
19974
19966
|
const reachExcludePaths = utils.cmdFlagValueToArray(cli.flags['reachExcludePaths']);
|
|
19975
19967
|
assertValidExcludePaths(excludePaths);
|
|
19976
19968
|
|
|
19977
|
-
// Validate ecosystem values.
|
|
19978
|
-
const reachEcosystems =
|
|
19979
|
-
const validEcosystems = utils.getEcosystemChoicesForMeow();
|
|
19980
|
-
for (const ecosystem of reachEcosystemsRaw) {
|
|
19981
|
-
if (!validEcosystems.includes(ecosystem)) {
|
|
19982
|
-
throw new Error(`Invalid ecosystem: "${ecosystem}". Valid values are: ${arrays.joinAnd(validEcosystems)}`);
|
|
19983
|
-
}
|
|
19984
|
-
reachEcosystems.push(ecosystem);
|
|
19985
|
-
}
|
|
19969
|
+
// Validate ecosystem values against the reachability-supported set.
|
|
19970
|
+
const reachEcosystems = utils.parseReachEcosystems(reachEcosystemsRaw);
|
|
19986
19971
|
const processCwd = process.cwd();
|
|
19987
19972
|
const cwd = cwdOverride && cwdOverride !== '.' && cwdOverride !== processCwd ? path.resolve(processCwd, cwdOverride) : processCwd;
|
|
19988
19973
|
|
|
@@ -21988,5 +21973,5 @@ process.on('unhandledRejection', async (reason, promise) => {
|
|
|
21988
21973
|
// eslint-disable-next-line n/no-process-exit
|
|
21989
21974
|
process.exit(1);
|
|
21990
21975
|
});
|
|
21991
|
-
//# debugId=
|
|
21976
|
+
//# debugId=43870dc8-4dd6-46d5-b17f-6134bd10c1ad
|
|
21992
21977
|
//# sourceMappingURL=cli.js.map
|