@socketsecurity/cli-with-sentry 1.1.46 → 1.1.48
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 +13 -0
- package/dist/cli.js +15 -3
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +4 -4
- package/dist/constants.js.map +1 -1
- package/dist/tsconfig.dts.tsbuildinfo +1 -1
- package/dist/types/commands/fix/cmd-fix.d.mts.map +1 -1
- package/dist/types/commands/fix/coana-fix.d.mts.map +1 -1
- package/dist/types/commands/fix/handle-fix.d.mts +1 -1
- package/dist/types/commands/fix/handle-fix.d.mts.map +1 -1
- package/dist/types/commands/fix/types.d.mts +1 -0
- package/dist/types/commands/fix/types.d.mts.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,19 @@ 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.48](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.48) - 2025-12-16
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
- Updated the Coana CLI to v `14.12.130`.
|
|
11
|
+
|
|
12
|
+
## [1.1.47](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.47) - 2025-12-15
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
- Added `--debug` flag to `socket fix` to enable verbose logging in the Coana CLI.
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
- Updated the Coana CLI to v `14.12.127`.
|
|
19
|
+
|
|
7
20
|
## [1.1.46](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.46) - 2025-12-12
|
|
8
21
|
|
|
9
22
|
### Changed
|
package/dist/cli.js
CHANGED
|
@@ -3756,6 +3756,7 @@ async function coanaFix(fixConfig) {
|
|
|
3756
3756
|
autopilot,
|
|
3757
3757
|
coanaVersion,
|
|
3758
3758
|
cwd,
|
|
3759
|
+
debug,
|
|
3759
3760
|
disableMajorUpdates,
|
|
3760
3761
|
ecosystems,
|
|
3761
3762
|
exclude,
|
|
@@ -3850,7 +3851,7 @@ async function coanaFix(fixConfig) {
|
|
|
3850
3851
|
const tmpDir = os.tmpdir();
|
|
3851
3852
|
const tmpFile = path.join(tmpDir, `socket-fix-${Date.now()}.json`);
|
|
3852
3853
|
try {
|
|
3853
|
-
const fixCResult = await utils.spawnCoanaDlx(['compute-fixes-and-upgrade-purls', cwd, '--manifests-tar-hash', tarHash, '--apply-fixes-to', ...ids, ...(fixConfig.rangeStyle ? ['--range-style', fixConfig.rangeStyle] : []), ...(minimumReleaseAge ? ['--minimum-release-age', minimumReleaseAge] : []), ...(include.length ? ['--include', ...include] : []), ...(exclude.length ? ['--exclude', ...exclude] : []), ...(ecosystems.length ? ['--purl-types', ...ecosystems] : []), ...(!applyFixes ? [constants.FLAG_DRY_RUN] : []), '--output-file', tmpFile, ...(disableMajorUpdates ? ['--disable-major-updates'] : []), ...(showAffectedDirectDependencies ? ['--show-affected-direct-dependencies'] : []), ...fixConfig.unknownFlags], fixConfig.orgSlug, {
|
|
3854
|
+
const fixCResult = await utils.spawnCoanaDlx(['compute-fixes-and-upgrade-purls', cwd, '--manifests-tar-hash', tarHash, '--apply-fixes-to', ...ids, ...(fixConfig.rangeStyle ? ['--range-style', fixConfig.rangeStyle] : []), ...(minimumReleaseAge ? ['--minimum-release-age', minimumReleaseAge] : []), ...(include.length ? ['--include', ...include] : []), ...(exclude.length ? ['--exclude', ...exclude] : []), ...(ecosystems.length ? ['--purl-types', ...ecosystems] : []), ...(!applyFixes ? [constants.FLAG_DRY_RUN] : []), '--output-file', tmpFile, ...(debug ? ['--debug'] : []), ...(disableMajorUpdates ? ['--disable-major-updates'] : []), ...(showAffectedDirectDependencies ? ['--show-affected-direct-dependencies'] : []), ...fixConfig.unknownFlags], fixConfig.orgSlug, {
|
|
3854
3855
|
coanaVersion,
|
|
3855
3856
|
cwd,
|
|
3856
3857
|
spinner,
|
|
@@ -3948,7 +3949,7 @@ async function coanaFix(fixConfig) {
|
|
|
3948
3949
|
|
|
3949
3950
|
// Apply fix for single GHSA ID.
|
|
3950
3951
|
// eslint-disable-next-line no-await-in-loop
|
|
3951
|
-
const fixCResult = await utils.spawnCoanaDlx(['compute-fixes-and-upgrade-purls', cwd, '--manifests-tar-hash', tarHash, '--apply-fixes-to', ghsaId, ...(fixConfig.rangeStyle ? ['--range-style', fixConfig.rangeStyle] : []), ...(minimumReleaseAge ? ['--minimum-release-age', minimumReleaseAge] : []), ...(include.length ? ['--include', ...include] : []), ...(exclude.length ? ['--exclude', ...exclude] : []), ...(ecosystems.length ? ['--purl-types', ...ecosystems] : []), ...(disableMajorUpdates ? ['--disable-major-updates'] : []), ...(showAffectedDirectDependencies ? ['--show-affected-direct-dependencies'] : []), ...fixConfig.unknownFlags], fixConfig.orgSlug, {
|
|
3952
|
+
const fixCResult = await utils.spawnCoanaDlx(['compute-fixes-and-upgrade-purls', cwd, '--manifests-tar-hash', tarHash, '--apply-fixes-to', ghsaId, ...(fixConfig.rangeStyle ? ['--range-style', fixConfig.rangeStyle] : []), ...(minimumReleaseAge ? ['--minimum-release-age', minimumReleaseAge] : []), ...(include.length ? ['--include', ...include] : []), ...(exclude.length ? ['--exclude', ...exclude] : []), ...(ecosystems.length ? ['--purl-types', ...ecosystems] : []), ...(debug ? ['--debug'] : []), ...(disableMajorUpdates ? ['--disable-major-updates'] : []), ...(showAffectedDirectDependencies ? ['--show-affected-direct-dependencies'] : []), ...fixConfig.unknownFlags], fixConfig.orgSlug, {
|
|
3952
3953
|
coanaVersion,
|
|
3953
3954
|
cwd,
|
|
3954
3955
|
spinner,
|
|
@@ -4209,6 +4210,7 @@ async function handleFix({
|
|
|
4209
4210
|
autopilot,
|
|
4210
4211
|
coanaVersion,
|
|
4211
4212
|
cwd,
|
|
4213
|
+
debug,
|
|
4212
4214
|
disableMajorUpdates,
|
|
4213
4215
|
ecosystems,
|
|
4214
4216
|
exclude,
|
|
@@ -4233,6 +4235,7 @@ async function handleFix({
|
|
|
4233
4235
|
autopilot,
|
|
4234
4236
|
coanaVersion,
|
|
4235
4237
|
cwd,
|
|
4238
|
+
debug,
|
|
4236
4239
|
disableMajorUpdates,
|
|
4237
4240
|
ecosystems,
|
|
4238
4241
|
exclude,
|
|
@@ -4254,6 +4257,7 @@ async function handleFix({
|
|
|
4254
4257
|
autopilot,
|
|
4255
4258
|
coanaVersion,
|
|
4256
4259
|
cwd,
|
|
4260
|
+
debug,
|
|
4257
4261
|
disableMajorUpdates,
|
|
4258
4262
|
ecosystems,
|
|
4259
4263
|
exclude,
|
|
@@ -4362,6 +4366,12 @@ Available styles:
|
|
|
4362
4366
|
default: '',
|
|
4363
4367
|
description: 'Set a minimum age requirement for suggested upgrade versions (e.g., 1h, 2d, 3w). A higher age requirement reduces the risk of upgrading to malicious versions. For example, setting the value to 1 week (1w) gives ecosystem maintainers one week to remove potentially malicious versions.'
|
|
4364
4368
|
},
|
|
4369
|
+
debug: {
|
|
4370
|
+
type: 'boolean',
|
|
4371
|
+
default: false,
|
|
4372
|
+
description: 'Enable debug logging in the Coana-based Socket Fix CLI invocation.',
|
|
4373
|
+
shortFlag: 'd'
|
|
4374
|
+
},
|
|
4365
4375
|
ecosystems: {
|
|
4366
4376
|
type: 'string',
|
|
4367
4377
|
default: [],
|
|
@@ -4482,6 +4492,7 @@ async function run$K(argv, importMeta, {
|
|
|
4482
4492
|
all,
|
|
4483
4493
|
applyFixes,
|
|
4484
4494
|
autopilot,
|
|
4495
|
+
debug,
|
|
4485
4496
|
ecosystems,
|
|
4486
4497
|
exclude,
|
|
4487
4498
|
fixVersion,
|
|
@@ -4566,6 +4577,7 @@ async function run$K(argv, importMeta, {
|
|
|
4566
4577
|
autopilot,
|
|
4567
4578
|
coanaVersion: fixVersion,
|
|
4568
4579
|
cwd,
|
|
4580
|
+
debug,
|
|
4569
4581
|
disableMajorUpdates,
|
|
4570
4582
|
ecosystems: validatedEcosystems,
|
|
4571
4583
|
exclude: excludePatterns,
|
|
@@ -15558,5 +15570,5 @@ void (async () => {
|
|
|
15558
15570
|
await utils.captureException(e);
|
|
15559
15571
|
}
|
|
15560
15572
|
})();
|
|
15561
|
-
//# debugId=
|
|
15573
|
+
//# debugId=b69f666d-f56b-4628-89f1-ad39341fe24f
|
|
15562
15574
|
//# sourceMappingURL=cli.js.map
|