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

ethr-did-resolver

Package Overview
Dependencies
Maintainers
7
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ethr-did-resolver - npm Package Compare versions

Comparing version 4.3.4 to 4.3.5

8

lib/index.js

@@ -824,2 +824,3 @@ var basex = require('@ethersproject/basex');

const authentication = [`${did}#controller`];
const keyAgreement = [];
let versionId = 0;

@@ -831,2 +832,3 @@ let nextVersionId = Number.POSITIVE_INFINITY;

const auth = {};
const keyAgreementRefs = {};
const pks = {};

@@ -921,2 +923,4 @@ const services = {};

auth[eventIndex] = pk.id;
} else if (match[4] === 'enc') {
keyAgreementRefs[eventIndex] = pk.id;
}

@@ -985,2 +989,6 @@

if (Object.values(keyAgreementRefs).length > 0) {
didDocument.keyAgreement = keyAgreement.concat(Object.values(keyAgreementRefs));
}
didDocument.assertionMethod = [...(((_didDocument$verifica = didDocument.verificationMethod) == null ? void 0 : _didDocument$verifica.map(pk => pk.id)) || [])];

@@ -987,0 +995,0 @@ return deactivated ? {

@@ -516,2 +516,3 @@ import { Base58 } from '@ethersproject/basex';

const authentication = [`${did}#controller`];
const keyAgreement = [];
let versionId = 0;

@@ -523,2 +524,3 @@ let nextVersionId = Number.POSITIVE_INFINITY;

const auth = {};
const keyAgreementRefs = {};
const pks = {};

@@ -613,2 +615,4 @@ const services = {};

auth[eventIndex] = pk.id;
} else if (match[4] === 'enc') {
keyAgreementRefs[eventIndex] = pk.id;
}

@@ -677,2 +681,6 @@

if (Object.values(keyAgreementRefs).length > 0) {
didDocument.keyAgreement = keyAgreement.concat(Object.values(keyAgreementRefs));
}
didDocument.assertionMethod = [...(((_didDocument$verifica = didDocument.verificationMethod) == null ? void 0 : _didDocument$verifica.map(pk => pk.id)) || [])];

@@ -679,0 +687,0 @@ return deactivated ? {

@@ -799,2 +799,3 @@ import { Base58 } from '@ethersproject/basex';

const authentication = [`${did}#controller`];
const keyAgreement = [];
let versionId = 0;

@@ -806,2 +807,3 @@ let nextVersionId = Number.POSITIVE_INFINITY;

const auth = {};
const keyAgreementRefs = {};
const pks = {};

@@ -896,2 +898,4 @@ const services = {};

auth[eventIndex] = pk.id;
} else if (match[4] === 'enc') {
keyAgreementRefs[eventIndex] = pk.id;
}

@@ -960,2 +964,6 @@

if (Object.values(keyAgreementRefs).length > 0) {
didDocument.keyAgreement = keyAgreement.concat(Object.values(keyAgreementRefs));
}
didDocument.assertionMethod = [...(((_didDocument$verifica = didDocument.verificationMethod) == null ? void 0 : _didDocument$verifica.map(pk => pk.id)) || [])];

@@ -962,0 +970,0 @@ return deactivated ? {

@@ -820,2 +820,3 @@ (function (global, factory) {

const authentication = [`${did}#controller`];
const keyAgreement = [];
let versionId = 0;

@@ -827,2 +828,3 @@ let nextVersionId = Number.POSITIVE_INFINITY;

const auth = {};
const keyAgreementRefs = {};
const pks = {};

@@ -917,2 +919,4 @@ const services = {};

auth[eventIndex] = pk.id;
} else if (match[4] === 'enc') {
keyAgreementRefs[eventIndex] = pk.id;
}

@@ -981,2 +985,6 @@

if (Object.values(keyAgreementRefs).length > 0) {
didDocument.keyAgreement = keyAgreement.concat(Object.values(keyAgreementRefs));
}
didDocument.assertionMethod = [...(((_didDocument$verifica = didDocument.verificationMethod) == null ? void 0 : _didDocument$verifica.map(pk => pk.id)) || [])];

@@ -983,0 +991,0 @@ return deactivated ? {

4

package.json
{
"name": "ethr-did-resolver",
"version": "4.3.4",
"version": "4.3.5",
"description": "Resolve DID documents for ethereum addresses and public keys",

@@ -84,3 +84,3 @@ "source": "src/index.ts",

"microbundle": "0.13.3",
"prettier": "2.3.1",
"prettier": "2.3.2",
"semantic-release": "17.4.4",

@@ -87,0 +87,0 @@ "typescript": "4.3.4"

@@ -544,2 +544,3 @@ import { Contract, ContractFactory } from '@ethersproject/contracts'

assertionMethod: [`${keyAgrDid}#controller`, `${keyAgrDid}#delegate-1`],
keyAgreement: [`${keyAgrDid}#delegate-1`],
})

@@ -546,0 +547,0 @@ })

@@ -135,2 +135,3 @@ import { Base58 } from '@ethersproject/basex'

const authentication = [`${did}#controller`]
const keyAgreement: string[] = []

@@ -143,2 +144,3 @@ let versionId = 0

const auth: Record<string, string> = {}
const keyAgreementRefs: Record<string, string> = {}
const pks: Record<string, VerificationMethod> = {}

@@ -218,2 +220,4 @@ const services: Record<string, ServiceEndpoint> = {}

auth[eventIndex] = pk.id
} else if (match[4] === 'enc') {
keyAgreementRefs[eventIndex] = pk.id
}

@@ -286,2 +290,5 @@ break

}
if (Object.values(keyAgreementRefs).length > 0) {
didDocument.keyAgreement = keyAgreement.concat(Object.values(keyAgreementRefs))
}
didDocument.assertionMethod = [...(didDocument.verificationMethod?.map((pk) => pk.id) || [])]

@@ -288,0 +295,0 @@

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 not supported yet

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