Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@block65/kms-jsonwebtoken

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@block65/kms-jsonwebtoken - npm Package Compare versions

Comparing version
2.1.1
to
3.0.0
+2
-3
dist/aws-crypto.js

@@ -29,4 +29,3 @@ "use strict";

if (publicKey.KeyUsage !== 'SIGN_VERIFY' ||
!((_a = publicKey.CustomerMasterKeySpec) === null || _a === void 0 ? void 0 : _a.startsWith('RSA')) ||
!Buffer.isBuffer(publicKey.PublicKey)) {
!((_a = publicKey.CustomerMasterKeySpec) === null || _a === void 0 ? void 0 : _a.startsWith('RSA'))) {
throw new error_1.KmsJsonWebTokenError('Incompatible Public Key').debug({

@@ -36,3 +35,3 @@ publicKey,

}
const pubKeyStr = publicKey.PublicKey.toString('base64');
const pubKeyStr = Buffer.from(publicKey.PublicKey).toString('base64');
return `-----BEGIN PUBLIC KEY-----\n${pubKeyStr}\n-----END PUBLIC KEY-----`;

@@ -39,0 +38,0 @@ }, {

+14
-14
{
"name": "@block65/kms-jsonwebtoken",
"version": "2.1.1",
"version": "3.0.0",
"private": false,

@@ -26,16 +26,16 @@ "license": "UNLICENSED",

"devDependencies": {
"@aws-sdk/client-kms": "^3.9.0",
"@aws-sdk/client-kms": "^3.13.0",
"@block65/eslint-config": "4.0.0",
"@google-cloud/kms": "^2.3.1",
"@types/jest": "^26.0.21",
"@types/jest": "^26.0.22",
"@types/jsonwebtoken": "^8.5.1",
"@types/node": "^14.14.35",
"@typescript-eslint/eslint-plugin": "^4.18.0",
"@typescript-eslint/parser": "^4.18.0",
"aws-sdk-client-mock": "^0.2.0",
"eslint": "^7.22.0",
"eslint-plugin-formatjs": "^2.12.8",
"@types/node": "^14.14.41",
"@typescript-eslint/eslint-plugin": "^4.22.0",
"@typescript-eslint/parser": "^4.22.0",
"aws-sdk-client-mock": "^0.3.0",
"eslint": "^7.24.0",
"eslint-plugin-formatjs": "^2.14.7",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-react": "^7.22.0",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-react": "^7.23.2",
"eslint-plugin-react-hooks": "^4.2.0",

@@ -45,9 +45,9 @@ "jest": "^26.6.3",

"rimraf": "^3.0.2",
"ts-jest": "^26.5.4",
"typescript": "^4.2.3"
"ts-jest": "^26.5.5",
"typescript": "^4.2.4"
},
"peerDependencies": {
"@aws-sdk/client-kms": "^3.9.0",
"@aws-sdk/client-kms": "^3.13.0",
"@google-cloud/kms": "^2.3.1"
}
}