ghost 5.119.0 → 5.119.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/components/{tryghost-api-framework-5.119.0.tgz → tryghost-api-framework-5.119.1.tgz} +0 -0
  2. package/components/tryghost-constants-5.119.1.tgz +0 -0
  3. package/components/tryghost-custom-fonts-5.119.1.tgz +0 -0
  4. package/components/tryghost-domain-events-5.119.1.tgz +0 -0
  5. package/components/tryghost-donations-5.119.1.tgz +0 -0
  6. package/components/{tryghost-email-addresses-5.119.0.tgz → tryghost-email-addresses-5.119.1.tgz} +0 -0
  7. package/components/{tryghost-email-service-5.119.0.tgz → tryghost-email-service-5.119.1.tgz} +0 -0
  8. package/components/tryghost-html-to-plaintext-5.119.1.tgz +0 -0
  9. package/components/tryghost-i18n-5.119.1.tgz +0 -0
  10. package/components/{tryghost-job-manager-5.119.0.tgz → tryghost-job-manager-5.119.1.tgz} +0 -0
  11. package/components/tryghost-link-replacer-5.119.1.tgz +0 -0
  12. package/components/{tryghost-member-attribution-5.119.0.tgz → tryghost-member-attribution-5.119.1.tgz} +0 -0
  13. package/components/{tryghost-members-csv-5.119.0.tgz → tryghost-members-csv-5.119.1.tgz} +0 -0
  14. package/components/{tryghost-members-offers-5.119.0.tgz → tryghost-members-offers-5.119.1.tgz} +0 -0
  15. package/components/{tryghost-mw-error-handler-5.119.0.tgz → tryghost-mw-error-handler-5.119.1.tgz} +0 -0
  16. package/components/tryghost-mw-vhost-5.119.1.tgz +0 -0
  17. package/components/tryghost-post-events-5.119.1.tgz +0 -0
  18. package/components/{tryghost-post-revisions-5.119.0.tgz → tryghost-post-revisions-5.119.1.tgz} +0 -0
  19. package/components/tryghost-prometheus-metrics-5.119.1.tgz +0 -0
  20. package/components/tryghost-security-5.119.1.tgz +0 -0
  21. package/components/{tryghost-tiers-5.119.0.tgz → tryghost-tiers-5.119.1.tgz} +0 -0
  22. package/components/{tryghost-webmentions-5.119.0.tgz → tryghost-webmentions-5.119.1.tgz} +0 -0
  23. package/core/bridge.js +9 -2
  24. package/core/built/admin/assets/{chunk.524.40845e3290d7036d63d5.js → chunk.524.b68651460beed4ac4ccf.js} +7 -7
  25. package/core/built/admin/assets/{chunk.582.97c42e261318fb912ecc.js → chunk.582.264fbe5110a65821da47.js} +10 -10
  26. package/core/built/admin/index.html +1 -1
  27. package/core/frontend/services/assets-minification/AdminAuthAssets.js +68 -0
  28. package/core/frontend/services/assets-minification/index.js +4 -1
  29. package/core/frontend/src/admin-auth/index.html +6 -0
  30. package/core/server/web/admin/app.js +6 -4
  31. package/package.json +45 -45
  32. package/components/tryghost-constants-5.119.0.tgz +0 -0
  33. package/components/tryghost-custom-fonts-5.119.0.tgz +0 -0
  34. package/components/tryghost-domain-events-5.119.0.tgz +0 -0
  35. package/components/tryghost-donations-5.119.0.tgz +0 -0
  36. package/components/tryghost-html-to-plaintext-5.119.0.tgz +0 -0
  37. package/components/tryghost-i18n-5.119.0.tgz +0 -0
  38. package/components/tryghost-link-replacer-5.119.0.tgz +0 -0
  39. package/components/tryghost-mw-vhost-5.119.0.tgz +0 -0
  40. package/components/tryghost-post-events-5.119.0.tgz +0 -0
  41. package/components/tryghost-prometheus-metrics-5.119.0.tgz +0 -0
  42. package/components/tryghost-security-5.119.0.tgz +0 -0
  43. package/core/server/web/admin/middleware/serve-auth-frame-file.js +0 -35
package/core/bridge.js CHANGED
@@ -16,7 +16,7 @@ const logging = require('@tryghost/logging');
16
16
  const tpl = require('@tryghost/tpl');
17
17
  const themeEngine = require('./frontend/services/theme-engine');
18
18
  const appService = require('./frontend/services/apps');
19
- const {cardAssets} = require('./frontend/services/assets-minification');
19
+ const {adminAuthAssets, cardAssets} = require('./frontend/services/assets-minification');
20
20
  const routerManager = require('./frontend/services/routing').routerManager;
21
21
  const settingsCache = require('./shared/settings-cache');
22
22
  const urlService = require('./server/services/url');
@@ -51,6 +51,10 @@ class Bridge {
51
51
  return themeEngine.getActive();
52
52
  }
53
53
 
54
+ ensureAdminAuthAssetsMiddleware() {
55
+ return adminAuthAssets.serveMiddleware();
56
+ }
57
+
54
58
  async activateTheme(loadedTheme, checkedTheme) {
55
59
  let settings = {
56
60
  locale: settingsCache.get('locale')
@@ -65,6 +69,9 @@ class Bridge {
65
69
  const cardAssetConfig = this.getCardAssetConfig();
66
70
  debug('reload card assets config', cardAssetConfig);
67
71
  cardAssets.invalidate(cardAssetConfig);
72
+
73
+ // rebuild asset files
74
+ adminAuthAssets.invalidate();
68
75
  } catch (err) {
69
76
  logging.error(new errors.InternalServerError({
70
77
  message: tpl(messages.activateFailed, {theme: loadedTheme.name}),
@@ -106,4 +113,4 @@ class Bridge {
106
113
 
107
114
  const bridge = new Bridge();
108
115
 
109
- module.exports = bridge;
116
+ module.exports = bridge;
@@ -5,13 +5,13 @@ let t=""
5
5
  "string"==typeof e.labels?t=e.labels:Array.isArray(e.labels)&&(t=e.labels.map((e=>"string"==typeof e?e:e.name)).join(","))
6
6
  let s=""
7
7
  return Array.isArray(e.tiers)&&(s=e.tiers.map((e=>e.name)).join(",")),{id:e.id,email:e.email,name:e.name,note:e.note,subscribed_to_emails:"subscribed"in e?e.subscribed:e.subscribed_to_emails,complimentary_plan:e.comped||e.complimentary_plan,stripe_customer_id:n.get(e,"subscriptions[0].customer.id")||e.stripe_customer_id,created_at:e.created_at,deleted_at:e.deleted_at,labels:t,tiers:s,import_tier:e.import_tier||null,error:e.error||null}}))
8
- return s.unparse(t,{escapeFormulae:!0,columns:r})}},11970:function(e,r){window._eai_r=require,window._eai_d=define},31048:()=>{},32186:e=>{"use strict"
8
+ return s.unparse(t,{escapeFormulae:!0,columns:r})}},31048:()=>{},32186:e=>{"use strict"
9
9
  e.exports=require("@ember/test-waiters")},56857:(e,r,t)=>{var n={"./af":58547,"./af.js":58547,"./ar":28167,"./ar-dz":35298,"./ar-dz.js":35298,"./ar-kw":11314,"./ar-kw.js":11314,"./ar-ly":66455,"./ar-ly.js":66455,"./ar-ma":15998,"./ar-ma.js":15998,"./ar-sa":55388,"./ar-sa.js":55388,"./ar-tn":73358,"./ar-tn.js":73358,"./ar.js":28167,"./az":92367,"./az.js":92367,"./be":9161,"./be.js":9161,"./bg":359,"./bg.js":359,"./bm":32625,"./bm.js":32625,"./bn":52984,"./bn.js":52984,"./bo":87343,"./bo.js":87343,"./br":87948,"./br.js":87948,"./bs":88211,"./bs.js":88211,"./ca":34700,"./ca.js":34700,"./cs":27430,"./cs.js":27430,"./cv":55913,"./cv.js":55913,"./cy":16004,"./cy.js":16004,"./da":26839,"./da.js":26839,"./de":22131,"./de-at":6729,"./de-at.js":6729,"./de-ch":74743,"./de-ch.js":74743,"./de.js":22131,"./dv":14598,"./dv.js":14598,"./el":38737,"./el.js":38737,"./en-SG":94978,"./en-SG.js":94978,"./en-au":22606,"./en-au.js":22606,"./en-ca":60052,"./en-ca.js":60052,"./en-gb":17305,"./en-gb.js":17305,"./en-ie":76390,"./en-ie.js":76390,"./en-il":89549,"./en-il.js":89549,"./en-nz":67584,"./en-nz.js":67584,"./eo":24408,"./eo.js":24408,"./es":45644,"./es-do":21888,"./es-do.js":21888,"./es-us":23537,"./es-us.js":23537,"./es.js":45644,"./et":27257,"./et.js":27257,"./eu":57002,"./eu.js":57002,"./fa":90241,"./fa.js":90241,"./fi":74009,"./fi.js":74009,"./fo":81267,"./fo.js":81267,"./fr":71160,"./fr-ca":39433,"./fr-ca.js":39433,"./fr-ch":20130,"./fr-ch.js":20130,"./fr.js":71160,"./fy":20553,"./fy.js":20553,"./ga":18232,"./ga.js":18232,"./gd":33771,"./gd.js":33771,"./gl":99747,"./gl.js":99747,"./gom-latn":80289,"./gom-latn.js":80289,"./gu":148,"./gu.js":148,"./he":68247,"./he.js":68247,"./hi":39835,"./hi.js":39835,"./hr":69734,"./hr.js":69734,"./hu":40999,"./hu.js":40999,"./hy-am":95002,"./hy-am.js":95002,"./id":23021,"./id.js":23021,"./is":96232,"./is.js":96232,"./it":15581,"./it-ch":4809,"./it-ch.js":4809,"./it.js":15581,"./ja":45981,"./ja.js":45981,"./jv":12568,"./jv.js":12568,"./ka":17924,"./ka.js":17924,"./kk":1062,"./kk.js":1062,"./km":65456,"./km.js":65456,"./kn":15817,"./kn.js":15817,"./ko":45306,"./ko.js":45306,"./ku":39016,"./ku.js":39016,"./ky":71308,"./ky.js":71308,"./lb":67330,"./lb.js":67330,"./lo":18949,"./lo.js":18949,"./lt":58804,"./lt.js":58804,"./lv":47006,"./lv.js":47006,"./me":83346,"./me.js":83346,"./mi":630,"./mi.js":630,"./mk":88876,"./mk.js":88876,"./ml":86841,"./ml.js":86841,"./mn":93847,"./mn.js":93847,"./mr":57515,"./mr.js":57515,"./ms":51844,"./ms-my":44391,"./ms-my.js":44391,"./ms.js":51844,"./mt":81969,"./mt.js":81969,"./my":34982,"./my.js":34982,"./nb":41632,"./nb.js":41632,"./ne":81781,"./ne.js":81781,"./nl":14910,"./nl-be":72506,"./nl-be.js":72506,"./nl.js":14910,"./nn":12980,"./nn.js":12980,"./pa-in":33791,"./pa-in.js":33791,"./pl":1872,"./pl.js":1872,"./pt":9064,"./pt-br":85273,"./pt-br.js":85273,"./pt.js":9064,"./ro":63167,"./ro.js":63167,"./ru":28649,"./ru.js":28649,"./sd":14823,"./sd.js":14823,"./se":90672,"./se.js":90672,"./si":26244,"./si.js":26244,"./sk":40654,"./sk.js":40654,"./sl":44335,"./sl.js":44335,"./sq":79116,"./sq.js":79116,"./sr":60693,"./sr-cyrl":1436,"./sr-cyrl.js":1436,"./sr.js":60693,"./ss":51734,"./ss.js":51734,"./sv":37945,"./sv.js":37945,"./sw":41514,"./sw.js":41514,"./ta":1991,"./ta.js":1991,"./te":95011,"./te.js":95011,"./tet":19463,"./tet.js":19463,"./tg":43109,"./tg.js":43109,"./th":97144,"./th.js":97144,"./tl-ph":70401,"./tl-ph.js":70401,"./tlh":26678,"./tlh.js":26678,"./tr":28682,"./tr.js":28682,"./tzl":59084,"./tzl.js":59084,"./tzm":64307,"./tzm-latn":68869,"./tzm-latn.js":68869,"./tzm.js":64307,"./ug-cn":78812,"./ug-cn.js":78812,"./uk":25812,"./uk.js":25812,"./ur":25411,"./ur.js":25411,"./uz":59435,"./uz-latn":94589,"./uz-latn.js":94589,"./uz.js":59435,"./vi":50569,"./vi.js":50569,"./x-pseudo":85241,"./x-pseudo.js":85241,"./yo":96972,"./yo.js":96972,"./zh-cn":18422,"./zh-cn.js":18422,"./zh-hk":84106,"./zh-hk.js":84106,"./zh-tw":69362,"./zh-tw.js":69362}
10
10
  function s(e){var r=o(e)
11
11
  return t(r)}function o(e){if(!t.o(n,e)){var r=new Error("Cannot find module '"+e+"'")
12
- throw r.code="MODULE_NOT_FOUND",r}return n[e]}s.keys=function(){return Object.keys(n)},s.resolve=o,e.exports=s,s.id=56857},80032:e=>{"use strict"
13
- e.exports=require("ember-tracked-storage-polyfill")},82735:(e,r,t)=>{e.exports=function(){var e=_eai_d,r=_eai_r
14
- function n(e){return e&&e.__esModule?e:Object.assign({default:e},e)}window.emberAutoImportDynamic=function(e){return 1===arguments.length?r("_eai_dyn_"+e):r("_eai_dynt_"+e)(Array.prototype.slice.call(arguments,1))},window.emberAutoImportSync=function(e){return r("_eai_sync_"+e)(Array.prototype.slice.call(arguments,1))},e("@sentry/browser",[],(function(){return n(t(51294))})),e("@sentry/core",[],(function(){return n(t(16154))})),e("@sentry/integrations",[],(function(){return n(t(20080))})),e("@sentry/replay",[],(function(){return n(t(51633))})),e("@sentry/utils",[],(function(){return n(t(88414))})),e("@tryghost/color-utils",[],(function(){return n(t(86797))})),e("@tryghost/kg-clean-basic-html",[],(function(){return n(t(3414))})),e("@tryghost/kg-converters",[],(function(){return n(t(23075))})),e("@tryghost/limit-service",[],(function(){return n(t(55983))})),e("@tryghost/members-csv/lib/unparse",[],(function(){return n(t(9589))})),e("@tryghost/nql",[],(function(){return n(t(39365))})),e("@tryghost/nql-lang",[],(function(){return n(t(716))})),e("@tryghost/string",[],(function(){return n(t(96107))})),e("@tryghost/timezone-data",[],(function(){return n(t(27019))})),e("animejs/lib/anime.es.js",[],(function(){return n(t(62282))})),e("element-resize-detector",[],(function(){return n(t(29540))})),e("ember-assign-helper/helpers/assign",[],(function(){return n(t(31113))})),e("ember-css-transitions/modifiers/css-transition",["@ember/test-waiters"],(function(){return n(t(95895))})),e("ember-keyboard/helpers/if-key.js",[],(function(){return n(t(10530))})),e("ember-keyboard/helpers/on-key.js",[],(function(){return n(t(13692))})),e("ember-keyboard/modifiers/on-key.js",[],(function(){return n(t(40985))})),e("ember-keyboard/services/keyboard.js",[],(function(){return n(t(89697))})),e("ember-modifier",[],(function(){return n(t(37777))})),e("ember-moment/helpers/-base",[],(function(){return n(t(91366))})),e("ember-moment/helpers/is-after",[],(function(){return n(t(91461))})),e("ember-moment/helpers/is-before",[],(function(){return n(t(61e3))})),e("ember-moment/helpers/is-between",[],(function(){return n(t(447))})),e("ember-moment/helpers/is-same",[],(function(){return n(t(64193))})),e("ember-moment/helpers/is-same-or-after",[],(function(){return n(t(7916))})),e("ember-moment/helpers/is-same-or-before",[],(function(){return n(t(54351))})),e("ember-moment/helpers/moment",[],(function(){return n(t(41678))})),e("ember-moment/helpers/moment-add",[],(function(){return n(t(50080))})),e("ember-moment/helpers/moment-calendar",[],(function(){return n(t(96625))})),e("ember-moment/helpers/moment-diff",[],(function(){return n(t(85340))})),e("ember-moment/helpers/moment-duration",[],(function(){return n(t(42967))})),e("ember-moment/helpers/moment-format",[],(function(){return n(t(10536))})),e("ember-moment/helpers/moment-from",[],(function(){return n(t(50727))})),e("ember-moment/helpers/moment-from-now",[],(function(){return n(t(706))})),e("ember-moment/helpers/moment-subtract",[],(function(){return n(t(54651))})),e("ember-moment/helpers/moment-to",[],(function(){return n(t(84818))})),e("ember-moment/helpers/moment-to-date",[],(function(){return n(t(81183))})),e("ember-moment/helpers/moment-to-now",[],(function(){return n(t(17083))})),e("ember-moment/helpers/now",[],(function(){return n(t(34980))})),e("ember-moment/helpers/unix",[],(function(){return n(t(79272))})),e("ember-moment/helpers/utc",[],(function(){return n(t(36022))})),e("ember-moment/services/moment",[],(function(){return n(t(39879))})),e("fast-deep-equal",[],(function(){return n(t(25383))})),e("flexsearch",[],(function(){return n(t(12248))})),e("focus-trap",[],(function(){return n(t(39632))})),e("intersection-observer-admin",[],(function(){return n(t(21431))})),e("jose",[],(function(){return n(t(82765))})),e("microdiff",[],(function(){return n(t(59086))})),e("moment-timezone",[],(function(){return n(t(41101))})),e("papaparse",[],(function(){return n(t(78695))})),e("raf-pool",[],(function(){return n(t(60695))})),e("react",[],(function(){return n(t(72854))})),e("react-dom",[],(function(){return n(t(95303))})),e("react-dom/client",[],(function(){return n(t(70816))})),e("semver/functions/coerce",[],(function(){return n(t(18576))})),e("semver/functions/lt",[],(function(){return n(t(32817))})),e("semver/functions/parse",[],(function(){return n(t(47898))})),e("tooltip.js",[],(function(){return n(t(85557))})),e("tracked-built-ins",["ember-tracked-storage-polyfill"],(function(){return n(t(67708))})),e("validator",[],(function(){return n(t(26058))})),e("_eai_dyn_@sentry/browser",[],(function(){return Promise.resolve().then(t.bind(t,51294))}))}()},86625:()=>{}},t={}
12
+ throw r.code="MODULE_NOT_FOUND",r}return n[e]}s.keys=function(){return Object.keys(n)},s.resolve=o,e.exports=s,s.id=56857},65263:(e,r,t)=>{e.exports=function(){var e=_eai_d,r=_eai_r
13
+ function n(e){return e&&e.__esModule?e:Object.assign({default:e},e)}window.emberAutoImportDynamic=function(e){return 1===arguments.length?r("_eai_dyn_"+e):r("_eai_dynt_"+e)(Array.prototype.slice.call(arguments,1))},window.emberAutoImportSync=function(e){return r("_eai_sync_"+e)(Array.prototype.slice.call(arguments,1))},e("@sentry/browser",[],(function(){return n(t(51294))})),e("@sentry/core",[],(function(){return n(t(16154))})),e("@sentry/integrations",[],(function(){return n(t(20080))})),e("@sentry/replay",[],(function(){return n(t(51633))})),e("@sentry/utils",[],(function(){return n(t(88414))})),e("@tryghost/color-utils",[],(function(){return n(t(86797))})),e("@tryghost/kg-clean-basic-html",[],(function(){return n(t(3414))})),e("@tryghost/kg-converters",[],(function(){return n(t(23075))})),e("@tryghost/limit-service",[],(function(){return n(t(55983))})),e("@tryghost/members-csv/lib/unparse",[],(function(){return n(t(9589))})),e("@tryghost/nql",[],(function(){return n(t(39365))})),e("@tryghost/nql-lang",[],(function(){return n(t(716))})),e("@tryghost/string",[],(function(){return n(t(96107))})),e("@tryghost/timezone-data",[],(function(){return n(t(27019))})),e("animejs/lib/anime.es.js",[],(function(){return n(t(62282))})),e("element-resize-detector",[],(function(){return n(t(29540))})),e("ember-assign-helper/helpers/assign",[],(function(){return n(t(31113))})),e("ember-css-transitions/modifiers/css-transition",["@ember/test-waiters"],(function(){return n(t(95895))})),e("ember-keyboard/helpers/if-key.js",[],(function(){return n(t(10530))})),e("ember-keyboard/helpers/on-key.js",[],(function(){return n(t(13692))})),e("ember-keyboard/modifiers/on-key.js",[],(function(){return n(t(40985))})),e("ember-keyboard/services/keyboard.js",[],(function(){return n(t(89697))})),e("ember-modifier",[],(function(){return n(t(37777))})),e("ember-moment/helpers/-base",[],(function(){return n(t(91366))})),e("ember-moment/helpers/is-after",[],(function(){return n(t(91461))})),e("ember-moment/helpers/is-before",[],(function(){return n(t(61e3))})),e("ember-moment/helpers/is-between",[],(function(){return n(t(447))})),e("ember-moment/helpers/is-same",[],(function(){return n(t(64193))})),e("ember-moment/helpers/is-same-or-after",[],(function(){return n(t(7916))})),e("ember-moment/helpers/is-same-or-before",[],(function(){return n(t(54351))})),e("ember-moment/helpers/moment",[],(function(){return n(t(41678))})),e("ember-moment/helpers/moment-add",[],(function(){return n(t(50080))})),e("ember-moment/helpers/moment-calendar",[],(function(){return n(t(96625))})),e("ember-moment/helpers/moment-diff",[],(function(){return n(t(85340))})),e("ember-moment/helpers/moment-duration",[],(function(){return n(t(42967))})),e("ember-moment/helpers/moment-format",[],(function(){return n(t(10536))})),e("ember-moment/helpers/moment-from",[],(function(){return n(t(50727))})),e("ember-moment/helpers/moment-from-now",[],(function(){return n(t(706))})),e("ember-moment/helpers/moment-subtract",[],(function(){return n(t(54651))})),e("ember-moment/helpers/moment-to",[],(function(){return n(t(84818))})),e("ember-moment/helpers/moment-to-date",[],(function(){return n(t(81183))})),e("ember-moment/helpers/moment-to-now",[],(function(){return n(t(17083))})),e("ember-moment/helpers/now",[],(function(){return n(t(34980))})),e("ember-moment/helpers/unix",[],(function(){return n(t(79272))})),e("ember-moment/helpers/utc",[],(function(){return n(t(36022))})),e("ember-moment/services/moment",[],(function(){return n(t(39879))})),e("fast-deep-equal",[],(function(){return n(t(25383))})),e("flexsearch",[],(function(){return n(t(12248))})),e("focus-trap",[],(function(){return n(t(39632))})),e("intersection-observer-admin",[],(function(){return n(t(21431))})),e("jose",[],(function(){return n(t(82765))})),e("microdiff",[],(function(){return n(t(59086))})),e("moment-timezone",[],(function(){return n(t(41101))})),e("papaparse",[],(function(){return n(t(78695))})),e("raf-pool",[],(function(){return n(t(60695))})),e("react",[],(function(){return n(t(72854))})),e("react-dom",[],(function(){return n(t(95303))})),e("react-dom/client",[],(function(){return n(t(70816))})),e("semver/functions/coerce",[],(function(){return n(t(18576))})),e("semver/functions/lt",[],(function(){return n(t(32817))})),e("semver/functions/parse",[],(function(){return n(t(47898))})),e("tooltip.js",[],(function(){return n(t(85557))})),e("tracked-built-ins",["ember-tracked-storage-polyfill"],(function(){return n(t(67708))})),e("validator",[],(function(){return n(t(26058))})),e("_eai_dyn_@sentry/browser",[],(function(){return Promise.resolve().then(t.bind(t,51294))}))}()},80032:e=>{"use strict"
14
+ e.exports=require("ember-tracked-storage-polyfill")},86625:()=>{},94786:function(e,r){window._eai_r=require,window._eai_d=define}},t={}
15
15
  function n(e){var s=t[e]
16
16
  if(void 0!==s)return s.exports
17
17
  var o=t[e]={id:e,loaded:!1,exports:{}}
@@ -28,8 +28,8 @@ var r=(r,t)=>{var s,o,[i,u,m]=t,a=0
28
28
  if(i.some((r=>0!==e[r]))){for(s in u)n.o(u,s)&&(n.m[s]=u[s])
29
29
  if(m)var c=m(n)}for(r&&r(t);a<i.length;a++)o=i[a],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0
30
30
  return n.O(c)},t=globalThis.webpackChunk_ember_auto_import_=globalThis.webpackChunk_ember_auto_import_||[]
31
- t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),n.O(void 0,[136],(()=>n(n.s=11970)))
32
- var s=n.O(void 0,[136],(()=>n(n.s=82735)))
31
+ t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),n.O(void 0,[136],(()=>n(n.s=94786)))
32
+ var s=n.O(void 0,[136],(()=>n(n.s=65263)))
33
33
  s=n.O(s),__ember_auto_import__=s})()
34
34
 
35
- //# sourceMappingURL=chunk.524.40845e3290d7036d63d5.map
35
+ //# sourceMappingURL=chunk.524.b68651460beed4ac4ccf.map
@@ -5,15 +5,15 @@ let t=""
5
5
  "string"==typeof e.labels?t=e.labels:Array.isArray(e.labels)&&(t=e.labels.map((e=>"string"==typeof e?e:e.name)).join(","))
6
6
  let s=""
7
7
  return Array.isArray(e.tiers)&&(s=e.tiers.map((e=>e.name)).join(",")),{id:e.id,email:e.email,name:e.name,note:e.note,subscribed_to_emails:"subscribed"in e?e.subscribed:e.subscribed_to_emails,complimentary_plan:e.comped||e.complimentary_plan,stripe_customer_id:n.get(e,"subscriptions[0].customer.id")||e.stripe_customer_id,created_at:e.created_at,deleted_at:e.deleted_at,labels:t,tiers:s,import_tier:e.import_tier||null,error:e.error||null}}))
8
- return s.unparse(t,{escapeFormulae:!0,columns:r})}},11970:function(e,r){window._eai_r=require,window._eai_d=define},31048:()=>{},32186:e=>{"use strict"
9
- e.exports=require("@ember/test-waiters")},56857:(e,r,t)=>{var n={"./af":58547,"./af.js":58547,"./ar":28167,"./ar-dz":35298,"./ar-dz.js":35298,"./ar-kw":11314,"./ar-kw.js":11314,"./ar-ly":66455,"./ar-ly.js":66455,"./ar-ma":15998,"./ar-ma.js":15998,"./ar-sa":55388,"./ar-sa.js":55388,"./ar-tn":73358,"./ar-tn.js":73358,"./ar.js":28167,"./az":92367,"./az.js":92367,"./be":9161,"./be.js":9161,"./bg":359,"./bg.js":359,"./bm":32625,"./bm.js":32625,"./bn":52984,"./bn.js":52984,"./bo":87343,"./bo.js":87343,"./br":87948,"./br.js":87948,"./bs":88211,"./bs.js":88211,"./ca":34700,"./ca.js":34700,"./cs":27430,"./cs.js":27430,"./cv":55913,"./cv.js":55913,"./cy":16004,"./cy.js":16004,"./da":26839,"./da.js":26839,"./de":22131,"./de-at":6729,"./de-at.js":6729,"./de-ch":74743,"./de-ch.js":74743,"./de.js":22131,"./dv":14598,"./dv.js":14598,"./el":38737,"./el.js":38737,"./en-SG":94978,"./en-SG.js":94978,"./en-au":22606,"./en-au.js":22606,"./en-ca":60052,"./en-ca.js":60052,"./en-gb":17305,"./en-gb.js":17305,"./en-ie":76390,"./en-ie.js":76390,"./en-il":89549,"./en-il.js":89549,"./en-nz":67584,"./en-nz.js":67584,"./eo":24408,"./eo.js":24408,"./es":45644,"./es-do":21888,"./es-do.js":21888,"./es-us":23537,"./es-us.js":23537,"./es.js":45644,"./et":27257,"./et.js":27257,"./eu":57002,"./eu.js":57002,"./fa":90241,"./fa.js":90241,"./fi":74009,"./fi.js":74009,"./fo":81267,"./fo.js":81267,"./fr":71160,"./fr-ca":39433,"./fr-ca.js":39433,"./fr-ch":20130,"./fr-ch.js":20130,"./fr.js":71160,"./fy":20553,"./fy.js":20553,"./ga":18232,"./ga.js":18232,"./gd":33771,"./gd.js":33771,"./gl":99747,"./gl.js":99747,"./gom-latn":80289,"./gom-latn.js":80289,"./gu":148,"./gu.js":148,"./he":68247,"./he.js":68247,"./hi":39835,"./hi.js":39835,"./hr":69734,"./hr.js":69734,"./hu":40999,"./hu.js":40999,"./hy-am":95002,"./hy-am.js":95002,"./id":23021,"./id.js":23021,"./is":96232,"./is.js":96232,"./it":15581,"./it-ch":4809,"./it-ch.js":4809,"./it.js":15581,"./ja":45981,"./ja.js":45981,"./jv":12568,"./jv.js":12568,"./ka":17924,"./ka.js":17924,"./kk":1062,"./kk.js":1062,"./km":65456,"./km.js":65456,"./kn":15817,"./kn.js":15817,"./ko":45306,"./ko.js":45306,"./ku":39016,"./ku.js":39016,"./ky":71308,"./ky.js":71308,"./lb":67330,"./lb.js":67330,"./lo":18949,"./lo.js":18949,"./lt":58804,"./lt.js":58804,"./lv":47006,"./lv.js":47006,"./me":83346,"./me.js":83346,"./mi":630,"./mi.js":630,"./mk":88876,"./mk.js":88876,"./ml":86841,"./ml.js":86841,"./mn":93847,"./mn.js":93847,"./mr":57515,"./mr.js":57515,"./ms":51844,"./ms-my":44391,"./ms-my.js":44391,"./ms.js":51844,"./mt":81969,"./mt.js":81969,"./my":34982,"./my.js":34982,"./nb":41632,"./nb.js":41632,"./ne":81781,"./ne.js":81781,"./nl":14910,"./nl-be":72506,"./nl-be.js":72506,"./nl.js":14910,"./nn":12980,"./nn.js":12980,"./pa-in":33791,"./pa-in.js":33791,"./pl":1872,"./pl.js":1872,"./pt":9064,"./pt-br":85273,"./pt-br.js":85273,"./pt.js":9064,"./ro":63167,"./ro.js":63167,"./ru":28649,"./ru.js":28649,"./sd":14823,"./sd.js":14823,"./se":90672,"./se.js":90672,"./si":26244,"./si.js":26244,"./sk":40654,"./sk.js":40654,"./sl":44335,"./sl.js":44335,"./sq":79116,"./sq.js":79116,"./sr":60693,"./sr-cyrl":1436,"./sr-cyrl.js":1436,"./sr.js":60693,"./ss":51734,"./ss.js":51734,"./sv":37945,"./sv.js":37945,"./sw":41514,"./sw.js":41514,"./ta":1991,"./ta.js":1991,"./te":95011,"./te.js":95011,"./tet":19463,"./tet.js":19463,"./tg":43109,"./tg.js":43109,"./th":97144,"./th.js":97144,"./tl-ph":70401,"./tl-ph.js":70401,"./tlh":26678,"./tlh.js":26678,"./tr":28682,"./tr.js":28682,"./tzl":59084,"./tzl.js":59084,"./tzm":64307,"./tzm-latn":68869,"./tzm-latn.js":68869,"./tzm.js":64307,"./ug-cn":78812,"./ug-cn.js":78812,"./uk":25812,"./uk.js":25812,"./ur":25411,"./ur.js":25411,"./uz":59435,"./uz-latn":94589,"./uz-latn.js":94589,"./uz.js":59435,"./vi":50569,"./vi.js":50569,"./x-pseudo":85241,"./x-pseudo.js":85241,"./yo":96972,"./yo.js":96972,"./zh-cn":18422,"./zh-cn.js":18422,"./zh-hk":84106,"./zh-hk.js":84106,"./zh-tw":69362,"./zh-tw.js":69362}
8
+ return s.unparse(t,{escapeFormulae:!0,columns:r})}},31048:()=>{},32186:e=>{"use strict"
9
+ e.exports=require("@ember/test-waiters")},48357:(e,r,t)=>{e.exports=function(){_eai_d
10
+ var e=_eai_r
11
+ window.emberAutoImportDynamic=function(r){return 1===arguments.length?e("_eai_dyn_"+r):e("_eai_dynt_"+r)(Array.prototype.slice.call(arguments,1))},window.emberAutoImportSync=function(r){return e("_eai_sync_"+r)(Array.prototype.slice.call(arguments,1))},t(65263)}()},56857:(e,r,t)=>{var n={"./af":58547,"./af.js":58547,"./ar":28167,"./ar-dz":35298,"./ar-dz.js":35298,"./ar-kw":11314,"./ar-kw.js":11314,"./ar-ly":66455,"./ar-ly.js":66455,"./ar-ma":15998,"./ar-ma.js":15998,"./ar-sa":55388,"./ar-sa.js":55388,"./ar-tn":73358,"./ar-tn.js":73358,"./ar.js":28167,"./az":92367,"./az.js":92367,"./be":9161,"./be.js":9161,"./bg":359,"./bg.js":359,"./bm":32625,"./bm.js":32625,"./bn":52984,"./bn.js":52984,"./bo":87343,"./bo.js":87343,"./br":87948,"./br.js":87948,"./bs":88211,"./bs.js":88211,"./ca":34700,"./ca.js":34700,"./cs":27430,"./cs.js":27430,"./cv":55913,"./cv.js":55913,"./cy":16004,"./cy.js":16004,"./da":26839,"./da.js":26839,"./de":22131,"./de-at":6729,"./de-at.js":6729,"./de-ch":74743,"./de-ch.js":74743,"./de.js":22131,"./dv":14598,"./dv.js":14598,"./el":38737,"./el.js":38737,"./en-SG":94978,"./en-SG.js":94978,"./en-au":22606,"./en-au.js":22606,"./en-ca":60052,"./en-ca.js":60052,"./en-gb":17305,"./en-gb.js":17305,"./en-ie":76390,"./en-ie.js":76390,"./en-il":89549,"./en-il.js":89549,"./en-nz":67584,"./en-nz.js":67584,"./eo":24408,"./eo.js":24408,"./es":45644,"./es-do":21888,"./es-do.js":21888,"./es-us":23537,"./es-us.js":23537,"./es.js":45644,"./et":27257,"./et.js":27257,"./eu":57002,"./eu.js":57002,"./fa":90241,"./fa.js":90241,"./fi":74009,"./fi.js":74009,"./fo":81267,"./fo.js":81267,"./fr":71160,"./fr-ca":39433,"./fr-ca.js":39433,"./fr-ch":20130,"./fr-ch.js":20130,"./fr.js":71160,"./fy":20553,"./fy.js":20553,"./ga":18232,"./ga.js":18232,"./gd":33771,"./gd.js":33771,"./gl":99747,"./gl.js":99747,"./gom-latn":80289,"./gom-latn.js":80289,"./gu":148,"./gu.js":148,"./he":68247,"./he.js":68247,"./hi":39835,"./hi.js":39835,"./hr":69734,"./hr.js":69734,"./hu":40999,"./hu.js":40999,"./hy-am":95002,"./hy-am.js":95002,"./id":23021,"./id.js":23021,"./is":96232,"./is.js":96232,"./it":15581,"./it-ch":4809,"./it-ch.js":4809,"./it.js":15581,"./ja":45981,"./ja.js":45981,"./jv":12568,"./jv.js":12568,"./ka":17924,"./ka.js":17924,"./kk":1062,"./kk.js":1062,"./km":65456,"./km.js":65456,"./kn":15817,"./kn.js":15817,"./ko":45306,"./ko.js":45306,"./ku":39016,"./ku.js":39016,"./ky":71308,"./ky.js":71308,"./lb":67330,"./lb.js":67330,"./lo":18949,"./lo.js":18949,"./lt":58804,"./lt.js":58804,"./lv":47006,"./lv.js":47006,"./me":83346,"./me.js":83346,"./mi":630,"./mi.js":630,"./mk":88876,"./mk.js":88876,"./ml":86841,"./ml.js":86841,"./mn":93847,"./mn.js":93847,"./mr":57515,"./mr.js":57515,"./ms":51844,"./ms-my":44391,"./ms-my.js":44391,"./ms.js":51844,"./mt":81969,"./mt.js":81969,"./my":34982,"./my.js":34982,"./nb":41632,"./nb.js":41632,"./ne":81781,"./ne.js":81781,"./nl":14910,"./nl-be":72506,"./nl-be.js":72506,"./nl.js":14910,"./nn":12980,"./nn.js":12980,"./pa-in":33791,"./pa-in.js":33791,"./pl":1872,"./pl.js":1872,"./pt":9064,"./pt-br":85273,"./pt-br.js":85273,"./pt.js":9064,"./ro":63167,"./ro.js":63167,"./ru":28649,"./ru.js":28649,"./sd":14823,"./sd.js":14823,"./se":90672,"./se.js":90672,"./si":26244,"./si.js":26244,"./sk":40654,"./sk.js":40654,"./sl":44335,"./sl.js":44335,"./sq":79116,"./sq.js":79116,"./sr":60693,"./sr-cyrl":1436,"./sr-cyrl.js":1436,"./sr.js":60693,"./ss":51734,"./ss.js":51734,"./sv":37945,"./sv.js":37945,"./sw":41514,"./sw.js":41514,"./ta":1991,"./ta.js":1991,"./te":95011,"./te.js":95011,"./tet":19463,"./tet.js":19463,"./tg":43109,"./tg.js":43109,"./th":97144,"./th.js":97144,"./tl-ph":70401,"./tl-ph.js":70401,"./tlh":26678,"./tlh.js":26678,"./tr":28682,"./tr.js":28682,"./tzl":59084,"./tzl.js":59084,"./tzm":64307,"./tzm-latn":68869,"./tzm-latn.js":68869,"./tzm.js":64307,"./ug-cn":78812,"./ug-cn.js":78812,"./uk":25812,"./uk.js":25812,"./ur":25411,"./ur.js":25411,"./uz":59435,"./uz-latn":94589,"./uz-latn.js":94589,"./uz.js":59435,"./vi":50569,"./vi.js":50569,"./x-pseudo":85241,"./x-pseudo.js":85241,"./yo":96972,"./yo.js":96972,"./zh-cn":18422,"./zh-cn.js":18422,"./zh-hk":84106,"./zh-hk.js":84106,"./zh-tw":69362,"./zh-tw.js":69362}
10
12
  function s(e){var r=o(e)
11
13
  return t(r)}function o(e){if(!t.o(n,e)){var r=new Error("Cannot find module '"+e+"'")
12
- throw r.code="MODULE_NOT_FOUND",r}return n[e]}s.keys=function(){return Object.keys(n)},s.resolve=o,e.exports=s,s.id=56857},74277:(e,r,t)=>{e.exports=function(){_eai_d
13
- var e=_eai_r
14
- window.emberAutoImportDynamic=function(r){return 1===arguments.length?e("_eai_dyn_"+r):e("_eai_dynt_"+r)(Array.prototype.slice.call(arguments,1))},window.emberAutoImportSync=function(r){return e("_eai_sync_"+r)(Array.prototype.slice.call(arguments,1))},t(82735)}()},80032:e=>{"use strict"
15
- e.exports=require("ember-tracked-storage-polyfill")},82735:(e,r,t)=>{e.exports=function(){var e=_eai_d,r=_eai_r
16
- function n(e){return e&&e.__esModule?e:Object.assign({default:e},e)}window.emberAutoImportDynamic=function(e){return 1===arguments.length?r("_eai_dyn_"+e):r("_eai_dynt_"+e)(Array.prototype.slice.call(arguments,1))},window.emberAutoImportSync=function(e){return r("_eai_sync_"+e)(Array.prototype.slice.call(arguments,1))},e("@sentry/browser",EAI_DISCOVERED_EXTERNALS("@sentry/browser"),(function(){return n(t(51294))})),e("@sentry/core",EAI_DISCOVERED_EXTERNALS("@sentry/core"),(function(){return n(t(16154))})),e("@sentry/integrations",EAI_DISCOVERED_EXTERNALS("@sentry/integrations"),(function(){return n(t(20080))})),e("@sentry/replay",EAI_DISCOVERED_EXTERNALS("@sentry/replay"),(function(){return n(t(51633))})),e("@sentry/utils",EAI_DISCOVERED_EXTERNALS("@sentry/utils"),(function(){return n(t(88414))})),e("@tryghost/color-utils",EAI_DISCOVERED_EXTERNALS("@tryghost/color-utils"),(function(){return n(t(86797))})),e("@tryghost/kg-clean-basic-html",EAI_DISCOVERED_EXTERNALS("@tryghost/kg-clean-basic-html"),(function(){return n(t(3414))})),e("@tryghost/kg-converters",EAI_DISCOVERED_EXTERNALS("@tryghost/kg-converters"),(function(){return n(t(23075))})),e("@tryghost/limit-service",EAI_DISCOVERED_EXTERNALS("@tryghost/limit-service"),(function(){return n(t(55983))})),e("@tryghost/members-csv/lib/unparse",EAI_DISCOVERED_EXTERNALS("@tryghost/members-csv/lib/unparse"),(function(){return n(t(9589))})),e("@tryghost/nql",EAI_DISCOVERED_EXTERNALS("@tryghost/nql"),(function(){return n(t(39365))})),e("@tryghost/nql-lang",EAI_DISCOVERED_EXTERNALS("@tryghost/nql-lang"),(function(){return n(t(716))})),e("@tryghost/string",EAI_DISCOVERED_EXTERNALS("@tryghost/string"),(function(){return n(t(96107))})),e("@tryghost/timezone-data",EAI_DISCOVERED_EXTERNALS("@tryghost/timezone-data"),(function(){return n(t(27019))})),e("animejs/lib/anime.es.js",EAI_DISCOVERED_EXTERNALS("animejs/lib/anime.es.js"),(function(){return n(t(62282))})),e("element-resize-detector",EAI_DISCOVERED_EXTERNALS("element-resize-detector"),(function(){return n(t(29540))})),e("ember-assign-helper/helpers/assign",EAI_DISCOVERED_EXTERNALS("ember-assign-helper/helpers/assign"),(function(){return n(t(31113))})),e("ember-css-transitions/modifiers/css-transition",EAI_DISCOVERED_EXTERNALS("ember-css-transitions/modifiers/css-transition"),(function(){return n(t(95895))})),e("ember-keyboard/helpers/if-key.js",EAI_DISCOVERED_EXTERNALS("ember-keyboard/helpers/if-key.js"),(function(){return n(t(10530))})),e("ember-keyboard/helpers/on-key.js",EAI_DISCOVERED_EXTERNALS("ember-keyboard/helpers/on-key.js"),(function(){return n(t(13692))})),e("ember-keyboard/modifiers/on-key.js",EAI_DISCOVERED_EXTERNALS("ember-keyboard/modifiers/on-key.js"),(function(){return n(t(40985))})),e("ember-keyboard/services/keyboard.js",EAI_DISCOVERED_EXTERNALS("ember-keyboard/services/keyboard.js"),(function(){return n(t(89697))})),e("ember-modifier",EAI_DISCOVERED_EXTERNALS("ember-modifier"),(function(){return n(t(37777))})),e("ember-moment/helpers/-base",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/-base"),(function(){return n(t(91366))})),e("ember-moment/helpers/is-after",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/is-after"),(function(){return n(t(91461))})),e("ember-moment/helpers/is-before",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/is-before"),(function(){return n(t(61e3))})),e("ember-moment/helpers/is-between",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/is-between"),(function(){return n(t(447))})),e("ember-moment/helpers/is-same",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/is-same"),(function(){return n(t(64193))})),e("ember-moment/helpers/is-same-or-after",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/is-same-or-after"),(function(){return n(t(7916))})),e("ember-moment/helpers/is-same-or-before",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/is-same-or-before"),(function(){return n(t(54351))})),e("ember-moment/helpers/moment",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment"),(function(){return n(t(41678))})),e("ember-moment/helpers/moment-add",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-add"),(function(){return n(t(50080))})),e("ember-moment/helpers/moment-calendar",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-calendar"),(function(){return n(t(96625))})),e("ember-moment/helpers/moment-diff",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-diff"),(function(){return n(t(85340))})),e("ember-moment/helpers/moment-duration",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-duration"),(function(){return n(t(42967))})),e("ember-moment/helpers/moment-format",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-format"),(function(){return n(t(10536))})),e("ember-moment/helpers/moment-from",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-from"),(function(){return n(t(50727))})),e("ember-moment/helpers/moment-from-now",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-from-now"),(function(){return n(t(706))})),e("ember-moment/helpers/moment-subtract",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-subtract"),(function(){return n(t(54651))})),e("ember-moment/helpers/moment-to",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-to"),(function(){return n(t(84818))})),e("ember-moment/helpers/moment-to-date",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-to-date"),(function(){return n(t(81183))})),e("ember-moment/helpers/moment-to-now",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-to-now"),(function(){return n(t(17083))})),e("ember-moment/helpers/now",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/now"),(function(){return n(t(34980))})),e("ember-moment/helpers/unix",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/unix"),(function(){return n(t(79272))})),e("ember-moment/helpers/utc",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/utc"),(function(){return n(t(36022))})),e("ember-moment/services/moment",EAI_DISCOVERED_EXTERNALS("ember-moment/services/moment"),(function(){return n(t(39879))})),e("fast-deep-equal",EAI_DISCOVERED_EXTERNALS("fast-deep-equal"),(function(){return n(t(25383))})),e("flexsearch",EAI_DISCOVERED_EXTERNALS("flexsearch"),(function(){return n(t(12248))})),e("focus-trap",EAI_DISCOVERED_EXTERNALS("focus-trap"),(function(){return n(t(39632))})),e("intersection-observer-admin",EAI_DISCOVERED_EXTERNALS("intersection-observer-admin"),(function(){return n(t(21431))})),e("jose",EAI_DISCOVERED_EXTERNALS("jose"),(function(){return n(t(82765))})),e("microdiff",EAI_DISCOVERED_EXTERNALS("microdiff"),(function(){return n(t(59086))})),e("moment-timezone",EAI_DISCOVERED_EXTERNALS("moment-timezone"),(function(){return n(t(41101))})),e("papaparse",EAI_DISCOVERED_EXTERNALS("papaparse"),(function(){return n(t(78695))})),e("raf-pool",EAI_DISCOVERED_EXTERNALS("raf-pool"),(function(){return n(t(60695))})),e("react",EAI_DISCOVERED_EXTERNALS("react"),(function(){return n(t(72854))})),e("react-dom",EAI_DISCOVERED_EXTERNALS("react-dom"),(function(){return n(t(95303))})),e("react-dom/client",EAI_DISCOVERED_EXTERNALS("react-dom/client"),(function(){return n(t(70816))})),e("semver/functions/coerce",EAI_DISCOVERED_EXTERNALS("semver/functions/coerce"),(function(){return n(t(18576))})),e("semver/functions/lt",EAI_DISCOVERED_EXTERNALS("semver/functions/lt"),(function(){return n(t(32817))})),e("semver/functions/parse",EAI_DISCOVERED_EXTERNALS("semver/functions/parse"),(function(){return n(t(47898))})),e("tooltip.js",EAI_DISCOVERED_EXTERNALS("tooltip.js"),(function(){return n(t(85557))})),e("tracked-built-ins",EAI_DISCOVERED_EXTERNALS("tracked-built-ins"),(function(){return n(t(67708))})),e("validator",EAI_DISCOVERED_EXTERNALS("validator"),(function(){return n(t(26058))})),e("_eai_dyn_@sentry/browser",[],(function(){return Promise.resolve().then(t.bind(t,51294))}))}()},86625:()=>{}},t={}
14
+ throw r.code="MODULE_NOT_FOUND",r}return n[e]}s.keys=function(){return Object.keys(n)},s.resolve=o,e.exports=s,s.id=56857},65263:(e,r,t)=>{e.exports=function(){var e=_eai_d,r=_eai_r
15
+ function n(e){return e&&e.__esModule?e:Object.assign({default:e},e)}window.emberAutoImportDynamic=function(e){return 1===arguments.length?r("_eai_dyn_"+e):r("_eai_dynt_"+e)(Array.prototype.slice.call(arguments,1))},window.emberAutoImportSync=function(e){return r("_eai_sync_"+e)(Array.prototype.slice.call(arguments,1))},e("@sentry/browser",EAI_DISCOVERED_EXTERNALS("@sentry/browser"),(function(){return n(t(51294))})),e("@sentry/core",EAI_DISCOVERED_EXTERNALS("@sentry/core"),(function(){return n(t(16154))})),e("@sentry/integrations",EAI_DISCOVERED_EXTERNALS("@sentry/integrations"),(function(){return n(t(20080))})),e("@sentry/replay",EAI_DISCOVERED_EXTERNALS("@sentry/replay"),(function(){return n(t(51633))})),e("@sentry/utils",EAI_DISCOVERED_EXTERNALS("@sentry/utils"),(function(){return n(t(88414))})),e("@tryghost/color-utils",EAI_DISCOVERED_EXTERNALS("@tryghost/color-utils"),(function(){return n(t(86797))})),e("@tryghost/kg-clean-basic-html",EAI_DISCOVERED_EXTERNALS("@tryghost/kg-clean-basic-html"),(function(){return n(t(3414))})),e("@tryghost/kg-converters",EAI_DISCOVERED_EXTERNALS("@tryghost/kg-converters"),(function(){return n(t(23075))})),e("@tryghost/limit-service",EAI_DISCOVERED_EXTERNALS("@tryghost/limit-service"),(function(){return n(t(55983))})),e("@tryghost/members-csv/lib/unparse",EAI_DISCOVERED_EXTERNALS("@tryghost/members-csv/lib/unparse"),(function(){return n(t(9589))})),e("@tryghost/nql",EAI_DISCOVERED_EXTERNALS("@tryghost/nql"),(function(){return n(t(39365))})),e("@tryghost/nql-lang",EAI_DISCOVERED_EXTERNALS("@tryghost/nql-lang"),(function(){return n(t(716))})),e("@tryghost/string",EAI_DISCOVERED_EXTERNALS("@tryghost/string"),(function(){return n(t(96107))})),e("@tryghost/timezone-data",EAI_DISCOVERED_EXTERNALS("@tryghost/timezone-data"),(function(){return n(t(27019))})),e("animejs/lib/anime.es.js",EAI_DISCOVERED_EXTERNALS("animejs/lib/anime.es.js"),(function(){return n(t(62282))})),e("element-resize-detector",EAI_DISCOVERED_EXTERNALS("element-resize-detector"),(function(){return n(t(29540))})),e("ember-assign-helper/helpers/assign",EAI_DISCOVERED_EXTERNALS("ember-assign-helper/helpers/assign"),(function(){return n(t(31113))})),e("ember-css-transitions/modifiers/css-transition",EAI_DISCOVERED_EXTERNALS("ember-css-transitions/modifiers/css-transition"),(function(){return n(t(95895))})),e("ember-keyboard/helpers/if-key.js",EAI_DISCOVERED_EXTERNALS("ember-keyboard/helpers/if-key.js"),(function(){return n(t(10530))})),e("ember-keyboard/helpers/on-key.js",EAI_DISCOVERED_EXTERNALS("ember-keyboard/helpers/on-key.js"),(function(){return n(t(13692))})),e("ember-keyboard/modifiers/on-key.js",EAI_DISCOVERED_EXTERNALS("ember-keyboard/modifiers/on-key.js"),(function(){return n(t(40985))})),e("ember-keyboard/services/keyboard.js",EAI_DISCOVERED_EXTERNALS("ember-keyboard/services/keyboard.js"),(function(){return n(t(89697))})),e("ember-modifier",EAI_DISCOVERED_EXTERNALS("ember-modifier"),(function(){return n(t(37777))})),e("ember-moment/helpers/-base",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/-base"),(function(){return n(t(91366))})),e("ember-moment/helpers/is-after",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/is-after"),(function(){return n(t(91461))})),e("ember-moment/helpers/is-before",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/is-before"),(function(){return n(t(61e3))})),e("ember-moment/helpers/is-between",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/is-between"),(function(){return n(t(447))})),e("ember-moment/helpers/is-same",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/is-same"),(function(){return n(t(64193))})),e("ember-moment/helpers/is-same-or-after",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/is-same-or-after"),(function(){return n(t(7916))})),e("ember-moment/helpers/is-same-or-before",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/is-same-or-before"),(function(){return n(t(54351))})),e("ember-moment/helpers/moment",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment"),(function(){return n(t(41678))})),e("ember-moment/helpers/moment-add",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-add"),(function(){return n(t(50080))})),e("ember-moment/helpers/moment-calendar",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-calendar"),(function(){return n(t(96625))})),e("ember-moment/helpers/moment-diff",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-diff"),(function(){return n(t(85340))})),e("ember-moment/helpers/moment-duration",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-duration"),(function(){return n(t(42967))})),e("ember-moment/helpers/moment-format",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-format"),(function(){return n(t(10536))})),e("ember-moment/helpers/moment-from",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-from"),(function(){return n(t(50727))})),e("ember-moment/helpers/moment-from-now",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-from-now"),(function(){return n(t(706))})),e("ember-moment/helpers/moment-subtract",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-subtract"),(function(){return n(t(54651))})),e("ember-moment/helpers/moment-to",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-to"),(function(){return n(t(84818))})),e("ember-moment/helpers/moment-to-date",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-to-date"),(function(){return n(t(81183))})),e("ember-moment/helpers/moment-to-now",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/moment-to-now"),(function(){return n(t(17083))})),e("ember-moment/helpers/now",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/now"),(function(){return n(t(34980))})),e("ember-moment/helpers/unix",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/unix"),(function(){return n(t(79272))})),e("ember-moment/helpers/utc",EAI_DISCOVERED_EXTERNALS("ember-moment/helpers/utc"),(function(){return n(t(36022))})),e("ember-moment/services/moment",EAI_DISCOVERED_EXTERNALS("ember-moment/services/moment"),(function(){return n(t(39879))})),e("fast-deep-equal",EAI_DISCOVERED_EXTERNALS("fast-deep-equal"),(function(){return n(t(25383))})),e("flexsearch",EAI_DISCOVERED_EXTERNALS("flexsearch"),(function(){return n(t(12248))})),e("focus-trap",EAI_DISCOVERED_EXTERNALS("focus-trap"),(function(){return n(t(39632))})),e("intersection-observer-admin",EAI_DISCOVERED_EXTERNALS("intersection-observer-admin"),(function(){return n(t(21431))})),e("jose",EAI_DISCOVERED_EXTERNALS("jose"),(function(){return n(t(82765))})),e("microdiff",EAI_DISCOVERED_EXTERNALS("microdiff"),(function(){return n(t(59086))})),e("moment-timezone",EAI_DISCOVERED_EXTERNALS("moment-timezone"),(function(){return n(t(41101))})),e("papaparse",EAI_DISCOVERED_EXTERNALS("papaparse"),(function(){return n(t(78695))})),e("raf-pool",EAI_DISCOVERED_EXTERNALS("raf-pool"),(function(){return n(t(60695))})),e("react",EAI_DISCOVERED_EXTERNALS("react"),(function(){return n(t(72854))})),e("react-dom",EAI_DISCOVERED_EXTERNALS("react-dom"),(function(){return n(t(95303))})),e("react-dom/client",EAI_DISCOVERED_EXTERNALS("react-dom/client"),(function(){return n(t(70816))})),e("semver/functions/coerce",EAI_DISCOVERED_EXTERNALS("semver/functions/coerce"),(function(){return n(t(18576))})),e("semver/functions/lt",EAI_DISCOVERED_EXTERNALS("semver/functions/lt"),(function(){return n(t(32817))})),e("semver/functions/parse",EAI_DISCOVERED_EXTERNALS("semver/functions/parse"),(function(){return n(t(47898))})),e("tooltip.js",EAI_DISCOVERED_EXTERNALS("tooltip.js"),(function(){return n(t(85557))})),e("tracked-built-ins",EAI_DISCOVERED_EXTERNALS("tracked-built-ins"),(function(){return n(t(67708))})),e("validator",EAI_DISCOVERED_EXTERNALS("validator"),(function(){return n(t(26058))})),e("_eai_dyn_@sentry/browser",[],(function(){return Promise.resolve().then(t.bind(t,51294))}))}()},80032:e=>{"use strict"
16
+ e.exports=require("ember-tracked-storage-polyfill")},86625:()=>{},94786:function(e,r){window._eai_r=require,window._eai_d=define}},t={}
17
17
  function n(e){var s=t[e]
18
18
  if(void 0!==s)return s.exports
19
19
  var o=t[e]={id:e,loaded:!1,exports:{}}
@@ -30,8 +30,8 @@ var r=(r,t)=>{var s,o,[m,i,E]=t,a=0
30
30
  if(m.some((r=>0!==e[r]))){for(s in i)n.o(i,s)&&(n.m[s]=i[s])
31
31
  if(E)var u=E(n)}for(r&&r(t);a<m.length;a++)o=m[a],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0
32
32
  return n.O(u)},t=globalThis.webpackChunk_ember_auto_import_=globalThis.webpackChunk_ember_auto_import_||[]
33
- t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),n.O(void 0,[136],(()=>n(n.s=11970)))
34
- var s=n.O(void 0,[136],(()=>n(n.s=74277)))
33
+ t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),n.O(void 0,[136],(()=>n(n.s=94786)))
34
+ var s=n.O(void 0,[136],(()=>n(n.s=48357)))
35
35
  s=n.O(s),__ember_auto_import__=s})()
36
36
 
37
- //# sourceMappingURL=chunk.582.97c42e261318fb912ecc.map
37
+ //# sourceMappingURL=chunk.582.264fbe5110a65821da47.map
@@ -49,7 +49,7 @@
49
49
 
50
50
  <script src="assets/vendor-b3af1423332ff02d6dde4e9a2a4f2b24.js"></script>
51
51
  <script src="assets/chunk.136.d39c54dc8c5bf7cbdc91.js"></script>
52
- <script src="assets/chunk.524.40845e3290d7036d63d5.js"></script>
52
+ <script src="assets/chunk.524.b68651460beed4ac4ccf.js"></script>
53
53
  <script src="assets/ghost-add4fe4d80fd9653216061cf41a890ca.js"></script>
54
54
  </body>
55
55
  </html>
@@ -0,0 +1,68 @@
1
+ // const debug = require('@tryghost/debug')('comments-counts-assets');
2
+ const path = require('path');
3
+ const fs = require('fs');
4
+ const logging = require('@tryghost/logging');
5
+ const config = require('../../../shared/config');
6
+ const urlUtils = require('../../../shared/url-utils');
7
+
8
+ const Minifier = require('./Minifier');
9
+ const AssetsMinificationBase = require('./AssetsMinificationBase');
10
+
11
+ module.exports = class AdminAuthAssets extends AssetsMinificationBase {
12
+ constructor(options = {}) {
13
+ super(options);
14
+
15
+ this.src = options.src || path.join(config.get('paths').assetSrc, 'admin-auth');
16
+ /** @private */
17
+ this.dest = options.dest || path.join(config.getContentPath('public'), 'admin-auth');
18
+
19
+ this.minifier = new Minifier({src: this.src, dest: this.dest});
20
+
21
+ try {
22
+ fs.mkdirSync(this.dest, {recursive: true});
23
+ fs.copyFileSync(path.join(this.src, 'index.html'), path.join(this.dest, 'index.html'));
24
+ } catch (error) {
25
+ if (error.code === 'EACCES') {
26
+ logging.error('Ghost was not able to write admin-auth asset files due to permissions.');
27
+ return;
28
+ }
29
+
30
+ throw error;
31
+ }
32
+ }
33
+
34
+ /**
35
+ * @override
36
+ */
37
+ generateGlobs() {
38
+ return {
39
+ 'admin-auth.min.js': '*.js'
40
+ };
41
+ }
42
+
43
+ /**
44
+ * @private
45
+ */
46
+ generateReplacements() {
47
+ // Clean the URL, only keep schema, host and port (without trailing slashes or subdirectory)
48
+ const url = new URL(urlUtils.getSiteUrl());
49
+ const origin = url.origin;
50
+
51
+ return {
52
+ // Properly encode the origin
53
+ '\'{{SITE_ORIGIN}}\'': JSON.stringify(origin)
54
+ };
55
+ }
56
+
57
+ /**
58
+ * Minify, move into the destination directory, and clear existing asset files.
59
+ *
60
+ * @override
61
+ * @returns {Promise<void>}
62
+ */
63
+ async load() {
64
+ const globs = this.generateGlobs();
65
+ const replacements = this.generateReplacements();
66
+ await this.minify(globs, {replacements});
67
+ }
68
+ };
@@ -1,6 +1,9 @@
1
1
  const CardAssets = require('./CardAssets');
2
+ const AdminAuthAssets = require('./AdminAuthAssets');
2
3
  const cardAssets = new CardAssets();
4
+ const adminAuthAssets = new AdminAuthAssets();
3
5
 
4
6
  module.exports = {
5
- cardAssets
7
+ cardAssets,
8
+ adminAuthAssets
6
9
  };
@@ -0,0 +1,6 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <script src="admin-auth.min.js"></script>
5
+ </head>
6
+ </html>
@@ -9,7 +9,7 @@ const shared = require('../shared');
9
9
  const errorHandler = require('@tryghost/mw-error-handler');
10
10
  const sentry = require('../../../shared/sentry');
11
11
  const redirectAdminUrls = require('./middleware/redirect-admin-urls');
12
- const createServeAuthFrameFileMw = require('./middleware/serve-auth-frame-file');
12
+ const bridge = require('../../../bridge');
13
13
 
14
14
  /**
15
15
  *
@@ -39,7 +39,7 @@ module.exports = function setupAdminApp() {
39
39
  // request to the Admin API /users/me/ endpoint to check if the user is logged in.
40
40
  //
41
41
  // Used by comments-ui to add moderation options to front-end comments when logged in.
42
- adminApp.use('/auth-frame', function authFrameMw(req, res, next) {
42
+ adminApp.use('/auth-frame', bridge.ensureAdminAuthAssetsMiddleware(), function authFrameMw(req, res, next) {
43
43
  // only render content when we have an Admin session cookie,
44
44
  // otherwise return a 204 to avoid JS and API requests being made unnecessarily
45
45
  try {
@@ -52,7 +52,9 @@ module.exports = function setupAdminApp() {
52
52
  } catch (err) {
53
53
  next(err);
54
54
  }
55
- }, createServeAuthFrameFileMw(config, urlUtils));
55
+ }, serveStatic(
56
+ path.join(config.getContentPath('public'), 'admin-auth')
57
+ ));
56
58
 
57
59
  // Ember CLI's live-reload script
58
60
  if (config.get('env') === 'development') {
@@ -93,4 +95,4 @@ module.exports = function setupAdminApp() {
93
95
  debug('Admin setup end');
94
96
 
95
97
  return adminApp;
96
- };
98
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ghost",
3
- "version": "5.119.0",
3
+ "version": "5.119.1",
4
4
  "description": "The professional publishing platform",
5
5
  "author": "Ghost Foundation",
6
6
  "homepage": "https://ghost.org",
@@ -69,26 +69,26 @@
69
69
  "@slack/webhook": "7.0.5",
70
70
  "@tryghost/adapter-base-cache": "0.1.13",
71
71
  "@tryghost/admin-api-schema": "4.5.6",
72
- "@tryghost/api-framework": "file:components/tryghost-api-framework-5.119.0.tgz",
72
+ "@tryghost/api-framework": "file:components/tryghost-api-framework-5.119.1.tgz",
73
73
  "@tryghost/bookshelf-plugins": "0.6.26",
74
74
  "@tryghost/color-utils": "0.2.3",
75
75
  "@tryghost/config-url-helpers": "1.0.13",
76
- "@tryghost/constants": "file:components/tryghost-constants-5.119.0.tgz",
77
- "@tryghost/custom-fonts": "file:components/tryghost-custom-fonts-5.119.0.tgz",
76
+ "@tryghost/constants": "file:components/tryghost-constants-5.119.1.tgz",
77
+ "@tryghost/custom-fonts": "file:components/tryghost-custom-fonts-5.119.1.tgz",
78
78
  "@tryghost/database-info": "0.3.29",
79
79
  "@tryghost/debug": "0.1.34",
80
- "@tryghost/domain-events": "file:components/tryghost-domain-events-5.119.0.tgz",
81
- "@tryghost/donations": "file:components/tryghost-donations-5.119.0.tgz",
82
- "@tryghost/email-addresses": "file:components/tryghost-email-addresses-5.119.0.tgz",
80
+ "@tryghost/domain-events": "file:components/tryghost-domain-events-5.119.1.tgz",
81
+ "@tryghost/donations": "file:components/tryghost-donations-5.119.1.tgz",
82
+ "@tryghost/email-addresses": "file:components/tryghost-email-addresses-5.119.1.tgz",
83
83
  "@tryghost/email-mock-receiver": "0.3.10",
84
- "@tryghost/email-service": "file:components/tryghost-email-service-5.119.0.tgz",
84
+ "@tryghost/email-service": "file:components/tryghost-email-service-5.119.1.tgz",
85
85
  "@tryghost/errors": "1.3.7",
86
86
  "@tryghost/helpers": "1.1.91",
87
- "@tryghost/html-to-plaintext": "file:components/tryghost-html-to-plaintext-5.119.0.tgz",
87
+ "@tryghost/html-to-plaintext": "file:components/tryghost-html-to-plaintext-5.119.1.tgz",
88
88
  "@tryghost/http-cache-utils": "0.1.19",
89
- "@tryghost/i18n": "file:components/tryghost-i18n-5.119.0.tgz",
89
+ "@tryghost/i18n": "file:components/tryghost-i18n-5.119.1.tgz",
90
90
  "@tryghost/image-transform": "1.4.1",
91
- "@tryghost/job-manager": "file:components/tryghost-job-manager-5.119.0.tgz",
91
+ "@tryghost/job-manager": "file:components/tryghost-job-manager-5.119.1.tgz",
92
92
  "@tryghost/kg-card-factory": "5.1.0",
93
93
  "@tryghost/kg-converters": "1.1.0",
94
94
  "@tryghost/kg-default-atoms": "5.1.0",
@@ -98,32 +98,32 @@
98
98
  "@tryghost/kg-lexical-html-renderer": "1.3.5",
99
99
  "@tryghost/kg-mobiledoc-html-renderer": "7.1.1",
100
100
  "@tryghost/limit-service": "1.2.15",
101
- "@tryghost/link-replacer": "file:components/tryghost-link-replacer-5.119.0.tgz",
101
+ "@tryghost/link-replacer": "file:components/tryghost-link-replacer-5.119.1.tgz",
102
102
  "@tryghost/logging": "2.4.21",
103
- "@tryghost/member-attribution": "file:components/tryghost-member-attribution-5.119.0.tgz",
104
- "@tryghost/members-csv": "file:components/tryghost-members-csv-5.119.0.tgz",
105
- "@tryghost/members-offers": "file:components/tryghost-members-offers-5.119.0.tgz",
103
+ "@tryghost/member-attribution": "file:components/tryghost-member-attribution-5.119.1.tgz",
104
+ "@tryghost/members-csv": "file:components/tryghost-members-csv-5.119.1.tgz",
105
+ "@tryghost/members-offers": "file:components/tryghost-members-offers-5.119.1.tgz",
106
106
  "@tryghost/metrics": "1.0.37",
107
- "@tryghost/mw-error-handler": "file:components/tryghost-mw-error-handler-5.119.0.tgz",
108
- "@tryghost/mw-vhost": "file:components/tryghost-mw-vhost-5.119.0.tgz",
107
+ "@tryghost/mw-error-handler": "file:components/tryghost-mw-error-handler-5.119.1.tgz",
108
+ "@tryghost/mw-vhost": "file:components/tryghost-mw-vhost-5.119.1.tgz",
109
109
  "@tryghost/nodemailer": "0.3.47",
110
110
  "@tryghost/nql": "0.12.7",
111
- "@tryghost/post-events": "file:components/tryghost-post-events-5.119.0.tgz",
112
- "@tryghost/post-revisions": "file:components/tryghost-post-revisions-5.119.0.tgz",
111
+ "@tryghost/post-events": "file:components/tryghost-post-events-5.119.1.tgz",
112
+ "@tryghost/post-revisions": "file:components/tryghost-post-revisions-5.119.1.tgz",
113
113
  "@tryghost/pretty-cli": "1.2.46",
114
- "@tryghost/prometheus-metrics": "file:components/tryghost-prometheus-metrics-5.119.0.tgz",
114
+ "@tryghost/prometheus-metrics": "file:components/tryghost-prometheus-metrics-5.119.1.tgz",
115
115
  "@tryghost/promise": "0.3.14",
116
116
  "@tryghost/request": "1.0.10",
117
117
  "@tryghost/root-utils": "0.3.32",
118
- "@tryghost/security": "file:components/tryghost-security-5.119.0.tgz",
118
+ "@tryghost/security": "file:components/tryghost-security-5.119.1.tgz",
119
119
  "@tryghost/social-urls": "0.1.47",
120
120
  "@tryghost/string": "0.2.13",
121
- "@tryghost/tiers": "file:components/tryghost-tiers-5.119.0.tgz",
121
+ "@tryghost/tiers": "file:components/tryghost-tiers-5.119.1.tgz",
122
122
  "@tryghost/tpl": "0.1.34",
123
123
  "@tryghost/url-utils": "4.4.9",
124
124
  "@tryghost/validator": "0.2.16",
125
125
  "@tryghost/version": "0.1.32",
126
- "@tryghost/webmentions": "file:components/tryghost-webmentions-5.119.0.tgz",
126
+ "@tryghost/webmentions": "file:components/tryghost-webmentions-5.119.1.tgz",
127
127
  "@tryghost/zip": "1.1.48",
128
128
  "amperize": "0.6.1",
129
129
  "body-parser": "1.20.3",
@@ -270,28 +270,28 @@
270
270
  "jackspeak": "2.3.6",
271
271
  "moment": "2.24.0",
272
272
  "moment-timezone": "0.5.45",
273
- "@tryghost/api-framework": "file:components/tryghost-api-framework-5.119.0.tgz",
274
- "@tryghost/constants": "file:components/tryghost-constants-5.119.0.tgz",
275
- "@tryghost/custom-fonts": "file:components/tryghost-custom-fonts-5.119.0.tgz",
276
- "@tryghost/domain-events": "file:components/tryghost-domain-events-5.119.0.tgz",
277
- "@tryghost/donations": "file:components/tryghost-donations-5.119.0.tgz",
278
- "@tryghost/email-addresses": "file:components/tryghost-email-addresses-5.119.0.tgz",
279
- "@tryghost/email-service": "file:components/tryghost-email-service-5.119.0.tgz",
280
- "@tryghost/html-to-plaintext": "file:components/tryghost-html-to-plaintext-5.119.0.tgz",
281
- "@tryghost/i18n": "file:components/tryghost-i18n-5.119.0.tgz",
282
- "@tryghost/job-manager": "file:components/tryghost-job-manager-5.119.0.tgz",
283
- "@tryghost/link-replacer": "file:components/tryghost-link-replacer-5.119.0.tgz",
284
- "@tryghost/member-attribution": "file:components/tryghost-member-attribution-5.119.0.tgz",
285
- "@tryghost/members-csv": "file:components/tryghost-members-csv-5.119.0.tgz",
286
- "@tryghost/mw-error-handler": "file:components/tryghost-mw-error-handler-5.119.0.tgz",
287
- "@tryghost/mw-vhost": "file:components/tryghost-mw-vhost-5.119.0.tgz",
288
- "@tryghost/members-offers": "file:components/tryghost-members-offers-5.119.0.tgz",
289
- "@tryghost/post-events": "file:components/tryghost-post-events-5.119.0.tgz",
290
- "@tryghost/post-revisions": "file:components/tryghost-post-revisions-5.119.0.tgz",
291
- "@tryghost/prometheus-metrics": "file:components/tryghost-prometheus-metrics-5.119.0.tgz",
292
- "@tryghost/security": "file:components/tryghost-security-5.119.0.tgz",
293
- "@tryghost/tiers": "file:components/tryghost-tiers-5.119.0.tgz",
294
- "@tryghost/webmentions": "file:components/tryghost-webmentions-5.119.0.tgz"
273
+ "@tryghost/api-framework": "file:components/tryghost-api-framework-5.119.1.tgz",
274
+ "@tryghost/constants": "file:components/tryghost-constants-5.119.1.tgz",
275
+ "@tryghost/custom-fonts": "file:components/tryghost-custom-fonts-5.119.1.tgz",
276
+ "@tryghost/domain-events": "file:components/tryghost-domain-events-5.119.1.tgz",
277
+ "@tryghost/donations": "file:components/tryghost-donations-5.119.1.tgz",
278
+ "@tryghost/email-addresses": "file:components/tryghost-email-addresses-5.119.1.tgz",
279
+ "@tryghost/email-service": "file:components/tryghost-email-service-5.119.1.tgz",
280
+ "@tryghost/html-to-plaintext": "file:components/tryghost-html-to-plaintext-5.119.1.tgz",
281
+ "@tryghost/i18n": "file:components/tryghost-i18n-5.119.1.tgz",
282
+ "@tryghost/job-manager": "file:components/tryghost-job-manager-5.119.1.tgz",
283
+ "@tryghost/link-replacer": "file:components/tryghost-link-replacer-5.119.1.tgz",
284
+ "@tryghost/member-attribution": "file:components/tryghost-member-attribution-5.119.1.tgz",
285
+ "@tryghost/members-csv": "file:components/tryghost-members-csv-5.119.1.tgz",
286
+ "@tryghost/mw-error-handler": "file:components/tryghost-mw-error-handler-5.119.1.tgz",
287
+ "@tryghost/mw-vhost": "file:components/tryghost-mw-vhost-5.119.1.tgz",
288
+ "@tryghost/members-offers": "file:components/tryghost-members-offers-5.119.1.tgz",
289
+ "@tryghost/post-events": "file:components/tryghost-post-events-5.119.1.tgz",
290
+ "@tryghost/post-revisions": "file:components/tryghost-post-revisions-5.119.1.tgz",
291
+ "@tryghost/prometheus-metrics": "file:components/tryghost-prometheus-metrics-5.119.1.tgz",
292
+ "@tryghost/security": "file:components/tryghost-security-5.119.1.tgz",
293
+ "@tryghost/tiers": "file:components/tryghost-tiers-5.119.1.tgz",
294
+ "@tryghost/webmentions": "file:components/tryghost-webmentions-5.119.1.tgz"
295
295
  },
296
296
  "nx": {
297
297
  "targets": {
@@ -1,35 +0,0 @@
1
- const path = require('node:path');
2
- const fs = require('node:fs/promises');
3
-
4
- function createServeAuthFrameFileMw(config, urlUtils) {
5
- const placeholders = {
6
- '{{SITE_ORIGIN}}': new URL(urlUtils.getSiteUrl()).origin
7
- };
8
-
9
- return function serveAuthFrameFileMw(req, res, next) {
10
- const filename = path.parse(req.url).base;
11
-
12
- let basePath = path.join(config.get('paths').publicFilePath, 'admin-auth');
13
- let filePath;
14
-
15
- if (filename === '') {
16
- filePath = path.join(basePath, 'index.html');
17
- } else {
18
- filePath = path.join(basePath, filename);
19
- }
20
-
21
- return fs.readFile(filePath).then((data) => {
22
- let dataString = data.toString();
23
-
24
- for (const [key, value] of Object.entries(placeholders)) {
25
- dataString = dataString.replace(key, value);
26
- }
27
-
28
- res.end(dataString);
29
- }).catch(() => {
30
- return next();
31
- });
32
- };
33
- }
34
-
35
- module.exports = createServeAuthFrameFileMw;