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
1
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 4.3.6 to 4.3.7

5

dist/node/esm/runtime/aeskw.js
import { Buffer } from 'buffer';
import { KeyObject, createDecipheriv, createCipheriv } from 'crypto';
import { KeyObject, createDecipheriv, createCipheriv, createSecretKey } from 'crypto';
import { JOSENotSupported } from '../util/errors.js';
import { concat } from '../lib/buffer_utils.js';
import getSecretKey from './secret_key.js';
import { isCryptoKey } from './webcrypto.js';

@@ -22,3 +21,3 @@ import { checkEncCryptoKey } from '../lib/crypto_key.js';

if (key instanceof Uint8Array) {
return getSecretKey(key);
return createSecretKey(key);
}

@@ -25,0 +24,0 @@ if (isCryptoKey(key)) {

@@ -1,5 +0,4 @@

import { KeyObject } from 'crypto';
import { KeyObject, createSecretKey } from 'crypto';
import { isCryptoKey } from './webcrypto.js';
import { checkSigCryptoKey } from '../lib/crypto_key.js';
import getSecretKey from './secret_key.js';
import invalidKeyInput from '../lib/invalid_key_input.js';

@@ -12,3 +11,3 @@ import { types } from './is_key_like.js';

}
return getSecretKey(key);
return createSecretKey(key);
}

@@ -15,0 +14,0 @@ if (key instanceof KeyObject) {

2

dist/types/types.d.ts

@@ -265,3 +265,3 @@ /**

export interface JWTHeaderParameters extends CompactJWSHeaderParameters {
b64?: never
b64?: true
}

@@ -268,0 +268,0 @@ export interface CompactJWEHeaderParameters extends JWEHeaderParameters {

{
"name": "jose-node-esm-runtime",
"version": "4.3.6",
"version": "4.3.7",
"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