@como/como-client
Advanced tools
Comparing version
@@ -47,4 +47,3 @@ 'use strict'; | ||
var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(config) { | ||
var _getCredentials, expiresIn, _getCredentials2, accessToken; | ||
var expiresIn, accessToken; | ||
return _regenerator2.default.wrap(function _callee$(_context) { | ||
@@ -54,3 +53,3 @@ while (1) { | ||
case 0: | ||
_getCredentials = getCredentials(), expiresIn = _getCredentials.expiresIn; | ||
expiresIn = getCredentials.expiresIn; | ||
@@ -78,3 +77,3 @@ if (!(expiresIn && isExpired(expiresIn))) { | ||
case 11: | ||
_getCredentials2 = getCredentials(), accessToken = _getCredentials2.accessToken; | ||
accessToken = getCredentials.accessToken; | ||
@@ -81,0 +80,0 @@ if (accessToken) { |
@@ -44,5 +44,5 @@ 'use strict'; | ||
var _getCredentials = getCredentials(), | ||
refreshToken = _getCredentials.refreshToken; | ||
var refreshToken = getCredentials.refreshToken; | ||
credentialsRefresh({ accessToken: false }); | ||
@@ -49,0 +49,0 @@ var refreshService = auth.refreshToken(httpClient); |
{ | ||
"name": "@como/como-client", | ||
"version": "0.1.32.5", | ||
"version": "0.1.32.6", | ||
"description": "Client module for Como's loaylty API", | ||
@@ -5,0 +5,0 @@ "main": "src/como.js", |
@@ -94,3 +94,8 @@ const moment = require('moment-timezone'); | ||
const { service, refresher } = APIService | ||
.getService(gateway, installationId, this.getCredentials, updateCredentials); | ||
.getService(gateway, installationId, { | ||
accessToken: this.comoData.accessToken, | ||
refreshToken: this.comoData.refreshToken, | ||
expiresIn: this.comoData.expiresIn, | ||
consent: this.comoData.consent, | ||
}, updateCredentials); | ||
this.comoData.api = service; | ||
@@ -562,3 +567,3 @@ this.comoData.refresher = refresher; | ||
getCredentials() { | ||
return ({ | ||
return { | ||
accessToken: this.comoData.accessToken, | ||
@@ -568,3 +573,3 @@ refreshToken: this.comoData.refreshToken, | ||
consent: this.comoData.consent, | ||
})}; | ||
}}; | ||
@@ -612,3 +617,3 @@ /** | ||
{ | ||
...getCredentials(), | ||
...this.getCredentials(), | ||
installationId, | ||
@@ -615,0 +620,0 @@ disableSuccessScreen: 'true', |
Sorry, the diff of this file is too big to display
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
179509
0.2%3898
0.23%