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.2 to 1.0.3

22

lib/fetchPublicKeys.js

@@ -10,18 +10,18 @@ // lib/fetchPublicKey.js

const internalFetchPublicKeys = (url = publicKeyUrl) => (
request({
const internalFetchPublicKeys = async (url = publicKeyUrl) => {
const { body } = await request({
url,
method: 'GET',
json: true,
}).then(({ body }) => {
if (!body || !Array.isArray(body) || body.length === 0) {
throw Error(`Invalid public key received from ${url}`);
}
});
return body.map(({ key }) => (
pemtools(Buffer.from(key, 'base64'), 'PUBLIC KEY').pem
));
})
);
if (!Array.isArray(body) || body.length === 0) {
throw Error(`Invalid public key received from ${url}`);
}
return body.map(({ key }) => (
pemtools(Buffer.from(key, 'base64'), 'PUBLIC KEY').pem
));
};
module.exports = moize.default(

@@ -28,0 +28,0 @@ internalFetchPublicKeys,

@@ -18,2 +18,3 @@ // lib/index.js

signatureAlgorithm = '',
...others
},

@@ -48,3 +49,4 @@ {

return {
profile,
...profile,
...others,
payload,

@@ -51,0 +53,0 @@ signature,

{
"name": "@vyng/truecaller-node",
"version": "1.0.2",
"version": "1.0.3",
"description": "Node Truecaller profile verification",

@@ -5,0 +5,0 @@ "main": "index.js",

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