Skip to content

Attach original (non proxied) input in DEV mode #2

@caesarsol

Description

@caesarsol

Or give access as a third argument to mini functions.

Use case:

const transformEvent = traph({
  id: i => i.qid::pipe(Number),
  timestamp: i => millisToSec(Number(i.starttime)),
  severity: i => Number(i.magnitude),

  // We often need the original data in debug, 
  // but here is passed as Proxy and not very comfortable!
  _original: (i) => i,
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions