diff --git a/dist/LoopbackClient.js b/dist/LoopbackClient.js index 52b7822..14cc972 100644 --- a/dist/LoopbackClient.js +++ b/dist/LoopbackClient.js @@ -31,7 +31,6 @@ var LoopbackClient = function () { }, { key: 'getToken', value: function getToken() { - console.log('1=', this.token); return this.token; } @@ -43,12 +42,9 @@ var LoopbackClient = function () { var promise = new Promise(function (resolve, reject) { if (_this.token) { - console.log('token from cache'); resolve(_this.token); } else { - console.log('create token'); - var data = { email: _this.user, password: _this.password @@ -56,7 +52,6 @@ var LoopbackClient = function () { rest.postJson(_this.baseUrl + '/users/login?include=user', data).on('complete', function (result) { - //console.log('result=',result) if (result instanceof Error) { reject(result.message); } else { diff --git a/dist/LoopbackModel.js b/dist/LoopbackModel.js index 0ac2b67..f7b25e4 100644 --- a/dist/LoopbackModel.js +++ b/dist/LoopbackModel.js @@ -52,8 +52,6 @@ var LoopbackModel = function () { value: function post(url, data, query) { var _this2 = this; - console.log('url', url); - var promise = new Promise(function (resolve, reject) { var options = { @@ -66,7 +64,6 @@ var LoopbackModel = function () { rest.postJson(url, data, options).on('complete', function (result, response) { - console.log('result=', result); if (result instanceof Error) { reject(result.message); } else { @@ -86,8 +83,6 @@ var LoopbackModel = function () { value: function put(url, data) { var _this3 = this; - console.log('url', url); - var promise = new Promise(function (resolve, reject) { rest.putJson(url, data, { @@ -112,8 +107,6 @@ var LoopbackModel = function () { value: function del(url) { var _this4 = this; - console.log('url', url); - var promise = new Promise(function (resolve, reject) { rest.del(url, { diff --git a/src/LoopbackClient.js b/src/LoopbackClient.js index b713daa..290edcc 100644 --- a/src/LoopbackClient.js +++ b/src/LoopbackClient.js @@ -25,7 +25,6 @@ class LoopbackClient { getToken() { - console.log('1=',this.token) return this.token } @@ -36,12 +35,10 @@ class LoopbackClient { if(this.token) { - console.log('token from cache') resolve(this.token); } else { - console.log('create token') var data = { email: this.user, @@ -52,7 +49,6 @@ class LoopbackClient { ).on('complete', (result) =>{ - //console.log('result=',result) if (result instanceof Error) { reject(result.message); diff --git a/src/LoopbackModel.js b/src/LoopbackModel.js index 8c879be..1779694 100644 --- a/src/LoopbackModel.js +++ b/src/LoopbackModel.js @@ -50,7 +50,6 @@ class LoopbackModel { post(url, data,query) { - console.log('url', url) var promise = new Promise( (resolve, reject) => { @@ -67,7 +66,6 @@ class LoopbackModel { ).on('complete', function (result,response) { - console.log('result=',result) if (result instanceof Error) { reject(result.message); @@ -92,7 +90,6 @@ class LoopbackModel { put(url, data) { - console.log('url', url) var promise = new Promise( (resolve, reject) => { @@ -125,7 +122,6 @@ class LoopbackModel { del(url) { - console.log('url', url) var promise = new Promise( (resolve, reject) => {