"Fossies" - the Fresh Open Source Software Archive

Member "cli-1.1280.1/src/lib/dep-graph.ts" (20 Feb 2024, 279 Bytes) of package /linux/misc/snyk-cli-1.1280.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) TypeScript source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 import { DepGraph } from '@snyk/dep-graph';
    2 
    3 export function hasUnknownVersions(depGraph?: DepGraph): boolean {
    4   if (!depGraph) {
    5     return false;
    6   }
    7   for (const pkg of depGraph.getPkgs()) {
    8     if (pkg.version === 'unknown') {
    9       return true;
   10     }
   11   }
   12   return false;
   13 }