socket 0.14.122 → 0.14.123
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 +19 -5
- 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 +19 -5
- 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/module-sync/cli.js
CHANGED
|
@@ -917,7 +917,7 @@ function emitBanner(name) {
|
|
|
917
917
|
logger.logger.error(getAsciiHeader(name))
|
|
918
918
|
}
|
|
919
919
|
function getAsciiHeader(command) {
|
|
920
|
-
const cliVersion = '0.14.
|
|
920
|
+
const cliVersion = '0.14.123:ac83b62:9fc01fd8:pub' // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION_HASH']".
|
|
921
921
|
const nodeVersion = process$1.version
|
|
922
922
|
const apiToken = shadowNpmInject.getDefaultToken()
|
|
923
923
|
const defaultOrg = shadowNpmInject.getConfigValue('defaultOrg')
|
|
@@ -4492,7 +4492,14 @@ async function pnpmFix(
|
|
|
4492
4492
|
continue
|
|
4493
4493
|
}
|
|
4494
4494
|
// eslint-disable-next-line no-await-in-loop
|
|
4495
|
-
|
|
4495
|
+
await Promise.all([
|
|
4496
|
+
shadowNpmInject.removeNodeModules(cwd),
|
|
4497
|
+
...(isRepo ? [gitHardReset(cwd)] : [])
|
|
4498
|
+
])
|
|
4499
|
+
// eslint-disable-next-line no-await-in-loop
|
|
4500
|
+
actualTree = await install(pkgEnvDetails, {
|
|
4501
|
+
spinner
|
|
4502
|
+
})
|
|
4496
4503
|
const oldVersions = arrays.arrayUnique(
|
|
4497
4504
|
shadowNpmInject
|
|
4498
4505
|
.findPackageNodes(actualTree, name)
|
|
@@ -4523,7 +4530,14 @@ async function pnpmFix(
|
|
|
4523
4530
|
vulnerableVersionRange
|
|
4524
4531
|
} of infos) {
|
|
4525
4532
|
// eslint-disable-next-line no-await-in-loop
|
|
4526
|
-
|
|
4533
|
+
await Promise.all([
|
|
4534
|
+
shadowNpmInject.removeNodeModules(cwd),
|
|
4535
|
+
...(isRepo ? [gitHardReset(cwd)] : [])
|
|
4536
|
+
])
|
|
4537
|
+
// eslint-disable-next-line no-await-in-loop
|
|
4538
|
+
actualTree = await install(pkgEnvDetails, {
|
|
4539
|
+
spinner
|
|
4540
|
+
})
|
|
4527
4541
|
const node = shadowNpmInject.findPackageNode(
|
|
4528
4542
|
actualTree,
|
|
4529
4543
|
name,
|
|
@@ -12327,7 +12341,7 @@ void (async () => {
|
|
|
12327
12341
|
await vendor.updater({
|
|
12328
12342
|
name: SOCKET_CLI_BIN_NAME,
|
|
12329
12343
|
// The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION']".
|
|
12330
|
-
version: '0.14.
|
|
12344
|
+
version: '0.14.123',
|
|
12331
12345
|
ttl: 86_400_000 /* 24 hours in milliseconds */
|
|
12332
12346
|
})
|
|
12333
12347
|
try {
|
|
@@ -12395,5 +12409,5 @@ void (async () => {
|
|
|
12395
12409
|
await shadowNpmInject.captureException(e)
|
|
12396
12410
|
}
|
|
12397
12411
|
})()
|
|
12398
|
-
//# debugId=
|
|
12412
|
+
//# debugId=5bad9b77-6e22-4b32-a047-7f16520f50a3
|
|
12399
12413
|
//# sourceMappingURL=cli.js.map
|