jose-node-esm-runtime
Advanced tools
Comparing version 3.12.2 to 3.12.3
@@ -1,2 +0,1 @@ | ||
import { ok as assert } from 'assert'; | ||
import { decode as base64url } from './base64url.js'; | ||
@@ -23,5 +22,9 @@ import { decoder } from '../lib/buffer_utils.js'; | ||
try { | ||
assert(typeof protectedB64u === 'string' && protectedB64u); | ||
if (typeof protectedB64u !== 'string' || !protectedB64u) { | ||
throw new Error(); | ||
} | ||
const result = JSON.parse(decoder.decode(base64url(protectedB64u))); | ||
assert(isObject(result)); | ||
if (!isObject(result)) { | ||
throw new Error(); | ||
} | ||
return result; | ||
@@ -28,0 +31,0 @@ } |
{ | ||
"name": "jose-node-esm-runtime", | ||
"version": "3.12.2", | ||
"version": "3.12.3", | ||
"description": "(Node.JS ESM Runtime) 'JSON Web Almost Everything' - JWA, JWS, JWE, JWT, JWK with no dependencies", | ||
@@ -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
145647
3730