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.10.4 to 4.11.0

3

dist/node/esm/key/import.js

@@ -102,2 +102,3 @@ import { decode as decodeBase64URL, encodeBase64, decodeBase64 } from '../runtime/base64url.js';

export async function importJWK(jwk, alg, octAsKeyObject) {
var _a;
if (!isObject(jwk)) {

@@ -117,3 +118,3 @@ throw new TypeError('JWK must be an object');

if (octAsKeyObject) {
return asKeyObject({ ...jwk, alg, ext: false });
return asKeyObject({ ...jwk, alg, ext: (_a = jwk.ext) !== null && _a !== void 0 ? _a : false });
}

@@ -120,0 +121,0 @@ return decodeBase64URL(jwk.k);

{
"name": "jose-node-esm-runtime",
"version": "4.10.4",
"version": "4.11.0",
"homepage": "https://github.com/panva/jose",

@@ -15,2 +15,3 @@ "repository": "panva/jose",

"types": "./dist/types/index.d.ts",
"bun": "./dist/browser/index.js",
"worker": "./dist/browser/index.js",

@@ -17,0 +18,0 @@ "import": "./dist/node/esm/index.js"

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