From 8598be327b4e13ad7d946f0b5536215b313569f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabio=20Jos=C3=A9?= Date: Mon, 29 Jul 2019 13:19:54 -0300 Subject: [PATCH] Export the SDK minimum requirements MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabio José --- v02/index.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/v02/index.js b/v02/index.js index aecc122..9038d18 100644 --- a/v02/index.js +++ b/v02/index.js @@ -1,5 +1,16 @@ +const Cloudevent = require("../lib/cloudevent.js"); const Spec = require("../lib/specs/spec_0_2.js"); +const StructuredHTTPEmitter = + require("../lib/bindings/http/emitter_structured_0_2.js"); +const {HTTPBinary02} = require("../lib/bindings/http/emitter_binary_0_2.js"); + +function event() { + return new Cloudevent(Spec); +} module.exports = { - Spec + Spec, + StructuredHTTPEmitter, + BinaryHTTPEmitter : HTTPBinary02, + event };