@snyk/code-client
Advanced tools
Comparing version 2.1.1 to 2.2.0
@@ -83,3 +83,3 @@ "use strict"; | ||
}; | ||
const getResults = (suggestions) => { | ||
function getResults(suggestions) { | ||
const output = []; | ||
@@ -112,4 +112,10 @@ for (const [, suggestion] of Object.entries(suggestions)) { | ||
}, | ||
], | ||
] | ||
}; | ||
if (suggestion.fingerprints) { | ||
result.fingerprints = {}; | ||
suggestion.fingerprints.forEach(fingerprinting => { | ||
result.fingerprints[fingerprinting.version] = fingerprinting.fingerprint; | ||
}); | ||
} | ||
const codeThreadFlows = []; | ||
@@ -167,5 +173,7 @@ let i = 0; | ||
} | ||
const { message, argumentArray } = getArgumentsAndMessage(helpers, result.message.text); | ||
result.message.text = message; | ||
result.message.arguments = argumentArray; | ||
if (result.message.text) { | ||
const { message, argumentArray } = getArgumentsAndMessage(helpers, result.message.text); | ||
result.message.text = message; | ||
result.message.arguments = argumentArray; | ||
} | ||
const newResult = { | ||
@@ -186,3 +194,4 @@ ...result, | ||
return output; | ||
}; | ||
} | ||
; | ||
//custom string splice implementation | ||
@@ -189,0 +198,0 @@ function stringSplice(str, index, count, add) { |
@@ -11,7 +11,6 @@ { | ||
"scripts": { | ||
"build": "tsc", | ||
"compile": "tsc -p ./", | ||
"build": "tsc -p ./", | ||
"prepare": "npm run build", | ||
"lint": "npx eslint src/**/*.ts", | ||
"lint:fix": "npx eslint --fix src/**/*.ts", | ||
"prepare": "npm run build", | ||
"watch": "tsc -watch -p ./", | ||
@@ -69,3 +68,3 @@ "test": "jest --coverage --runInBand --detectOpenHandles" | ||
}, | ||
"version": "2.1.1" | ||
"version": "2.2.0" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
130255
1848
0