Skip to content

analyzePayload skips the option validation compact/CLI enforce #24

Description

@royalpinto007

Problem

pricePerMTok: -5 yields costUSD: -0.00005 with no throw; top: -1 yields empty biggest despite units existing. compact and the CLI validate; analyzePayload uses them raw.

Where

src/index.mjs (analyzePayload options destructuring).

Acceptance

Add a failing test first expecting RangeError on negative price / non-integer top. Then fix.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions