socket 1.0.33 → 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 +3 -3
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +3 -3
- package/dist/constants.js.map +1 -1
- package/package.json +1 -1
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
|
}) : [];
|
|
@@ -14289,5 +14289,5 @@ void (async () => {
|
|
|
14289
14289
|
await utils.captureException(e);
|
|
14290
14290
|
}
|
|
14291
14291
|
})();
|
|
14292
|
-
//# debugId=
|
|
14292
|
+
//# debugId=eee3dc45-f185-4d70-b82d-838c0ee9c156
|
|
14293
14293
|
//# sourceMappingURL=cli.js.map
|