socket 1.1.77 → 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,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.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
+
7
12
  ## [1.1.77](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.77) - 2026-04-01
8
13
 
9
14
  ### Fixed
package/dist/cli.js CHANGED
@@ -2285,7 +2285,12 @@ async function handleCreateNewScan({
2285
2285
  require$$9.debugFn('notice', `Fetched ${supportedFilesCResult.data['size']} supported file types`);
2286
2286
  spinner.start('Searching for local files to include in scan...');
2287
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;
2288
2292
  const packagePaths = await utils.getPackageFilesForScan(targets, supportedFiles, {
2293
+ config: socketConfig,
2289
2294
  cwd
2290
2295
  });
2291
2296
  spinner.successAndStop(`Found ${packagePaths.length} ${words.pluralize('file', packagePaths.length)} to include in scan.`);
@@ -3827,7 +3832,12 @@ async function coanaFix(fixConfig) {
3827
3832
  return supportedFilesCResult;
3828
3833
  }
3829
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;
3830
3839
  const scanFilepaths = await utils.getPackageFilesForScan(['.'], supportedFiles, {
3840
+ config: socketConfig,
3831
3841
  cwd
3832
3842
  });
3833
3843
  // Exclude any .socket.facts.json files that happen to be in the scan
@@ -11218,7 +11228,6 @@ async function run$d(argv, importMeta, {
11218
11228
  ...generalFlags$1,
11219
11229
  ...reachabilityFlags
11220
11230
  },
11221
- // TODO: Your project's "socket.yml" file's "projectIgnorePaths".
11222
11231
  help: command => `
11223
11232
  Usage
11224
11233
  $ ${command} [options] [TARGET...]
@@ -13361,7 +13370,12 @@ async function handleScanReach({
13361
13370
  }
13362
13371
  spinner.start('Searching for local manifest files to include in reachability analysis...');
13363
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;
13364
13377
  const packagePaths = await utils.getPackageFilesForScan(targets, supportedFiles, {
13378
+ config: socketConfig,
13365
13379
  cwd
13366
13380
  });
13367
13381
  spinner.successAndStop(`Found ${packagePaths.length} ${words.pluralize('manifest file', packagePaths.length)} for reachability analysis.`);
@@ -15515,5 +15529,5 @@ process.on('unhandledRejection', async (reason, promise) => {
15515
15529
  // eslint-disable-next-line n/no-process-exit
15516
15530
  process.exit(1);
15517
15531
  });
15518
- //# debugId=2e8b0e58-10dd-4133-8246-12b5cdb37c09
15532
+ //# debugId=eee29af9-4818-4849-9195-de65323ca372
15519
15533
  //# sourceMappingURL=cli.js.map