socket 1.1.72 → 1.1.74

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,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.74](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.74) - 2026-03-19
8
+
9
+ ### Fixed
10
+ - Fixed `socket scan create --reach` failing with input validation errors when no explicit target is passed. In non-TTY environments (e.g. Jenkins CI), the interactive prompt to confirm the current directory would silently fail, causing all reach validations to error. Now defaults to `.` (cwd) when `--reach` is used without a target.
11
+
12
+ ### Changed
13
+ - Updated the Coana CLI to v `14.12.200`.
14
+
15
+ ## [1.1.73](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.73) - 2026-03-13
16
+
17
+ ### Changed
18
+ - Updated the Coana CLI to v `14.12.197`.
19
+
7
20
  ## [1.1.72](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.72) - 2026-03-12
8
21
 
9
22
  ### Changed
package/dist/cli.js CHANGED
@@ -11365,12 +11365,21 @@ async function run$d(argv, importMeta, {
11365
11365
  let updatedInput = false;
11366
11366
 
11367
11367
  // Accept zero or more paths. Default to cwd() if none given.
11368
- let targets = cli.input || [cwd];
11368
+ let targets = cli.input.length ? cli.input : [];
11369
11369
  if (!targets.length && !dryRun && interactive) {
11370
11370
  targets = await suggestTarget();
11371
11371
  updatedInput = true;
11372
11372
  }
11373
11373
 
11374
+ // Fallback: if targets is still empty after the interactive prompt (e.g. the
11375
+ // select() prompt silently fails in non-TTY environments like Jenkins CI
11376
+ // because wrapPrompt swallows non-TypeError errors and returns undefined),
11377
+ // default to '.' so that downstream validations don't fail with confusing
11378
+ // "At least one TARGET (missing)" errors.
11379
+ if (!targets.length && !dryRun) {
11380
+ targets = ['.'];
11381
+ }
11382
+
11374
11383
  // We're going to need an api token to suggest data because those suggestions
11375
11384
  // must come from data we already know. Don't error on missing api token yet.
11376
11385
  // If the api-token is not set, ignore it for the sake of suggestions.
@@ -15498,5 +15507,5 @@ process.on('unhandledRejection', async (reason, promise) => {
15498
15507
  // eslint-disable-next-line n/no-process-exit
15499
15508
  process.exit(1);
15500
15509
  });
15501
- //# debugId=1b8d864a-84a9-4c68-bd33-68e2ce165fd0
15510
+ //# debugId=c39d4524-2d4d-49d3-becb-50d2a9ff72e0
15502
15511
  //# sourceMappingURL=cli.js.map