Comparing version 0.4.1-0.0.1 to 0.4.1
@@ -41,3 +41,3 @@ 'use strict'; | ||
async refresh(currentToken) { | ||
logger.info('refreshing token', currentToken); | ||
logger.debug('refreshing token', currentToken); | ||
@@ -57,4 +57,4 @@ const token = this.instance.accessToken.create(currentToken); | ||
logger.info('credentials object being passed is ', credentials); | ||
logger.info('params being passed to accessToken call ', params); | ||
logger.debug('credentials object being passed is ', credentials); | ||
logger.debug('params being passed to accessToken call ', params); | ||
@@ -61,0 +61,0 @@ return this.instance.authorizationCode.getToken(params).then(result => this.instance.accessToken.create(result)); |
@@ -15,3 +15,3 @@ 'use strict'; | ||
orderBy = null, top = 400, skip = 0, paginate = false } = {}) { | ||
client.logger.info('findAll', { path: this.path, filter, orderBy, top, skip }); | ||
client.logger.debug('findAll', { path: this.path, filter, orderBy, top, skip }); | ||
return client.get(this.path, { params: { $filter: filter, $orderby: orderBy, $top: top, $skip: skip } }).then(response => paginate ? response : response[name]); | ||
@@ -25,3 +25,3 @@ }, | ||
findById(id) { | ||
client.logger.info('findById', { path: this.path, id }); | ||
client.logger.debug('findById', { path: this.path, id }); | ||
return client.get(`${this.path}/${id}`); | ||
@@ -35,3 +35,3 @@ }, | ||
create(params = {}) { | ||
client.logger.info('create', { path: this.path, params }); | ||
client.logger.debug('create', { path: this.path, params }); | ||
return client.post(this.path, params); | ||
@@ -41,3 +41,3 @@ }, | ||
destroy(id) { | ||
client.logger.info('destory', { path: this.path, id }); | ||
client.logger.debug('destory', { path: this.path, id }); | ||
return client.delete(`${this.path}/${id}`); | ||
@@ -47,3 +47,3 @@ }, | ||
update(id, params = {}) { | ||
client.logger.info('update', { path: this.path, id, params }); | ||
client.logger.debug('update', { path: this.path, id, params }); | ||
return client.put(`${this.path}/${id}`, params); | ||
@@ -50,0 +50,0 @@ } |
{ | ||
"name": "myob", | ||
"version": "0.4.1-0.0.1", | ||
"version": "0.4.1", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "repository": "git@github.com:ordermentum/myob-javascript-sdk.git", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28055