Commit Graph

11 Commits

Author SHA1 Message Date
Snyk bot 6be3b27514
fix: cloudevents from 3.2.0 to 4.0.0 (#376)
* fix: examples/express-ex/package.json to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-AXIOS-1038255

* fix(examples): remove the body-parser module.

* When a structured formatted CloudEvent comes in, the body parser module does know how to parse it since the content type is not application/json, which resulted in an empty request body

Signed-off-by: Lucas Holmquist <lholmqui@redhat.com>

Co-authored-by: Lucas Holmquist <lholmqui@redhat.com>
2021-01-06 13:46:21 -05:00
Philip Hayes 4779d89ad0
chore(example): Replaced body parser with express JSON parser (#334)
Signed-off-by: Philip Hayes <phayes@redhat.com>

Co-authored-by: Philip Hayes <phayes@redhat.com>
2020-09-02 17:09:53 -04:00
Lance Ball f3953a9a5a
feat: introduce Message, Serializer, Deserializer and Binding interfaces (#324)
* lib(messages): Implement a 4.0 Messages and other supporting interfaces

This commit introduces the Message, Serializer and Deserializer, and Binding
interfaces used to convert a CloudEvent into a Message that can be sent across
a transport protocol. The first protocol implemented for this is HTTP, and some
of the functionality formerly in src/transport/http has been simplified,
reduced and/or moved to /src/messages/http.

Test for V1 and V3 events are in place. Conformance tests have been modified to use
these new interfaces vs. the HTTP Receiver class.

Signed-off-by: Lance Ball <lball@redhat.com>
2020-08-26 18:26:50 -04:00
Lucas Holmquist 763838c89c
chore: Update examples to use latest sdk changes (#282)
* This updates all the examples to use the latest module version(3.0.0)


Signed-off-by: Lucas Holmquist <lholmqui@redhat.com>
2020-07-30 09:24:02 -04:00
Lucas Holmquist dcb3c4e98a
chore: Update examples to use the latest sdk version(2.0.2) (#206)
Signed-off-by: Lucas Holmquist <lholmqui@redhat.com>
2020-06-09 18:08:15 -04:00
Helio Frota bb8e0f9e0c
fix: Fix Express example installation (#77)
Signed-off-by: Helio Frota <00hf11@gmail.com>
2020-04-29 10:44:02 -07:00
Fabio José 36d61f190e Express examples with Spev 1.0
Signed-off-by: Fabio José <fabiojose@gmail.com>
2019-11-06 11:21:53 -03:00
Fabio José 83adbf1ee0 Fix reference to cloudevents-sdk
Signed-off-by: Fabio José <fabiojose@gmail.com>
2019-08-07 12:36:23 -03:00
Fabio José e1b04bdcdb Change to use promise
Signed-off-by: Fabio José <fabiojose@gmail.com>
2019-06-25 12:05:02 -03:00
Fabio José 951008d797 Temporary ref to dep from git
Signed-off-by: Fabio José <fabiojose@gmail.com>
2019-06-21 09:08:11 -03:00
Fabio José 9b98aad083 Examples folder start with expressjs
Signed-off-by: Fabio José <fabiojose@gmail.com>
2019-06-16 21:05:10 -03:00