socket 0.14.111 → 0.14.112
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 +49 -49
- 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 +49 -49
- 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.112:79a6e07:ff4ba09b: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')
|
|
@@ -3729,7 +3729,7 @@ const cmdDiffScan = {
|
|
|
3729
3729
|
const { GITHUB_REF_NAME } = constants
|
|
3730
3730
|
function formatBranchName(str) {
|
|
3731
3731
|
return str
|
|
3732
|
-
.replace(/[
|
|
3732
|
+
.replace(/[-_.\\/]+/g, '-')
|
|
3733
3733
|
.replace(/[^-a-zA-Z0-9]+/g, '')
|
|
3734
3734
|
.replace(/^-+|-+$/g, '')
|
|
3735
3735
|
}
|
|
@@ -4097,28 +4097,28 @@ async function npmFix(
|
|
|
4097
4097
|
firstPatchedVersionIdentifier,
|
|
4098
4098
|
vulnerableVersionRange
|
|
4099
4099
|
} of infos) {
|
|
4100
|
-
const revertTree = arb.idealTree
|
|
4101
|
-
arb.idealTree = null
|
|
4102
|
-
// eslint-disable-next-line no-await-in-loop
|
|
4103
|
-
await arb.buildIdealTree()
|
|
4104
|
-
const node = shadowNpmInject.findPackageNode(
|
|
4105
|
-
arb.idealTree,
|
|
4106
|
-
name,
|
|
4107
|
-
oldVersion
|
|
4108
|
-
)
|
|
4109
|
-
if (!node) {
|
|
4110
|
-
continue
|
|
4111
|
-
}
|
|
4112
|
-
if (
|
|
4113
|
-
!shadowNpmInject.updateNode(node, packument, vulnerableVersionRange)
|
|
4114
|
-
) {
|
|
4115
|
-
if (!unavailableSpecs.has(oldSpec)) {
|
|
4116
|
-
unavailableSpecs.add(oldSpec)
|
|
4117
|
-
spinner?.fail(`No update available for ${oldSpec}`)
|
|
4118
|
-
}
|
|
4119
|
-
continue
|
|
4120
|
-
}
|
|
4121
4100
|
for (const pkgJsonPath of pkgJsonPaths) {
|
|
4101
|
+
const revertTree = arb.idealTree
|
|
4102
|
+
arb.idealTree = null
|
|
4103
|
+
// eslint-disable-next-line no-await-in-loop
|
|
4104
|
+
await arb.buildIdealTree()
|
|
4105
|
+
const node = shadowNpmInject.findPackageNode(
|
|
4106
|
+
arb.idealTree,
|
|
4107
|
+
name,
|
|
4108
|
+
oldVersion
|
|
4109
|
+
)
|
|
4110
|
+
if (!node) {
|
|
4111
|
+
continue
|
|
4112
|
+
}
|
|
4113
|
+
if (
|
|
4114
|
+
!shadowNpmInject.updateNode(node, packument, vulnerableVersionRange)
|
|
4115
|
+
) {
|
|
4116
|
+
if (!unavailableSpecs.has(oldSpec)) {
|
|
4117
|
+
unavailableSpecs.add(oldSpec)
|
|
4118
|
+
spinner?.fail(`No update available for ${oldSpec}`)
|
|
4119
|
+
}
|
|
4120
|
+
continue
|
|
4121
|
+
}
|
|
4122
4122
|
const isWorkspaceRoot =
|
|
4123
4123
|
pkgJsonPath === pkgEnvDetails.editablePkgJson.filename
|
|
4124
4124
|
const workspaceName = isWorkspaceRoot
|
|
@@ -4512,32 +4512,32 @@ async function pnpmFix(
|
|
|
4512
4512
|
firstPatchedVersionIdentifier,
|
|
4513
4513
|
vulnerableVersionRange
|
|
4514
4514
|
} of infos) {
|
|
4515
|
-
const node = shadowNpmInject.findPackageNode(
|
|
4516
|
-
actualTree,
|
|
4517
|
-
name,
|
|
4518
|
-
oldVersion
|
|
4519
|
-
)
|
|
4520
|
-
if (!node) {
|
|
4521
|
-
continue
|
|
4522
|
-
}
|
|
4523
|
-
const availableVersions = Object.keys(packument.versions)
|
|
4524
|
-
const newVersion = shadowNpmInject.findBestPatchVersion(
|
|
4525
|
-
node,
|
|
4526
|
-
availableVersions,
|
|
4527
|
-
vulnerableVersionRange
|
|
4528
|
-
)
|
|
4529
|
-
const newVersionPackument = newVersion
|
|
4530
|
-
? packument.versions[newVersion]
|
|
4531
|
-
: undefined
|
|
4532
|
-
if (!(newVersion && newVersionPackument)) {
|
|
4533
|
-
if (!unavailableSpecs.has(oldSpec)) {
|
|
4534
|
-
unavailableSpecs.add(oldSpec)
|
|
4535
|
-
spinner?.fail(`No update available for ${oldSpec}`)
|
|
4536
|
-
}
|
|
4537
|
-
continue
|
|
4538
|
-
}
|
|
4539
4515
|
debug.debugLog('pkgJsonPaths', pkgJsonPaths)
|
|
4540
4516
|
for (const pkgJsonPath of pkgJsonPaths) {
|
|
4517
|
+
const node = shadowNpmInject.findPackageNode(
|
|
4518
|
+
actualTree,
|
|
4519
|
+
name,
|
|
4520
|
+
oldVersion
|
|
4521
|
+
)
|
|
4522
|
+
if (!node) {
|
|
4523
|
+
continue
|
|
4524
|
+
}
|
|
4525
|
+
const availableVersions = Object.keys(packument.versions)
|
|
4526
|
+
const newVersion = shadowNpmInject.findBestPatchVersion(
|
|
4527
|
+
node,
|
|
4528
|
+
availableVersions,
|
|
4529
|
+
vulnerableVersionRange
|
|
4530
|
+
)
|
|
4531
|
+
const newVersionPackument = newVersion
|
|
4532
|
+
? packument.versions[newVersion]
|
|
4533
|
+
: undefined
|
|
4534
|
+
if (!(newVersion && newVersionPackument)) {
|
|
4535
|
+
if (!unavailableSpecs.has(oldSpec)) {
|
|
4536
|
+
unavailableSpecs.add(oldSpec)
|
|
4537
|
+
spinner?.fail(`No update available for ${oldSpec}`)
|
|
4538
|
+
}
|
|
4539
|
+
continue
|
|
4540
|
+
}
|
|
4541
4541
|
const isWorkspaceRoot =
|
|
4542
4542
|
pkgJsonPath === pkgEnvDetails.editablePkgJson.filename
|
|
4543
4543
|
const workspaceName = isWorkspaceRoot
|
|
@@ -12308,7 +12308,7 @@ void (async () => {
|
|
|
12308
12308
|
await vendor.updater({
|
|
12309
12309
|
name: SOCKET_CLI_BIN_NAME,
|
|
12310
12310
|
// The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION']".
|
|
12311
|
-
version: '0.14.
|
|
12311
|
+
version: '0.14.112',
|
|
12312
12312
|
ttl: 86_400_000 /* 24 hours in milliseconds */
|
|
12313
12313
|
})
|
|
12314
12314
|
try {
|
|
@@ -12376,5 +12376,5 @@ void (async () => {
|
|
|
12376
12376
|
await shadowNpmInject.captureException(e)
|
|
12377
12377
|
}
|
|
12378
12378
|
})()
|
|
12379
|
-
//# debugId=
|
|
12379
|
+
//# debugId=16f4376c-2c4a-4fe4-9650-b48c4a2c995e
|
|
12380
12380
|
//# sourceMappingURL=cli.js.map
|