-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src(templates)!: modify the nodejs event template to accept a cloudev…
…ent (#356) * Simplify the nodejs events template Pretty-printing the contents of the event and its envelope for each request. This is handy when invoked as a Knative event sink as some sources, e.g. Kafka, ignore the response body. Co-authored-by: Lance Ball <lball@redhat.com> * Expect the event parameter to be the entire CloudEvent This will require a change to the faas-js-runtime, but at least the template won't need to change when that's released * Update nodejs guide to reflect 2nd arg's type is CloudEvent * Templates now using faas-js-runtime 0.7.1 Co-authored-by: Lance Ball <lball@redhat.com>
- Loading branch information
1 parent
f62303b
commit caf0659
Showing
11 changed files
with
190 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.