Semi colon

Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
Fabio José 2018-12-15 12:03:14 -02:00
parent fc03bf37a3
commit 6deb57887d
1 changed files with 10 additions and 10 deletions

View File

@ -1,5 +1,5 @@
var uuid = require("uuid/v4");
var empty = require("is-empty")
var empty = require("is-empty");
function Spec02(){
this.payload = {
@ -29,46 +29,46 @@ Spec02.prototype.check = function(){
if(empty(this.payload["id"])) {
throw {message: "'id' is invalid"};
}
}
};
Spec02.prototype.type = function(_type){
this.payload["type"] = _type;
return this;
}
};
Spec02.prototype.source = function(_source){
this.payload["source"] = _source;
return this;
}
};
Spec02.prototype.id = function(_id){
this.payload["id"] = _id;
return this;
}
};
Spec02.prototype.time = function(_time){
this.payload["time"] = _time.toISOString();
return this;
}
};
Spec02.prototype.schemaurl = function(_schemaurl){
this.payload["schemaurl"] = _schemaurl;
return this;
}
};
Spec02.prototype.contenttype = function(_contenttype){
this.payload["contenttype"] = _contenttype;
return this;
}
};
Spec02.prototype.data = function(_data){
this.payload["data"] = _data;
return this;
}
};
Spec02.prototype.addExtension = function(key, value){
this.payload[key] = value;
return this;
}
};
module.exports = Spec02;