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

myob

Package Overview
Dependencies
Maintainers
1
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.3.0 to 0.3.1

15

lib/authentication.js

@@ -8,5 +8,5 @@ 'use strict';

var _logger = require('./logger');
var _simpleOauth = require('simple-oauth2');
var _logger2 = _interopRequireDefault(_logger);
var _simpleOauth2 = _interopRequireDefault(_simpleOauth);

@@ -17,6 +17,3 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var oauth2 = require('simple-oauth2');
function authentication(clientId, secret) {
var logger = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _logger2.default;
function authentication(clientId, secret, logger) {
var credentials = {

@@ -33,3 +30,3 @@ client: {

};
var instance = oauth2.create(credentials);
var instance = _simpleOauth2.default.create(credentials);
return {

@@ -78,2 +75,4 @@ credentials: credentials,

getToken: function getToken(code, redirectUri) {
var _this2 = this;
var params = {

@@ -90,3 +89,3 @@ code: code,

return this.instance.authorizationCode.getToken(params).then(function (result) {
return oauth2.accessToken.create(result);
return _this2.instance.accessToken.create(result);
});

@@ -93,0 +92,0 @@ }

{
"name": "myob",
"version": "0.3.0",
"version": "0.3.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