Skip to content

Commit d418789

Browse files
committed
Fixing formats
Signed-off-by: Fabio José <[email protected]>
1 parent d21881a commit d418789

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ These are the supported specifications by this version.
5555
| Emit Structured events over HTTP | yes | yes |
5656
| Emit Binary events over HTTP | yes | yes |
5757
| JSON Event Format | yes | yes |
58-
| Receice Structure events over HTTP | no | yes |
58+
| Receice Structured events over HTTP| no | yes |
5959
| Receice Binary events over HTTP | no | yes |
6060

6161
## How to use
@@ -95,7 +95,7 @@ cloudevent01
9595
* to Cloudevent
9696
*/
9797
cloudevent01
98-
.eventTypeVersion("1.0");
98+
.eventTypeVersion("1.0");
9999

100100
/*
101101
* Constructs an instance with:
@@ -130,8 +130,6 @@ var cloudevent =
130130
* Format the payload and return it
131131
*/
132132
var formatted = cloudevent.format();
133-
134-
var ce =
135133
```
136134

137135
#### Emitting
@@ -140,9 +138,10 @@ var ce =
140138
var Cloudevent = require("cloudevents-sdk");
141139

142140
// The event
143-
var cloudevent = new Cloudevent()
144-
.type("com.github.pull.create")
145-
.source("urn:event:from:myapi/resourse/123");
141+
var cloudevent =
142+
new Cloudevent()
143+
.type("com.github.pull.create")
144+
.source("urn:event:from:myapi/resourse/123");
146145

147146
// The binding configuration using POST
148147
var config = {

0 commit comments

Comments
 (0)