jose-node-cjs-runtime
Advanced tools
Comparing version 5.1.0 to 5.1.1
@@ -15,3 +15,3 @@ "use strict"; | ||
const NAME = 'jose'; | ||
const VERSION = 'v5.1.0'; | ||
const VERSION = 'v5.1.1'; | ||
USER_AGENT = `${NAME}/${VERSION}`; | ||
@@ -18,0 +18,0 @@ } |
@@ -5,2 +5,3 @@ "use strict"; | ||
const node_crypto_1 = require("node:crypto"); | ||
const node_util_1 = require("node:util"); | ||
const check_key_length_js_1 = require("./check_key_length.js"); | ||
@@ -18,2 +19,3 @@ const webcrypto_js_1 = require("./webcrypto.js"); | ||
}; | ||
const RSA1_5 = (0, node_util_1.deprecate)(() => node_crypto_1.constants.RSA_PKCS1_PADDING, 'The RSA1_5 "alg" (JWE Algorithm) is deprecated and will be removed in the next major revision.'); | ||
const resolvePadding = (alg) => { | ||
@@ -27,3 +29,3 @@ switch (alg) { | ||
case 'RSA1_5': | ||
return node_crypto_1.constants.RSA_PKCS1_PADDING; | ||
return RSA1_5(); | ||
default: | ||
@@ -30,0 +32,0 @@ return undefined; |
{ | ||
"name": "jose-node-cjs-runtime", | ||
"version": "5.1.0", | ||
"version": "5.1.1", | ||
"homepage": "https://github.com/panva/jose", | ||
@@ -5,0 +5,0 @@ "repository": "panva/jose", |
227618
5404