@socketsecurity/cli-with-sentry 0.14.115 → 0.14.116
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 +3 -4
- package/dist/module-sync/cli.js.map +1 -1
- package/dist/module-sync/shadow-npm-inject.js +28 -11
- package/dist/module-sync/shadow-npm-inject.js.map +1 -1
- package/dist/require/cli.js +3 -4
- package/dist/require/cli.js.map +1 -1
- package/dist/require/shadow-npm-inject.js +28 -11
- package/dist/require/shadow-npm-inject.js.map +1 -1
- package/package.json +1 -1
|
@@ -627,7 +627,7 @@ async function setupSdk(
|
|
|
627
627
|
// The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_NAME']".
|
|
628
628
|
name: '@socketsecurity/cli',
|
|
629
629
|
// The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION']".
|
|
630
|
-
version: '0.14.
|
|
630
|
+
version: '0.14.116',
|
|
631
631
|
// The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_HOMEPAGE']".
|
|
632
632
|
homepage: 'https://github.com/SocketDev/socket-cli'
|
|
633
633
|
})
|
|
@@ -1429,19 +1429,36 @@ function findBestPatchVersion(
|
|
|
1429
1429
|
let eligibleVersions
|
|
1430
1430
|
if (manifestData && manifestData.name === manifestData.package) {
|
|
1431
1431
|
const major = vendor.semverExports.major(manifestData.version)
|
|
1432
|
-
eligibleVersions = availableVersions.filter(
|
|
1433
|
-
|
|
1434
|
-
|
|
1432
|
+
eligibleVersions = availableVersions.filter(v => {
|
|
1433
|
+
const coerced = vendor.semverExports.coerce(v)
|
|
1434
|
+
if (coerced) {
|
|
1435
|
+
try {
|
|
1436
|
+
return vendor.semverExports.major(coerced) === major
|
|
1437
|
+
} catch (e) {
|
|
1438
|
+
debug.debugLog(`Error parsing '${v}'`, e)
|
|
1439
|
+
}
|
|
1440
|
+
}
|
|
1441
|
+
return false
|
|
1442
|
+
})
|
|
1435
1443
|
} else {
|
|
1436
1444
|
const major = vendor.semverExports.major(node.version)
|
|
1437
|
-
eligibleVersions = availableVersions.filter(
|
|
1438
|
-
v
|
|
1445
|
+
eligibleVersions = availableVersions.filter(v => {
|
|
1446
|
+
const coerced = vendor.semverExports.coerce(v)
|
|
1447
|
+
try {
|
|
1439
1448
|
// Filter for versions that are within the current major version and
|
|
1440
1449
|
// are NOT in the vulnerable range.
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1450
|
+
if (coerced) {
|
|
1451
|
+
return (
|
|
1452
|
+
vendor.semverExports.major(coerced) === major &&
|
|
1453
|
+
(!vulnerableVersionRange ||
|
|
1454
|
+
!vendor.semverExports.satisfies(v, vulnerableVersionRange))
|
|
1455
|
+
)
|
|
1456
|
+
}
|
|
1457
|
+
} catch (e) {
|
|
1458
|
+
debug.debugLog(`Error parsing '${v}'`, e)
|
|
1459
|
+
}
|
|
1460
|
+
return false
|
|
1461
|
+
})
|
|
1445
1462
|
}
|
|
1446
1463
|
return vendor.semverExports.maxSatisfying(eligibleVersions, '*')
|
|
1447
1464
|
}
|
|
@@ -2595,5 +2612,5 @@ exports.supportedConfigKeys = supportedConfigKeys
|
|
|
2595
2612
|
exports.updateConfigValue = updateConfigValue
|
|
2596
2613
|
exports.updateNode = updateNode
|
|
2597
2614
|
exports.updatePackageJsonFromNode = updatePackageJsonFromNode
|
|
2598
|
-
//# debugId=
|
|
2615
|
+
//# debugId=5a309826-f704-4471-96b5-cdefeafaf366
|
|
2599
2616
|
//# sourceMappingURL=shadow-npm-inject.js.map
|