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

@como/como-client

Package Overview
Dependencies
Maintainers
9
Versions
207
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@como/como-client - npm Package Compare versions

Comparing version 0.7.53 to 0.7.54

15

lib/services/index.js

@@ -19,9 +19,12 @@ 'use strict';

var _require = require('../interceptors/refresh'),
tokenInterceptor = _require.tokenInterceptor,
refreshInterceptor = _require.refreshInterceptor;
var _require = require('../../package.json'),
version = _require.version;
var _require2 = require('../interceptors/response'),
responseInterceptor = _require2.responseInterceptor;
var _require2 = require('../interceptors/refresh'),
tokenInterceptor = _require2.tokenInterceptor,
refreshInterceptor = _require2.refreshInterceptor;
var _require3 = require('../interceptors/response'),
responseInterceptor = _require3.responseInterceptor;
var auth = require('./auth.service');

@@ -34,3 +37,3 @@ var loyalty = require('./loyalty.service');

exports.getService = function (baseURL, uid, getCredentials, credentialsRefresh, source) {
var httpClient = axios.create({ baseURL: baseURL });
var httpClient = axios.create({ baseURL: baseURL, headers: { 'x-phoenix-version': version } });

@@ -37,0 +40,0 @@ /**

2

package.json
{
"name": "@como/como-client",
"version": "0.7.53",
"version": "0.7.54",
"description": "Client module for Como's loaylty API",

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

@@ -30,3 +30,3 @@ const moment = require('moment-timezone');

}
else if (expiresIn && moment(expiresIn).subtract(10, 'seconds').isBefore(moment())) {
else if (expiresIn && moment(expiresIn).subtract(60, 'seconds').isBefore(moment())) {
await refresher();

@@ -448,2 +448,3 @@ }

} = this.comoData;
await this.refreshTokenIfNeeded();
const responseJson = await api.getShortUserId(env.zapp_root, locationId);

@@ -489,2 +490,3 @@ return responseJson.ID;

} = this.comoData;
await this.refreshTokenIfNeeded();
const responseJson = await api.redeemAsset(env.zapp_root, locationId, assetKey);

@@ -491,0 +493,0 @@ return responseJson;

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

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