Socket
Socket
Sign inDemoInstall

@vonage/auth

Package Overview
Dependencies
Maintainers
32
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vonage/auth - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

15

dist/auth.js

@@ -13,2 +13,6 @@ "use strict";

};
this.createBasicHeader = () => {
const buf = Buffer.from(`${this.apiKey}:${this.apiSecret}`);
return 'Basic ' + buf.toString('base64');
};
this.createSignatureHash = (params) => {

@@ -71,12 +75,1 @@ let returnParams = Object.assign({ api_key: this.apiKey }, params);

exports.Auth = Auth;
// loop through ordered data keys here,
// keys.on('readable', () => {
// // Only one element is going to be produced by the
// // hash stream.
// const data = input.read();
// if (data)
// hash.update(data);
// else {
// console.log(`${hash.digest('hex')} ${filename}`);
// }
// });

@@ -39,2 +39,3 @@ /// <reference types="node" />

createSignatureHash<T>(params: T): AuthSignedParams & T;
createBasicHeader(): string;
}
{
"name": "@vonage/auth",
"version": "0.2.0",
"version": "0.3.0",
"description": "> TODO: description",

@@ -33,12 +33,14 @@ "author": "Kelly J Andrews <kelly@kellyjandrews.com>",

"dependencies": {
"@vonage/jwt": "^0.2.0",
"crypto": "^1.0.1"
"@vonage/jwt": "^0.2.0"
},
"devDependencies": {
"@types/jest": "^27.4.0",
"@types/node": "^17.0.21",
"nock": "^13.2.4",
"ts-jest": "^27.1.3",
"typescript": "^4.3.5"
"@types/jest": "^28.1.6",
"@types/node": "^18.6.4",
"nock": "^13.2.9",
"prettier": "^2.7.1",
"ts-jest": "^28.0.7",
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.18.0",
"typescript": "^4.7.4"
}
}
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