socket 0.14.121 → 0.14.122
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 -14
- 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 -14
- 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.122:30c1354:72c12a48: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')
|
|
@@ -4063,15 +4063,20 @@ async function npmFix(
|
|
|
4063
4063
|
// Process the workspace root last since it will add an override to package.json.
|
|
4064
4064
|
pkgEnvDetails.editablePkgJson.filename
|
|
4065
4065
|
]
|
|
4066
|
-
await arb.buildIdealTree()
|
|
4067
4066
|
for (const { 0: name, 1: infos } of infoByPkg) {
|
|
4068
4067
|
const hasUpgrade = !!registry.getManifestData(NPM$f, name)
|
|
4069
4068
|
if (hasUpgrade) {
|
|
4070
4069
|
spinner?.info(`Skipping ${name}. Socket Optimize package exists.`)
|
|
4071
4070
|
continue
|
|
4072
4071
|
}
|
|
4072
|
+
arb.idealTree = null
|
|
4073
|
+
// eslint-disable-next-line no-await-in-loop
|
|
4074
|
+
await arb.buildIdealTree()
|
|
4073
4075
|
const oldVersions = arrays.arrayUnique(
|
|
4074
|
-
shadowNpmInject
|
|
4076
|
+
shadowNpmInject
|
|
4077
|
+
.findPackageNodes(arb.idealTree, name)
|
|
4078
|
+
.map(n => n.version)
|
|
4079
|
+
.filter(Boolean)
|
|
4075
4080
|
)
|
|
4076
4081
|
const packument =
|
|
4077
4082
|
oldVersions.length && infos.length
|
|
@@ -4471,28 +4476,28 @@ async function pnpmFix(
|
|
|
4471
4476
|
|
|
4472
4477
|
// Lazily access constants.ENV[CI].
|
|
4473
4478
|
const isCi = constants.ENV[CI]
|
|
4474
|
-
const {
|
|
4475
|
-
0: isRepo,
|
|
4476
|
-
1: workspacePkgJsonPaths,
|
|
4477
|
-
2: initialTree
|
|
4478
|
-
} = await Promise.all([
|
|
4479
|
+
const { 0: isRepo, 1: workspacePkgJsonPaths } = await Promise.all([
|
|
4479
4480
|
isInGitRepo(cwd),
|
|
4480
|
-
shadowNpmInject.globWorkspace(pkgEnvDetails.agent, rootPath)
|
|
4481
|
-
getActualTree(cwd)
|
|
4481
|
+
shadowNpmInject.globWorkspace(pkgEnvDetails.agent, rootPath)
|
|
4482
4482
|
])
|
|
4483
4483
|
const pkgJsonPaths = [
|
|
4484
4484
|
...workspacePkgJsonPaths,
|
|
4485
4485
|
// Process the workspace root last since it will add an override to package.json.
|
|
4486
4486
|
pkgEnvDetails.editablePkgJson.filename
|
|
4487
4487
|
]
|
|
4488
|
-
let actualTree
|
|
4488
|
+
let actualTree
|
|
4489
4489
|
for (const { 0: name, 1: infos } of infoByPkg) {
|
|
4490
4490
|
if (registry.getManifestData(NPM$c, name)) {
|
|
4491
4491
|
spinner?.info(`Skipping ${name}. Socket Optimize package exists.`)
|
|
4492
4492
|
continue
|
|
4493
4493
|
}
|
|
4494
|
+
// eslint-disable-next-line no-await-in-loop
|
|
4495
|
+
actualTree = await getActualTree(cwd)
|
|
4494
4496
|
const oldVersions = arrays.arrayUnique(
|
|
4495
|
-
shadowNpmInject
|
|
4497
|
+
shadowNpmInject
|
|
4498
|
+
.findPackageNodes(actualTree, name)
|
|
4499
|
+
.map(n => n.version)
|
|
4500
|
+
.filter(Boolean)
|
|
4496
4501
|
)
|
|
4497
4502
|
debug.debugLog(name, 'oldVersions', oldVersions)
|
|
4498
4503
|
const packument =
|
|
@@ -12322,7 +12327,7 @@ void (async () => {
|
|
|
12322
12327
|
await vendor.updater({
|
|
12323
12328
|
name: SOCKET_CLI_BIN_NAME,
|
|
12324
12329
|
// The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION']".
|
|
12325
|
-
version: '0.14.
|
|
12330
|
+
version: '0.14.122',
|
|
12326
12331
|
ttl: 86_400_000 /* 24 hours in milliseconds */
|
|
12327
12332
|
})
|
|
12328
12333
|
try {
|
|
@@ -12390,5 +12395,5 @@ void (async () => {
|
|
|
12390
12395
|
await shadowNpmInject.captureException(e)
|
|
12391
12396
|
}
|
|
12392
12397
|
})()
|
|
12393
|
-
//# debugId=
|
|
12398
|
+
//# debugId=e703dfb8-7322-4ac4-9e54-b02c664bb4a2
|
|
12394
12399
|
//# sourceMappingURL=cli.js.map
|