drupflare/drangler - v0.1.0
    Preparing search index...

    Function readWorkersPlan

    • Reads a Workers plan out of a subscription list.

      Tolerant on purpose, and it returns unknown rather than guessing free. The subscription envelope carries several products and their rate-plan naming has changed; a reader that treated "no paid marker found" as proof of the free plan would report a confident wrong answer every time the naming moved, which is worse than reporting that it could not tell.

      Parameters

      • subscriptions: readonly { rate_plan?: { id?: string; public_name?: string } }[]

      Returns PlanReading