jose-node-esm-runtime
Advanced tools
Comparing version 3.11.0 to 3.11.1
@@ -7,4 +7,9 @@ import * as crypto from 'crypto'; | ||
import { isCryptoKey, getKeyObject } from './webcrypto.js'; | ||
const [major, minor] = process.version | ||
.substr(1) | ||
.split('.') | ||
.map((str) => parseInt(str, 10)); | ||
const oneShotCallbackSupported = major >= 16 || (major === 15 && minor >= 13); | ||
let oneShotVerify = crypto.verify; | ||
if (oneShotVerify.length > 4) { | ||
if (oneShotVerify.length > 4 && oneShotCallbackSupported) { | ||
oneShotVerify = promisify(oneShotVerify); | ||
@@ -11,0 +16,0 @@ } |
{ | ||
"name": "jose-node-esm-runtime", | ||
"version": "3.11.0", | ||
"version": "3.11.1", | ||
"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
153567
3999