@socketsecurity/cli-with-sentry 1.0.31 → 1.0.33

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
@@ -3239,6 +3239,9 @@ async function gitUnstagedModifiedFiles(cwd = process.cwd()) {
3239
3239
  };
3240
3240
  const changedFilesDetails = (await spawn.spawn('git', ['diff', '--name-only'], stdioPipeOptions)).stdout;
3241
3241
  const rawRelPaths = changedFilesDetails.split('\n') ?? [];
3242
+ console.log({
3243
+ rawRelPaths
3244
+ });
3242
3245
  return {
3243
3246
  ok: true,
3244
3247
  data: rawRelPaths.map(p => path$1.normalizePath(p))
@@ -4066,6 +4069,9 @@ async function agentFix(pkgEnvDetails, actualTree, alertsMap, installer, {
4066
4069
  cwd,
4067
4070
  spinner
4068
4071
  });
4072
+ // eslint-disable-next-line no-await-in-loop
4073
+ const unstagedCResult = await gitUnstagedModifiedFiles(cwd);
4074
+ console.log('after installer', unstagedCResult);
4069
4075
  const maybeLockSrc = maybeActualTree ?
4070
4076
  // eslint-disable-next-line no-await-in-loop
4071
4077
  await utils.readLockfile(pkgEnvDetails.lockPath) : null;
@@ -4073,6 +4079,9 @@ async function agentFix(pkgEnvDetails, actualTree, alertsMap, installer, {
4073
4079
  actualTree = maybeActualTree;
4074
4080
  // eslint-disable-next-line no-await-in-loop
4075
4081
  await afterInstall(editablePkgJson, packument, oldVersion, newVersion, vulnerableVersionRange, fixConfig);
4082
+ // eslint-disable-next-line no-await-in-loop
4083
+ const unstagedCResult = await gitUnstagedModifiedFiles(cwd);
4084
+ console.log('after afterInstall', unstagedCResult);
4076
4085
  if (test) {
4077
4086
  spinner?.info(`Testing ${newId} in ${workspace}.`);
4078
4087
  // eslint-disable-next-line no-await-in-loop
@@ -4097,7 +4106,6 @@ async function agentFix(pkgEnvDetails, actualTree, alertsMap, installer, {
4097
4106
  // eslint-disable-next-line no-await-in-loop
4098
4107
  const unstagedCResult = await gitUnstagedModifiedFiles(cwd);
4099
4108
  const moddedFilepaths = unstagedCResult.ok ? unstagedCResult.data.filter(filepath => {
4100
- logger.logger.log('filepath', filepath);
4101
4109
  const basename = path.basename(filepath);
4102
4110
  return basename === 'package.json' || basename === pkgEnvDetails.lockName;
4103
4111
  }) : [];
@@ -14281,5 +14289,5 @@ void (async () => {
14281
14289
  await utils.captureException(e);
14282
14290
  }
14283
14291
  })();
14284
- //# debugId=d97d8015-9018-427d-acb9-19568bd58a97
14292
+ //# debugId=edbafe48-120d-4ca9-ac23-1f9ab4197a31
14285
14293
  //# sourceMappingURL=cli.js.map