jose-browser-runtime
Advanced tools
Comparing version 4.1.4 to 4.1.5
@@ -65,3 +65,4 @@ import { decode as decodeBase64URL, encodeBase64, decodeBase64 } from '../runtime/base64url.js'; | ||
function spkiFromX509(buf) { | ||
return encodeBase64(getElement(getElement(parseElement(buf).contents)[0].contents)[6].raw); | ||
const tbsCertificate = getElement(getElement(parseElement(buf).contents)[0].contents); | ||
return encodeBase64(tbsCertificate[tbsCertificate[0].raw[0] === 0xa0 ? 6 : 5].raw); | ||
} | ||
@@ -68,0 +69,0 @@ function getSPKI(x509) { |
{ | ||
"name": "jose-browser-runtime", | ||
"version": "4.1.4", | ||
"version": "4.1.5", | ||
"description": "(Browser Runtime) 'JSON Web Almost Everything' - JWA, JWS, JWE, JWT, JWK, JWKS with no dependencies using runtime's native crypto", | ||
@@ -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
151885
3758