Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
6 changes: 5 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,11 @@ async function componentAnalysis(manifest, opts = {}) {
fs.accessSync(manifest, fs.constants.R_OK)
opts["manifest-type"] = path.basename(manifest)
let provider = match(manifest, availableProviders, opts) // throws error if no matching provider
return await analysis.requestComponent(provider, manifest, theUrl, opts) // throws error request sending failed
const result = await analysis.requestComponent(provider, manifest, theUrl, opts) // throws error request sending failed
if (typeof provider._cmdName === 'function') {
Comment thread
a-oren marked this conversation as resolved.
Outdated
result.packageManager = provider._cmdName()
}
return result
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/providers/python_pip.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
import Python_controller from './python_controller.js'
import { getParser, getIgnoreQuery, getPinnedVersionQuery } from './requirements_parser.js'

export default { isSupported, validateLockFile, provideComponent, provideStack, readLicenseFromManifest }
export default { isSupported, validateLockFile, provideComponent, provideStack, readLicenseFromManifest, _cmdName() { return 'pip' } }
Comment thread
a-oren marked this conversation as resolved.
Outdated

/** @typedef {{name: string, version: string, dependencies: DependencyEntry[], hashes?: Array<{alg: string, content: string}>}} DependencyEntry */

Expand Down
Loading