@socketsecurity/cli-with-sentry 0.15.26 → 0.15.28
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 +11 -4
- 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
|
@@ -3669,10 +3669,14 @@ async function gitCreateAndPushBranch(branch, commitMsg, filepaths, options) {
|
|
|
3669
3669
|
await spawn.spawn('git', ['commit', '-m', commitMsg], stdioIgnoreOptions);
|
|
3670
3670
|
await spawn.spawn('git', ['push', '--force', '--set-upstream', 'origin', branch], stdioIgnoreOptions);
|
|
3671
3671
|
return true;
|
|
3672
|
-
} catch {
|
|
3672
|
+
} catch (e) {
|
|
3673
|
+
debug.debugLog(e);
|
|
3674
|
+
}
|
|
3673
3675
|
try {
|
|
3674
3676
|
await spawn.spawn('git', ['branch', '-D', branch], stdioIgnoreOptions);
|
|
3675
|
-
} catch {
|
|
3677
|
+
} catch (e) {
|
|
3678
|
+
debug.debugLog(e);
|
|
3679
|
+
}
|
|
3676
3680
|
return false;
|
|
3677
3681
|
}
|
|
3678
3682
|
async function gitEnsureIdentity(name, email, cwd = process.cwd()) {
|
|
@@ -3690,10 +3694,13 @@ async function gitEnsureIdentity(name, email, cwd = process.cwd()) {
|
|
|
3690
3694
|
}) => {
|
|
3691
3695
|
try {
|
|
3692
3696
|
const output = await spawn.spawn('git', ['config', '--get', prop], stdioPipeOptions);
|
|
3697
|
+
debug.debugLog(`git config --get ${prop}`, output.stdout.trim());
|
|
3693
3698
|
if (output.stdout.trim() !== value) {
|
|
3694
3699
|
await spawn.spawn('git', ['config', prop, value], stdioIgnoreOptions);
|
|
3695
3700
|
}
|
|
3696
|
-
} catch {
|
|
3701
|
+
} catch (e) {
|
|
3702
|
+
debug.debugLog(e);
|
|
3703
|
+
}
|
|
3697
3704
|
}));
|
|
3698
3705
|
}
|
|
3699
3706
|
async function gitRemoteBranchExists(branch, cwd = process.cwd()) {
|
|
@@ -12702,5 +12709,5 @@ void (async () => {
|
|
|
12702
12709
|
await utils.captureException(e);
|
|
12703
12710
|
}
|
|
12704
12711
|
})();
|
|
12705
|
-
//# debugId=
|
|
12712
|
+
//# debugId=4152a7bd-9a30-4cd4-85e5-3dff2f0b8d70
|
|
12706
12713
|
//# sourceMappingURL=cli.js.map
|