socket 0.14.119 → 0.14.120
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 +14 -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 +14 -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.120:d9e8965:5c231098: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 (
|
|
@@ -4508,13 +4512,18 @@ async function pnpmFix(
|
|
|
4508
4512
|
firstPatchedVersionIdentifier,
|
|
4509
4513
|
vulnerableVersionRange
|
|
4510
4514
|
} of infos) {
|
|
4515
|
+
// eslint-disable-next-line no-await-in-loop
|
|
4516
|
+
actualTree = await getActualTree()
|
|
4511
4517
|
const node = shadowNpmInject.findPackageNode(
|
|
4512
4518
|
actualTree,
|
|
4513
4519
|
name,
|
|
4514
4520
|
oldVersion
|
|
4515
4521
|
)
|
|
4516
4522
|
if (!node) {
|
|
4517
|
-
debug.debugLog(
|
|
4523
|
+
debug.debugLog(
|
|
4524
|
+
`Skipping ${oldSpec}, no node found in arborist.actualTree`,
|
|
4525
|
+
pkgJsonPath
|
|
4526
|
+
)
|
|
4518
4527
|
continue
|
|
4519
4528
|
}
|
|
4520
4529
|
const availableVersions = Object.keys(packument.versions)
|
|
@@ -4632,7 +4641,7 @@ async function pnpmFix(
|
|
|
4632
4641
|
newVersion,
|
|
4633
4642
|
rangeStyle
|
|
4634
4643
|
)
|
|
4635
|
-
debug.debugLog(
|
|
4644
|
+
debug.debugLog(`Updated package.json from node: ${modded}`)
|
|
4636
4645
|
let error
|
|
4637
4646
|
let errored = false
|
|
4638
4647
|
let installed = false
|
|
@@ -12304,7 +12313,7 @@ void (async () => {
|
|
|
12304
12313
|
await vendor.updater({
|
|
12305
12314
|
name: SOCKET_CLI_BIN_NAME,
|
|
12306
12315
|
// The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION']".
|
|
12307
|
-
version: '0.14.
|
|
12316
|
+
version: '0.14.120',
|
|
12308
12317
|
ttl: 86_400_000 /* 24 hours in milliseconds */
|
|
12309
12318
|
})
|
|
12310
12319
|
try {
|
|
@@ -12372,5 +12381,5 @@ void (async () => {
|
|
|
12372
12381
|
await shadowNpmInject.captureException(e)
|
|
12373
12382
|
}
|
|
12374
12383
|
})()
|
|
12375
|
-
//# debugId=
|
|
12384
|
+
//# debugId=776d94c4-537e-4ae8-824d-a4a612fa5e0f
|
|
12376
12385
|
//# sourceMappingURL=cli.js.map
|