@eagleoutice/flowr - v2.15.8
    Preparing search index...

    A transparent, read-only view over several SigDatabase shards described by a SigDbManifest. When the manifest embeds each shard's index (the default), openManifest() reads only that small file to build the routing table.

    Implements

    Index
    baseDir: string

    the directory the manifest's shard/dict paths are relative to

    manifest: SigDbManifest
    • Close every opened shard's file descriptor and drop the in-memory caches (opened shards + shared dictionaries), so the (potentially large) dictionary strings can be reclaimed by the GC. Idempotent.

      Returns void

    • The packages exporting name, ordered by downloads (descending, ties by name); answered without a reverse index, since a name the database never stores is rejected outright and only blobs that may hold it are decoded.

      Parameters

      • name: string

      Returns readonly string[]

    • Warm the shards (and their shared dictionaries) needed for pkgs, or everything when omitted. Afterward, the synchronous query methods, for the latest and historical versions, do no I/O or decompression.

      Parameters

      • Optionalpkgs: readonly string[]

      Returns Promise<void>

    • Warm just the shards matching include, e.g., only the current-tier top shards (the base + most-downloaded packages) to speed up common lookups without paying for the long tail or the history shards. See preload.

      Parameters

      Returns Promise<void>

    • The release date of a package version, undefined if unknown. Omitted, version defaults to the newest release by recorded date (unlike the queries above, which default to the package's recorded latest).

      Parameters

      • pkg: string
      • Optionalversion: string

      Returns Date | undefined

    • Transitive callees of a function within one package version, expanding the stored local call graphs; version defaults to the newest.

      Parameters

      • pkg: string
      • name: string
      • Optionalversion: string

      Returns string[] | undefined