From ed8148326b2c1890845cf97c469c645ec76e3f51 Mon Sep 17 00:00:00 2001 From: Ali Ok Date: Mon, 4 Jan 2021 19:02:53 +0300 Subject: [PATCH] chore(docs): Fix minor import problems in README (#374) Signed-off-by: Ali Ok --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f274a40..ee18f98 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ for `headers` and `body`. ```js const axios = require("axios").default; -const { HTTP } = require("cloudevents"); +const { HTTP, CloudEvent } = require("cloudevents"); const ce = new CloudEvent({ type, source, data }); const message = HTTP.binary(ce); // Or HTTP.structured(ce) @@ -69,7 +69,7 @@ You may also use the `emitterFor()` function as a convenience. ```js const axios = require("axios").default; -const { emitterFor, Mode } = require("cloudevents"); +const { emitterFor, Mode, CloudEvent } = require("cloudevents"); function sendWithAxios(message) { // Do what you need with the message headers