Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

myob

Package Overview
Dependencies
Maintainers
2
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

myob - npm Package Compare versions

Comparing version 0.4.1-0.0.1 to 0.4.1

6

lib/authentication.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc