@socketsecurity/cli-with-sentry 0.15.27 → 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 +10 -5
- 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()) {
|
|
@@ -3684,7 +3688,6 @@ async function gitEnsureIdentity(name, email, cwd = process.cwd()) {
|
|
|
3684
3688
|
cwd
|
|
3685
3689
|
};
|
|
3686
3690
|
const identEntries = [['user.email', name], ['user.name', email]];
|
|
3687
|
-
debug.debugLog('identEntries', identEntries);
|
|
3688
3691
|
await Promise.all(identEntries.map(async ({
|
|
3689
3692
|
0: prop,
|
|
3690
3693
|
1: value
|
|
@@ -3695,7 +3698,9 @@ async function gitEnsureIdentity(name, email, cwd = process.cwd()) {
|
|
|
3695
3698
|
if (output.stdout.trim() !== value) {
|
|
3696
3699
|
await spawn.spawn('git', ['config', prop, value], stdioIgnoreOptions);
|
|
3697
3700
|
}
|
|
3698
|
-
} catch {
|
|
3701
|
+
} catch (e) {
|
|
3702
|
+
debug.debugLog(e);
|
|
3703
|
+
}
|
|
3699
3704
|
}));
|
|
3700
3705
|
}
|
|
3701
3706
|
async function gitRemoteBranchExists(branch, cwd = process.cwd()) {
|
|
@@ -12704,5 +12709,5 @@ void (async () => {
|
|
|
12704
12709
|
await utils.captureException(e);
|
|
12705
12710
|
}
|
|
12706
12711
|
})();
|
|
12707
|
-
//# debugId=
|
|
12712
|
+
//# debugId=4152a7bd-9a30-4cd4-85e5-3dff2f0b8d70
|
|
12708
12713
|
//# sourceMappingURL=cli.js.map
|