@socketsecurity/cli-with-sentry 0.14.119 → 0.14.121
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 +29 -11
- 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 +29 -11
- 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.121:002547b:1fdc0d88: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')
|
|
@@ -4105,6 +4105,10 @@ async function npmFix(
|
|
|
4105
4105
|
oldVersion
|
|
4106
4106
|
)
|
|
4107
4107
|
if (!node) {
|
|
4108
|
+
debug.debugLog(
|
|
4109
|
+
`Skipping ${oldSpec}, no node found in arborist.idealTree`,
|
|
4110
|
+
pkgJsonPath
|
|
4111
|
+
)
|
|
4108
4112
|
continue
|
|
4109
4113
|
}
|
|
4110
4114
|
if (
|
|
@@ -4241,9 +4245,13 @@ async function npmFix(
|
|
|
4241
4245
|
workspaceName
|
|
4242
4246
|
}
|
|
4243
4247
|
)
|
|
4244
|
-
if (prResponse
|
|
4245
|
-
|
|
4246
|
-
|
|
4248
|
+
if (prResponse) {
|
|
4249
|
+
const { data } = prResponse
|
|
4250
|
+
spinner?.info(`PR #${data.number} opened.`)
|
|
4251
|
+
if (autoMerge) {
|
|
4252
|
+
// eslint-disable-next-line no-await-in-loop
|
|
4253
|
+
await enableAutoMerge(data)
|
|
4254
|
+
}
|
|
4247
4255
|
}
|
|
4248
4256
|
}
|
|
4249
4257
|
if (errored || isCi) {
|
|
@@ -4490,6 +4498,7 @@ async function pnpmFix(
|
|
|
4490
4498
|
const oldVersions = arrays.arrayUnique(
|
|
4491
4499
|
shadowNpmInject.findPackageNodes(actualTree, name).map(n => n.version)
|
|
4492
4500
|
)
|
|
4501
|
+
debug.debugLog(name, 'oldVersions', oldVersions)
|
|
4493
4502
|
const packument =
|
|
4494
4503
|
oldVersions.length && infos.length
|
|
4495
4504
|
? // eslint-disable-next-line no-await-in-loop
|
|
@@ -4512,13 +4521,18 @@ async function pnpmFix(
|
|
|
4512
4521
|
firstPatchedVersionIdentifier,
|
|
4513
4522
|
vulnerableVersionRange
|
|
4514
4523
|
} of infos) {
|
|
4524
|
+
// eslint-disable-next-line no-await-in-loop
|
|
4525
|
+
actualTree = await getActualTree()
|
|
4515
4526
|
const node = shadowNpmInject.findPackageNode(
|
|
4516
4527
|
actualTree,
|
|
4517
4528
|
name,
|
|
4518
4529
|
oldVersion
|
|
4519
4530
|
)
|
|
4520
4531
|
if (!node) {
|
|
4521
|
-
debug.debugLog(
|
|
4532
|
+
debug.debugLog(
|
|
4533
|
+
`Skipping ${oldSpec}, no node found in arborist.actualTree`,
|
|
4534
|
+
pkgJsonPath
|
|
4535
|
+
)
|
|
4522
4536
|
continue
|
|
4523
4537
|
}
|
|
4524
4538
|
const availableVersions = Object.keys(packument.versions)
|
|
@@ -4636,7 +4650,7 @@ async function pnpmFix(
|
|
|
4636
4650
|
newVersion,
|
|
4637
4651
|
rangeStyle
|
|
4638
4652
|
)
|
|
4639
|
-
debug.debugLog(
|
|
4653
|
+
debug.debugLog(`Updated package.json from node: ${modded}`)
|
|
4640
4654
|
let error
|
|
4641
4655
|
let errored = false
|
|
4642
4656
|
let installed = false
|
|
@@ -4701,9 +4715,13 @@ async function pnpmFix(
|
|
|
4701
4715
|
workspaceName
|
|
4702
4716
|
}
|
|
4703
4717
|
)
|
|
4704
|
-
if (prResponse
|
|
4705
|
-
|
|
4706
|
-
|
|
4718
|
+
if (prResponse) {
|
|
4719
|
+
const { data } = prResponse
|
|
4720
|
+
spinner?.info(`PR #${data.number} opened.`)
|
|
4721
|
+
if (autoMerge) {
|
|
4722
|
+
// eslint-disable-next-line no-await-in-loop
|
|
4723
|
+
await enableAutoMerge(data)
|
|
4724
|
+
}
|
|
4707
4725
|
}
|
|
4708
4726
|
}
|
|
4709
4727
|
if (errored || isCi) {
|
|
@@ -12308,7 +12326,7 @@ void (async () => {
|
|
|
12308
12326
|
await vendor.updater({
|
|
12309
12327
|
name: SOCKET_CLI_BIN_NAME,
|
|
12310
12328
|
// The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION']".
|
|
12311
|
-
version: '0.14.
|
|
12329
|
+
version: '0.14.121',
|
|
12312
12330
|
ttl: 86_400_000 /* 24 hours in milliseconds */
|
|
12313
12331
|
})
|
|
12314
12332
|
try {
|
|
@@ -12376,5 +12394,5 @@ void (async () => {
|
|
|
12376
12394
|
await shadowNpmInject.captureException(e)
|
|
12377
12395
|
}
|
|
12378
12396
|
})()
|
|
12379
|
-
//# debugId=
|
|
12397
|
+
//# debugId=524536b6-4081-429c-a851-5e74eb74ccb7
|
|
12380
12398
|
//# sourceMappingURL=cli.js.map
|