diff --git a/package-lock.json b/package-lock.json index 893bd4b..b1365b0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3221,11 +3221,11 @@ } }, "@babel/runtime": { - "version": "7.7.6", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.7.6.tgz", - "integrity": "sha512-BWAJxpNVa0QlE5gZdWjSxXtemZyZ9RmrmVozxt3NUXeZhVIJ5ANyqmMc0JDrivBZyxUuQvFxlvH4OWWOogGfUw==", + "version": "7.13.10", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.13.10.tgz", + "integrity": "sha512-4QPkjJq6Ns3V/RgpEahRk+AGfL0eO6RHHtTWoNNr5mO49G6B5+X6d6THgWEAvTrznU5xYpbAlVKRYcsCgh/Akw==", "requires": { - "regenerator-runtime": "^0.13.2" + "regenerator-runtime": "^0.13.4" } }, "@babel/template": { @@ -4771,6 +4771,11 @@ } } }, + "@multiformats/base-x": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@multiformats/base-x/-/base-x-4.0.1.tgz", + "integrity": "sha512-eMk0b9ReBbV23xXU693TAIrLyeO5iTgBZGSJfpqriG8UkYvr/hC9u9pyMlAakDNHWmbhMZCDs6KQO0jzKD8OTw==" + }, "@nodelib/fs.scandir": { "version": "2.1.4", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.4.tgz", @@ -5644,10 +5649,153 @@ "@sinonjs/commons": "^1.7.0" } }, - "@stablelib/utf8": { - "version": "0.10.1", - "resolved": "https://registry.npmjs.org/@stablelib/utf8/-/utf8-0.10.1.tgz", - "integrity": "sha512-+uM1YZ4MhBC82vt99prF7DXNGqhYmJ9cQ3p5qNowMNkkzn9OWEkqBvguBW3ChAt7JvqZ3SD5HJOfc6YgnfMTHw==" + "@stablelib/aead": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@stablelib/aead/-/aead-1.0.0.tgz", + "integrity": "sha512-2iO0P15w1onK8g/m6ygNqlMFBfC7BM8o1Zr7jRqMAF9+zhhyY3h4NZwnXKxUm11TBm62Yeesw+FKqs/gJ6shMA==" + }, + "@stablelib/binary": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@stablelib/binary/-/binary-1.0.0.tgz", + "integrity": "sha512-W01QhOw1tWL51Du1c5JZphJs7toRbfra1C2DBlhT0mRHZWGWB1hpFbqiZUFY7QNIMUpmmHLrlZs3YsSCB/giUg==", + "requires": { + "@stablelib/int": "^1.0.0" + } + }, + "@stablelib/bytes": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@stablelib/bytes/-/bytes-1.0.0.tgz", + "integrity": "sha512-c9CfJwoZpxub6yicmhkeEpvLLsvsAP76tBAHEXKuEjPzza946U7bgebJJoMl8Q+ZlU2vy9ZoWCXE1uLpi817Pg==" + }, + "@stablelib/chacha": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@stablelib/chacha/-/chacha-1.0.0.tgz", + "integrity": "sha512-tlp3ECXiU7APq6n1YQ2K4B7MUppAOUWsvN1JMs2OWnYVR2Km+AsSmgMjjtefG8vPZ+J8tfY3sufzh5zCg5xiSw==", + "requires": { + "@stablelib/binary": "^1.0.0", + "@stablelib/wipe": "^1.0.0" + } + }, + "@stablelib/chacha20poly1305": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@stablelib/chacha20poly1305/-/chacha20poly1305-1.0.0.tgz", + "integrity": "sha512-sRv7T5nDRpwqerY9VZ3ABfzHukF/aa2njKvCHPvMpM3+WOYqU4JIP47MdvmrEj+NFHFP3hBx6XV5xpnV8IqMig==", + "requires": { + "@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/constant-time": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@stablelib/constant-time/-/constant-time-1.0.0.tgz", + "integrity": "sha512-0lH6SB0wP562fa0yvNZMF2NbFr8QHeefhO1KOu2unW8qH1npdep7I1vGbPqEM+BHg6LqllPceVE8Ca0RwIDLDA==" + }, + "@stablelib/ed25519": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@stablelib/ed25519/-/ed25519-1.0.1.tgz", + "integrity": "sha512-kvC98vkJeertRj37yqTcjOwUVYWQ0jcywxxWpeuTal5ZNgH7EcbljtQYECA2Pi2N0zNG0a0AjSD2Q2DFcUxRjQ==", + "requires": { + "@stablelib/random": "^1.0.0", + "@stablelib/sha512": "^1.0.0", + "@stablelib/wipe": "^1.0.0" + } + }, + "@stablelib/hash": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@stablelib/hash/-/hash-1.0.0.tgz", + "integrity": "sha512-wBvSIIx4Y8799BRD4TBhezS1P9+irGAKdsNgbZMeU5ndMbw7BtZALdCm0FcJIRFxJ2giPLPS9YCgrwWAhzSRLQ==" + }, + "@stablelib/int": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@stablelib/int/-/int-1.0.0.tgz", + "integrity": "sha512-MRigEQCO7xM93nZqW4CbIBjhANGw3jJxGVSUZH3PQ6HWL1IGrFWVDBzIclWxl4l5aRRpqoM+76ellQNdUJPnsA==" + }, + "@stablelib/keyagreement": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@stablelib/keyagreement/-/keyagreement-1.0.0.tgz", + "integrity": "sha512-M4f0QhuYGrMCLPoJIKWpC5riJfDivOFZHOAlj1Av44UJSyMzM46gJW0e9khKoTcbU8r8oXebkwlJT70Xm0+kqg==", + "requires": { + "@stablelib/bytes": "^1.0.0" + } + }, + "@stablelib/poly1305": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@stablelib/poly1305/-/poly1305-1.0.0.tgz", + "integrity": "sha512-8EOq8g3Naae+gGI/c/Tt1+xhbgDvkFwYx7QfTlps7SwA/IC6dhEZ+BzvU6O9FuVQ/l72yV7i3PSJ3LMOvTxS8g==", + "requires": { + "@stablelib/constant-time": "^1.0.0", + "@stablelib/wipe": "^1.0.0" + } + }, + "@stablelib/random": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@stablelib/random/-/random-1.0.0.tgz", + "integrity": "sha512-G9vwwKrNCGMI/uHL6XeWe2Nk4BuxkYyWZagGaDU9wrsuV+9hUwNI1lok2WVo8uJDa2zx7ahNwN7Ij983hOUFEw==", + "requires": { + "@stablelib/binary": "^1.0.0", + "@stablelib/wipe": "^1.0.0" + } + }, + "@stablelib/sha256": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@stablelib/sha256/-/sha256-1.0.0.tgz", + "integrity": "sha512-+IEzCXO6HSyYWV+5TqdFjcUYgkebdiadzRtMXJg6ia68WQm2xHpABl5t0vVdtvgTlw7matBRhImunAHUFIAEUg==", + "requires": { + "@stablelib/binary": "^1.0.0", + "@stablelib/hash": "^1.0.0", + "@stablelib/wipe": "^1.0.0" + } + }, + "@stablelib/sha512": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@stablelib/sha512/-/sha512-1.0.0.tgz", + "integrity": "sha512-qvUu5SraAdGa8HAkAasfMyD9C+MwlRnFVRJ6cRxAEIekmDsU3tfGLnUm3wb9ao4t0FkihGrj8GKlV82TTR4Phw==", + "requires": { + "@stablelib/binary": "^1.0.0", + "@stablelib/hash": "^1.0.0", + "@stablelib/wipe": "^1.0.0" + } + }, + "@stablelib/wipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@stablelib/wipe/-/wipe-1.0.0.tgz", + "integrity": "sha512-0Fd4MQCbEh8OFSO+gG7wBXok7yRC3w+xe/wWM8KNye7EGoHr4BTFZNWV/1xAn2r8/gyFKxPXT8uxXRzDzGq6rg==" + }, + "@stablelib/x25519": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@stablelib/x25519/-/x25519-1.0.0.tgz", + "integrity": "sha512-sjlOzC8eZJhHTuMZnSTxtawYXbFXZtHm6TbhacvoYmJOG9/3cFX5z1Aw0WZfQvPNSk+8aPrpwuyRMmUO1PW8yw==", + "requires": { + "@stablelib/keyagreement": "^1.0.0", + "@stablelib/random": "^1.0.0", + "@stablelib/wipe": "^1.0.0" + } + }, + "@stablelib/xchacha20": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@stablelib/xchacha20/-/xchacha20-1.0.0.tgz", + "integrity": "sha512-8q98HxPCgVUGMnjMl79KhEtWsh0UQbTt5x1570QnynF3uzzsGgP7exXwkyqi7s85SdvdO8EKEezDMjuzqv69Yw==", + "requires": { + "@stablelib/binary": "^1.0.0", + "@stablelib/chacha": "^1.0.0", + "@stablelib/wipe": "^1.0.0" + } + }, + "@stablelib/xchacha20poly1305": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@stablelib/xchacha20poly1305/-/xchacha20poly1305-1.0.0.tgz", + "integrity": "sha512-rVcKmgEeMK8kInx2bvvBXLL/wMKrqeA6luWiZYRQj1QMnZnq3ReZd1szZdz2QWFQOlp7rXsZp+EaM4FqNlfZSw==", + "requires": { + "@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" + } }, "@tootallnate/once": { "version": "1.1.2", @@ -6089,6 +6237,12 @@ "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", "dev": true }, + "@zxing/text-encoding": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/@zxing/text-encoding/-/text-encoding-0.9.0.tgz", + "integrity": "sha512-U/4aVJ2mxI0aDNI8Uq0wEhMgY+u4CNtEb0om3+y3+niDAsoTCOB33UF0sxpzqzdqXLqmvc+vZyAt4O8pPdfkwA==", + "optional": true + }, "JSONStream": { "version": "1.3.5", "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz", @@ -8551,25 +8705,26 @@ "dev": true }, "did-jwt": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/did-jwt/-/did-jwt-4.0.0.tgz", - "integrity": "sha512-esCR3mVngXQhV2Q1NjdVdkzirgxHpuzqnn4Ga4mNwXFbvYNj9fHD2/oTJXaLZeXxImJmHJQwFEr0TPMoQAlcwg==", - "requires": { - "@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", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/did-jwt/-/did-jwt-5.0.0.tgz", + "integrity": "sha512-koyEw0bv0gwTGFlapVt1ZQ/WhSKyarhR8V9PlxjA0fcLFN0wmkf5yx4tbf0u1Wwp+PKn7ClIxdhZsW+P43cRDw==", + "requires": { + "@babel/runtime": "^7.11.2", + "@stablelib/ed25519": "^1.0.1", + "@stablelib/random": "^1.0.0", + "@stablelib/sha256": "^1.0.0", + "@stablelib/x25519": "^1.0.0", + "@stablelib/xchacha20poly1305": "^1.0.0", + "did-resolver": "^3.0.1", + "elliptic": "^6.5.3", "js-sha3": "^0.8.0", - "tweetnacl": "^1.0.1", - "uport-base64url": "3.0.2-alpha.0" + "uint8arrays": "^2.0.0" }, "dependencies": { "did-resolver": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/did-resolver/-/did-resolver-1.1.0.tgz", - "integrity": "sha512-Q02Sc5VuQnJzzR8fQ/DzyCHiYb31WpQdocOsxppI66wwT4XalYRDeCr3a48mL6sYPQo76AkBh0mxte9ZBuQzxA==" + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/did-resolver/-/did-resolver-3.0.1.tgz", + "integrity": "sha512-Z81nHoCVgUqE3oV7ULVtaFawUC+4RKSfS/rbJYuAmWDyi2/2wXEJBmg21aZAd5/1xAeE7vwAdGfn3mXuRzCXEA==" } } }, @@ -14612,6 +14767,15 @@ "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", "dev": true }, + "multibase": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/multibase/-/multibase-4.0.2.tgz", + "integrity": "sha512-l0XMK4O5I9cCfxC0/UMDX/UxlIlrqkjEZQNG+ZUUrsGhnXWgFXgatYOQSONiR/lQGfBO463UyZkh3SiQBpjRIQ==", + "requires": { + "@multiformats/base-x": "^4.0.1", + "web-encoding": "^1.1.0" + } + }, "nanoid": { "version": "3.1.20", "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.1.20.tgz", @@ -20625,9 +20789,9 @@ } }, "regenerator-runtime": { - "version": "0.13.3", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.3.tgz", - "integrity": "sha512-naKIZz2GQ8JWh///G7L3X6LaQUAMp2lvb1rvwwsURe/VXwD6VMfr+/1NuNw3ag8v2kY1aQ/go5SNn79O9JU7yw==" + "version": "0.13.7", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.7.tgz", + "integrity": "sha512-a54FxoJDIr27pgf7IgeQGxmqUNYrcV338lf/6gH456HZ/PhX+5BcwHXG9ajESmwe6WRO0tAzRUrRmNONWgkrew==" }, "regenerator-transform": { "version": "0.14.5", @@ -23072,7 +23236,8 @@ "tweetnacl": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.1.tgz", - "integrity": "sha512-kcoMoKTPYnoeS50tzoqjPY3Uv9axeuuFAZY9M/9zFnhoVvRfxz9K29IMPD7jGmt2c8SW7i3gT9WqDl2+nV7p4A==" + "integrity": "sha512-kcoMoKTPYnoeS50tzoqjPY3Uv9axeuuFAZY9M/9zFnhoVvRfxz9K29IMPD7jGmt2c8SW7i3gT9WqDl2+nV7p4A==", + "dev": true }, "tweetnacl-util": { "version": "0.15.0", @@ -23294,6 +23459,15 @@ "source-map": "~0.6.1" } }, + "uint8arrays": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-2.1.3.tgz", + "integrity": "sha512-2h2Z2OIqzrhHmZTv9ViJVyZZreFkHRHeihh7SxLVY/nLUVJhU4ey/u74tWsgMR6hhMSO2g5rhKmdLQIg3lKiUQ==", + "requires": { + "multibase": "^4.0.1", + "web-encoding": "^1.1.0" + } + }, "underscore": { "version": "1.8.3", "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.8.3.tgz", @@ -23775,6 +23949,14 @@ } } }, + "web-encoding": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/web-encoding/-/web-encoding-1.1.0.tgz", + "integrity": "sha512-KzYonGdJnZB3qvhK8hKca5qXk/wp+hgwGNTY1TnqtF2CzDzpN8szOC3ejhX9+wbhCq3vQs/TjM8BykS1kor0lQ==", + "requires": { + "@zxing/text-encoding": "0.9.0" + } + }, "webidl-conversions": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz", diff --git a/package.json b/package.json index 8432360..8162a7c 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ }, "license": "Apache-2.0", "dependencies": { - "did-jwt": "^4.0.0", + "did-jwt": "^5.0.0", "did-jwt-vc": "^1.0.0", "did-resolver": "^2.0.0", "elliptic": "^6.4.1",