New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More →

@como/como-client

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@como/como-client - npm Package Compare versions

Comparing version

to
0.7.60

{
"name": "@como/como-client",
"version": "0.7.59",
"version": "0.7.60",
"description": "Client module for Como's loaylty API",

@@ -5,0 +5,0 @@ "main": "src/como.js",

@@ -9,4 +9,2 @@ const moment = require('moment-timezone');

const internalServices = ['como_connect'];
const INITIAL_COMO_DATA = {

@@ -107,3 +105,3 @@ env: environmentConfig,

const { accessToken, refreshToken, expiresIn } = credentials;
let credExist = isExists(accessToken) && isExists(refreshToken) || internalServices.includes(source);
let credExist = isExists(accessToken) && isExists(refreshToken);
let isExpired = credExist && expiresIn && moment(expiresIn).isBefore(moment());

@@ -110,0 +108,0 @@ let refreshFailed = false;

Sorry, the diff of this file is too big to display