jose-node-esm-runtime
Advanced tools
Comparing version 4.10.4 to 4.11.0
@@ -102,2 +102,3 @@ import { decode as decodeBase64URL, encodeBase64, decodeBase64 } from '../runtime/base64url.js'; | ||
export async function importJWK(jwk, alg, octAsKeyObject) { | ||
var _a; | ||
if (!isObject(jwk)) { | ||
@@ -117,3 +118,3 @@ throw new TypeError('JWK must be an object'); | ||
if (octAsKeyObject) { | ||
return asKeyObject({ ...jwk, alg, ext: false }); | ||
return asKeyObject({ ...jwk, alg, ext: (_a = jwk.ext) !== null && _a !== void 0 ? _a : false }); | ||
} | ||
@@ -120,0 +121,0 @@ return decodeBase64URL(jwk.k); |
{ | ||
"name": "jose-node-esm-runtime", | ||
"version": "4.10.4", | ||
"version": "4.11.0", | ||
"homepage": "https://github.com/panva/jose", | ||
@@ -15,2 +15,3 @@ "repository": "panva/jose", | ||
"types": "./dist/types/index.d.ts", | ||
"bun": "./dist/browser/index.js", | ||
"worker": "./dist/browser/index.js", | ||
@@ -17,0 +18,0 @@ "import": "./dist/node/esm/index.js" |
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
233518
5986