🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@como/como-client

Package Overview
Dependencies
Maintainers
0
Versions
215
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

to
0.7.94

2

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

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

@@ -307,2 +307,19 @@ const moment = require('moment-timezone');

/**
* @param {string} language language code
*/
async updateLanguage(language) {
const { api } = this.comoData;
try {
const data = await api.updateLanguage(language);
return data;
} catch (error) {
if (error.response && error.response.data) {
const { code, message } = error.response.data;
throw new Error(code || message);
}
throw error;
}
}
/**
*

@@ -309,0 +326,0 @@ * @param {string} unsubscribeSms unsubscribe user at location

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