Structure for formats impl
Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
parent
a24954514a
commit
7e2d11fcdd
|
|
@ -1,14 +0,0 @@
|
||||||
|
|
||||||
function JSONFormatter(){
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
JSONFormatter.prototype.format = function(payload){
|
|
||||||
return payload;
|
|
||||||
};
|
|
||||||
|
|
||||||
JSONFormatter.prototype.toString = function(payload){
|
|
||||||
return JSON.stringify(payload);
|
|
||||||
};
|
|
||||||
|
|
||||||
module.exports = JSONFormatter;
|
|
||||||
Loading…
Reference in New Issue