@socketsecurity/cli 1.1.30 → 1.1.31
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 +10 -3
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +3 -3
- package/dist/constants.js.map +1 -1
- package/dist/tsconfig.dts.tsbuildinfo +1 -1
- package/dist/types/commands/fix/git.d.mts.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.31](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.31) - 2025-11-19
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
- Enhanced pull request descriptions to remove duplicate package listings for cleaner, more readable output
|
|
11
|
+
|
|
7
12
|
## [1.1.30](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.30) - 2025-11-18
|
|
8
13
|
|
|
9
14
|
### Changed
|
package/dist/cli.js
CHANGED
|
@@ -3327,6 +3327,13 @@ async function cleanupErrorBranches(branch, cwd, remoteBranchExists) {
|
|
|
3327
3327
|
}
|
|
3328
3328
|
|
|
3329
3329
|
const GITHUB_ADVISORIES_URL = 'https://github.com/advisories';
|
|
3330
|
+
|
|
3331
|
+
/**
|
|
3332
|
+
* Extract unique package names with ecosystems from vulnerability details.
|
|
3333
|
+
*/
|
|
3334
|
+
function getUniquePackages(details) {
|
|
3335
|
+
return [...new Set(details.vulnerabilities.nodes.map(v => `${v.package.name} (${v.package.ecosystem})`))];
|
|
3336
|
+
}
|
|
3330
3337
|
function getSocketFixBranchName(ghsaId) {
|
|
3331
3338
|
return `socket/fix/${ghsaId}`;
|
|
3332
3339
|
}
|
|
@@ -3346,14 +3353,14 @@ function getSocketFixPullRequestBody(ghsaIds, ghsaDetails) {
|
|
|
3346
3353
|
if (!details) {
|
|
3347
3354
|
return body;
|
|
3348
3355
|
}
|
|
3349
|
-
const packages = details
|
|
3356
|
+
const packages = getUniquePackages(details);
|
|
3350
3357
|
return [body, '', '', `**Vulnerability Summary:** ${details.summary}`, '', `**Severity:** ${details.severity}`, '', `**Affected Packages:** ${arrays.joinAnd(packages)}`].join('\n');
|
|
3351
3358
|
}
|
|
3352
3359
|
return [`[Socket](${constants.default.SOCKET_WEBSITE_URL}) fixes for ${vulnCount} GHSAs.`, '', '**Fixed Vulnerabilities:**', ...ghsaIds.map(id => {
|
|
3353
3360
|
const details = ghsaDetails?.get(id);
|
|
3354
3361
|
const item = `- [${id}](${GITHUB_ADVISORIES_URL}/${id})`;
|
|
3355
3362
|
if (details) {
|
|
3356
|
-
const packages = details
|
|
3363
|
+
const packages = getUniquePackages(details);
|
|
3357
3364
|
return `${item} - ${details.summary} (${arrays.joinAnd(packages)})`;
|
|
3358
3365
|
}
|
|
3359
3366
|
return item;
|
|
@@ -15270,5 +15277,5 @@ void (async () => {
|
|
|
15270
15277
|
await utils.captureException(e);
|
|
15271
15278
|
}
|
|
15272
15279
|
})();
|
|
15273
|
-
//# debugId=
|
|
15280
|
+
//# debugId=4f8753fd-5919-4ea2-a850-0b907ec7bd09
|
|
15274
15281
|
//# sourceMappingURL=cli.js.map
|