@socketsecurity/cli-with-sentry 0.14.101 → 0.14.102
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/instrument-with-sentry.js +2 -2
- package/dist/instrument-with-sentry.js.map +1 -1
- package/dist/module-sync/cli.js +8 -4
- package/dist/module-sync/cli.js.map +1 -1
- package/dist/module-sync/shadow-npm-inject.js +2 -2
- package/dist/module-sync/shadow-npm-inject.js.map +1 -1
- package/dist/require/cli.js +8 -4
- package/dist/require/cli.js.map +1 -1
- package/dist/require/shadow-npm-inject.js +2 -2
- package/dist/require/shadow-npm-inject.js.map +1 -1
- package/package.json +1 -1
package/dist/require/cli.js
CHANGED
|
@@ -900,7 +900,7 @@ function emitBanner(name) {
|
|
|
900
900
|
logger.logger.error(getAsciiHeader(name))
|
|
901
901
|
}
|
|
902
902
|
function getAsciiHeader(command) {
|
|
903
|
-
const cliVersion = '0.14.
|
|
903
|
+
const cliVersion = '0.14.102:51e000d:4c8b52e6:pub' // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION_HASH']".
|
|
904
904
|
const nodeVersion = process$1.version
|
|
905
905
|
const apiToken = shadowNpmInject.getDefaultToken()
|
|
906
906
|
const shownToken = apiToken ? getLastFiveOfApiToken(apiToken) : 'no'
|
|
@@ -3724,6 +3724,9 @@ async function branchExists(branch, cwd = process.cwd()) {
|
|
|
3724
3724
|
}
|
|
3725
3725
|
async function checkoutBaseBranchIfAvailable(baseBranch, cwd = process.cwd()) {
|
|
3726
3726
|
try {
|
|
3727
|
+
await spawn.spawn('git', ['fetch', '--depth=1', 'origin', baseBranch], {
|
|
3728
|
+
cwd
|
|
3729
|
+
})
|
|
3727
3730
|
await spawn.spawn('git', ['checkout', baseBranch], {
|
|
3728
3731
|
cwd
|
|
3729
3732
|
})
|
|
@@ -3731,10 +3734,11 @@ async function checkoutBaseBranchIfAvailable(baseBranch, cwd = process.cwd()) {
|
|
|
3731
3734
|
cwd
|
|
3732
3735
|
})
|
|
3733
3736
|
logger.logger.info(`Checked out and reset to ${baseBranch}`)
|
|
3734
|
-
} catch {
|
|
3737
|
+
} catch (e) {
|
|
3735
3738
|
logger.logger.warn(
|
|
3736
3739
|
`Could not switch to ${baseBranch}. Proceeding with HEAD.`
|
|
3737
3740
|
)
|
|
3741
|
+
debug.debugLog(e)
|
|
3738
3742
|
}
|
|
3739
3743
|
}
|
|
3740
3744
|
async function createAndPushBranchIfNeeded(
|
|
@@ -11502,7 +11506,7 @@ void (async () => {
|
|
|
11502
11506
|
await vendor.updater({
|
|
11503
11507
|
name: SOCKET_CLI_BIN_NAME,
|
|
11504
11508
|
// The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION']".
|
|
11505
|
-
version: '0.14.
|
|
11509
|
+
version: '0.14.102',
|
|
11506
11510
|
ttl: 86_400_000 /* 24 hours in milliseconds */
|
|
11507
11511
|
})
|
|
11508
11512
|
try {
|
|
@@ -11570,5 +11574,5 @@ void (async () => {
|
|
|
11570
11574
|
await shadowNpmInject.captureException(e)
|
|
11571
11575
|
}
|
|
11572
11576
|
})()
|
|
11573
|
-
//# debugId=
|
|
11577
|
+
//# debugId=522cbad6-7bef-48c2-95d7-5233b81e92ca
|
|
11574
11578
|
//# sourceMappingURL=cli.js.map
|