@socketsecurity/cli-with-sentry 1.0.32 → 1.0.34

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
@@ -4035,13 +4035,13 @@ async function agentFix(pkgEnvDetails, actualTree, alertsMap, installer, {
4035
4035
  shadowNpmInject.updatePackageJsonFromNode(editablePkgJson, actualTree, node, newVersion, rangeStyle);
4036
4036
 
4037
4037
  // eslint-disable-next-line no-await-in-loop
4038
- await editablePkgJson.save({
4038
+ const res = await editablePkgJson.save({
4039
4039
  ignoreWhitespace: true
4040
4040
  });
4041
4041
 
4042
4042
  // eslint-disable-next-line no-await-in-loop
4043
4043
  const unstagedCResult = await gitUnstagedModifiedFiles(cwd);
4044
- const moddedFilepaths = unstagedCResult.ok ? unstagedCResult.data.filter(filepath => {
4044
+ const moddedFilepaths = res && unstagedCResult.ok ? unstagedCResult.data.filter(filepath => {
4045
4045
  const basename = path.basename(filepath);
4046
4046
  return basename === 'package.json' || basename === pkgEnvDetails.lockName;
4047
4047
  }) : [];
@@ -4069,6 +4069,9 @@ async function agentFix(pkgEnvDetails, actualTree, alertsMap, installer, {
4069
4069
  cwd,
4070
4070
  spinner
4071
4071
  });
4072
+ // eslint-disable-next-line no-await-in-loop
4073
+ const unstagedCResult = await gitUnstagedModifiedFiles(cwd);
4074
+ console.log('after installer', unstagedCResult);
4072
4075
  const maybeLockSrc = maybeActualTree ?
4073
4076
  // eslint-disable-next-line no-await-in-loop
4074
4077
  await utils.readLockfile(pkgEnvDetails.lockPath) : null;
@@ -4076,6 +4079,9 @@ async function agentFix(pkgEnvDetails, actualTree, alertsMap, installer, {
4076
4079
  actualTree = maybeActualTree;
4077
4080
  // eslint-disable-next-line no-await-in-loop
4078
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);
4079
4085
  if (test) {
4080
4086
  spinner?.info(`Testing ${newId} in ${workspace}.`);
4081
4087
  // eslint-disable-next-line no-await-in-loop
@@ -14283,5 +14289,5 @@ void (async () => {
14283
14289
  await utils.captureException(e);
14284
14290
  }
14285
14291
  })();
14286
- //# debugId=30522d04-576a-41e2-8e9f-b79051ac257b
14292
+ //# debugId=eee3dc45-f185-4d70-b82d-838c0ee9c156
14287
14293
  //# sourceMappingURL=cli.js.map