drupflare/worker - v1.0.0
    Preparing search index...

    Function checkInstallable

    • The whole check: one fetch, then arithmetic.

      Parameters

      • fetcher: (url: string) => Promise<Response>

        injected so a test drives it without network, and so a caller can supply a cache-wrapped fetch. Packagist's p2 payloads are immutable per version, which is what makes one cached fetch the right shape.

      • name: string
      • installed: Record<string, string>
      • platform: PlatformVersions = DEFAULT_PLATFORM

      Returns Promise<InstallVerdict>