Socket
Socket
Sign inDemoInstall

jose

Package Overview
Dependencies
Maintainers
1
Versions
209
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jose - npm Package Compare versions

Comparing version 3.11.0 to 3.11.1

7

dist/node/cjs/runtime/verify.js

@@ -9,4 +9,9 @@ "use strict";

const webcrypto_js_1 = require("./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 = util_1.promisify(oneShotVerify);

@@ -13,0 +18,0 @@ }

@@ -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 @@ }

2

package.json
{
"name": "jose",
"version": "3.11.0",
"version": "3.11.1",
"description": "Universal 'JSON Web Almost Everything' - JWA, JWS, JWE, JWT, JWK with no dependencies",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc