socket 0.14.72 → 0.14.73
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 +8 -3
- package/dist/module-sync/cli.js.map +1 -1
- package/dist/module-sync/fs.d.ts +61 -0
- 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 -3
- package/dist/require/cli.js.map +1 -1
- package/package.json +1 -1
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.73:3036c50:59a58dfc: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'
|
|
@@ -3171,6 +3171,10 @@ async function commitAndPushFix(branchName, commitMsg, cwd) {
|
|
|
3171
3171
|
)
|
|
3172
3172
|
return
|
|
3173
3173
|
}
|
|
3174
|
+
const baseBranch = process.env['GITHUB_REF_NAME'] ?? 'main'
|
|
3175
|
+
await spawn.spawn('git', ['checkout', baseBranch], {
|
|
3176
|
+
cwd
|
|
3177
|
+
})
|
|
3174
3178
|
await spawn.spawn('git', ['checkout', '-b', branchName], {
|
|
3175
3179
|
cwd
|
|
3176
3180
|
})
|
|
@@ -3195,6 +3199,7 @@ async function createPullRequest({
|
|
|
3195
3199
|
const octokit = new rest.Octokit({
|
|
3196
3200
|
auth: process.env['SOCKET_AUTOFIX_PAT'] ?? process.env['GITHUB_TOKEN']
|
|
3197
3201
|
})
|
|
3202
|
+
await new Promise(resolve => setTimeout(resolve, 3000)) // 3s
|
|
3198
3203
|
await octokit.pulls.create({
|
|
3199
3204
|
owner,
|
|
3200
3205
|
repo,
|
|
@@ -11012,7 +11017,7 @@ void (async () => {
|
|
|
11012
11017
|
await updateNotifier({
|
|
11013
11018
|
name: SOCKET_CLI_BIN_NAME,
|
|
11014
11019
|
// The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION']".
|
|
11015
|
-
version: '0.14.
|
|
11020
|
+
version: '0.14.73',
|
|
11016
11021
|
ttl: 86_400_000 /* 24 hours in milliseconds */
|
|
11017
11022
|
})
|
|
11018
11023
|
try {
|
|
@@ -11083,5 +11088,5 @@ void (async () => {
|
|
|
11083
11088
|
await shadowNpmInject.captureException(e)
|
|
11084
11089
|
}
|
|
11085
11090
|
})()
|
|
11086
|
-
//# debugId=
|
|
11091
|
+
//# debugId=395d1a74-57c0-4afb-971d-1c8e99178d08
|
|
11087
11092
|
//# sourceMappingURL=cli.js.map
|