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

did-jwt

Package Overview
Dependencies
Maintainers
6
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

did-jwt - npm Package Compare versions

Comparing version 6.2.0 to 6.2.1

6

lib/index.modern.js

@@ -1481,3 +1481,3 @@ import * as u8a from 'uint8arrays';

const encryptersForDID = async (did, resolved = []) => {
var _didDocument$keyAgree, _didDocument$keyAgree2, _agreementKeys$filter;
var _didDocument$keyAgree, _didDocument$keyAgree2;

@@ -1517,6 +1517,6 @@ const {

})) == null ? void 0 : _didDocument$keyAgree2.filter(key => typeof key !== 'undefined');
const pks = (_agreementKeys$filter = agreementKeys == null ? void 0 : agreementKeys.filter(key => {
const pks = (agreementKeys == null ? void 0 : agreementKeys.filter(key => {
// TODO: should be able to use non base58 keys too
return key.type === 'X25519KeyAgreementKey2019' && Boolean(key.publicKeyBase58);
})) != null ? _agreementKeys$filter : [];
})) || [];
if (!pks.length && !controllerEncrypters.length) throw new Error(`no_suitable_keys: Could not find x25519 key for ${did}`);

@@ -1523,0 +1523,0 @@ return pks.map(pk => x25519Encrypter(base58ToBytes(pk.publicKeyBase58), pk.id)).concat(...controllerEncrypters);

{
"name": "did-jwt",
"version": "6.2.0",
"version": "6.2.1",
"description": "Library for Signing and Verifying JWTs that use DIDs as issuers and JWEs that use DIDs as recipients",

@@ -61,5 +61,5 @@ "type": "module",

"devDependencies": {
"@babel/core": "7.18.2",
"@babel/preset-env": "7.17.12",
"@babel/preset-typescript": "7.17.12",
"@babel/core": "7.18.6",
"@babel/preset-env": "7.18.6",
"@babel/preset-typescript": "7.18.6",
"@ethersproject/address": "5.6.1",

@@ -69,21 +69,21 @@ "@semantic-release/changelog": "6.0.1",

"@types/elliptic": "6.4.14",
"@types/jest": "28.1.1",
"@typescript-eslint/eslint-plugin": "5.27.0",
"@typescript-eslint/parser": "5.27.0",
"@types/jest": "28.1.4",
"@typescript-eslint/eslint-plugin": "5.30.5",
"@typescript-eslint/parser": "5.30.5",
"codecov": "3.8.3",
"eslint": "8.17.0",
"eslint": "8.19.0",
"eslint-config-prettier": "8.5.0",
"eslint-plugin-jest": "26.5.3",
"eslint-plugin-prettier": "4.0.0",
"jest": "28.1.0",
"eslint-plugin-prettier": "4.2.1",
"jest": "28.1.2",
"jsontokens": "3.1.1",
"microbundle": "0.15.0",
"mockdate": "3.0.5",
"prettier": "2.6.2",
"prettier": "2.7.1",
"regenerator-runtime": "0.13.9",
"semantic-release": "19.0.2",
"semantic-release": "19.0.3",
"tweetnacl": "1.0.3",
"typescript": "4.7.3",
"typescript": "4.7.4",
"webpack": "5.73.0",
"webpack-cli": "4.9.2"
"webpack-cli": "4.10.0"
},

@@ -90,0 +90,0 @@ "dependencies": {

@@ -317,3 +317,3 @@ import { XChaCha20Poly1305 } from '@stablelib/xchacha20poly1305'

return key.type === 'X25519KeyAgreementKey2019' && Boolean(key.publicKeyBase58)
}) ?? []
}) || []
if (!pks.length && !controllerEncrypters.length)

@@ -320,0 +320,0 @@ throw new Error(`no_suitable_keys: Could not find x25519 key for ${did}`)

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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