socket 1.1.76 → 1.1.78

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.78](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.78) - 2026-04-01
8
+
9
+ ### Fixed
10
+ - `socket scan create`, `socket scan reach`, and `socket fix` now respect `projectIgnorePaths` from `socket.yml` when collecting files
11
+
12
+ ## [1.1.77](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.77) - 2026-04-01
13
+
14
+ ### Fixed
15
+ - Improved error message when using `--reach` with an invalid, expired, or revoked API token. Previously showed a misleading "Unable to verify plan permissions" error; now clearly indicates the authentication failure.
16
+
17
+ ### Changed
18
+ - Updated the Coana CLI to v `14.12.201`.
19
+
7
20
  ## [1.1.74](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.74) - 2026-03-19
8
21
 
9
22
  ### Fixed
package/dist/cli.js CHANGED
@@ -1592,6 +1592,14 @@ async function performReachabilityAnalysis(options) {
1592
1592
  // Check if user has enterprise plan for reachability analysis.
1593
1593
  const orgsCResult = await utils.fetchOrganization();
1594
1594
  if (!orgsCResult.ok) {
1595
+ const httpCode = orgsCResult.data?.code;
1596
+ if (httpCode === constants.default.HTTP_STATUS_UNAUTHORIZED) {
1597
+ return {
1598
+ ok: false,
1599
+ message: 'Authentication failed',
1600
+ cause: 'Your API token appears to be invalid, expired, or revoked. Please check your token and try again.'
1601
+ };
1602
+ }
1595
1603
  return {
1596
1604
  ok: false,
1597
1605
  message: 'Unable to verify plan permissions',
@@ -2277,7 +2285,12 @@ async function handleCreateNewScan({
2277
2285
  require$$9.debugFn('notice', `Fetched ${supportedFilesCResult.data['size']} supported file types`);
2278
2286
  spinner.start('Searching for local files to include in scan...');
2279
2287
  const supportedFiles = supportedFilesCResult.data;
2288
+
2289
+ // Load socket.yml to respect projectIgnorePaths when collecting files.
2290
+ const socketYmlResult = utils.findSocketYmlSync(cwd);
2291
+ const socketConfig = socketYmlResult.ok ? socketYmlResult.data?.parsed : undefined;
2280
2292
  const packagePaths = await utils.getPackageFilesForScan(targets, supportedFiles, {
2293
+ config: socketConfig,
2281
2294
  cwd
2282
2295
  });
2283
2296
  spinner.successAndStop(`Found ${packagePaths.length} ${words.pluralize('file', packagePaths.length)} to include in scan.`);
@@ -3819,7 +3832,12 @@ async function coanaFix(fixConfig) {
3819
3832
  return supportedFilesCResult;
3820
3833
  }
3821
3834
  const supportedFiles = supportedFilesCResult.data;
3835
+
3836
+ // Load socket.yml to respect projectIgnorePaths when collecting files.
3837
+ const socketYmlResult = utils.findSocketYmlSync(cwd);
3838
+ const socketConfig = socketYmlResult.ok ? socketYmlResult.data?.parsed : undefined;
3822
3839
  const scanFilepaths = await utils.getPackageFilesForScan(['.'], supportedFiles, {
3840
+ config: socketConfig,
3823
3841
  cwd
3824
3842
  });
3825
3843
  // Exclude any .socket.facts.json files that happen to be in the scan
@@ -11210,7 +11228,6 @@ async function run$d(argv, importMeta, {
11210
11228
  ...generalFlags$1,
11211
11229
  ...reachabilityFlags
11212
11230
  },
11213
- // TODO: Your project's "socket.yml" file's "projectIgnorePaths".
11214
11231
  help: command => `
11215
11232
  Usage
11216
11233
  $ ${command} [options] [TARGET...]
@@ -13353,7 +13370,12 @@ async function handleScanReach({
13353
13370
  }
13354
13371
  spinner.start('Searching for local manifest files to include in reachability analysis...');
13355
13372
  const supportedFiles = supportedFilesCResult.data;
13373
+
13374
+ // Load socket.yml to respect projectIgnorePaths when collecting files.
13375
+ const socketYmlResult = utils.findSocketYmlSync(cwd);
13376
+ const socketConfig = socketYmlResult.ok ? socketYmlResult.data?.parsed : undefined;
13356
13377
  const packagePaths = await utils.getPackageFilesForScan(targets, supportedFiles, {
13378
+ config: socketConfig,
13357
13379
  cwd
13358
13380
  });
13359
13381
  spinner.successAndStop(`Found ${packagePaths.length} ${words.pluralize('manifest file', packagePaths.length)} for reachability analysis.`);
@@ -15507,5 +15529,5 @@ process.on('unhandledRejection', async (reason, promise) => {
15507
15529
  // eslint-disable-next-line n/no-process-exit
15508
15530
  process.exit(1);
15509
15531
  });
15510
- //# debugId=19d5ebed-3e81-4f49-9ae1-2f169c3b6c3d
15532
+ //# debugId=eee29af9-4818-4849-9195-de65323ca372
15511
15533
  //# sourceMappingURL=cli.js.map