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.0 to 0.7.1

32

lib/services/auth.service.js

@@ -30,3 +30,3 @@ "use strict";

return function () {
var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(deviceId, locationId, source) {
var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(deviceId, locationId, source, accessToken) {
var params, headers, _ref2, data;

@@ -38,8 +38,12 @@

case 0:
params = { deviceId: deviceId, locationId: locationId, source: source };
params = { deviceId: deviceId, locationId: locationId, source: source, accessToken: accessToken };
headers = getHashHeader(params);
_context.next = 4;
if (accessToken) {
headers['Authorization'] = "Bearer " + token;
}
_context.next = 5;
return service.post('/auth/v2/auth/signOn', params, { headers: headers });
case 4:
case 5:
_ref2 = _context.sent;

@@ -49,3 +53,3 @@ data = _ref2.data;

case 7:
case 8:
case "end":

@@ -58,3 +62,3 @@ return _context.stop();

return function (_x, _x2, _x3) {
return function (_x, _x2, _x3, _x4) {
return _ref.apply(this, arguments);

@@ -92,3 +96,3 @@ };

return function (_x4, _x5, _x6) {
return function (_x5, _x6, _x7) {
return _ref3.apply(this, arguments);

@@ -125,3 +129,3 @@ };

return function (_x8, _x9, _x10, _x11) {
return function (_x9, _x10, _x11, _x12) {
return _ref5.apply(this, arguments);

@@ -159,3 +163,3 @@ };

return function (_x12, _x13) {
return function (_x13, _x14) {
return _ref7.apply(this, arguments);

@@ -194,3 +198,3 @@ };

return function (_x15, _x16, _x17, _x18) {
return function (_x16, _x17, _x18, _x19) {
return _ref9.apply(this, arguments);

@@ -227,3 +231,3 @@ };

return function (_x20, _x21) {
return function (_x21, _x22) {
return _ref11.apply(this, arguments);

@@ -261,3 +265,3 @@ };

return function (_x22, _x23) {
return function (_x23, _x24) {
return _ref13.apply(this, arguments);

@@ -299,3 +303,3 @@ };

return function (_x24, _x25, _x26) {
return function (_x25, _x26, _x27) {
return _ref15.apply(this, arguments);

@@ -358,3 +362,3 @@ };

return function (_x27, _x28, _x29, _x30) {
return function (_x28, _x29, _x30, _x31) {
return _ref19.apply(this, arguments);

@@ -361,0 +365,0 @@ };

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

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

@@ -133,2 +133,11 @@ const moment = require('moment-timezone');

}
else{
try{
await this.comoData.initApi.signOn(installationId, locationId, source, accessToken);
}catch(e){
console.log(`Failed signOn with accessToken, installationId:${installationId}, locationId:${locationId}, source:${source},accessToken:${accessToken}, error:${e}`);
}
}
if(!this.comoData.token){

@@ -135,0 +144,0 @@ this.comoData.token = this.comoData.accessToken;

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