Versioning the JSON Formatter
This commit is contained in:
parent
a89494c4f7
commit
16da64c814
|
|
@ -1,10 +1,10 @@
|
||||||
var Spec_0_1 = require('./spec_0_1.js');
|
var Spec_0_1 = require('./spec_0_1.js');
|
||||||
var Spec_0_2 = require('./spec_0_2.js');
|
var Spec_0_2 = require('./spec_0_2.js');
|
||||||
var JSONFormatter = require('./jsonformatter.js');
|
var JSONFormatter_0_1 = require('./format/json_0_1.js');
|
||||||
|
|
||||||
function Cloudevent(_spec, _formatter){
|
function Cloudevent(_spec, _formatter){
|
||||||
this.spec = (_spec) ? new _spec(Cloudevent) : new Spec_0_1(Cloudevent);
|
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(){
|
Cloudevent.prototype.format = function(){
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue