From 2000c3c15653ce460b7491af998ace52b20f08fd Mon Sep 17 00:00:00 2001 From: Fabien O'Carroll Date: Mon, 24 May 2021 11:54:45 +0100 Subject: [PATCH] Errored when Stripe is used without a connection refs https://github.com/TryGhost/Team/issues/704 Currently when attempting to create stripe_prices without a Stripe connection, it will fail silently. This is an issue when initially configuring Members as the Stripe connection can take some time to be established. By erroring we allow the client to be notifed that the connection does not yet exist, so that it can be retried later. --- package.json | 2 +- yarn.lock | 22 ++++++++++++++++------ 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 41e4e63097..4c923acc2c 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,7 @@ "@tryghost/kg-mobiledoc-html-renderer": "4.0.0", "@tryghost/limit-service": "0.6.0", "@tryghost/magic-link": "1.0.2", - "@tryghost/members-api": "1.10.0", + "@tryghost/members-api": "1.11.0", "@tryghost/members-csv": "1.0.0", "@tryghost/members-ssr": "1.0.2", "@tryghost/mw-session-from-token": "0.1.20", diff --git a/yarn.lock b/yarn.lock index 7d1a987e7f..660728c0d1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -722,7 +722,7 @@ lodash "^4.17.21" luxon "^1.26.0" -"@tryghost/magic-link@1.0.2", "@tryghost/magic-link@^1.0.2": +"@tryghost/magic-link@1.0.2": version "1.0.2" resolved "https://registry.yarnpkg.com/@tryghost/magic-link/-/magic-link-1.0.2.tgz#6a73d9ba5d710178db53e7d8b177356a50c6649f" integrity sha512-37ArYqWIJptLBjPimPZlgw4Tf8+q5YSyU4AN7QI2WTrUbFClo6g2gnGa7KCiJYbUUOkIjlCDz1m1iU1WiRriIA== @@ -732,13 +732,23 @@ jsonwebtoken "^8.5.1" lodash "^4.17.15" -"@tryghost/members-api@1.10.0": - version "1.10.0" - resolved "https://registry.yarnpkg.com/@tryghost/members-api/-/members-api-1.10.0.tgz#f87efa080ce2ff376ce898d56dd48bcd332f8219" - integrity sha512-ILQkzusZsHtL9/OpTzAC2jr+9Ns0dO7naepnJZcfMpuA2YCCjhUBlbv99pRTgYCd5nXECQoK9bdiBEv+Vl1DHw== +"@tryghost/magic-link@^1.0.3": + version "1.0.3" + resolved "https://registry.yarnpkg.com/@tryghost/magic-link/-/magic-link-1.0.3.tgz#d64cdfeae8bda9d7a43002c0afb16ea15c1f28e7" + integrity sha512-erSWNlpJ65tqjCfOyjEmK7zBm/a+scTHJ4eIIxny7me5Mj3BSl1yCmI6vLZyf9j4/oHKXGjxZVy7GroDxRWGBA== + dependencies: + bluebird "^3.5.5" + ghost-ignition "4.6.2" + jsonwebtoken "^8.5.1" + lodash "^4.17.15" + +"@tryghost/members-api@1.11.0": + version "1.11.0" + resolved "https://registry.yarnpkg.com/@tryghost/members-api/-/members-api-1.11.0.tgz#a0927d372e7a6d89822878266bbaed3fcbf763f7" + integrity sha512-HycaCJpg3zB3zDQGiGj+bt2Is6/3zSlcR1fwxcXrctwOYGFemcmT1daVN+gn5FzJNX95mzwJUU7QzbL6lDtnIQ== dependencies: "@tryghost/errors" "^0.2.9" - "@tryghost/magic-link" "^1.0.2" + "@tryghost/magic-link" "^1.0.3" "@types/jsonwebtoken" "^8.5.1" bluebird "^3.5.4" body-parser "^1.19.0"