ghost 5.78.0 → 5.79.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.
- package/components/tryghost-adapter-cache-memory-ttl-5.79.1.tgz +0 -0
- package/components/tryghost-adapter-cache-redis-5.79.1.tgz +0 -0
- package/components/tryghost-adapter-manager-5.79.1.tgz +0 -0
- package/components/tryghost-announcement-bar-settings-5.79.1.tgz +0 -0
- package/components/tryghost-api-framework-5.79.1.tgz +0 -0
- package/components/tryghost-api-version-compatibility-service-5.79.1.tgz +0 -0
- package/components/tryghost-audience-feedback-5.79.1.tgz +0 -0
- package/components/tryghost-bookshelf-repository-5.79.1.tgz +0 -0
- package/components/tryghost-bootstrap-socket-5.79.1.tgz +0 -0
- package/components/tryghost-collections-5.79.1.tgz +0 -0
- package/components/tryghost-constants-5.79.1.tgz +0 -0
- package/components/tryghost-custom-theme-settings-service-5.79.1.tgz +0 -0
- package/components/tryghost-data-generator-5.79.1.tgz +0 -0
- package/components/tryghost-domain-events-5.79.1.tgz +0 -0
- package/components/tryghost-donations-5.79.1.tgz +0 -0
- package/components/tryghost-dynamic-routing-events-5.79.1.tgz +0 -0
- package/components/{tryghost-email-addresses-5.78.0.tgz → tryghost-email-addresses-5.79.1.tgz} +0 -0
- package/components/tryghost-email-analytics-provider-mailgun-5.79.1.tgz +0 -0
- package/components/tryghost-email-analytics-service-5.79.1.tgz +0 -0
- package/components/tryghost-email-content-generator-5.79.1.tgz +0 -0
- package/components/tryghost-email-events-5.79.1.tgz +0 -0
- package/components/tryghost-email-service-5.79.1.tgz +0 -0
- package/components/tryghost-email-suppression-list-5.79.1.tgz +0 -0
- package/components/tryghost-express-dynamic-redirects-5.79.1.tgz +0 -0
- package/components/tryghost-external-media-inliner-5.79.1.tgz +0 -0
- package/components/tryghost-extract-api-key-5.79.1.tgz +0 -0
- package/components/tryghost-html-to-plaintext-5.79.1.tgz +0 -0
- package/components/tryghost-i18n-5.79.1.tgz +0 -0
- package/components/tryghost-importer-handler-content-files-5.79.1.tgz +0 -0
- package/components/{tryghost-importer-revue-5.78.0.tgz → tryghost-importer-revue-5.79.1.tgz} +0 -0
- package/components/tryghost-in-memory-repository-5.79.1.tgz +0 -0
- package/components/tryghost-job-manager-5.79.1.tgz +0 -0
- package/components/tryghost-link-redirects-5.79.1.tgz +0 -0
- package/components/tryghost-link-replacer-5.79.1.tgz +0 -0
- package/components/tryghost-link-tracking-5.79.1.tgz +0 -0
- package/components/tryghost-magic-link-5.79.1.tgz +0 -0
- package/components/tryghost-mail-events-5.79.1.tgz +0 -0
- package/components/tryghost-mailgun-client-5.79.1.tgz +0 -0
- package/components/tryghost-member-attribution-5.79.1.tgz +0 -0
- package/components/tryghost-member-events-5.79.1.tgz +0 -0
- package/components/tryghost-members-api-5.79.1.tgz +0 -0
- package/components/tryghost-members-csv-5.79.1.tgz +0 -0
- package/components/tryghost-members-events-service-5.79.1.tgz +0 -0
- package/components/tryghost-members-importer-5.79.1.tgz +0 -0
- package/components/tryghost-members-offers-5.79.1.tgz +0 -0
- package/components/tryghost-members-payments-5.79.1.tgz +0 -0
- package/components/tryghost-members-ssr-5.79.1.tgz +0 -0
- package/components/{tryghost-members-stripe-service-5.78.0.tgz → tryghost-members-stripe-service-5.79.1.tgz} +0 -0
- package/components/tryghost-mentions-email-report-5.79.1.tgz +0 -0
- package/components/tryghost-milestones-5.79.1.tgz +0 -0
- package/components/{tryghost-minifier-5.78.0.tgz → tryghost-minifier-5.79.1.tgz} +0 -0
- package/components/tryghost-model-to-domain-event-interceptor-5.79.1.tgz +0 -0
- package/components/tryghost-mw-api-version-mismatch-5.79.1.tgz +0 -0
- package/components/tryghost-mw-cache-control-5.79.1.tgz +0 -0
- package/components/tryghost-mw-error-handler-5.79.1.tgz +0 -0
- package/components/tryghost-mw-session-from-token-5.79.1.tgz +0 -0
- package/components/tryghost-mw-update-user-last-seen-5.79.1.tgz +0 -0
- package/components/tryghost-mw-version-match-5.79.1.tgz +0 -0
- package/components/tryghost-mw-vhost-5.79.1.tgz +0 -0
- package/components/tryghost-nql-filter-expansions-5.79.1.tgz +0 -0
- package/components/tryghost-oembed-service-5.79.1.tgz +0 -0
- package/components/tryghost-package-json-5.79.1.tgz +0 -0
- package/components/tryghost-post-events-5.79.1.tgz +0 -0
- package/components/tryghost-post-revisions-5.79.1.tgz +0 -0
- package/components/tryghost-posts-service-5.79.1.tgz +0 -0
- package/components/tryghost-recommendations-5.79.1.tgz +0 -0
- package/components/tryghost-referrers-5.79.1.tgz +0 -0
- package/components/tryghost-security-5.79.1.tgz +0 -0
- package/components/tryghost-session-service-5.79.1.tgz +0 -0
- package/components/tryghost-settings-path-manager-5.79.1.tgz +0 -0
- package/components/tryghost-slack-notifications-5.79.1.tgz +0 -0
- package/components/tryghost-staff-service-5.79.1.tgz +0 -0
- package/components/tryghost-stats-service-5.79.1.tgz +0 -0
- package/components/{tryghost-tiers-5.78.0.tgz → tryghost-tiers-5.79.1.tgz} +0 -0
- package/components/tryghost-update-check-service-5.79.1.tgz +0 -0
- package/components/{tryghost-verification-trigger-5.78.0.tgz → tryghost-verification-trigger-5.79.1.tgz} +0 -0
- package/components/tryghost-version-notifications-data-service-5.79.1.tgz +0 -0
- package/components/tryghost-webmentions-5.79.1.tgz +0 -0
- package/core/boot.js +1 -9
- package/core/built/admin/assets/admin-x-demo/admin-x-demo.js +2 -2
- package/core/built/admin/assets/admin-x-demo/{index-eee22c84.mjs → index-0722d3aa.mjs} +3 -3
- package/core/built/admin/assets/admin-x-demo/{modals-e4b12fba.mjs → modals-969dbbd3.mjs} +2 -2
- package/core/built/admin/assets/admin-x-settings/{CodeEditorView-c3b34635.mjs → CodeEditorView-58de7ff7.mjs} +2 -2
- package/core/built/admin/assets/admin-x-settings/admin-x-settings.js +2 -2
- package/core/built/admin/assets/admin-x-settings/{index-8808e054.mjs → index-3a0fb1e6.mjs} +2 -2
- package/core/built/admin/assets/admin-x-settings/{index-99bd65a2.mjs → index-c7501e76.mjs} +2341 -2310
- package/core/built/admin/assets/admin-x-settings/{modals-f491bd44.mjs → modals-6250d8f3.mjs} +167 -161
- package/core/built/admin/assets/{chunk.664.99d0951b803d7ec00d8b.js → chunk.160.f064da019dcb493ba212.js} +2737 -2737
- package/core/built/admin/assets/chunk.524.29a900ba64d558092614.js +35 -0
- package/core/built/admin/assets/{chunk.178.75b9357c8d68006957a4.js → chunk.92.5a33247c65824ad1e810.js} +4 -4
- package/core/built/admin/assets/{ghost-0704a125141af505d40c5f71e84f33ab.css → ghost-3198d6ce98e41a0b780dcaa4c7536da4.css} +1 -1
- package/core/built/admin/assets/{ghost-e4af0146175c424ff8b5bfbee8f04258.js → ghost-74787e16c2e5229de6164ddfe7426882.js} +19 -18
- package/core/built/admin/assets/{ghost-dark-6ad8cac49f53901201e9210bc1999eeb.css → ghost-dark-f73086e64db3744d9177c7305c49dc92.css} +1 -1
- package/core/built/admin/assets/koenig-lexical/koenig-lexical.js +16641 -16732
- package/core/built/admin/assets/koenig-lexical/koenig-lexical.umd.js +135 -135
- package/core/built/admin/index.html +5 -5
- package/core/server/data/db/backup.js +7 -1
- package/core/server/data/migrations/versions/5.79/2024-01-30-19-36-44-fix-discrepancy-in-free-tier-visibility.js +43 -0
- package/core/server/services/Users.js +6 -2
- package/core/shared/config/defaults.json +2 -1
- package/package.json +150 -151
- package/yarn.lock +437 -438
- package/components/tryghost-adapter-cache-memory-ttl-5.78.0.tgz +0 -0
- package/components/tryghost-adapter-cache-redis-5.78.0.tgz +0 -0
- package/components/tryghost-adapter-manager-5.78.0.tgz +0 -0
- package/components/tryghost-announcement-bar-settings-5.78.0.tgz +0 -0
- package/components/tryghost-api-framework-5.78.0.tgz +0 -0
- package/components/tryghost-api-version-compatibility-service-5.78.0.tgz +0 -0
- package/components/tryghost-audience-feedback-5.78.0.tgz +0 -0
- package/components/tryghost-bookshelf-repository-5.78.0.tgz +0 -0
- package/components/tryghost-bootstrap-socket-5.78.0.tgz +0 -0
- package/components/tryghost-collections-5.78.0.tgz +0 -0
- package/components/tryghost-constants-5.78.0.tgz +0 -0
- package/components/tryghost-custom-theme-settings-service-5.78.0.tgz +0 -0
- package/components/tryghost-data-generator-5.78.0.tgz +0 -0
- package/components/tryghost-domain-events-5.78.0.tgz +0 -0
- package/components/tryghost-donations-5.78.0.tgz +0 -0
- package/components/tryghost-dynamic-routing-events-5.78.0.tgz +0 -0
- package/components/tryghost-email-analytics-provider-mailgun-5.78.0.tgz +0 -0
- package/components/tryghost-email-analytics-service-5.78.0.tgz +0 -0
- package/components/tryghost-email-content-generator-5.78.0.tgz +0 -0
- package/components/tryghost-email-events-5.78.0.tgz +0 -0
- package/components/tryghost-email-service-5.78.0.tgz +0 -0
- package/components/tryghost-email-suppression-list-5.78.0.tgz +0 -0
- package/components/tryghost-express-dynamic-redirects-5.78.0.tgz +0 -0
- package/components/tryghost-external-media-inliner-5.78.0.tgz +0 -0
- package/components/tryghost-extract-api-key-5.78.0.tgz +0 -0
- package/components/tryghost-html-to-plaintext-5.78.0.tgz +0 -0
- package/components/tryghost-i18n-5.78.0.tgz +0 -0
- package/components/tryghost-importer-handler-content-files-5.78.0.tgz +0 -0
- package/components/tryghost-in-memory-repository-5.78.0.tgz +0 -0
- package/components/tryghost-job-manager-5.78.0.tgz +0 -0
- package/components/tryghost-link-redirects-5.78.0.tgz +0 -0
- package/components/tryghost-link-replacer-5.78.0.tgz +0 -0
- package/components/tryghost-link-tracking-5.78.0.tgz +0 -0
- package/components/tryghost-magic-link-5.78.0.tgz +0 -0
- package/components/tryghost-mail-events-5.78.0.tgz +0 -0
- package/components/tryghost-mailgun-client-5.78.0.tgz +0 -0
- package/components/tryghost-member-attribution-5.78.0.tgz +0 -0
- package/components/tryghost-member-events-5.78.0.tgz +0 -0
- package/components/tryghost-members-api-5.78.0.tgz +0 -0
- package/components/tryghost-members-csv-5.78.0.tgz +0 -0
- package/components/tryghost-members-events-service-5.78.0.tgz +0 -0
- package/components/tryghost-members-importer-5.78.0.tgz +0 -0
- package/components/tryghost-members-offers-5.78.0.tgz +0 -0
- package/components/tryghost-members-payments-5.78.0.tgz +0 -0
- package/components/tryghost-members-ssr-5.78.0.tgz +0 -0
- package/components/tryghost-mentions-email-report-5.78.0.tgz +0 -0
- package/components/tryghost-milestones-5.78.0.tgz +0 -0
- package/components/tryghost-model-to-domain-event-interceptor-5.78.0.tgz +0 -0
- package/components/tryghost-mw-api-version-mismatch-5.78.0.tgz +0 -0
- package/components/tryghost-mw-cache-control-5.78.0.tgz +0 -0
- package/components/tryghost-mw-error-handler-5.78.0.tgz +0 -0
- package/components/tryghost-mw-session-from-token-5.78.0.tgz +0 -0
- package/components/tryghost-mw-update-user-last-seen-5.78.0.tgz +0 -0
- package/components/tryghost-mw-version-match-5.78.0.tgz +0 -0
- package/components/tryghost-mw-vhost-5.78.0.tgz +0 -0
- package/components/tryghost-nql-filter-expansions-5.78.0.tgz +0 -0
- package/components/tryghost-oembed-service-5.78.0.tgz +0 -0
- package/components/tryghost-package-json-5.78.0.tgz +0 -0
- package/components/tryghost-post-events-5.78.0.tgz +0 -0
- package/components/tryghost-post-revisions-5.78.0.tgz +0 -0
- package/components/tryghost-posts-service-5.78.0.tgz +0 -0
- package/components/tryghost-recommendations-5.78.0.tgz +0 -0
- package/components/tryghost-referrers-5.78.0.tgz +0 -0
- package/components/tryghost-security-5.78.0.tgz +0 -0
- package/components/tryghost-session-service-5.78.0.tgz +0 -0
- package/components/tryghost-settings-path-manager-5.78.0.tgz +0 -0
- package/components/tryghost-slack-notifications-5.78.0.tgz +0 -0
- package/components/tryghost-staff-service-5.78.0.tgz +0 -0
- package/components/tryghost-stats-service-5.78.0.tgz +0 -0
- package/components/tryghost-update-check-service-5.78.0.tgz +0 -0
- package/components/tryghost-version-notifications-data-service-5.78.0.tgz +0 -0
- package/components/tryghost-webmentions-5.78.0.tgz +0 -0
- package/core/built/admin/assets/chunk.143.6e73a50be0209a7256b6.js +0 -35
- package/core/server/services/segment/DomainEventsAnalytics.js +0 -109
- package/core/server/services/segment/index.js +0 -25
- /package/core/built/admin/assets/{chunk.664.99d0951b803d7ec00d8b.js.LICENSE.txt → chunk.160.f064da019dcb493ba212.js.LICENSE.txt} +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
var __ember_auto_import__;(()=>{var e,r={91883:(e,r,t)=>{const n=t(63153),s=t(99112),o=["id","email","name","note","subscribed_to_emails","complimentary_plan","stripe_customer_id","created_at","deleted_at","labels","tiers"]
|
|
2
|
-
e.exports=(e,r=o.slice())=>{r=r.map((e=>"subscribed"===e?"subscribed_to_emails":e))
|
|
3
|
-
const t=e.map((e=>{e.error&&!r.includes("error")&&r.push("error")
|
|
4
|
-
let t=""
|
|
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
|
-
let s=""
|
|
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:!(!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,{columns:r})}},96616:(e,r,t)=>{var n={"./af":21516,"./af.js":21516,"./ar":14874,"./ar-dz":83760,"./ar-dz.js":83760,"./ar-kw":73410,"./ar-kw.js":73410,"./ar-ly":27521,"./ar-ly.js":27521,"./ar-ma":54215,"./ar-ma.js":54215,"./ar-sa":67839,"./ar-sa.js":67839,"./ar-tn":15676,"./ar-tn.js":15676,"./ar.js":14874,"./az":90189,"./az.js":90189,"./be":97510,"./be.js":97510,"./bg":49715,"./bg.js":49715,"./bm":53263,"./bm.js":53263,"./bn":86751,"./bn.js":86751,"./bo":22257,"./bo.js":22257,"./br":66699,"./br.js":66699,"./bs":46338,"./bs.js":46338,"./ca":75498,"./ca.js":75498,"./cs":36471,"./cs.js":36471,"./cv":12500,"./cv.js":12500,"./cy":621,"./cy.js":621,"./da":82493,"./da.js":82493,"./de":56272,"./de-at":70500,"./de-at.js":70500,"./de-ch":71393,"./de-ch.js":71393,"./de.js":56272,"./dv":90967,"./dv.js":90967,"./el":85716,"./el.js":85716,"./en-SG":72902,"./en-SG.js":72902,"./en-au":32645,"./en-au.js":32645,"./en-ca":10280,"./en-ca.js":10280,"./en-gb":31961,"./en-gb.js":31961,"./en-ie":19065,"./en-ie.js":19065,"./en-il":5628,"./en-il.js":5628,"./en-nz":81286,"./en-nz.js":81286,"./eo":37600,"./eo.js":37600,"./es":62109,"./es-do":94611,"./es-do.js":94611,"./es-us":86896,"./es-us.js":86896,"./es.js":62109,"./et":2962,"./et.js":2962,"./eu":30384,"./eu.js":30384,"./fa":35676,"./fa.js":35676,"./fi":18080,"./fi.js":18080,"./fo":99493,"./fo.js":99493,"./fr":59714,"./fr-ca":29035,"./fr-ca.js":29035,"./fr-ch":47594,"./fr-ch.js":47594,"./fr.js":59714,"./fy":10798,"./fy.js":10798,"./ga":62396,"./ga.js":62396,"./gd":95213,"./gd.js":95213,"./gl":85410,"./gl.js":85410,"./gom-latn":88448,"./gom-latn.js":88448,"./gu":97920,"./gu.js":97920,"./he":21797,"./he.js":21797,"./hi":35546,"./hi.js":35546,"./hr":17034,"./hr.js":17034,"./hu":80081,"./hu.js":80081,"./hy-am":2143,"./hy-am.js":2143,"./id":84909,"./id.js":84909,"./is":8002,"./is.js":8002,"./it":59658,"./it-ch":19126,"./it-ch.js":19126,"./it.js":59658,"./ja":47e3,"./ja.js":47e3,"./jv":97205,"./jv.js":97205,"./ka":31706,"./ka.js":31706,"./kk":34894,"./kk.js":34894,"./km":34679,"./km.js":34679,"./kn":89203,"./kn.js":89203,"./ko":87538,"./ko.js":87538,"./ku":62808,"./ku.js":62808,"./ky":95378,"./ky.js":95378,"./lb":12396,"./lb.js":12396,"./lo":90732,"./lo.js":90732,"./lt":59313,"./lt.js":59313,"./lv":8909,"./lv.js":8909,"./me":75539,"./me.js":75539,"./mi":7384,"./mi.js":7384,"./mk":75114,"./mk.js":75114,"./ml":12586,"./ml.js":12586,"./mn":66423,"./mn.js":66423,"./mr":27128,"./mr.js":27128,"./ms":45547,"./ms-my":38106,"./ms-my.js":38106,"./ms.js":45547,"./mt":20114,"./mt.js":20114,"./my":11573,"./my.js":11573,"./nb":49022,"./nb.js":49022,"./ne":88212,"./ne.js":88212,"./nl":47862,"./nl-be":19116,"./nl-be.js":19116,"./nl.js":47862,"./nn":34010,"./nn.js":34010,"./pa-in":80815,"./pa-in.js":80815,"./pl":18099,"./pl.js":18099,"./pt":14527,"./pt-br":81180,"./pt-br.js":81180,"./pt.js":14527,"./ro":74683,"./ro.js":74683,"./ru":41760,"./ru.js":41760,"./sd":79717,"./sd.js":79717,"./se":84167,"./se.js":84167,"./si":72568,"./si.js":72568,"./sk":13702,"./sk.js":13702,"./sl":49968,"./sl.js":49968,"./sq":77303,"./sq.js":77303,"./sr":4993,"./sr-cyrl":98961,"./sr-cyrl.js":98961,"./sr.js":4993,"./ss":6870,"./ss.js":6870,"./sv":92034,"./sv.js":92034,"./sw":51481,"./sw.js":51481,"./ta":208,"./ta.js":208,"./te":36006,"./te.js":36006,"./tet":68816,"./tet.js":68816,"./tg":77378,"./tg.js":77378,"./th":69125,"./th.js":69125,"./tl-ph":43406,"./tl-ph.js":43406,"./tlh":53361,"./tlh.js":53361,"./tr":84119,"./tr.js":84119,"./tzl":47778,"./tzl.js":47778,"./tzm":12617,"./tzm-latn":97187,"./tzm-latn.js":97187,"./tzm.js":12617,"./ug-cn":10438,"./ug-cn.js":10438,"./uk":38128,"./uk.js":38128,"./ur":15367,"./ur.js":15367,"./uz":51582,"./uz-latn":70009,"./uz-latn.js":70009,"./uz.js":51582,"./vi":49036,"./vi.js":49036,"./x-pseudo":11950,"./x-pseudo.js":11950,"./yo":48249,"./yo.js":48249,"./zh-cn":39512,"./zh-cn.js":39512,"./zh-hk":74792,"./zh-hk.js":74792,"./zh-tw":23931,"./zh-tw.js":23931}
|
|
9
|
-
function s(e){var r=o(e)
|
|
10
|
-
return t(r)}function o(e){if(!t.o(n,e)){var r=new Error("Cannot find module '"+e+"'")
|
|
11
|
-
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=96616},7456:e=>{"use strict"
|
|
12
|
-
e.exports=require("@ember/test-waiters")},57498:e=>{"use strict"
|
|
13
|
-
e.exports=require("ember-tracked-storage-polyfill")},11975:()=>{},58224:(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(52707))})),e("@sentry/integrations",[],(function(){return n(t(87643))})),e("@sentry/utils",[],(function(){return n(t(78926))})),e("@tryghost/color-utils",[],(function(){return n(t(82485))})),e("@tryghost/kg-clean-basic-html",[],(function(){return n(t(89096))})),e("@tryghost/kg-converters",[],(function(){return n(t(9138))})),e("@tryghost/limit-service",[],(function(){return n(t(38583))})),e("@tryghost/members-csv/lib/unparse",[],(function(){return n(t(91883))})),e("@tryghost/nql",[],(function(){return n(t(97490))})),e("@tryghost/nql-lang",[],(function(){return n(t(75420))})),e("@tryghost/string",[],(function(){return n(t(57348))})),e("@tryghost/timezone-data",[],(function(){return n(t(28961))})),e("element-resize-detector",[],(function(){return n(t(87381))})),e("ember-css-transitions/modifiers/css-transition",["@ember/test-waiters"],(function(){return n(t(56112))})),e("ember-keyboard/helpers/if-key.js",[],(function(){return n(t(43481))})),e("ember-keyboard/helpers/on-key.js",[],(function(){return n(t(66415))})),e("ember-keyboard/modifiers/on-key.js",[],(function(){return n(t(4146))})),e("ember-keyboard/services/keyboard.js",[],(function(){return n(t(79690))})),e("ember-modifier",[],(function(){return n(t(92509))})),e("ember-moment/helpers/-base.js",[],(function(){return n(t(76465))})),e("ember-moment/helpers/is-after.js",[],(function(){return n(t(876))})),e("ember-moment/helpers/is-before.js",[],(function(){return n(t(13971))})),e("ember-moment/helpers/is-between.js",[],(function(){return n(t(2063))})),e("ember-moment/helpers/is-same-or-after.js",[],(function(){return n(t(12915))})),e("ember-moment/helpers/is-same-or-before.js",[],(function(){return n(t(46102))})),e("ember-moment/helpers/is-same.js",[],(function(){return n(t(71465))})),e("ember-moment/helpers/moment-add.js",[],(function(){return n(t(64462))})),e("ember-moment/helpers/moment-calendar.js",[],(function(){return n(t(69021))})),e("ember-moment/helpers/moment-diff.js",[],(function(){return n(t(95198))})),e("ember-moment/helpers/moment-duration.js",[],(function(){return n(t(17216))})),e("ember-moment/helpers/moment-format.js",[],(function(){return n(t(99152))})),e("ember-moment/helpers/moment-from-now.js",[],(function(){return n(t(16396))})),e("ember-moment/helpers/moment-from.js",[],(function(){return n(t(48478))})),e("ember-moment/helpers/moment-subtract.js",[],(function(){return n(t(4647))})),e("ember-moment/helpers/moment-to-date.js",[],(function(){return n(t(18351))})),e("ember-moment/helpers/moment-to-now.js",[],(function(){return n(t(94612))})),e("ember-moment/helpers/moment-to.js",[],(function(){return n(t(91857))})),e("ember-moment/helpers/moment.js",[],(function(){return n(t(26852))})),e("ember-moment/helpers/now.js",[],(function(){return n(t(67842))})),e("ember-moment/helpers/unix.js",[],(function(){return n(t(29700))})),e("ember-moment/helpers/utc.js",[],(function(){return n(t(71755))})),e("ember-moment/services/moment.js",[],(function(){return n(t(27475))})),e("fast-deep-equal",[],(function(){return n(t(64710))})),e("focus-trap",[],(function(){return n(t(6657))})),e("intersection-observer-admin",[],(function(){return n(t(77577))})),e("jose",[],(function(){return n(t(64965))})),e("moment-timezone",[],(function(){return n(t(19127))})),e("papaparse",[],(function(){return n(t(99112))})),e("raf-pool",[],(function(){return n(t(42586))})),e("react",[],(function(){return n(t(11591))})),e("react-dom",[],(function(){return n(t(96027))})),e("react-dom/client",[],(function(){return n(t(22609))})),e("semver/functions/coerce",[],(function(){return n(t(57305))})),e("semver/functions/lt",[],(function(){return n(t(63721))})),e("semver/functions/parse",[],(function(){return n(t(62919))})),e("tooltip.js",[],(function(){return n(t(15028))})),e("tracked-built-ins",["ember-tracked-storage-polyfill"],(function(){return n(t(98350))})),e("urijs",[],(function(){return n(t(3491))})),e("validator",[],(function(){return n(t(2228))})),e("_eai_dyn_@sentry/browser",[],(function(){return Promise.resolve().then(t.bind(t,52707))}))}()},17618:function(e,r){window._eai_r=require,window._eai_d=define}},t={}
|
|
15
|
-
function n(e){var s=t[e]
|
|
16
|
-
if(void 0!==s)return s.exports
|
|
17
|
-
var o=t[e]={id:e,loaded:!1,exports:{}}
|
|
18
|
-
return r[e].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.m=r,n.c=t,e=[],n.O=(r,t,s,o)=>{if(!t){var i=1/0
|
|
19
|
-
for(c=0;c<e.length;c++){for(var[t,s,o]=e[c],u=!0,m=0;m<t.length;m++)(!1&o||i>=o)&&Object.keys(n.O).every((e=>n.O[e](t[m])))?t.splice(m--,1):(u=!1,o<i&&(i=o))
|
|
20
|
-
if(u){e.splice(c--,1)
|
|
21
|
-
var a=s()
|
|
22
|
-
void 0!==a&&(r=a)}}return r}o=o||0
|
|
23
|
-
for(var c=e.length;c>0&&e[c-1][2]>o;c--)e[c]=e[c-1]
|
|
24
|
-
e[c]=[t,s,o]},n.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e
|
|
25
|
-
return n.d(r,{a:r}),r},n.d=(e,r)=>{for(var t in r)n.o(r,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},n.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),n.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={143:0}
|
|
26
|
-
n.O.j=r=>0===e[r]
|
|
27
|
-
var r=(r,t)=>{var s,o,[i,u,m]=t,a=0
|
|
28
|
-
if(i.some((r=>0!==e[r]))){for(s in u)n.o(u,s)&&(n.m[s]=u[s])
|
|
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
|
-
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,[664],(()=>n(n.s=17618)))
|
|
32
|
-
var s=n.O(void 0,[664],(()=>n(n.s=58224)))
|
|
33
|
-
s=n.O(s),__ember_auto_import__=s})()
|
|
34
|
-
|
|
35
|
-
//# sourceMappingURL=chunk.143.6e73a50be0209a7256b6.map
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
const {MilestoneCreatedEvent} = require('@tryghost/milestones');
|
|
2
|
-
const {StripeLiveEnabledEvent, StripeLiveDisabledEvent} = require('@tryghost/members-stripe-service').events;
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* @typedef {import('@tryghost/logging')} logging
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @typedef {import('analytics-node')} analytics
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @typedef {object} IExceptionHandler
|
|
14
|
-
* @prop {(err: Error) => void} captureException
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @typedef {import('@tryghost/domain-events')} DomainEvents
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* @typedef {object} IDomainEventsAnalytics
|
|
23
|
-
* @param {analytics} analytics
|
|
24
|
-
* @param {logging} logging
|
|
25
|
-
* @param {object} trackDefaults
|
|
26
|
-
* @param {string} prefix
|
|
27
|
-
* @param {IExceptionHandler} exceptionHandler
|
|
28
|
-
* @param {DomainEvents} DomainEvents
|
|
29
|
-
* @prop {} subscribeToEvents
|
|
30
|
-
*/
|
|
31
|
-
|
|
32
|
-
module.exports = class DomainEventsAnalytics {
|
|
33
|
-
/** @type {analytics} */
|
|
34
|
-
#analytics;
|
|
35
|
-
/** @type {object} */
|
|
36
|
-
#trackDefaults;
|
|
37
|
-
/** @type {string} */
|
|
38
|
-
#prefix;
|
|
39
|
-
/** @type {IExceptionHandler} */
|
|
40
|
-
#exceptionHandler;
|
|
41
|
-
/** @type {logging} */
|
|
42
|
-
#logging;
|
|
43
|
-
/** @type {DomainEvents} */
|
|
44
|
-
#DomainEvents;
|
|
45
|
-
|
|
46
|
-
constructor(deps) {
|
|
47
|
-
this.#analytics = deps.analytics;
|
|
48
|
-
this.#trackDefaults = deps.trackDefaults;
|
|
49
|
-
this.#prefix = deps.prefix;
|
|
50
|
-
this.#exceptionHandler = deps.exceptionHandler;
|
|
51
|
-
this.#logging = deps.logging;
|
|
52
|
-
this.#DomainEvents = deps.DomainEvents;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @param {object} event
|
|
58
|
-
* @param {object} event.data
|
|
59
|
-
* @param {object} event.data.milestone
|
|
60
|
-
* @param {number} event.data.milestone.value
|
|
61
|
-
* @param {string} event.data.milestone.type
|
|
62
|
-
* @returns {Promise<void>}
|
|
63
|
-
*/
|
|
64
|
-
async #handleMilestoneCreatedEvent(event) {
|
|
65
|
-
if (event.data.milestone
|
|
66
|
-
&& event.data.milestone.value === 100
|
|
67
|
-
) {
|
|
68
|
-
const eventName = event.data.milestone.type === 'arr' ? '$100 ARR reached' : '100 Members reached';
|
|
69
|
-
|
|
70
|
-
try {
|
|
71
|
-
this.#analytics.track(Object.assign(this.#trackDefaults, {}, {event: this.#prefix + eventName}));
|
|
72
|
-
} catch (err) {
|
|
73
|
-
this.#logging.error(err);
|
|
74
|
-
this.#exceptionHandler.captureException(err);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
*
|
|
81
|
-
* @param {StripeLiveEnabledEvent|StripeLiveDisabledEvent} type
|
|
82
|
-
*
|
|
83
|
-
* @returns {Promise<void>}
|
|
84
|
-
*/
|
|
85
|
-
async #handleStripeEvent(type) {
|
|
86
|
-
const eventName = type === StripeLiveDisabledEvent ? 'Stripe Live Disabled' : 'Stripe Live Enabled';
|
|
87
|
-
|
|
88
|
-
try {
|
|
89
|
-
this.#analytics.track(Object.assign(this.#trackDefaults, {}, {event: this.#prefix + eventName}));
|
|
90
|
-
} catch (err) {
|
|
91
|
-
this.#logging.error(err);
|
|
92
|
-
this.#exceptionHandler.captureException(err);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
subscribeToEvents() {
|
|
97
|
-
this.#DomainEvents.subscribe(MilestoneCreatedEvent, async (event) => {
|
|
98
|
-
await this.#handleMilestoneCreatedEvent(event);
|
|
99
|
-
});
|
|
100
|
-
|
|
101
|
-
this.#DomainEvents.subscribe(StripeLiveEnabledEvent, async () => {
|
|
102
|
-
await this.#handleStripeEvent(StripeLiveEnabledEvent);
|
|
103
|
-
});
|
|
104
|
-
|
|
105
|
-
this.#DomainEvents.subscribe(StripeLiveDisabledEvent, async () => {
|
|
106
|
-
await this.#handleStripeEvent(StripeLiveDisabledEvent);
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
const Analytics = require('analytics-node');
|
|
2
|
-
const config = require('../../../shared/config');
|
|
3
|
-
const sentry = require('../../../shared/sentry');
|
|
4
|
-
const logging = require('@tryghost/logging');
|
|
5
|
-
const DomainEvents = require('@tryghost/domain-events');
|
|
6
|
-
|
|
7
|
-
const DomainEventsAnalytics = require('./DomainEventsAnalytics');
|
|
8
|
-
|
|
9
|
-
module.exports.init = function () {
|
|
10
|
-
const analytics = new Analytics(config.get('segment:key'));
|
|
11
|
-
const trackDefaults = config.get('segment:trackDefaults') || {};
|
|
12
|
-
const prefix = config.get('segment:prefix') || '';
|
|
13
|
-
|
|
14
|
-
const subscribeToDomainEvents = new DomainEventsAnalytics({
|
|
15
|
-
analytics,
|
|
16
|
-
trackDefaults,
|
|
17
|
-
prefix,
|
|
18
|
-
exceptionHandler: sentry,
|
|
19
|
-
DomainEvents,
|
|
20
|
-
logging
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
// Listen to domain events
|
|
24
|
-
subscribeToDomainEvents.subscribeToEvents();
|
|
25
|
-
};
|