Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jose-node-esm-runtime

Package Overview
Dependencies
Maintainers
0
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jose-node-esm-runtime - npm Package Compare versions

Comparing version 5.6.0 to 5.6.1

2

dist/node/esm/jwks/remote.js

@@ -13,3 +13,3 @@ import fetchJwks from '../runtime/fetch_jwks.js';

const NAME = 'jose';
const VERSION = 'v5.6.0';
const VERSION = 'v5.6.1';
USER_AGENT = `${NAME}/${VERSION}`;

@@ -16,0 +16,0 @@ }

@@ -6,3 +6,3 @@ import { unwrap as aesKw } from '../runtime/aeskw.js';

import { decode as base64url } from '../runtime/base64url.js';
import * as normalize from '../runtime/normalize_key.js';
import normalize from '../runtime/normalize_key.js';
import { JOSENotSupported, JWEInvalid } from '../util/errors.js';

@@ -15,5 +15,3 @@ import { bitLength as cekLength } from '../lib/cek.js';

async function decryptKeyManagement(alg, key, encryptedKey, joseHeader, options) {
if (normalize.normalizePrivateKey) {
key = await normalize.normalizePrivateKey(key, alg);
}
key = (await normalize.normalizePrivateKey?.(key, alg)) || key;
checkKeyType(alg, key, 'decrypt');

@@ -20,0 +18,0 @@ switch (alg) {

@@ -6,3 +6,3 @@ import { wrap as aesKw } from '../runtime/aeskw.js';

import { encode as base64url } from '../runtime/base64url.js';
import * as normalize from '../runtime/normalize_key.js';
import normalize from '../runtime/normalize_key.js';
import generateCek, { bitLength as cekLength } from '../lib/cek.js';

@@ -17,5 +17,3 @@ import { JOSENotSupported } from '../util/errors.js';

let cek;
if (normalize.normalizePublicKey) {
key = await normalize.normalizePublicKey(key, alg);
}
key = (await normalize.normalizePublicKey?.(key, alg)) || key;
checkKeyType(alg, key, 'encrypt');

@@ -22,0 +20,0 @@ switch (alg) {

@@ -1,1 +0,1 @@

export {};
export default {};
{
"name": "jose-node-esm-runtime",
"version": "5.6.0",
"version": "5.6.1",
"homepage": "https://github.com/panva/jose",

@@ -5,0 +5,0 @@ "repository": "panva/jose",

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