socket 1.0.29 → 1.0.31

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/dist/cli.js CHANGED
@@ -3241,7 +3241,7 @@ async function gitUnstagedModifiedFiles(cwd = process.cwd()) {
3241
3241
  const rawRelPaths = changedFilesDetails.split('\n') ?? [];
3242
3242
  return {
3243
3243
  ok: true,
3244
- data: rawRelPaths.map(relPath => path$1.normalizePath(relPath))
3244
+ data: rawRelPaths.map(p => path$1.normalizePath(p))
3245
3245
  };
3246
3246
  } catch (e) {
3247
3247
  debug.debugFn('error', 'caught: git diff --name-only failed');
@@ -4094,6 +4094,13 @@ async function agentFix(pkgEnvDetails, actualTree, alertsMap, installer, {
4094
4094
 
4095
4095
  // Check repoInfo to make TypeScript happy.
4096
4096
  if (!errored && fixEnv.isCi && fixEnv.repoInfo) {
4097
+ // eslint-disable-next-line no-await-in-loop
4098
+ const unstagedCResult = await gitUnstagedModifiedFiles(cwd);
4099
+ const moddedFilepaths = unstagedCResult.ok ? unstagedCResult.data.filter(filepath => {
4100
+ logger.logger.log('filepath', filepath);
4101
+ const basename = path.basename(filepath);
4102
+ return basename === 'package.json' || basename === pkgEnvDetails.lockName;
4103
+ }) : [];
4097
4104
  try {
4098
4105
  if (
4099
4106
  // eslint-disable-next-line no-await-in-loop
@@ -14274,5 +14281,5 @@ void (async () => {
14274
14281
  await utils.captureException(e);
14275
14282
  }
14276
14283
  })();
14277
- //# debugId=63677e9d-9391-455a-b4c6-9d3432210895
14284
+ //# debugId=d97d8015-9018-427d-acb9-19568bd58a97
14278
14285
  //# sourceMappingURL=cli.js.map