Missing semicolon

Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
Fabio José 2018-12-15 11:39:35 -02:00
parent 2629b0fb75
commit 2e9685f8d6
1 changed files with 11 additions and 11 deletions

View File

@ -16,7 +16,7 @@ function Spec_0_1(_caller){
*/ */
this.caller.prototype.eventTypeVersion = function(_version){ this.caller.prototype.eventTypeVersion = function(_version){
this.spec.eventTypeVersion(_version); this.spec.eventTypeVersion(_version);
} };
} }
/* /*
@ -30,47 +30,47 @@ Spec_0_1.prototype.check = function() {
throw {message: "'eventType' is invalid"}; throw {message: "'eventType' is invalid"};
} }
} };
Spec_0_1.prototype.type = function(_type){ Spec_0_1.prototype.type = function(_type){
this.payload["eventType"] = _type; this.payload["eventType"] = _type;
return this; return this;
} };
Spec_0_1.prototype.eventTypeVersion = function(version){ Spec_0_1.prototype.eventTypeVersion = function(version){
this.payload["eventTypeVersion"] = version; this.payload["eventTypeVersion"] = version;
return this; return this;
} };
Spec_0_1.prototype.source = function(_source){ Spec_0_1.prototype.source = function(_source){
this.payload["source"] = _source; this.payload["source"] = _source;
return this; return this;
} };
Spec_0_1.prototype.id = function(_id){ Spec_0_1.prototype.id = function(_id){
this.payload["eventID"] = _id; this.payload["eventID"] = _id;
return this; return this;
} };
Spec_0_1.prototype.time = function(_time){ Spec_0_1.prototype.time = function(_time){
this.payload["eventTime"] = _time.toISOString(); this.payload["eventTime"] = _time.toISOString();
return this; return this;
} };
Spec_0_1.prototype.schemaurl = function(_schemaurl){ Spec_0_1.prototype.schemaurl = function(_schemaurl){
this.payload["schemaURL"] = _schemaurl; this.payload["schemaURL"] = _schemaurl;
return this; return this;
} };
Spec_0_1.prototype.contenttype = function(_contenttype){ Spec_0_1.prototype.contenttype = function(_contenttype){
this.payload["contentType"] = _contenttype; this.payload["contentType"] = _contenttype;
return this; return this;
} };
Spec_0_1.prototype.data = function(_data){ Spec_0_1.prototype.data = function(_data){
this.payload["data"] = _data; this.payload["data"] = _data;
return this; return this;
} };
Spec_0_1.prototype.addExtension = function(key, value){ Spec_0_1.prototype.addExtension = function(key, value){
if(!this.payload["extensions"]){ if(!this.payload["extensions"]){
@ -78,6 +78,6 @@ Spec_0_1.prototype.addExtension = function(key, value){
} }
this.payload["extensions"][key] = value; this.payload["extensions"][key] = value;
return this; return this;
} };
module.exports = Spec_0_1; module.exports = Spec_0_1;