Versioning the JSON Formatter

Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
Fabio José 2018-11-09 14:06:00 -02:00
parent 02c9aa3199
commit b79703fd00
1 changed files with 4 additions and 4 deletions

View File

@ -1,10 +1,10 @@
var Spec_0_1 = require('./spec_0_1.js');
var Spec_0_2 = require('./spec_0_2.js');
var JSONFormatter = require('./jsonformatter.js');
var Spec_0_1 = require('./spec_0_1.js');
var Spec_0_2 = require('./spec_0_2.js');
var JSONFormatter_0_1 = require('./format/json_0_1.js');
function Cloudevent(_spec, _formatter){
this.spec = (_spec) ? new _spec(Cloudevent) : new Spec_0_1(Cloudevent);
this.formatter = (_formatter) ? _formatter : new JSONFormatter();
this.formatter = (_formatter) ? _formatter : new JSONFormatter_0_1();
}
Cloudevent.prototype.format = function(){