From 3fc0e3c3b37037af962628d74569d407b920cbba Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 6 Jan 2021 09:25:22 +0000 Subject: [PATCH 1/6] Bump axios from 0.19.2 to 0.21.1 in /packages/provider Bumps [axios](https://github.com/axios/axios) from 0.19.2 to 0.21.1. - [Release notes](https://github.com/axios/axios/releases) - [Changelog](https://github.com/axios/axios/blob/v0.21.1/CHANGELOG.md) - [Commits](https://github.com/axios/axios/compare/v0.19.2...v0.21.1) Signed-off-by: dependabot[bot] --- packages/provider/package-lock.json | 30 +++++++++-------------------- packages/provider/package.json | 2 +- 2 files changed, 10 insertions(+), 22 deletions(-) diff --git a/packages/provider/package-lock.json b/packages/provider/package-lock.json index b81e36e..5040728 100644 --- a/packages/provider/package-lock.json +++ b/packages/provider/package-lock.json @@ -2146,11 +2146,11 @@ "dev": true }, "axios": { - "version": "0.19.2", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.19.2.tgz", - "integrity": "sha512-fjgm5MvRHLhx+osE2xoekY70AhARk3a6hkN+3Io1jc00jtquGvxYlKlsFUhmUET0V5te6CcZI7lcv2Ym61mjHA==", + "version": "0.21.1", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.1.tgz", + "integrity": "sha512-dKQiRHxGD9PPRIUNIWvZhPTPpl1rf/OxTYKsqKUDjBwYylTvV7SjSHJb9ratfyzM6wCdLCOYLzs73qpg5c4iGA==", "requires": { - "follow-redirects": "1.5.10" + "follow-redirects": "^1.10.0" } }, "babel-loader": { @@ -3478,22 +3478,9 @@ } }, "follow-redirects": { - "version": "1.5.10", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.5.10.tgz", - "integrity": "sha512-0V5l4Cizzvqt5D44aTXbFZz+FtyXV1vrDN6qrelxtfYQKW0KO0W2T/hkE8xvGa/540LkZlkaUjO4ailYTFtHVQ==", - "requires": { - "debug": "=3.1.0" - }, - "dependencies": { - "debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", - "requires": { - "ms": "2.0.0" - } - } - } + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.13.1.tgz", + "integrity": "sha512-SSG5xmZh1mkPGyKzjZP8zLjltIfpW32Y5QpdNJyjcfGxK3qo3NDDkZOZSFiGn1A6SclQxY9GzEwAHQ3dmYRWpg==" }, "for-in": { "version": "1.0.2", @@ -4364,7 +4351,8 @@ "ms": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true }, "nan": { "version": "2.14.1", diff --git a/packages/provider/package.json b/packages/provider/package.json index 5f09151..9eb2102 100644 --- a/packages/provider/package.json +++ b/packages/provider/package.json @@ -39,7 +39,7 @@ "webpack-cli": "^3.3.12" }, "dependencies": { - "axios": "^0.19.2", + "axios": "^0.21.1", "babel-polyfill": "^6.26.0", "emotion": "^10.0.27" } From 6bbe785aff48e225b9a43c6b1354eab5bf371dce Mon Sep 17 00:00:00 2001 From: p0oker Date: Wed, 13 Jan 2021 21:38:09 +0800 Subject: [PATCH 2/6] add a default export --- packages/provider/src/provider.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/provider/src/provider.js b/packages/provider/src/provider.js index e8370ca..5ef0306 100644 --- a/packages/provider/src/provider.js +++ b/packages/provider/src/provider.js @@ -476,7 +476,7 @@ function removeListeningForMessage() { window.removeEventListener("message", handleMessageReceivedFromSigner); } -export function cash(params) { +function cash(params) { if (!(this instanceof cash)) { return new cash(params); } @@ -498,3 +498,7 @@ export function cash(params) { } export function read(bitdbURL = DEFAULT_BITDB_URL) {} + +export default { + cash, +}; \ No newline at end of file From d17ee6df16d0b7c5828acd405db9e30acc868c17 Mon Sep 17 00:00:00 2001 From: p0oker Date: Wed, 13 Jan 2021 21:45:10 +0800 Subject: [PATCH 3/6] avoid throwing error on origin mismatch --- packages/provider/src/provider.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/packages/provider/src/provider.js b/packages/provider/src/provider.js index 5ef0306..61781a7 100644 --- a/packages/provider/src/provider.js +++ b/packages/provider/src/provider.js @@ -448,13 +448,8 @@ function requestFromUserWallet(requestPayload) { } function handleMessageReceivedFromSigner(event, targetReqId, cb) { - if (!event.origin.match(SIGNUP_ORIGIN)) { - throw new Error( - "Unknown Origin blocked! SIGNUP only authorize messages from " + - SIGNUP_ORIGIN, - event.origin - ); - } + if (!event.origin.match(SIGNUP_ORIGIN)) return; + const status = event.data.status; const reqId = event.data.reqId; From e7510095dd81f116a562dab1d0c60af126abecd7 Mon Sep 17 00:00:00 2001 From: p0oker Date: Wed, 13 Jan 2021 21:46:06 +0800 Subject: [PATCH 4/6] bump the version --- packages/provider/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/provider/package.json b/packages/provider/package.json index 5f09151..ee01531 100644 --- a/packages/provider/package.json +++ b/packages/provider/package.json @@ -1,6 +1,6 @@ { "name": "@signupcash/provider", - "version": "1.0.0", + "version": "1.0.1", "description": "Connecting the web apps to Signup DApp wallet", "main": "dist/provider.js", "browserslist": [ From 560967eb9ccb6416a9d892d4c1a8c41203b23210 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 11 Mar 2021 08:00:04 +0000 Subject: [PATCH 5/6] Bump elliptic from 6.5.3 to 6.5.4 in /packages/provider Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.3 to 6.5.4. - [Release notes](https://github.com/indutny/elliptic/releases) - [Commits](https://github.com/indutny/elliptic/compare/v6.5.3...v6.5.4) Signed-off-by: dependabot[bot] --- packages/provider/package-lock.json | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/packages/provider/package-lock.json b/packages/provider/package-lock.json index b81e36e..452f8b1 100644 --- a/packages/provider/package-lock.json +++ b/packages/provider/package-lock.json @@ -1,6 +1,6 @@ { "name": "signup-cash-provider", - "version": "1.0.0", + "version": "1.0.1", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -3063,24 +3063,24 @@ "dev": true }, "elliptic": { - "version": "6.5.3", - "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.3.tgz", - "integrity": "sha512-IMqzv5wNQf+E6aHeIqATs0tOLeOTwj1QKbRcS3jBbYkl5oLAserA8yJTT7/VyHUYG91PRmPyeQDObKLPpeS4dw==", + "version": "6.5.4", + "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz", + "integrity": "sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==", "dev": true, "requires": { - "bn.js": "^4.4.0", - "brorand": "^1.0.1", + "bn.js": "^4.11.9", + "brorand": "^1.1.0", "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" + "hmac-drbg": "^1.0.1", + "inherits": "^2.0.4", + "minimalistic-assert": "^1.0.1", + "minimalistic-crypto-utils": "^1.0.1" }, "dependencies": { "bn.js": { - "version": "4.11.9", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.9.tgz", - "integrity": "sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw==", + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", "dev": true } } From c784f80913c410f0631666af2ef5f9a2aededb66 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 1 Apr 2021 07:17:22 +0000 Subject: [PATCH 6/6] Bump y18n from 4.0.0 to 4.0.1 in /packages/provider Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1. - [Release notes](https://github.com/yargs/y18n/releases) - [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md) - [Commits](https://github.com/yargs/y18n/commits) Signed-off-by: dependabot[bot] --- packages/provider/package-lock.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/provider/package-lock.json b/packages/provider/package-lock.json index b81e36e..7f541ce 100644 --- a/packages/provider/package-lock.json +++ b/packages/provider/package-lock.json @@ -1,6 +1,6 @@ { "name": "signup-cash-provider", - "version": "1.0.0", + "version": "1.0.1", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -6089,9 +6089,9 @@ "dev": true }, "y18n": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz", - "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.1.tgz", + "integrity": "sha512-wNcy4NvjMYL8gogWWYAO7ZFWFfHcbdbE57tZO8e4cbpj8tfUcwrwqSl3ad8HxpYWCdXcJUCeKKZS62Av1affwQ==", "dev": true }, "yallist": {