New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

uport

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uport - npm Package Compare versions

Comparing version

to
0.7.0-alpha-minor-4

@@ -381,8 +381,14 @@ 'use strict';

// Backwards support
try {
if (doc.publicKey[0].publicKeyHex) credentials.publicKey = '0x' + doc.publicKey[0].publicKeyHex;
if (doc.publicKey[1].publicKeyBase64) credentials.publicEncKey = doc.publicKey[1].publicKeyBase64;
} catch (err) {}
if (!payload.verified) {
_context2.next = 10;
_context2.next = 11;
break;
}
_context2.next = 6;
_context2.next = 7;
return _promise2.default.all(payload.verified.map(function (token) {

@@ -392,3 +398,3 @@ return (0, _didJwt.verifyJWT)(token, { audience: _this2.givenDID ? _this2.did : _this2.address });

case 6:
case 7:
verified = _context2.sent;

@@ -399,6 +405,6 @@ return _context2.abrupt('return', (0, _extends3.default)({}, credentials, { verified: verified.map(function (v) {

case 10:
case 11:
return _context2.abrupt('return', credentials);
case 11:
case 12:
case 'end':

@@ -405,0 +411,0 @@ return _context2.stop();

{
"name": "uport",
"version": "0.7.0-alpha-minor-3",
"version": "0.7.0-alpha-minor-4",
"description": "Library for interacting with uport profiles and attestations",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -252,2 +252,9 @@ import { createJWT, verifyJWT, SimpleSigner, decodeJWT } from 'did-jwt'

}
// Backwards support
try {
if (doc.publicKey[0].publicKeyHex) credentials.publicKey = '0x' + doc.publicKey[0].publicKeyHex
if (doc.publicKey[1].publicKeyBase64) credentials.publicEncKey = doc.publicKey[1].publicKeyBase64
} catch (err) {}
if (payload.verified) {

@@ -254,0 +261,0 @@ const verified = await Promise.all(payload.verified.map(token => verifyJWT(token, {audience: this.givenDID ? this.did : this.address})))

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