Skip to content

CloudEvent omits data from console output #432

@alex-dixon

Description

@alex-dixon

Describe the Bug
Not sure this is a bug since it may be intentional, but I got lost trying to figure where my event data was until I saw it was defined as a getter and wasn't printing to the console.

Steps to Reproduce

  1. console.log(myEvent) => headers
  2. console.log(myEvent.data) => data

Expected Behavior

console.log(myEvent) => headers + data (❤️)

Additional context
node v14.17.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions