diff --git a/lib/cloudevent.js b/lib/cloudevent.js index 072e866..8c6bcdc 100644 --- a/lib/cloudevent.js +++ b/lib/cloudevent.js @@ -1,7 +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 HTTPStructured_0_1 = require('./bindings/http/structured_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. @@ -72,22 +72,21 @@ Cloudevent.prototype.addExtension = function(key, value){ * Export the specs */ Cloudevent.specs = { - '0.1': Spec_0_1, - '0.2': Spec_0_2 + "0.1": Spec_0_1, + "0.2": Spec_0_2 }; /* * Export the formats */ Cloudevent.formats = { - 'json' : JSONFormatter_0_1, - 'json0.1': JSONFormatter_0_1 + "json" : JSONFormatter_0_1, + "json0.1": JSONFormatter_0_1 }; Cloudevent.bindings = { - 'http-structured' : HTTPStructured_0_1, - 'http-structured0.1' : HTTPStructured_0_1 + "http-structured" : HTTPStructured_0_1, + "http-structured0.1" : HTTPStructured_0_1 }; module.exports = Cloudevent; -