socket 0.14.76 → 0.14.77
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/module-sync/cli.js
CHANGED
|
@@ -914,7 +914,7 @@ function emitBanner(name) {
|
|
|
914
914
|
logger.logger.error(getAsciiHeader(name))
|
|
915
915
|
}
|
|
916
916
|
function getAsciiHeader(command) {
|
|
917
|
-
const cliVersion = '0.14.
|
|
917
|
+
const cliVersion = '0.14.77:08d925d:3b454b2e:pub' // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION_HASH']".
|
|
918
918
|
const nodeVersion = process$1.version
|
|
919
919
|
const apiToken = shadowNpmInject.getDefaultToken()
|
|
920
920
|
const shownToken = apiToken ? getLastFiveOfApiToken(apiToken) : 'no'
|
|
@@ -3172,9 +3172,18 @@ async function commitAndPushFix(branchName, commitMsg, cwd) {
|
|
|
3172
3172
|
return
|
|
3173
3173
|
}
|
|
3174
3174
|
const baseBranch = process.env['GITHUB_REF_NAME'] ?? 'main'
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3175
|
+
try {
|
|
3176
|
+
await spawn.spawn('git', ['checkout', baseBranch], {
|
|
3177
|
+
cwd
|
|
3178
|
+
})
|
|
3179
|
+
await spawn.spawn('git', ['pull', '--ff-only'], {
|
|
3180
|
+
cwd
|
|
3181
|
+
})
|
|
3182
|
+
} catch (err) {
|
|
3183
|
+
logger.logger.warn(
|
|
3184
|
+
`Could not switch to ${baseBranch}. Proceeding with current HEAD.`
|
|
3185
|
+
)
|
|
3186
|
+
}
|
|
3178
3187
|
await spawn.spawn('git', ['checkout', '-b', branchName], {
|
|
3179
3188
|
cwd
|
|
3180
3189
|
})
|
|
@@ -11052,7 +11061,7 @@ void (async () => {
|
|
|
11052
11061
|
await updateNotifier({
|
|
11053
11062
|
name: SOCKET_CLI_BIN_NAME,
|
|
11054
11063
|
// The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION']".
|
|
11055
|
-
version: '0.14.
|
|
11064
|
+
version: '0.14.77',
|
|
11056
11065
|
ttl: 86_400_000 /* 24 hours in milliseconds */
|
|
11057
11066
|
})
|
|
11058
11067
|
try {
|
|
@@ -11123,5 +11132,5 @@ void (async () => {
|
|
|
11123
11132
|
await shadowNpmInject.captureException(e)
|
|
11124
11133
|
}
|
|
11125
11134
|
})()
|
|
11126
|
-
//# debugId=
|
|
11135
|
+
//# debugId=c8920518-ecaf-443d-93ff-0b79e218f5c4
|
|
11127
11136
|
//# sourceMappingURL=cli.js.map
|