@como/como-client
Advanced tools
Comparing version 0.7.79 to 0.7.80
{ | ||
"name": "@como/como-client", | ||
"version": "0.7.79", | ||
"version": "0.7.80", | ||
"description": "Client module for Como's loaylty API", | ||
@@ -5,0 +5,0 @@ "main": "src/como.js", |
@@ -985,8 +985,18 @@ const moment = require('moment-timezone'); | ||
*/ | ||
getAppTextsV2() { | ||
getAppTextsV2() { | ||
const { api, locationId } = this.comoData; | ||
return api.getAllTranslations(locationId); | ||
} | ||
/** | ||
* generate temporary token | ||
* @param {Number} timeToLive - The time in seconds till the expiration | ||
*/ | ||
async generateTemporaryTokenWithExpiryDate(timeToLive) { | ||
const { api, locationId, token, env_params } = this.comoData; | ||
const { ExpirationDate, TemporaryToken } = await api.generateTemporaryToken(env_params.services_root, locationId, token, timeToLive); | ||
return { ExpirationDate, TemporaryToken }; | ||
} | ||
} | ||
module.exports = Como; |
Sorry, the diff of this file is too big to display
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
227625
4837
1