Comparing version 5.1.0 to 5.1.1
@@ -12,3 +12,3 @@ import fetchJwks from '../runtime/fetch_jwks.js'; | ||
const NAME = 'jose'; | ||
const VERSION = 'v5.1.0'; | ||
const VERSION = 'v5.1.1'; | ||
USER_AGENT = `${NAME}/${VERSION}`; | ||
@@ -15,0 +15,0 @@ } |
@@ -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; |
@@ -12,3 +12,3 @@ import fetchJwks from '../runtime/fetch_jwks.js'; | ||
const NAME = 'jose'; | ||
const VERSION = 'v5.1.0'; | ||
const VERSION = 'v5.1.1'; | ||
USER_AGENT = `${NAME}/${VERSION}`; | ||
@@ -15,0 +15,0 @@ } |
import { KeyObject, publicEncrypt, constants, privateDecrypt } from 'node:crypto'; | ||
import { deprecate } from 'node:util'; | ||
import checkKeyLength from './check_key_length.js'; | ||
@@ -14,2 +15,3 @@ import { isCryptoKey } from './webcrypto.js'; | ||
}; | ||
const RSA1_5 = deprecate(() => constants.RSA_PKCS1_PADDING, 'The RSA1_5 "alg" (JWE Algorithm) is deprecated and will be removed in the next major revision.'); | ||
const resolvePadding = (alg) => { | ||
@@ -23,3 +25,3 @@ switch (alg) { | ||
case 'RSA1_5': | ||
return constants.RSA_PKCS1_PADDING; | ||
return RSA1_5(); | ||
default: | ||
@@ -26,0 +28,0 @@ return undefined; |
{ | ||
"name": "jose", | ||
"version": "5.1.0", | ||
"version": "5.1.1", | ||
"description": "'JSON Web Almost Everything' - JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
497716
12339