jose-node-esm-runtime
Advanced tools
Comparing version 5.6.0 to 5.6.1
@@ -13,3 +13,3 @@ import fetchJwks from '../runtime/fetch_jwks.js'; | ||
const NAME = 'jose'; | ||
const VERSION = 'v5.6.0'; | ||
const VERSION = 'v5.6.1'; | ||
USER_AGENT = `${NAME}/${VERSION}`; | ||
@@ -16,0 +16,0 @@ } |
@@ -6,3 +6,3 @@ import { unwrap as aesKw } from '../runtime/aeskw.js'; | ||
import { decode as base64url } from '../runtime/base64url.js'; | ||
import * as normalize from '../runtime/normalize_key.js'; | ||
import normalize from '../runtime/normalize_key.js'; | ||
import { JOSENotSupported, JWEInvalid } from '../util/errors.js'; | ||
@@ -15,5 +15,3 @@ import { bitLength as cekLength } from '../lib/cek.js'; | ||
async function decryptKeyManagement(alg, key, encryptedKey, joseHeader, options) { | ||
if (normalize.normalizePrivateKey) { | ||
key = await normalize.normalizePrivateKey(key, alg); | ||
} | ||
key = (await normalize.normalizePrivateKey?.(key, alg)) || key; | ||
checkKeyType(alg, key, 'decrypt'); | ||
@@ -20,0 +18,0 @@ switch (alg) { |
@@ -6,3 +6,3 @@ import { wrap as aesKw } from '../runtime/aeskw.js'; | ||
import { encode as base64url } from '../runtime/base64url.js'; | ||
import * as normalize from '../runtime/normalize_key.js'; | ||
import normalize from '../runtime/normalize_key.js'; | ||
import generateCek, { bitLength as cekLength } from '../lib/cek.js'; | ||
@@ -17,5 +17,3 @@ import { JOSENotSupported } from '../util/errors.js'; | ||
let cek; | ||
if (normalize.normalizePublicKey) { | ||
key = await normalize.normalizePublicKey(key, alg); | ||
} | ||
key = (await normalize.normalizePublicKey?.(key, alg)) || key; | ||
checkKeyType(alg, key, 'encrypt'); | ||
@@ -22,0 +20,0 @@ switch (alg) { |
@@ -1,1 +0,1 @@ | ||
export {}; | ||
export default {}; |
{ | ||
"name": "jose-node-esm-runtime", | ||
"version": "5.6.0", | ||
"version": "5.6.1", | ||
"homepage": "https://github.com/panva/jose", | ||
@@ -5,0 +5,0 @@ "repository": "panva/jose", |
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
212710
5332