remove console.log

This commit is contained in:
?ngel ?lvarez 2017-11-16 11:05:56 +01:00
parent 17b77ea1e2
commit 60a1a4af51
2 changed files with 0 additions and 8 deletions

View File

@ -12,7 +12,6 @@ export class EncodeJSONRead {
root_send: RootSend;
constructor(){
console.log("Initialaizing JSON constructor");
this.root_send = {
root: []
};
@ -27,7 +26,6 @@ constructor(){
* @param {any} limit Limits the number of data returned, default None
*/
addNode(method: string, domain: any, fields: Array<string>, offset = 0, limit:any = ''){
console.log("Adding node for method, domain, fields", method, domain, fields)
this.root = {}
this.root[method] = [domain, fields, offset, limit];
this.root_send.root.push(this.root);
@ -53,7 +51,6 @@ constructor(){
* @returns {JSON} JSON created with the nodes
*/
createJson(){
console.log("Generating JSON")
return JSON.stringify(this.root_send.root)
}
}

View File

@ -21,14 +21,11 @@ export class EncodeJSONWrite {
* @param {Object} values Values to create or update
*/
public addNode(method: string, values: any ){
console.log("Adding node for method, id, values", method, values);
if (this.write[method] !== undefined) {
this.write[method].push(values);
} else {
this.write[method] = [values]
}
console.log("Current state of the node", this.write)
}
/**
@ -36,8 +33,6 @@ export class EncodeJSONWrite {
* @returns JSON object
*/
public createJSON(){
console.log("Generating JSON");
console.log(JSON.stringify(this.write))
return JSON.stringify(this.write);
}
}