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

    Function checkInstallable

    • The whole check: one fetch, then arithmetic.

      Parameters

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

        injected so a test runs without network and a caller can pass a cache-wrapped fetch (p2 payloads are immutable per version)

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

      Returns Promise<InstallVerdict>