@socketsecurity/cli-with-sentry 1.0.30 → 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(
|
|
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');
|
|
@@ -4097,6 +4097,7 @@ async function agentFix(pkgEnvDetails, actualTree, alertsMap, installer, {
|
|
|
4097
4097
|
// eslint-disable-next-line no-await-in-loop
|
|
4098
4098
|
const unstagedCResult = await gitUnstagedModifiedFiles(cwd);
|
|
4099
4099
|
const moddedFilepaths = unstagedCResult.ok ? unstagedCResult.data.filter(filepath => {
|
|
4100
|
+
logger.logger.log('filepath', filepath);
|
|
4100
4101
|
const basename = path.basename(filepath);
|
|
4101
4102
|
return basename === 'package.json' || basename === pkgEnvDetails.lockName;
|
|
4102
4103
|
}) : [];
|
|
@@ -14280,5 +14281,5 @@ void (async () => {
|
|
|
14280
14281
|
await utils.captureException(e);
|
|
14281
14282
|
}
|
|
14282
14283
|
})();
|
|
14283
|
-
//# debugId=
|
|
14284
|
+
//# debugId=d97d8015-9018-427d-acb9-19568bd58a97
|
|
14284
14285
|
//# sourceMappingURL=cli.js.map
|