socket 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/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/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.121:002547b:753db578: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) {
|
|
@@ -4486,6 +4494,7 @@ async function pnpmFix(
|
|
|
4486
4494
|
const oldVersions = arrays.arrayUnique(
|
|
4487
4495
|
shadowNpmInject.findPackageNodes(actualTree, name).map(n => n.version)
|
|
4488
4496
|
)
|
|
4497
|
+
debug.debugLog(name, 'oldVersions', oldVersions)
|
|
4489
4498
|
const packument =
|
|
4490
4499
|
oldVersions.length && infos.length
|
|
4491
4500
|
? // eslint-disable-next-line no-await-in-loop
|
|
@@ -4508,13 +4517,18 @@ async function pnpmFix(
|
|
|
4508
4517
|
firstPatchedVersionIdentifier,
|
|
4509
4518
|
vulnerableVersionRange
|
|
4510
4519
|
} of infos) {
|
|
4520
|
+
// eslint-disable-next-line no-await-in-loop
|
|
4521
|
+
actualTree = await getActualTree()
|
|
4511
4522
|
const node = shadowNpmInject.findPackageNode(
|
|
4512
4523
|
actualTree,
|
|
4513
4524
|
name,
|
|
4514
4525
|
oldVersion
|
|
4515
4526
|
)
|
|
4516
4527
|
if (!node) {
|
|
4517
|
-
debug.debugLog(
|
|
4528
|
+
debug.debugLog(
|
|
4529
|
+
`Skipping ${oldSpec}, no node found in arborist.actualTree`,
|
|
4530
|
+
pkgJsonPath
|
|
4531
|
+
)
|
|
4518
4532
|
continue
|
|
4519
4533
|
}
|
|
4520
4534
|
const availableVersions = Object.keys(packument.versions)
|
|
@@ -4632,7 +4646,7 @@ async function pnpmFix(
|
|
|
4632
4646
|
newVersion,
|
|
4633
4647
|
rangeStyle
|
|
4634
4648
|
)
|
|
4635
|
-
debug.debugLog(
|
|
4649
|
+
debug.debugLog(`Updated package.json from node: ${modded}`)
|
|
4636
4650
|
let error
|
|
4637
4651
|
let errored = false
|
|
4638
4652
|
let installed = false
|
|
@@ -4697,9 +4711,13 @@ async function pnpmFix(
|
|
|
4697
4711
|
workspaceName
|
|
4698
4712
|
}
|
|
4699
4713
|
)
|
|
4700
|
-
if (prResponse
|
|
4701
|
-
|
|
4702
|
-
|
|
4714
|
+
if (prResponse) {
|
|
4715
|
+
const { data } = prResponse
|
|
4716
|
+
spinner?.info(`PR #${data.number} opened.`)
|
|
4717
|
+
if (autoMerge) {
|
|
4718
|
+
// eslint-disable-next-line no-await-in-loop
|
|
4719
|
+
await enableAutoMerge(data)
|
|
4720
|
+
}
|
|
4703
4721
|
}
|
|
4704
4722
|
}
|
|
4705
4723
|
if (errored || isCi) {
|
|
@@ -12304,7 +12322,7 @@ void (async () => {
|
|
|
12304
12322
|
await vendor.updater({
|
|
12305
12323
|
name: SOCKET_CLI_BIN_NAME,
|
|
12306
12324
|
// The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION']".
|
|
12307
|
-
version: '0.14.
|
|
12325
|
+
version: '0.14.121',
|
|
12308
12326
|
ttl: 86_400_000 /* 24 hours in milliseconds */
|
|
12309
12327
|
})
|
|
12310
12328
|
try {
|
|
@@ -12372,5 +12390,5 @@ void (async () => {
|
|
|
12372
12390
|
await shadowNpmInject.captureException(e)
|
|
12373
12391
|
}
|
|
12374
12392
|
})()
|
|
12375
|
-
//# debugId=
|
|
12393
|
+
//# debugId=a9198775-d997-4ba2-a631-647708910271
|
|
12376
12394
|
//# sourceMappingURL=cli.js.map
|