@vonage/auth
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -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" | ||
} | ||
} |
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
1
7970
8
137
- Removedcrypto@^1.0.1
- Removedcrypto@1.0.1(transitive)