@socketsecurity/cli-with-sentry 1.1.49 → 1.1.50
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/bin/npm-cli.js +1 -1
- package/bin/npx-cli.js +2 -2
- package/dist/cli.js +5 -1
- 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/scan/output-scan-report.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.1.50](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.50) - 2025-12-19
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
- Fixed exit code when blocking alerts are found
|
|
11
|
+
|
|
7
12
|
## [1.1.49](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.49) - 2025-12-17
|
|
8
13
|
|
|
9
14
|
### Added
|
package/bin/npm-cli.js
CHANGED
package/bin/npx-cli.js
CHANGED
|
@@ -7,11 +7,11 @@ void (async () => {
|
|
|
7
7
|
const rootPath = path.join(__dirname, '..')
|
|
8
8
|
Module.enableCompileCache?.(path.join(rootPath, '.cache'))
|
|
9
9
|
|
|
10
|
-
const
|
|
10
|
+
const shadowNpxBin = require(path.join(rootPath, 'dist/shadow-npx-bin.js'))
|
|
11
11
|
|
|
12
12
|
process.exitCode = 1
|
|
13
13
|
|
|
14
|
-
const { spawnPromise } = await
|
|
14
|
+
const { spawnPromise } = await shadowNpxBin(process.argv.slice(2), {
|
|
15
15
|
stdio: 'inherit',
|
|
16
16
|
})
|
|
17
17
|
|
package/dist/cli.js
CHANGED
|
@@ -1361,6 +1361,10 @@ async function outputScanReport(result, {
|
|
|
1361
1361
|
logger.logger.fail(utils.failMsgWithBadge(scanReport.message, scanReport.cause));
|
|
1362
1362
|
return;
|
|
1363
1363
|
}
|
|
1364
|
+
if (!scanReport.data.healthy) {
|
|
1365
|
+
// When report contains healthy: false, process should exit with non-zero code.
|
|
1366
|
+
process.exitCode = 1;
|
|
1367
|
+
}
|
|
1364
1368
|
|
|
1365
1369
|
// I don't think we emit the default error message with banner for an unhealthy report, do we?
|
|
1366
1370
|
// if (!scanReport.data.healthy) {
|
|
@@ -15676,5 +15680,5 @@ process.on('unhandledRejection', async (reason, promise) => {
|
|
|
15676
15680
|
// eslint-disable-next-line n/no-process-exit
|
|
15677
15681
|
process.exit(1);
|
|
15678
15682
|
});
|
|
15679
|
-
//# debugId=
|
|
15683
|
+
//# debugId=3f5f54d9-596a-4c89-8916-eb66d170a333
|
|
15680
15684
|
//# sourceMappingURL=cli.js.map
|