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

@como/como-client

Package Overview
Dependencies
Maintainers
10
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.1.11 to 0.1.12

17

lib/como.js

@@ -568,10 +568,19 @@ 'use strict';

como.generateReferralCode = function () {
como.getConfigration = function (type) {
var _comoData16 = comoData,
api = _comoData16.api,
locationId = _comoData16.locationId,
token = _comoData16.token,
env = _comoData16.env_params;
locationId = _comoData16.locationId;
return api.getConfiguration(type, locationId);
};
como.generateReferralCode = function () {
var _comoData17 = comoData,
api = _comoData17.api,
locationId = _comoData17.locationId,
token = _comoData17.token,
env = _comoData17.env_params;
return api.generateReferralCode(env.services_root, token, locationId);

@@ -578,0 +587,0 @@ };

@@ -43,2 +43,34 @@ "use strict";

}();
};
exports.getConfiguration = function (service) {
return function () {
var _ref3 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(type, locationId) {
var url, _ref4, data;
return _regenerator2.default.wrap(function _callee2$(_context2) {
while (1) {
switch (_context2.prev = _context2.next) {
case 0:
url = "/v1/config/" + type + "/" + locationId;
_context2.next = 3;
return service.get(url);
case 3:
_ref4 = _context2.sent;
data = _ref4.data;
return _context2.abrupt("return", data);
case 6:
case "end":
return _context2.stop();
}
}
}, _callee2, undefined);
}));
return function (_x3, _x4) {
return _ref3.apply(this, arguments);
};
}();
};
{
"name": "@como/como-client",
"version": "0.1.11",
"version": "0.1.12",
"description": "Client module for Como's loaylty API",

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

@@ -246,2 +246,8 @@ const moment = require('moment-timezone');

como.getConfigration = type => {
const { api, locationId } = comoData;
return api.getConfiguration(type, locationId);
};
como.generateReferralCode = () => {

@@ -248,0 +254,0 @@ const {

@@ -6,1 +6,7 @@ exports.getForm = service => async (type, locationId) => {

};
exports.getConfiguration = service => async (type, locationId) => {
const url = `/v1/config/${type}/${locationId}`;
const { data } = await service.get(url);
return data;
};
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