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

@vyng/truecaller-node

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vyng/truecaller-node - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

12

lib/fetchPublicKeys.js

@@ -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": {

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