@socketsecurity/cli-with-sentry 1.0.19 → 1.0.20
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 +4 -4
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +3 -3
- package/dist/constants.js.map +1 -1
- package/dist/shadow-npm-inject.js +13 -10
- package/dist/shadow-npm-inject.js.map +1 -1
- package/dist/types/shadow/npm/arborist-helpers.d.mts +1 -1
- package/dist/types/shadow/npm/arborist-helpers.d.mts.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -3972,12 +3972,12 @@ async function agentFix(pkgEnvDetails, actualTree, alertsMap, installer, {
|
|
|
3972
3972
|
if (!errored && ciEnv?.repoInfo) {
|
|
3973
3973
|
try {
|
|
3974
3974
|
// eslint-disable-next-line no-await-in-loop
|
|
3975
|
-
const
|
|
3976
|
-
if (!
|
|
3975
|
+
const unstagedCResult = await gitUnstagedModifiedFiles(cwd);
|
|
3976
|
+
if (!unstagedCResult.ok) {
|
|
3977
3977
|
logger.logger.warn('Unexpected condition: Nothing to commit, skipping PR creation.');
|
|
3978
3978
|
continue;
|
|
3979
3979
|
}
|
|
3980
|
-
const moddedFilepaths =
|
|
3980
|
+
const moddedFilepaths = unstagedCResult.data.filter(filepath => {
|
|
3981
3981
|
const basename = path.basename(filepath);
|
|
3982
3982
|
return basename === 'package.json' || basename === pkgEnvDetails.lockName;
|
|
3983
3983
|
});
|
|
@@ -14227,5 +14227,5 @@ void (async () => {
|
|
|
14227
14227
|
await utils.captureException(e);
|
|
14228
14228
|
}
|
|
14229
14229
|
})();
|
|
14230
|
-
//# debugId=
|
|
14230
|
+
//# debugId=22ea4fe2-a3e7-46a5-b720-03c98211a8ec
|
|
14231
14231
|
//# sourceMappingURL=cli.js.map
|