Missing semicolon
Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
parent
2629b0fb75
commit
2e9685f8d6
|
@ -16,7 +16,7 @@ function Spec_0_1(_caller){
|
|||
*/
|
||||
this.caller.prototype.eventTypeVersion = function(_version){
|
||||
this.spec.eventTypeVersion(_version);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -30,47 +30,47 @@ Spec_0_1.prototype.check = function() {
|
|||
throw {message: "'eventType' is invalid"};
|
||||
}
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
Spec_0_1.prototype.type = function(_type){
|
||||
this.payload["eventType"] = _type;
|
||||
return this;
|
||||
}
|
||||
};
|
||||
|
||||
Spec_0_1.prototype.eventTypeVersion = function(version){
|
||||
this.payload["eventTypeVersion"] = version;
|
||||
return this;
|
||||
}
|
||||
};
|
||||
|
||||
Spec_0_1.prototype.source = function(_source){
|
||||
this.payload["source"] = _source;
|
||||
return this;
|
||||
}
|
||||
};
|
||||
|
||||
Spec_0_1.prototype.id = function(_id){
|
||||
this.payload["eventID"] = _id;
|
||||
return this;
|
||||
}
|
||||
};
|
||||
|
||||
Spec_0_1.prototype.time = function(_time){
|
||||
this.payload["eventTime"] = _time.toISOString();
|
||||
return this;
|
||||
}
|
||||
};
|
||||
|
||||
Spec_0_1.prototype.schemaurl = function(_schemaurl){
|
||||
this.payload["schemaURL"] = _schemaurl;
|
||||
return this;
|
||||
}
|
||||
};
|
||||
|
||||
Spec_0_1.prototype.contenttype = function(_contenttype){
|
||||
this.payload["contentType"] = _contenttype;
|
||||
return this;
|
||||
}
|
||||
};
|
||||
|
||||
Spec_0_1.prototype.data = function(_data){
|
||||
this.payload["data"] = _data;
|
||||
return this;
|
||||
}
|
||||
};
|
||||
|
||||
Spec_0_1.prototype.addExtension = function(key, value){
|
||||
if(!this.payload["extensions"]){
|
||||
|
@ -78,6 +78,6 @@ Spec_0_1.prototype.addExtension = function(key, value){
|
|||
}
|
||||
this.payload["extensions"][key] = value;
|
||||
return this;
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = Spec_0_1;
|
||||
|
|
Loading…
Reference in New Issue