From 7aa757015ae605aa5dad30f002e076a53d621fd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabio=20Jos=C3=A9?= Date: Wed, 14 Nov 2018 21:17:03 -0200 Subject: [PATCH] imports of bindings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabio José --- lib/cloudevent.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/cloudevent.js b/lib/cloudevent.js index d7214d2..1c7e573 100644 --- a/lib/cloudevent.js +++ b/lib/cloudevent.js @@ -1,6 +1,7 @@ -var Spec_0_1 = require('./specs/spec_0_1.js'); -var Spec_0_2 = require('./specs/spec_0_2.js'); -var JSONFormatter_0_1 = require('./formats/json_0_1.js'); +var Spec_0_1 = require('./specs/spec_0_1.js'); +var Spec_0_2 = require('./specs/spec_0_2.js'); +var JSONFormatter_0_1 = require('./formats/json_0_1.js'); +var HTTPStructured_0_1 = require('./bindings/http/structured_0_1.js'); /* * Class created using the Builder Design Pattern. @@ -53,5 +54,10 @@ Cloudevent.formats = { 'json0.1': JSONFormatter_0_1 }; +Cloudevent.bindings = { + 'http-structured' : HTTPStructured_0_1, + 'http-structured0.1' : HTTPStructured_0_1 +}; + module.exports = Cloudevent;