File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 14141515 "license" : " Apache-2.0" ,
1616 "dependencies" : {
17- "cloudevents-sdk" : " ~2.0.1 " ,
17+ "cloudevents-sdk" : " ~2.0.2 " ,
1818 "express" : " ^4.17.1"
1919 }
2020}
Original file line number Diff line number Diff line change 2323 },
2424 "devDependencies" : {
2525 "@types/node" : " ^8.9.0" ,
26- "cloudevents-sdk" : " ~2.0.1 " ,
26+ "cloudevents-sdk" : " ~2.0.2 " ,
2727 "gts" : " ^1.1.0" ,
2828 "typescript" : " ~3.9.5"
2929 }
Original file line number Diff line number Diff line change 1- import { CloudEvent , HTTPReceiver } from "../../.. " ;
2- import { CloudEventV1 } from "../../.. /lib/v1" ;
1+ import { CloudEvent , HTTPReceiver } from "cloudevents-sdk " ;
2+ import { CloudEventV1 } from "cloudevents-sdk /lib/v1" ;
33
44export function doSomeStuff ( ) {
55 const receiver = new HTTPReceiver ( ) ;
@@ -18,6 +18,7 @@ export function doSomeStuff() {
1818 console . log ( "My structured event extensions:" , myevent . getExtensions ( ) ) ;
1919
2020 // ------ receiver structured
21+ // The header names should be standarized to use lowercase
2122 const headers = {
2223 "content-type" : "application/cloudevents+json"
2324 } ;
You can’t perform that action at this time.
0 commit comments