@socketsecurity/cli-with-sentry 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/instrument-with-sentry.js +2 -2
- package/dist/instrument-with-sentry.js.map +1 -1
- 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/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.112:79a6e07:49616d8e: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
|
|
@@ -4516,32 +4516,32 @@ async function pnpmFix(
|
|
|
4516
4516
|
firstPatchedVersionIdentifier,
|
|
4517
4517
|
vulnerableVersionRange
|
|
4518
4518
|
} of infos) {
|
|
4519
|
-
const node = shadowNpmInject.findPackageNode(
|
|
4520
|
-
actualTree,
|
|
4521
|
-
name,
|
|
4522
|
-
oldVersion
|
|
4523
|
-
)
|
|
4524
|
-
if (!node) {
|
|
4525
|
-
continue
|
|
4526
|
-
}
|
|
4527
|
-
const availableVersions = Object.keys(packument.versions)
|
|
4528
|
-
const newVersion = shadowNpmInject.findBestPatchVersion(
|
|
4529
|
-
node,
|
|
4530
|
-
availableVersions,
|
|
4531
|
-
vulnerableVersionRange
|
|
4532
|
-
)
|
|
4533
|
-
const newVersionPackument = newVersion
|
|
4534
|
-
? packument.versions[newVersion]
|
|
4535
|
-
: undefined
|
|
4536
|
-
if (!(newVersion && newVersionPackument)) {
|
|
4537
|
-
if (!unavailableSpecs.has(oldSpec)) {
|
|
4538
|
-
unavailableSpecs.add(oldSpec)
|
|
4539
|
-
spinner?.fail(`No update available for ${oldSpec}`)
|
|
4540
|
-
}
|
|
4541
|
-
continue
|
|
4542
|
-
}
|
|
4543
4519
|
debug.debugLog('pkgJsonPaths', pkgJsonPaths)
|
|
4544
4520
|
for (const pkgJsonPath of pkgJsonPaths) {
|
|
4521
|
+
const node = shadowNpmInject.findPackageNode(
|
|
4522
|
+
actualTree,
|
|
4523
|
+
name,
|
|
4524
|
+
oldVersion
|
|
4525
|
+
)
|
|
4526
|
+
if (!node) {
|
|
4527
|
+
continue
|
|
4528
|
+
}
|
|
4529
|
+
const availableVersions = Object.keys(packument.versions)
|
|
4530
|
+
const newVersion = shadowNpmInject.findBestPatchVersion(
|
|
4531
|
+
node,
|
|
4532
|
+
availableVersions,
|
|
4533
|
+
vulnerableVersionRange
|
|
4534
|
+
)
|
|
4535
|
+
const newVersionPackument = newVersion
|
|
4536
|
+
? packument.versions[newVersion]
|
|
4537
|
+
: undefined
|
|
4538
|
+
if (!(newVersion && newVersionPackument)) {
|
|
4539
|
+
if (!unavailableSpecs.has(oldSpec)) {
|
|
4540
|
+
unavailableSpecs.add(oldSpec)
|
|
4541
|
+
spinner?.fail(`No update available for ${oldSpec}`)
|
|
4542
|
+
}
|
|
4543
|
+
continue
|
|
4544
|
+
}
|
|
4545
4545
|
const isWorkspaceRoot =
|
|
4546
4546
|
pkgJsonPath === pkgEnvDetails.editablePkgJson.filename
|
|
4547
4547
|
const workspaceName = isWorkspaceRoot
|
|
@@ -12312,7 +12312,7 @@ void (async () => {
|
|
|
12312
12312
|
await vendor.updater({
|
|
12313
12313
|
name: SOCKET_CLI_BIN_NAME,
|
|
12314
12314
|
// The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION']".
|
|
12315
|
-
version: '0.14.
|
|
12315
|
+
version: '0.14.112',
|
|
12316
12316
|
ttl: 86_400_000 /* 24 hours in milliseconds */
|
|
12317
12317
|
})
|
|
12318
12318
|
try {
|
|
@@ -12380,5 +12380,5 @@ void (async () => {
|
|
|
12380
12380
|
await shadowNpmInject.captureException(e)
|
|
12381
12381
|
}
|
|
12382
12382
|
})()
|
|
12383
|
-
//# debugId=
|
|
12383
|
+
//# debugId=d1400c3c-29d5-4f5d-9766-57e761274a4b
|
|
12384
12384
|
//# sourceMappingURL=cli.js.map
|