mobbdev 0.0.191 → 0.0.192
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/package.json +1 -1
- package/src/post_install/cx_install.mjs +17 -11
package/package.json
CHANGED
|
@@ -32,20 +32,26 @@ const supportedPlatforms = [
|
|
|
32
32
|
]
|
|
33
33
|
|
|
34
34
|
function installBinary() {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
try {
|
|
36
|
+
const supportedPlatform = getPlatformMetadata()
|
|
37
|
+
if (!supportedPlatform) {
|
|
38
|
+
console.warn(cxOperatingSystemSupportMessage)
|
|
39
|
+
console.warn(
|
|
40
|
+
'The rest of Bugsy features and scanners will be available for use'
|
|
41
|
+
)
|
|
42
|
+
return
|
|
43
|
+
}
|
|
44
|
+
const { target } = supportedPlatform
|
|
45
|
+
|
|
46
|
+
const url = `https://github.com/Checkmarx/ast-cli/releases/download/2.0.55/ast-cli_${target}`
|
|
47
|
+
const binaryName = supportedPlatform.type === 'Windows_NT' ? 'cx.exe' : 'cx'
|
|
48
|
+
|
|
49
|
+
install({ binaryName, url })
|
|
50
|
+
} catch (err) {
|
|
38
51
|
console.warn(
|
|
39
|
-
|
|
52
|
+
"Optional Checkmarx dependency was not installed. If you don't require this functionality, you can safely ignore this message."
|
|
40
53
|
)
|
|
41
|
-
return
|
|
42
54
|
}
|
|
43
|
-
const { target } = supportedPlatform
|
|
44
|
-
|
|
45
|
-
const url = `https://github.com/Checkmarx/ast-cli/releases/download/2.0.55/ast-cli_${target}`
|
|
46
|
-
const binaryName = supportedPlatform.type === 'Windows_NT' ? 'cx.exe' : 'cx'
|
|
47
|
-
|
|
48
|
-
install({ binaryName, url })
|
|
49
55
|
}
|
|
50
56
|
|
|
51
57
|
export function getPlatformMetadata() {
|