From 9f7dac46d8ed247974778df37b7cf6c9f28a6193 Mon Sep 17 00:00:00 2001 From: winor <12413150+winor30@users.noreply.github.com> Date: Tue, 10 Nov 2020 23:38:21 +0900 Subject: [PATCH] fix: Type error and CORS error in react-app example (#258) * fix: Update web-did-resolver version because the lib has bug in previous version * fix: Type error for `getIdentityProviders` * chore: Update lock * fix: Change initial did of receiver because we cannot fetch did data from `did:web:uport.me` --- examples/react-app/src/App.tsx | 13 +- examples/react-app/yarn.lock | 346 ++++++++++++++++++++++------- packages/daf-resolver/package.json | 2 +- yarn.lock | 15 +- 4 files changed, 279 insertions(+), 97 deletions(-) diff --git a/examples/react-app/src/App.tsx b/examples/react-app/src/App.tsx index b1d35d168..47c5d46a2 100644 --- a/examples/react-app/src/App.tsx +++ b/examples/react-app/src/App.tsx @@ -1,6 +1,6 @@ -import React, { useState, useEffect } from 'react' -import * as W3c from 'daf-w3c' import * as TG from 'daf-trust-graph' +import * as W3c from 'daf-w3c' +import React, { useEffect, useState } from 'react' import { agent } from './setup' const { BaseStyles, @@ -26,16 +26,15 @@ declare global { const App: React.FC = () => { const [isSending, setIsSending] = useState(false) const [activeDid, setActiveDid] = useState('') - const [receiver, setReceiver] = useState('did:web:uport.me') + const [receiver, setReceiver] = useState('did:web:identity.foundation') const [claimType, setClaimType] = useState('name') const [claimValue, setClaimValue] = useState('Alice') const [identityProviders, setIdentityProviders] = useState([{ type: '', description: '' }]) const [identities, setIdentities] = useState([{ identityProviderType: '', did: '' }]) useEffect(() => { - agent.identityManager.getIdentityProviders().then((providers: any) => { - setIdentityProviders(providers) - }) + const providers = agent.identityManager.getIdentityProviders() + setIdentityProviders(providers) }, []) const updateIdentityList = () => { @@ -68,7 +67,7 @@ const App: React.FC = () => { }, } as W3c.ActionSignW3cVc) - console.log(credential) + console.log('credential', credential) // Send credential using TrustGraph await agent.handleAction({ diff --git a/examples/react-app/yarn.lock b/examples/react-app/yarn.lock index c72763aff..a29e0e7d1 100644 --- a/examples/react-app/yarn.lock +++ b/examples/react-app/yarn.lock @@ -842,6 +842,13 @@ dependencies: regenerator-runtime "^0.13.2" +"@babel/runtime@^7.11.2": + version "7.12.5" + resolved "https://registry.npmjs.org/@babel/runtime/-/runtime-7.12.5.tgz#410e7e487441e1b360c29be715d870d9b985882e" + integrity sha512-plcc+hbExy3McchJCEQG3knOsuh3HH+Prx1P6cLIkET/0dLuQDEnrT+s27Axgc9bqfsmNUNHfscgMUdBpC9xfg== + dependencies: + regenerator-runtime "^0.13.4" + "@babel/runtime@^7.3.1", "@babel/runtime@^7.4.2": version "7.8.4" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.8.4.tgz#d79f5a2040f7caa24d53e563aad49cbc05581308" @@ -1130,6 +1137,11 @@ call-me-maybe "^1.0.1" glob-to-regexp "^0.3.0" +"@multiformats/base-x@^4.0.1": + version "4.0.1" + resolved "https://registry.npmjs.org/@multiformats/base-x/-/base-x-4.0.1.tgz#95ff0fa58711789d53aefb2590a8b7a4e715d121" + integrity sha512-eMk0b9ReBbV23xXU693TAIrLyeO5iTgBZGSJfpqriG8UkYvr/hC9u9pyMlAakDNHWmbhMZCDs6KQO0jzKD8OTw== + "@nodelib/fs.stat@^1.1.2": version "1.1.3" resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-1.1.3.tgz#2b5a3ab3f918cca48a8c754c08168e3f03eba61b" @@ -1140,10 +1152,146 @@ resolved "https://registry.yarnpkg.com/@sheerun/mutationobserver-shim/-/mutationobserver-shim-0.3.2.tgz#8013f2af54a2b7d735f71560ff360d3a8176a87b" integrity sha512-vTCdPp/T/Q3oSqwHmZ5Kpa9oI7iLtGl3RQaA/NyLHikvcrPxACkkKVr/XzkSPJWXHRhKGzVvb0urJsbMlRxi1Q== -"@stablelib/utf8@^0.10.1": - version "0.10.1" - resolved "https://registry.yarnpkg.com/@stablelib/utf8/-/utf8-0.10.1.tgz#eecf54884da7b2bee235e3c70efb8cd5c07ba5bd" - integrity sha512-+uM1YZ4MhBC82vt99prF7DXNGqhYmJ9cQ3p5qNowMNkkzn9OWEkqBvguBW3ChAt7JvqZ3SD5HJOfc6YgnfMTHw== +"@stablelib/aead@^1.0.0": + version "1.0.0" + resolved "https://registry.npmjs.org/@stablelib/aead/-/aead-1.0.0.tgz#c1ae36d9aa5f4840964a7bfeb9a9639e50a12e9e" + integrity sha512-2iO0P15w1onK8g/m6ygNqlMFBfC7BM8o1Zr7jRqMAF9+zhhyY3h4NZwnXKxUm11TBm62Yeesw+FKqs/gJ6shMA== + +"@stablelib/binary@^1.0.0": + version "1.0.0" + resolved "https://registry.npmjs.org/@stablelib/binary/-/binary-1.0.0.tgz#fa216f8b2d2f7153878e2bc45e91dddee72c4749" + integrity sha512-W01QhOw1tWL51Du1c5JZphJs7toRbfra1C2DBlhT0mRHZWGWB1hpFbqiZUFY7QNIMUpmmHLrlZs3YsSCB/giUg== + dependencies: + "@stablelib/int" "^1.0.0" + +"@stablelib/bytes@^1.0.0": + version "1.0.0" + resolved "https://registry.npmjs.org/@stablelib/bytes/-/bytes-1.0.0.tgz#8a05d9fddc194130f269f7cdb5ea8c1f31083d5e" + integrity sha512-c9CfJwoZpxub6yicmhkeEpvLLsvsAP76tBAHEXKuEjPzza946U7bgebJJoMl8Q+ZlU2vy9ZoWCXE1uLpi817Pg== + +"@stablelib/chacha20poly1305@^1.0.0": + version "1.0.0" + resolved "https://registry.npmjs.org/@stablelib/chacha20poly1305/-/chacha20poly1305-1.0.0.tgz#93daff32d368d1d821a8497de2f68252ef550427" + integrity sha512-sRv7T5nDRpwqerY9VZ3ABfzHukF/aa2njKvCHPvMpM3+WOYqU4JIP47MdvmrEj+NFHFP3hBx6XV5xpnV8IqMig== + dependencies: + "@stablelib/aead" "^1.0.0" + "@stablelib/binary" "^1.0.0" + "@stablelib/chacha" "^1.0.0" + "@stablelib/constant-time" "^1.0.0" + "@stablelib/poly1305" "^1.0.0" + "@stablelib/wipe" "^1.0.0" + +"@stablelib/chacha@^1.0.0": + version "1.0.0" + resolved "https://registry.npmjs.org/@stablelib/chacha/-/chacha-1.0.0.tgz#20167e25416b4d1518c95831cdc30eda44528931" + integrity sha512-tlp3ECXiU7APq6n1YQ2K4B7MUppAOUWsvN1JMs2OWnYVR2Km+AsSmgMjjtefG8vPZ+J8tfY3sufzh5zCg5xiSw== + dependencies: + "@stablelib/binary" "^1.0.0" + "@stablelib/wipe" "^1.0.0" + +"@stablelib/constant-time@^1.0.0": + version "1.0.0" + resolved "https://registry.npmjs.org/@stablelib/constant-time/-/constant-time-1.0.0.tgz#779c17bb3bbe2d3b4cd6eaa167a906bce85524d8" + integrity sha512-0lH6SB0wP562fa0yvNZMF2NbFr8QHeefhO1KOu2unW8qH1npdep7I1vGbPqEM+BHg6LqllPceVE8Ca0RwIDLDA== + +"@stablelib/ed25519@^1.0.1": + version "1.0.1" + resolved "https://registry.npmjs.org/@stablelib/ed25519/-/ed25519-1.0.1.tgz#359ca5f59428e9fde9efef9a8f4040ff0a256d67" + integrity sha512-kvC98vkJeertRj37yqTcjOwUVYWQ0jcywxxWpeuTal5ZNgH7EcbljtQYECA2Pi2N0zNG0a0AjSD2Q2DFcUxRjQ== + dependencies: + "@stablelib/random" "^1.0.0" + "@stablelib/sha512" "^1.0.0" + "@stablelib/wipe" "^1.0.0" + +"@stablelib/hash@^1.0.0": + version "1.0.0" + resolved "https://registry.npmjs.org/@stablelib/hash/-/hash-1.0.0.tgz#28626ddc64cb84db9370f279c5a78cdc96f493ee" + integrity sha512-wBvSIIx4Y8799BRD4TBhezS1P9+irGAKdsNgbZMeU5ndMbw7BtZALdCm0FcJIRFxJ2giPLPS9YCgrwWAhzSRLQ== + +"@stablelib/int@^1.0.0": + version "1.0.0" + resolved "https://registry.npmjs.org/@stablelib/int/-/int-1.0.0.tgz#2432569169cc5640fe5e65b7f79f722ed9cacc59" + integrity sha512-MRigEQCO7xM93nZqW4CbIBjhANGw3jJxGVSUZH3PQ6HWL1IGrFWVDBzIclWxl4l5aRRpqoM+76ellQNdUJPnsA== + +"@stablelib/keyagreement@^1.0.0": + version "1.0.0" + resolved "https://registry.npmjs.org/@stablelib/keyagreement/-/keyagreement-1.0.0.tgz#3dcef0e59615557784b928380a97eb70a7cc3686" + integrity sha512-M4f0QhuYGrMCLPoJIKWpC5riJfDivOFZHOAlj1Av44UJSyMzM46gJW0e9khKoTcbU8r8oXebkwlJT70Xm0+kqg== + dependencies: + "@stablelib/bytes" "^1.0.0" + +"@stablelib/poly1305@^1.0.0": + version "1.0.0" + resolved "https://registry.npmjs.org/@stablelib/poly1305/-/poly1305-1.0.0.tgz#8a63e3eef9c58293d491739e32f85a04efc1386b" + integrity sha512-8EOq8g3Naae+gGI/c/Tt1+xhbgDvkFwYx7QfTlps7SwA/IC6dhEZ+BzvU6O9FuVQ/l72yV7i3PSJ3LMOvTxS8g== + dependencies: + "@stablelib/constant-time" "^1.0.0" + "@stablelib/wipe" "^1.0.0" + +"@stablelib/random@^1.0.0": + version "1.0.0" + resolved "https://registry.npmjs.org/@stablelib/random/-/random-1.0.0.tgz#f441495075cdeaa45de16d7ddcc269c0b8edb16b" + integrity sha512-G9vwwKrNCGMI/uHL6XeWe2Nk4BuxkYyWZagGaDU9wrsuV+9hUwNI1lok2WVo8uJDa2zx7ahNwN7Ij983hOUFEw== + dependencies: + "@stablelib/binary" "^1.0.0" + "@stablelib/wipe" "^1.0.0" + +"@stablelib/sha256@^1.0.0": + version "1.0.0" + resolved "https://registry.npmjs.org/@stablelib/sha256/-/sha256-1.0.0.tgz#05fc33814308caedab30068bd26bd31424c502e7" + integrity sha512-+IEzCXO6HSyYWV+5TqdFjcUYgkebdiadzRtMXJg6ia68WQm2xHpABl5t0vVdtvgTlw7matBRhImunAHUFIAEUg== + dependencies: + "@stablelib/binary" "^1.0.0" + "@stablelib/hash" "^1.0.0" + "@stablelib/wipe" "^1.0.0" + +"@stablelib/sha512@^1.0.0": + version "1.0.0" + resolved "https://registry.npmjs.org/@stablelib/sha512/-/sha512-1.0.0.tgz#91057cfcc15bdda96081ecfb6536b159510a05f6" + integrity sha512-qvUu5SraAdGa8HAkAasfMyD9C+MwlRnFVRJ6cRxAEIekmDsU3tfGLnUm3wb9ao4t0FkihGrj8GKlV82TTR4Phw== + dependencies: + "@stablelib/binary" "^1.0.0" + "@stablelib/hash" "^1.0.0" + "@stablelib/wipe" "^1.0.0" + +"@stablelib/utf8@^1.0.0": + version "1.0.0" + resolved "https://registry.npmjs.org/@stablelib/utf8/-/utf8-1.0.0.tgz#7c0c039b6d154da50326003ea92777ddc8f5db2c" + integrity sha512-Y8QWrK4T0yW0HMFfSI3ZaMHKV37q27hX5ilsmKV358x01mzYfj5fwIf2LjzTlF+UIemHEXSlSN9XJnv1ML4znQ== + +"@stablelib/wipe@^1.0.0": + version "1.0.0" + resolved "https://registry.npmjs.org/@stablelib/wipe/-/wipe-1.0.0.tgz#8ed028a10bb7527357b2655c360383b5f07c16ac" + integrity sha512-0Fd4MQCbEh8OFSO+gG7wBXok7yRC3w+xe/wWM8KNye7EGoHr4BTFZNWV/1xAn2r8/gyFKxPXT8uxXRzDzGq6rg== + +"@stablelib/x25519@^1.0.0": + version "1.0.0" + resolved "https://registry.npmjs.org/@stablelib/x25519/-/x25519-1.0.0.tgz#037699c752896d1e1ff036b0422247dfdcc1b29a" + integrity sha512-sjlOzC8eZJhHTuMZnSTxtawYXbFXZtHm6TbhacvoYmJOG9/3cFX5z1Aw0WZfQvPNSk+8aPrpwuyRMmUO1PW8yw== + dependencies: + "@stablelib/keyagreement" "^1.0.0" + "@stablelib/random" "^1.0.0" + "@stablelib/wipe" "^1.0.0" + +"@stablelib/xchacha20@^1.0.0": + version "1.0.0" + resolved "https://registry.npmjs.org/@stablelib/xchacha20/-/xchacha20-1.0.0.tgz#0b9911d21a640e9a7d5db3ef521187e7591957cf" + integrity sha512-8q98HxPCgVUGMnjMl79KhEtWsh0UQbTt5x1570QnynF3uzzsGgP7exXwkyqi7s85SdvdO8EKEezDMjuzqv69Yw== + dependencies: + "@stablelib/binary" "^1.0.0" + "@stablelib/chacha" "^1.0.0" + "@stablelib/wipe" "^1.0.0" + +"@stablelib/xchacha20poly1305@^1.0.0": + version "1.0.0" + resolved "https://registry.npmjs.org/@stablelib/xchacha20poly1305/-/xchacha20poly1305-1.0.0.tgz#f31c4b96ac6e5de2707ba357e23dd59f4cbfcd18" + integrity sha512-rVcKmgEeMK8kInx2bvvBXLL/wMKrqeA6luWiZYRQj1QMnZnq3ReZd1szZdz2QWFQOlp7rXsZp+EaM4FqNlfZSw== + dependencies: + "@stablelib/aead" "^1.0.0" + "@stablelib/chacha20poly1305" "^1.0.0" + "@stablelib/constant-time" "^1.0.0" + "@stablelib/wipe" "^1.0.0" + "@stablelib/xchacha20" "^1.0.0" "@svgr/babel-plugin-add-jsx-attribute@^4.2.0": version "4.2.0" @@ -3556,59 +3704,60 @@ d@1, d@^1.0.1: es5-ext "^0.10.50" type "^1.0.1" -daf-core@../../packages/daf-core, daf-core@^4.0.0-beta.39+63dd12d: - version "4.0.0-beta.39" +daf-core@../../packages/daf-core, daf-core@^6.3.0: + version "6.3.0" dependencies: blakejs "^1.1.0" debug "^4.1.1" events "^3.0.0" typeorm "^0.2.24" + uuid "^7.0.2" -daf-did-jwt@../../packages/daf-did-jwt, daf-did-jwt@^4.0.0-beta.39+63dd12d: - version "4.0.0-beta.39" +daf-did-jwt@../../packages/daf-did-jwt, daf-did-jwt@^6.3.0: + version "6.3.0" dependencies: - daf-core "^4.0.0-beta.39+63dd12d" + daf-core "^6.3.0" debug "^4.1.1" - did-jwt "^4.0.0" + did-jwt "^4.3.2" did-resolver "^1.1.0" daf-ethr-did@../../packages/daf-ethr-did: - version "4.0.0-beta.39" + version "6.3.0" dependencies: - daf-core "^4.0.0-beta.39+63dd12d" + daf-core "^6.3.0" debug "^4.1.1" ethjs-provider-signer "^0.1.4" ethr-did "^1.1.0" js-sha3 "^0.8.0" daf-libsodium@../../packages/daf-libsodium: - version "4.0.0-beta.39" + version "6.3.0" dependencies: base-58 "^0.0.1" - daf-core "^4.0.0-beta.39+63dd12d" + daf-core "^6.3.0" debug "^4.1.1" - did-jwt "^4.0.0" + did-jwt "^4.3.2" elliptic "^6.5.2" ethjs-signer "^0.1.1" libsodium-wrappers "^0.7.6" daf-local-storage@../../packages/daf-local-storage: - version "4.0.0-beta.39" + version "6.3.0" dependencies: - daf-core "^4.0.0-beta.39+63dd12d" + daf-core "^6.3.0" debug "^4.1.1" daf-resolver@../../packages/daf-resolver: - version "3.0.1" + version "6.3.0" dependencies: debug "^4.1.1" did-resolver "^1.1.0" - ethr-did-resolver "^1.0.3" + ethr-did-resolver "2.2.0" nacl-did "^1.0.0" - web-did-resolver "^1.2.0" + web-did-resolver "^1.3.5" daf-trust-graph@../../packages/daf-trust-graph: - version "4.0.0-beta.39" + version "6.3.0" dependencies: apollo-cache-inmemory "^1.6.3" apollo-client "^2.6.4" @@ -3617,21 +3766,21 @@ daf-trust-graph@../../packages/daf-trust-graph: apollo-link-ws "^1.0.19" apollo-utilities "^1.3.2" cross-fetch "^3.0.4" - daf-core "^4.0.0-beta.39+63dd12d" + daf-core "^6.3.0" debug "^4.1.1" - did-jwt "^4.0.0" + did-jwt "^4.3.2" graphql "^14.0.0" graphql-tag "^2.10.1" subscriptions-transport-ws "^0.9.0" daf-w3c@../../packages/daf-w3c: - version "4.0.0-beta.39" + version "6.3.0" dependencies: blakejs "^1.1.0" - daf-core "^4.0.0-beta.39+63dd12d" - daf-did-jwt "^4.0.0-beta.39+63dd12d" + daf-core "^6.3.0" + daf-did-jwt "^6.3.0" debug "^4.1.1" - did-jwt-vc "^0.1.3" + did-jwt-vc "0.2.0" did-resolver "^1.1.0" damerau-levenshtein@^1.0.4: @@ -3814,12 +3963,12 @@ detect-port-alt@1.1.6: address "^1.0.1" debug "^2.6.0" -did-jwt-vc@^0.1.3: - version "0.1.3" - resolved "https://registry.yarnpkg.com/did-jwt-vc/-/did-jwt-vc-0.1.3.tgz#2b7631d961406f1f2c10c5b7bb4a121fd1db5d71" - integrity sha512-rYVlFOr93+88sdgXGcfbYb5nCKDjqznwOOArJas5Vyad46is8jqfKhdeSlQcMefzD/JMxiR+E0diPS6MitA4CQ== +did-jwt-vc@0.2.0: + version "0.2.0" + resolved "https://registry.npmjs.org/did-jwt-vc/-/did-jwt-vc-0.2.0.tgz#a3592217622d4eccbe1c6b2ea68ba41fe79d7e5d" + integrity sha512-YlIXA3GLryD9nlHOUAzYaU6UMVvZ3103HVBILuGLvRTnE9YVmlfc6nMuYOcIzbgLW2P8pZgIgZsyEFzRdkDRFg== dependencies: - did-jwt "^3.0.0" + did-jwt "^4.3.2" did-jwt@^0.1.1: version "0.1.3" @@ -3836,35 +3985,22 @@ did-jwt@^0.1.1: tweetnacl "^1.0.1" tweetnacl-util "^0.15.0" -did-jwt@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/did-jwt/-/did-jwt-3.0.0.tgz#5e11f1d6e5c9e2d8bdcba0d391f1fcec7c58a07d" - integrity sha512-/zHwoUN6eA+zTpV4HjTVMrVXOGfcfh8le4s9ibvv53ammMwdPj3RnLpw539JtnHm7dCXLq7rpjBkoX3lbbxoPQ== - dependencies: - "@babel/runtime" "^7.3.1" - "@stablelib/utf8" "^0.10.1" - buffer "^5.2.1" - did-resolver "^1.0.0" - elliptic "^6.4.0" - js-sha256 "^0.9.0" - js-sha3 "^0.8.0" - tweetnacl "^1.0.1" - uport-base64url "3.0.2-alpha.0" - -did-jwt@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/did-jwt/-/did-jwt-4.0.0.tgz#243bf1da82d5a67ce4d742afb10f5f63169f5b4e" - integrity sha512-esCR3mVngXQhV2Q1NjdVdkzirgxHpuzqnn4Ga4mNwXFbvYNj9fHD2/oTJXaLZeXxImJmHJQwFEr0TPMoQAlcwg== - dependencies: - "@babel/runtime" "^7.3.1" - "@stablelib/utf8" "^0.10.1" - buffer "^5.2.1" - did-resolver "^1.0.0" - elliptic "^6.4.0" - js-sha256 "^0.9.0" +did-jwt@^4.3.2: + version "4.6.2" + resolved "https://registry.npmjs.org/did-jwt/-/did-jwt-4.6.2.tgz#7e6ddb198233a9e7b7ec996cc88eafe0dc5801d3" + integrity sha512-T77RnUjhhEvwusQ8gxaMqGekyYjpgaZoq6HM3zEkVH7LA5otasqa5XZpbsxeaGgyT7e9sXeofNNzBWvSZM3G2g== + dependencies: + "@babel/runtime" "^7.11.2" + "@stablelib/ed25519" "^1.0.1" + "@stablelib/random" "^1.0.0" + "@stablelib/sha256" "^1.0.0" + "@stablelib/utf8" "^1.0.0" + "@stablelib/x25519" "^1.0.0" + "@stablelib/xchacha20poly1305" "^1.0.0" + did-resolver "^2.1.1" + elliptic "^6.5.3" js-sha3 "^0.8.0" - tweetnacl "^1.0.1" - uport-base64url "3.0.2-alpha.0" + uint8arrays "^1.1.0" did-resolver@0.0.6, did-resolver@^0.0.6: version "0.0.6" @@ -3876,6 +4012,11 @@ did-resolver@1.0.0: resolved "https://registry.yarnpkg.com/did-resolver/-/did-resolver-1.0.0.tgz#892bcffe66352b1360c928a23082a731c83ca7c3" integrity sha512-mgJG0oqlkG7jfRzW0yN9qKawp24M4thGFdfIaZI30SAJXhpkkjqbkRxqMZLJNwqXEM0cqFbXaiFDqnd9Q1UUaw== +did-resolver@2.1.1, did-resolver@^2.1.1: + version "2.1.1" + resolved "https://registry.npmjs.org/did-resolver/-/did-resolver-2.1.1.tgz#43796f8a3e921644e5fb15a8147684ca87019cfd" + integrity sha512-FYLTkNWofjYNDGV1HTQlyVu1OqZiFxR4I8KM+oxGVOkbXva15NfWzbzciqdXUDqOhe6so5aroAdrVip6gSAYSA== + did-resolver@^1.0.0, did-resolver@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/did-resolver/-/did-resolver-1.1.0.tgz#27a63b6f2aa8dee3d622cd8b8b47360661e24f1e" @@ -4090,6 +4231,19 @@ elliptic@^6.0.0, elliptic@^6.4.0, elliptic@^6.5.2: minimalistic-assert "^1.0.0" minimalistic-crypto-utils "^1.0.0" +elliptic@^6.5.3: + version "6.5.3" + resolved "https://registry.npmjs.org/elliptic/-/elliptic-6.5.3.tgz#cb59eb2efdaf73a0bd78ccd7015a62ad6e0f93d6" + integrity sha512-IMqzv5wNQf+E6aHeIqATs0tOLeOTwj1QKbRcS3jBbYkl5oLAserA8yJTT7/VyHUYG91PRmPyeQDObKLPpeS4dw== + dependencies: + bn.js "^4.4.0" + brorand "^1.0.1" + hash.js "^1.0.0" + hmac-drbg "^1.0.0" + inherits "^2.0.1" + minimalistic-assert "^1.0.0" + minimalistic-crypto-utils "^1.0.0" + emoji-regex@^7.0.1, emoji-regex@^7.0.2: version "7.0.3" resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-7.0.3.tgz#933a04052860c85e83c122479c4748a8e4c72156" @@ -4582,28 +4736,28 @@ ethr-did-registry@^0.0.3: resolved "https://registry.yarnpkg.com/ethr-did-registry/-/ethr-did-registry-0.0.3.tgz#f363d2c73cb9572b57bd7a5c9c90c88485feceb5" integrity sha512-4BPvMGkxAK9vTduCq6D5b8ZqjteD2cvDIPPriXP6nnmPhWKFSxypo+AFvyQ0omJGa0cGTR+dkdI/8jiF7U/qaw== -ethr-did-resolver@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/ethr-did-resolver/-/ethr-did-resolver-0.2.0.tgz#1af748f1c878d45feca8d05f5d8a2eb26b4247d7" - integrity sha512-6ysQhoDa8vGFesECQfxFkEV+DVFMhcWJ35qgMVk0F8a9i7Iy9Fl29cM/5U7JCgBjZoaPrSKCMmNK4rfFNrYc4A== +ethr-did-resolver@2.2.0: + version "2.2.0" + resolved "https://registry.npmjs.org/ethr-did-resolver/-/ethr-did-resolver-2.2.0.tgz#bd1c838fc0140bae03e34897352da94ec514deb2" + integrity sha512-Ca8hucIpO0LZ0Td3vEyUGRMyStATvof7EI5knazt8xpco5ao03HA9nQJdyRL7SDu9wDvw5iC1Z/8XmbWBuKPig== dependencies: - babel-plugin-module-resolver "^3.1.1" - babel-runtime "^6.26.0" buffer "^5.1.0" - did-resolver "0.0.6" + did-resolver "1.0.0" ethjs-abi "^0.2.1" ethjs-contract "^0.1.9" ethjs-provider-http "^0.1.6" ethjs-query "^0.3.5" ethr-did-registry "^0.0.3" -ethr-did-resolver@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/ethr-did-resolver/-/ethr-did-resolver-1.0.3.tgz#8a4777c6267afe80a55a16fcee21845ddfd25104" - integrity sha512-9XtaB+4Ozc4W0gWHZ4J2HA+c+M7r0xcktmQI6v3GMjFto7b42Mq9zhh24kAxCqmtkqQhmUDJeqqSOIOwHrNbmQ== +ethr-did-resolver@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/ethr-did-resolver/-/ethr-did-resolver-0.2.0.tgz#1af748f1c878d45feca8d05f5d8a2eb26b4247d7" + integrity sha512-6ysQhoDa8vGFesECQfxFkEV+DVFMhcWJ35qgMVk0F8a9i7Iy9Fl29cM/5U7JCgBjZoaPrSKCMmNK4rfFNrYc4A== dependencies: + babel-plugin-module-resolver "^3.1.1" + babel-runtime "^6.26.0" buffer "^5.1.0" - did-resolver "1.0.0" + did-resolver "0.0.6" ethjs-abi "^0.2.1" ethjs-contract "^0.1.9" ethjs-provider-http "^0.1.6" @@ -7407,6 +7561,14 @@ ms@^2.1.1: resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== +multibase@^3.0.0: + version "3.0.1" + resolved "https://registry.npmjs.org/multibase/-/multibase-3.0.1.tgz#31e8b0de5b2fd5f7dc9f04dddf0a4fcc667284bf" + integrity sha512-MRU5WpnSg81/vYO977MweoeUAxBdXl7+F5Af2Es+X6Vcgfk/g/EjIqXTgm3kb+xO3m1Kzr+aIV14oRX7nv5Z9w== + dependencies: + "@multiformats/base-x" "^4.0.1" + web-encoding "^1.0.2" + multicast-dns-service-types@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/multicast-dns-service-types/-/multicast-dns-service-types-1.1.0.tgz#899f11d9686e5e05cb91b35d5f0e63b773cfc901" @@ -9530,6 +9692,11 @@ regenerator-runtime@^0.13.2, regenerator-runtime@^0.13.3: resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.3.tgz#7cf6a77d8f5c6f60eb73c5fc1955b2ceb01e6bf5" integrity sha512-naKIZz2GQ8JWh///G7L3X6LaQUAMp2lvb1rvwwsURe/VXwD6VMfr+/1NuNw3ag8v2kY1aQ/go5SNn79O9JU7yw== +regenerator-runtime@^0.13.4: + version "0.13.7" + resolved "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.7.tgz#cac2dacc8a1ea675feaabaeb8ae833898ae46f55" + integrity sha512-a54FxoJDIr27pgf7IgeQGxmqUNYrcV338lf/6gH456HZ/PhX+5BcwHXG9ajESmwe6WRO0tAzRUrRmNONWgkrew== + regenerator-transform@^0.14.0: version "0.14.1" resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.14.1.tgz#3b2fce4e1ab7732c08f665dfdb314749c7ddd2fb" @@ -11071,6 +11238,14 @@ uglify-js@^3.1.4: commander "~2.20.3" source-map "~0.6.1" +uint8arrays@^1.1.0: + version "1.1.0" + resolved "https://registry.npmjs.org/uint8arrays/-/uint8arrays-1.1.0.tgz#d034aa65399a9fd213a1579e323f0b29f67d0ed2" + integrity sha512-cLdlZ6jnFczsKf5IH1gPHTtcHtPGho5r4CvctohmQjw8K7Q3gFdfIGHxSTdTaCKrL4w09SsPRJTqRS0drYeszA== + dependencies: + multibase "^3.0.0" + web-encoding "^1.0.2" + unicode-canonical-property-names-ecmascript@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-1.0.4.tgz#2619800c4c825800efdd8343af7dd9933cbe2818" @@ -11156,13 +11331,6 @@ upath@^1.1.1: resolved "https://registry.yarnpkg.com/upath/-/upath-1.2.0.tgz#8f66dbcd55a883acdae4408af8b035a5044c1894" integrity sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg== -uport-base64url@3.0.2-alpha.0: - version "3.0.2-alpha.0" - resolved "https://registry.yarnpkg.com/uport-base64url/-/uport-base64url-3.0.2-alpha.0.tgz#8d921eb512af1e8dc97ac2fd0d37863df6549843" - integrity sha512-pRu0xm1K39IUzuMQEmFWdqP+H8jOzblwTXf0r9wFBCa6ZLLQsNuDeUwB2Ld+9zlBSvQQv+XEzG7cQukSCueZqw== - dependencies: - buffer "^5.2.1" - upper-case@^1.1.1: version "1.1.3" resolved "https://registry.yarnpkg.com/upper-case/-/upper-case-1.1.3.tgz#f6b4501c2ec4cdd26ba78be7222961de77621598" @@ -11252,6 +11420,11 @@ uuid@^3.0.1, uuid@^3.3.2: resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.3.3.tgz#4568f0216e78760ee1dbf3a4d2cf53e224112866" integrity sha512-pW0No1RGHgzlpHJO1nsVrHKpOEIxkGg1xB+v0ZmdNH5OAeAwzAVrCnI2/6Mtx+Uys6iaylxa+D3g4j63IKKjSQ== +uuid@^7.0.2: + version "7.0.3" + resolved "https://registry.npmjs.org/uuid/-/uuid-7.0.3.tgz#c5c9f2c8cf25dc0a372c4df1441c41f5bd0c680b" + integrity sha512-DPSke0pXhTZgoF/d+WSt2QaKMCFSfx7QegxEWT+JOuHF5aWrKEn0G+ztjuJg/gG8/ItK+rbPCD/yNv8yyih6Cg== + v8-compile-cache@^2.0.3: version "2.1.0" resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.1.0.tgz#e14de37b31a6d194f5690d67efc4e7f6fc6ab30e" @@ -11333,13 +11506,18 @@ wbuf@^1.1.0, wbuf@^1.7.3: dependencies: minimalistic-assert "^1.0.0" -web-did-resolver@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/web-did-resolver/-/web-did-resolver-1.2.0.tgz#bbf5c5531f707afa60fca6b1a1d19721c4a7b750" - integrity sha512-nTZHRVhjZpUazmZdkuV9M5UA8BpkRQRxoVw1UTd+hreLR+q/xeQsYs55eWTOr9jmPG1fePTrgXcoFVfkz1YCbQ== +web-did-resolver@^1.3.5: + version "1.3.5" + resolved "https://registry.npmjs.org/web-did-resolver/-/web-did-resolver-1.3.5.tgz#1240a94530fa5194827856b8ff7957d00d11a7d7" + integrity sha512-k+32CvrguvAwgvppYH0geMsmKJL1akuyWa3p5ArVON5swYvMb72e1yayM7XuPMwUW/6aZ2Z0HL14QkfvcIJRQw== dependencies: cross-fetch "^3.0.4" - did-resolver "1.0.0" + did-resolver "2.1.1" + +web-encoding@^1.0.2: + version "1.0.4" + resolved "https://registry.npmjs.org/web-encoding/-/web-encoding-1.0.4.tgz#0398d39ce2cbef5ed2617080750ed874e6153aea" + integrity sha512-DcXs2lbVPzuJmn2kuDEwul2oZg7p4YMa5J2f0YzsOBHaAnBYGPNUB/rJ74DTjTKpw7F0+lSsVM8sFHE2UyBixg== webidl-conversions@^4.0.2: version "4.0.2" diff --git a/packages/daf-resolver/package.json b/packages/daf-resolver/package.json index 8fcfe9c3e..ba2cc87c0 100644 --- a/packages/daf-resolver/package.json +++ b/packages/daf-resolver/package.json @@ -12,7 +12,7 @@ "did-resolver": "^1.1.0", "ethr-did-resolver": "2.2.0", "nacl-did": "^1.0.0", - "web-did-resolver": "^1.2.0" + "web-did-resolver": "^1.3.5" }, "devDependencies": { "@types/debug": "^4.1.5", diff --git a/yarn.lock b/yarn.lock index a2f6facfb..45aba8410 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5737,6 +5737,11 @@ did-resolver@1.0.0: resolved "https://registry.yarnpkg.com/did-resolver/-/did-resolver-1.0.0.tgz#892bcffe66352b1360c928a23082a731c83ca7c3" integrity sha512-mgJG0oqlkG7jfRzW0yN9qKawp24M4thGFdfIaZI30SAJXhpkkjqbkRxqMZLJNwqXEM0cqFbXaiFDqnd9Q1UUaw== +did-resolver@2.1.1: + version "2.1.1" + resolved "https://registry.npmjs.org/did-resolver/-/did-resolver-2.1.1.tgz#43796f8a3e921644e5fb15a8147684ca87019cfd" + integrity sha512-FYLTkNWofjYNDGV1HTQlyVu1OqZiFxR4I8KM+oxGVOkbXva15NfWzbzciqdXUDqOhe6so5aroAdrVip6gSAYSA== + did-resolver@^1.0.0, did-resolver@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/did-resolver/-/did-resolver-1.1.0.tgz#27a63b6f2aa8dee3d622cd8b8b47360661e24f1e" @@ -16491,13 +16496,13 @@ wcwidth@^1.0.0: dependencies: defaults "^1.0.3" -web-did-resolver@^1.2.0: - version "1.2.1" - resolved "https://registry.yarnpkg.com/web-did-resolver/-/web-did-resolver-1.2.1.tgz#ef67b4196f47cfc9eef6dcc61dd96f5b8e39f8b1" - integrity sha512-BD7L9YBIQELjt0A2IhktCfUR1TtTxFcNDPu/yfEMtMsawO/OO26Sey44omwaBOLUsB1uGmLNOQVnBK5Zn+k8Nw== +web-did-resolver@^1.3.5: + version "1.3.5" + resolved "https://registry.npmjs.org/web-did-resolver/-/web-did-resolver-1.3.5.tgz#1240a94530fa5194827856b8ff7957d00d11a7d7" + integrity sha512-k+32CvrguvAwgvppYH0geMsmKJL1akuyWa3p5ArVON5swYvMb72e1yayM7XuPMwUW/6aZ2Z0HL14QkfvcIJRQw== dependencies: cross-fetch "^3.0.4" - did-resolver "1.0.0" + did-resolver "2.1.1" web3-bzz@1.2.1: version "1.2.1"