@vonage/auth
Advanced tools
Comparing version 0.5.0 to 0.6.0
@@ -6,2 +6,3 @@ "use strict"; | ||
const crypto_1 = require("crypto"); | ||
const fs_1 = require("fs"); | ||
const types_1 = require("./types"); | ||
@@ -84,2 +85,5 @@ class Auth { | ||
if (opts === null || opts === void 0 ? void 0 : opts.privateKey) { | ||
if ((0, fs_1.existsSync)(opts.privateKey)) { | ||
opts.privateKey = (0, fs_1.readFileSync)(opts.privateKey).toString(); | ||
} | ||
if (opts.privateKey instanceof Buffer) { | ||
@@ -86,0 +90,0 @@ this.privateKey = opts.privateKey.toString(); |
{ | ||
"name": "@vonage/auth", | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"description": "> TODO: description", | ||
@@ -5,0 +5,0 @@ "author": "Kelly J Andrews <kelly@kellyjandrews.com>", |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
9350
171
1