@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 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
@@ -11,7 +11,7 @@ void (async () => {
11
11
 
12
12
  process.exitCode = 1
13
13
 
14
- const { spawnPromise } = await shadowNpmBin('npm', process.argv.slice(2), {
14
+ const { spawnPromise } = await shadowNpmBin(process.argv.slice(2), {
15
15
  stdio: 'inherit',
16
16
  })
17
17
 
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 shadowNpmBin = require(path.join(rootPath, 'dist/shadow-npm-bin.js'))
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 shadowNpmBin('npx', process.argv.slice(2), {
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=7bd1ad51-3d27-483b-96d7-504fe33c820f
15683
+ //# debugId=3f5f54d9-596a-4c89-8916-eb66d170a333
15680
15684
  //# sourceMappingURL=cli.js.map