@socketsecurity/cli 0.14.145 → 0.14.147
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/cli.js +28 -24
- package/dist/cli.js.map +1 -1
- package/dist/shadow-npm-inject.js +17 -8
- package/dist/shadow-npm-inject.js.map +1 -1
- package/package.json +5 -5
|
@@ -623,7 +623,7 @@ async function setupSdk(
|
|
|
623
623
|
// The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_NAME']".
|
|
624
624
|
name: 'socket',
|
|
625
625
|
// The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION']".
|
|
626
|
-
version: '0.14.
|
|
626
|
+
version: '0.14.147',
|
|
627
627
|
// The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_HOMEPAGE']".
|
|
628
628
|
homepage: 'https://github.com/SocketDev/socket-cli'
|
|
629
629
|
})
|
|
@@ -644,13 +644,22 @@ function applyRange(refRange, version, style = 'preserve') {
|
|
|
644
644
|
case 'lte':
|
|
645
645
|
return `<=${version}`
|
|
646
646
|
case 'preserve': {
|
|
647
|
-
const
|
|
648
|
-
|
|
649
|
-
].flat()
|
|
647
|
+
const range = new vendor.semverExports.Range(refRange)
|
|
648
|
+
const { raw } = range
|
|
649
|
+
const comparators = [...range.set].flat()
|
|
650
650
|
const { length } = comparators
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
651
|
+
if (length === 1) {
|
|
652
|
+
const char = /^[<>]=?/.exec(raw)?.[0]
|
|
653
|
+
if (char) {
|
|
654
|
+
return `${char}${version}`
|
|
655
|
+
}
|
|
656
|
+
} else if (length === 2) {
|
|
657
|
+
const char = /^[~^]/.exec(raw)?.[0]
|
|
658
|
+
if (char) {
|
|
659
|
+
return `${char}${version}`
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
return version
|
|
654
663
|
}
|
|
655
664
|
case 'tilde':
|
|
656
665
|
return `~${version}`
|
|
@@ -2608,5 +2617,5 @@ exports.supportedConfigKeys = supportedConfigKeys
|
|
|
2608
2617
|
exports.updateConfigValue = updateConfigValue
|
|
2609
2618
|
exports.updateNode = updateNode
|
|
2610
2619
|
exports.updatePackageJsonFromNode = updatePackageJsonFromNode
|
|
2611
|
-
//# debugId=
|
|
2620
|
+
//# debugId=70b0187a-0c30-474d-9bf2-66de41a1ef35
|
|
2612
2621
|
//# sourceMappingURL=shadow-npm-inject.js.map
|