Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@
"fast-toml": "^0.5.4",
"fast-xml-parser": "^4.2.4",
"help": "^3.0.2",
"node-fetch": "^2.6.7",
"packageurl-js": "^1.0.2",
"yargs": "^17.7.2",
"node-fetch": "^2.6.7"
"yargs": "^17.7.2"
},
"devDependencies": {
"@babel/core": "^7.23.2",
Expand Down
19 changes: 19 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,27 @@ export function testSelectExhortBackend(opts) {
*/
let theUrl

/**
* @overload
* @param {string} manifest
* @param {true} html
* @param {object} [opts={}]
* @returns {Promise<string>}
* @throws {Error}
*/

/**
* @overload
* @param {string} manifest
* @param {false} html
* @param {object} [opts={}]
* @returns {Promise<AnalysisReport>}
* @throws {Error}
*/

/**
* Get stack analysis report for a manifest file.
* @overload
* @param {string} manifest - path for the manifest
* @param {boolean} [html=false] - true will return a html string, false will return AnalysisReport
* @param {{}} [opts={}] - optional various options to pass along the application
Expand Down
2 changes: 1 addition & 1 deletion src/providers/javascript_npm.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default class Javascript_npm extends Base_javascript {
_updateLockFileCmdArgs(manifestDir) {
const args = ['install', '--package-lock-only']
if (manifestDir) {
args.push('--dir', manifestDir)
args.push('--prefix', manifestDir)
}
return args;
}
Expand Down
Loading