@socketsecurity/cli-with-sentry 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/instrument-with-sentry.js +2 -2
- package/dist/instrument-with-sentry.js.map +1 -1
- 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/require/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:1911ca49: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
|
|
@@ -4475,28 +4480,28 @@ async function pnpmFix(
|
|
|
4475
4480
|
|
|
4476
4481
|
// Lazily access constants.ENV[CI].
|
|
4477
4482
|
const isCi = constants.ENV[CI]
|
|
4478
|
-
const {
|
|
4479
|
-
0: isRepo,
|
|
4480
|
-
1: workspacePkgJsonPaths,
|
|
4481
|
-
2: initialTree
|
|
4482
|
-
} = await Promise.all([
|
|
4483
|
+
const { 0: isRepo, 1: workspacePkgJsonPaths } = await Promise.all([
|
|
4483
4484
|
isInGitRepo(cwd),
|
|
4484
|
-
shadowNpmInject.globWorkspace(pkgEnvDetails.agent, rootPath)
|
|
4485
|
-
getActualTree(cwd)
|
|
4485
|
+
shadowNpmInject.globWorkspace(pkgEnvDetails.agent, rootPath)
|
|
4486
4486
|
])
|
|
4487
4487
|
const pkgJsonPaths = [
|
|
4488
4488
|
...workspacePkgJsonPaths,
|
|
4489
4489
|
// Process the workspace root last since it will add an override to package.json.
|
|
4490
4490
|
pkgEnvDetails.editablePkgJson.filename
|
|
4491
4491
|
]
|
|
4492
|
-
let actualTree
|
|
4492
|
+
let actualTree
|
|
4493
4493
|
for (const { 0: name, 1: infos } of infoByPkg) {
|
|
4494
4494
|
if (registry.getManifestData(NPM$c, name)) {
|
|
4495
4495
|
spinner?.info(`Skipping ${name}. Socket Optimize package exists.`)
|
|
4496
4496
|
continue
|
|
4497
4497
|
}
|
|
4498
|
+
// eslint-disable-next-line no-await-in-loop
|
|
4499
|
+
actualTree = await getActualTree(cwd)
|
|
4498
4500
|
const oldVersions = arrays.arrayUnique(
|
|
4499
|
-
shadowNpmInject
|
|
4501
|
+
shadowNpmInject
|
|
4502
|
+
.findPackageNodes(actualTree, name)
|
|
4503
|
+
.map(n => n.version)
|
|
4504
|
+
.filter(Boolean)
|
|
4500
4505
|
)
|
|
4501
4506
|
debug.debugLog(name, 'oldVersions', oldVersions)
|
|
4502
4507
|
const packument =
|
|
@@ -12326,7 +12331,7 @@ void (async () => {
|
|
|
12326
12331
|
await vendor.updater({
|
|
12327
12332
|
name: SOCKET_CLI_BIN_NAME,
|
|
12328
12333
|
// The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION']".
|
|
12329
|
-
version: '0.14.
|
|
12334
|
+
version: '0.14.122',
|
|
12330
12335
|
ttl: 86_400_000 /* 24 hours in milliseconds */
|
|
12331
12336
|
})
|
|
12332
12337
|
try {
|
|
@@ -12394,5 +12399,5 @@ void (async () => {
|
|
|
12394
12399
|
await shadowNpmInject.captureException(e)
|
|
12395
12400
|
}
|
|
12396
12401
|
})()
|
|
12397
|
-
//# debugId=
|
|
12402
|
+
//# debugId=89d93dc5-77bf-4052-b196-09f5e5169b84
|
|
12398
12403
|
//# sourceMappingURL=cli.js.map
|