@vyng/truecaller-node
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -10,5 +10,5 @@ // lib/fetchPublicKey.js | ||
const internalFetchPublicKeys = async (url = publicKeyUrl) => { | ||
const internalFetchPublicKeys = async (url) => { | ||
const { body } = await request({ | ||
url, | ||
url: url || publicKeyUrl, | ||
method: 'GET', | ||
@@ -27,8 +27,12 @@ json: true, | ||
module.exports = moize.default( | ||
const fetchPublicKeys = moize.default( | ||
internalFetchPublicKeys, | ||
{ | ||
maxAge: 1000 * 60 * 30, // 30 minutes, | ||
maxAge: 1000, // 1000 * 60 * 30, // 30 minutes, | ||
isPromise: true, | ||
// Due to a bug, make this work: | ||
onExpire: (params) => fetchPublicKeys(...params), | ||
}, | ||
); | ||
module.exports = fetchPublicKeys; |
{ | ||
"name": "@vyng/truecaller-node", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Node Truecaller profile verification", | ||
@@ -31,3 +31,3 @@ "main": "index.js", | ||
"eslint-config-airbnb-base": "13.1.0", | ||
"eslint-plugin-import": "2.17.2" | ||
"eslint-plugin-import": "2.17.3" | ||
}, | ||
@@ -34,0 +34,0 @@ "directories": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5847
83