@socketsecurity/cli 1.3.0 → 1.4.0
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/README.md +5 -5
- package/dist/cli.js +12 -12
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +4 -4
- 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/manifest/scripts/assemble.d.mts.map +1 -1
- package/dist/types/commands/manifest/scripts/facts.d.mts +2 -0
- package/dist/types/commands/manifest/scripts/facts.d.mts.map +1 -1
- package/package.json +2 -2
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.4.0](https://github.com/SocketDev/socket-cli/releases/tag/v1.4.0) - 2026-09-29
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
- Updated the Coana CLI to v `15.11.4`.
|
|
11
|
+
|
|
7
12
|
## [1.3.0](https://github.com/SocketDev/socket-cli/releases/tag/v1.3.0) - 2026-09-29
|
|
8
13
|
|
|
9
14
|
### Added
|
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Socket CLI
|
|
2
2
|
|
|
3
3
|
[](https://socket.dev/npm/package/socket)
|
|
4
|
-
[](https://twitter.com/SocketSecurity)
|
|
5
|
+
[](https://bsky.app/profile/socket.dev)
|
|
6
6
|
|
|
7
7
|
CLI for [Socket.dev](https://socket.dev) — scan dependencies, audit packages, apply security patches, and gate installs from your terminal or CI. This is the 1.x line of the published `socket` package on npm.
|
|
8
8
|
|
|
@@ -171,8 +171,8 @@ MIT
|
|
|
171
171
|
<br/>
|
|
172
172
|
<div align="center">
|
|
173
173
|
<picture>
|
|
174
|
-
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/SocketDev/socket-cli/v1.
|
|
175
|
-
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/SocketDev/socket-cli/v1.
|
|
176
|
-
<img width="324" height="104" alt="Socket" src="https://raw.githubusercontent.com/SocketDev/socket-cli/v1.
|
|
174
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/SocketDev/socket-cli/v1.4.0/assets/fleet/socket-combomark-dark.svg">
|
|
175
|
+
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/SocketDev/socket-cli/v1.4.0/assets/fleet/socket-combomark-light.svg">
|
|
176
|
+
<img width="324" height="104" alt="Socket" src="https://raw.githubusercontent.com/SocketDev/socket-cli/v1.4.0/assets/fleet/socket-combomark-light.svg">
|
|
177
177
|
</picture>
|
|
178
178
|
</div>
|
package/dist/cli.js
CHANGED
|
@@ -2693,7 +2693,11 @@ function assembleFacts(parsed, opts = {}) {
|
|
|
2693
2693
|
finalNodes
|
|
2694
2694
|
} = mergeByCoordinate(perRoot);
|
|
2695
2695
|
const tool = parsed.tool || 'gradle';
|
|
2696
|
-
const
|
|
2696
|
+
const projectsByGav = new Map();
|
|
2697
|
+
for (const p of parsed.projects.values()) {
|
|
2698
|
+
projectsByGav.set(gav(p.group, p.name, p.version), p);
|
|
2699
|
+
}
|
|
2700
|
+
const components = buildComponents(finalNodes, projectsByGav);
|
|
2697
2701
|
const projects = opts.emitProjects === false ? [] : buildProjects(parsed, directByRoot, perRoot);
|
|
2698
2702
|
const metadata = {
|
|
2699
2703
|
format: 'socket-facts-sbom',
|
|
@@ -2714,7 +2718,7 @@ function assembleFacts(parsed, opts = {}) {
|
|
|
2714
2718
|
return {
|
|
2715
2719
|
facts,
|
|
2716
2720
|
report: buildReport(parsed),
|
|
2717
|
-
artifactPaths: buildArtifactPaths(finalNodes, [...parsed.projects.values()], perRoot, fileExists)
|
|
2721
|
+
artifactPaths: buildArtifactPaths(finalNodes, [...parsed.projects.values()], projectsByGav, perRoot, fileExists)
|
|
2718
2722
|
};
|
|
2719
2723
|
}
|
|
2720
2724
|
function gav(group, name, version) {
|
|
@@ -2802,7 +2806,7 @@ function mergeByCoordinate(perRoot) {
|
|
|
2802
2806
|
directByRoot
|
|
2803
2807
|
};
|
|
2804
2808
|
}
|
|
2805
|
-
function buildComponents(finalNodes) {
|
|
2809
|
+
function buildComponents(finalNodes, projectsByGav) {
|
|
2806
2810
|
return [...finalNodes.keys()].sort().map(id => {
|
|
2807
2811
|
const fn = finalNodes.get(id);
|
|
2808
2812
|
const c = fn.coord;
|
|
@@ -2833,6 +2837,9 @@ function buildComponents(finalNodes) {
|
|
|
2833
2837
|
if (!fn.prod) {
|
|
2834
2838
|
comp.dev = true;
|
|
2835
2839
|
}
|
|
2840
|
+
if (projectsByGav.has(gav(c.group, c.name, c.version ?? ''))) {
|
|
2841
|
+
comp.firstParty = true;
|
|
2842
|
+
}
|
|
2836
2843
|
if (fn.children.size) {
|
|
2837
2844
|
comp.dependencies = [...fn.children].sort();
|
|
2838
2845
|
}
|
|
@@ -2923,14 +2930,7 @@ function buildClasspathByProject(projects, perRoot) {
|
|
|
2923
2930
|
1: ids
|
|
2924
2931
|
}) => [key, [...ids].sort()]));
|
|
2925
2932
|
}
|
|
2926
|
-
function buildArtifactPaths(finalNodes, projects, perRoot, fileExists) {
|
|
2927
|
-
const projectsByGav = new Map();
|
|
2928
|
-
for (const p of projects) {
|
|
2929
|
-
projectsByGav.set(gav(p.group, p.name, p.version), {
|
|
2930
|
-
sources: p.sources,
|
|
2931
|
-
targets: p.targets
|
|
2932
|
-
});
|
|
2933
|
-
}
|
|
2933
|
+
function buildArtifactPaths(finalNodes, projects, projectsByGav, perRoot, fileExists) {
|
|
2934
2934
|
const targetsByCoord = new Map();
|
|
2935
2935
|
const targetsByGav = new Map();
|
|
2936
2936
|
const sourcesByCoord = new Map();
|
|
@@ -24406,5 +24406,5 @@ process.on('unhandledRejection', async (reason, promise) => {
|
|
|
24406
24406
|
// eslint-disable-next-line n/no-process-exit
|
|
24407
24407
|
process.exit(1);
|
|
24408
24408
|
});
|
|
24409
|
-
//# debugId=
|
|
24409
|
+
//# debugId=df6cd218-d465-449e-b81a-890e662d0baf
|
|
24410
24410
|
//# sourceMappingURL=cli.js.map
|