UNPKG

@code-pushup/js-packages-plugin

Version:
14 lines 569 B
import { objectToEntries } from '@code-pushup/utils'; import { filterOutWarnings } from './utils.js'; export function pnpmToOutdatedResult(output) { const pnpmOutdated = JSON.parse(filterOutWarnings(output)); // "current" may be missing if package is not installed // Fallback to "wanted" - same approach as npm return objectToEntries(pnpmOutdated).map(([name, { current, latest, wanted, dependencyType: type }]) => ({ name, current: current || wanted, latest, type, })); } //# sourceMappingURL=outdated-result.js.map