socket 1.1.157 → 1.1.158

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,14 @@ 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.158](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.158) - 2026-08-17
8
+
9
+ ### Changed
10
+ - Updated the Coana CLI to v `15.10.15`.
11
+
12
+ ### Fixed
13
+ - `socket scan create` now rejects every `--reach-*` modifier when `--reach` is not enabled. Previously flags such as `--reach-debug` were silently ignored, making a plain SBOM scan look like a reachability scan.
14
+
7
15
  ## [1.1.157](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.157) - 2026-08-12
8
16
 
9
17
  ### Changed
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Socket CLI
2
2
 
3
3
  [![Socket Badge](https://socket.dev/api/badge/npm/package/socket)](https://socket.dev/npm/package/socket)
4
- [![Follow @SocketSecurity](https://raw.githubusercontent.com/SocketDev/socket-cli/v1.1.157/assets/fleet/badge-follow-x.svg)](https://twitter.com/SocketSecurity)
5
- [![Follow @socket.dev on Bluesky](https://raw.githubusercontent.com/SocketDev/socket-cli/v1.1.157/assets/fleet/badge-follow-bluesky.svg)](https://bsky.app/profile/socket.dev)
4
+ [![Follow @SocketSecurity](https://raw.githubusercontent.com/SocketDev/socket-cli/v1.1.158/assets/fleet/badge-follow-x.svg)](https://twitter.com/SocketSecurity)
5
+ [![Follow @socket.dev on Bluesky](https://raw.githubusercontent.com/SocketDev/socket-cli/v1.1.158/assets/fleet/badge-follow-bluesky.svg)](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
 
@@ -138,8 +138,8 @@ MIT
138
138
  <br/>
139
139
  <div align="center">
140
140
  <picture>
141
- <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/SocketDev/socket-cli/v1.1.157/assets/fleet/socket-combomark-dark.svg">
142
- <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/SocketDev/socket-cli/v1.1.157/assets/fleet/socket-combomark-light.svg">
143
- <img width="324" height="104" alt="Socket" src="https://raw.githubusercontent.com/SocketDev/socket-cli/v1.1.157/assets/fleet/socket-combomark-light.svg">
141
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/SocketDev/socket-cli/v1.1.158/assets/fleet/socket-combomark-dark.svg">
142
+ <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/SocketDev/socket-cli/v1.1.158/assets/fleet/socket-combomark-light.svg">
143
+ <img width="324" height="104" alt="Socket" src="https://raw.githubusercontent.com/SocketDev/socket-cli/v1.1.158/assets/fleet/socket-combomark-light.svg">
144
144
  </picture>
145
145
  </div>
package/dist/cli.js CHANGED
@@ -19795,9 +19795,14 @@ async function run$d(argv, importMeta, {
19795
19795
  const isUsingNonDefaultMemoryLimit = memoryLimitMb !== null && memoryLimitMb !== reachMemoryLimitToMb(String(reachabilityFlags['reachAnalysisMemoryLimit']?.default ?? ''));
19796
19796
  const isUsingNonDefaultTimeout = !isOmittedReachValue(reachAnalysisTimeout);
19797
19797
  const isUsingNonDefaultConcurrency = reachConcurrency !== reachabilityFlags['reachConcurrency']?.default;
19798
- const isUsingNonDefaultAnalytics = reachDisableAnalytics !== reachabilityFlags['reachDisableAnalytics']?.default;
19799
19798
  const isUsingNonDefaultVersion = reachVersion !== reachabilityFlags['reachVersion']?.default;
19800
- const isUsingAnyReachabilityFlags = dynamicSbomInference || hasReachEcosystems || hasReachExcludePaths || isUsingNonDefaultAnalytics || isUsingNonDefaultConcurrency || isUsingNonDefaultMemoryLimit || isUsingNonDefaultTimeout || isUsingNonDefaultVersion || reachContinueOnAnalysisErrors || reachContinueOnInstallErrors || reachContinueOnMissingLockFiles || reachContinueOnNoSourceFiles || reachEnableAnalysisSplitting || reachLazyMode || reachSkipCache || reachUseOnlyPregeneratedSboms;
19799
+
19800
+ // Compare every boolean reach flag against its declared default so newly
19801
+ // added flags require --reach automatically instead of relying on a
19802
+ // hand-maintained list. The deprecated no-op
19803
+ // --reach-disable-analysis-splitting is excluded on purpose.
19804
+ const isUsingAnyBooleanReachFlag = Object.entries(reachabilityFlags).some(([name, flag]) => flag.type === 'boolean' && name !== 'reachDisableAnalysisSplitting' && cli.flags[name] !== flag.default);
19805
+ const isUsingAnyReachabilityFlags = hasReachEcosystems || hasReachExcludePaths || isUsingAnyBooleanReachFlag || isUsingNonDefaultConcurrency || isUsingNonDefaultMemoryLimit || isUsingNonDefaultTimeout || isUsingNonDefaultVersion;
19801
19806
 
19802
19807
  // Validate target constraints when --reach is enabled.
19803
19808
  const reachTargetValidation = reach ? await validateReachabilityTarget(targets, cwd) : {
@@ -24048,5 +24053,5 @@ process.on('unhandledRejection', async (reason, promise) => {
24048
24053
  // eslint-disable-next-line n/no-process-exit
24049
24054
  process.exit(1);
24050
24055
  });
24051
- //# debugId=afc60e9e-2cd4-4692-89e6-61e61a868f2f
24056
+ //# debugId=69d6aee7-9895-453a-a64d-f9410fff5198
24052
24057
  //# sourceMappingURL=cli.js.map