mobbdev 0.0.191 → 0.0.193

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mobbdev",
3
- "version": "0.0.191",
3
+ "version": "0.0.193",
4
4
  "description": "Automated secure code remediation tool",
5
5
  "repository": "git+https://github.com/mobb-dev/bugsy.git",
6
6
  "main": "dist/index.js",
@@ -47,7 +47,7 @@
47
47
  "dotenv": "16.4.7",
48
48
  "extract-zip": "2.0.1",
49
49
  "globby": "14.0.2",
50
- "graphql": "16.9.0",
50
+ "graphql": "16.10.0",
51
51
  "graphql-request": "6.1.0",
52
52
  "graphql-tag": "2.12.6",
53
53
  "graphql-ws": "5.16.0",
@@ -32,20 +32,26 @@ const supportedPlatforms = [
32
32
  ]
33
33
 
34
34
  function installBinary() {
35
- const supportedPlatform = getPlatformMetadata()
36
- if (!supportedPlatform) {
37
- console.warn(cxOperatingSystemSupportMessage)
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
- 'The rest of Bugsy features and scanners will be available for use'
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() {