ghost 5.92.0 → 5.94.0
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.94.0.tgz +0 -0
- package/components/tryghost-adapter-cache-redis-5.94.0.tgz +0 -0
- package/components/{tryghost-adapter-manager-5.92.0.tgz → tryghost-adapter-manager-5.94.0.tgz} +0 -0
- package/components/{tryghost-announcement-bar-settings-5.92.0.tgz → tryghost-announcement-bar-settings-5.94.0.tgz} +0 -0
- package/components/{tryghost-api-framework-5.92.0.tgz → tryghost-api-framework-5.94.0.tgz} +0 -0
- package/components/{tryghost-api-version-compatibility-service-5.92.0.tgz → tryghost-api-version-compatibility-service-5.94.0.tgz} +0 -0
- package/components/tryghost-audience-feedback-5.94.0.tgz +0 -0
- package/components/tryghost-bookshelf-repository-5.94.0.tgz +0 -0
- package/components/{tryghost-bootstrap-socket-5.92.0.tgz → tryghost-bootstrap-socket-5.94.0.tgz} +0 -0
- package/components/{tryghost-collections-5.92.0.tgz → tryghost-collections-5.94.0.tgz} +0 -0
- package/components/{tryghost-constants-5.92.0.tgz → tryghost-constants-5.94.0.tgz} +0 -0
- package/components/{tryghost-custom-theme-settings-service-5.92.0.tgz → tryghost-custom-theme-settings-service-5.94.0.tgz} +0 -0
- package/components/{tryghost-data-generator-5.92.0.tgz → tryghost-data-generator-5.94.0.tgz} +0 -0
- package/components/{tryghost-domain-events-5.92.0.tgz → tryghost-domain-events-5.94.0.tgz} +0 -0
- package/components/tryghost-donations-5.94.0.tgz +0 -0
- package/components/tryghost-dynamic-routing-events-5.94.0.tgz +0 -0
- package/components/tryghost-email-addresses-5.94.0.tgz +0 -0
- package/components/tryghost-email-analytics-provider-mailgun-5.94.0.tgz +0 -0
- package/components/tryghost-email-analytics-service-5.94.0.tgz +0 -0
- package/components/{tryghost-email-content-generator-5.92.0.tgz → tryghost-email-content-generator-5.94.0.tgz} +0 -0
- package/components/{tryghost-email-events-5.92.0.tgz → tryghost-email-events-5.94.0.tgz} +0 -0
- package/components/tryghost-email-service-5.94.0.tgz +0 -0
- package/components/tryghost-email-suppression-list-5.94.0.tgz +0 -0
- package/components/tryghost-express-dynamic-redirects-5.94.0.tgz +0 -0
- package/components/{tryghost-external-media-inliner-5.92.0.tgz → tryghost-external-media-inliner-5.94.0.tgz} +0 -0
- package/components/tryghost-extract-api-key-5.94.0.tgz +0 -0
- package/components/tryghost-ghost-5.94.0.tgz +0 -0
- package/components/tryghost-html-to-plaintext-5.94.0.tgz +0 -0
- package/components/{tryghost-i18n-5.92.0.tgz → tryghost-i18n-5.94.0.tgz} +0 -0
- package/components/{tryghost-importer-handler-content-files-5.92.0.tgz → tryghost-importer-handler-content-files-5.94.0.tgz} +0 -0
- package/components/{tryghost-importer-revue-5.92.0.tgz → tryghost-importer-revue-5.94.0.tgz} +0 -0
- package/components/tryghost-in-memory-repository-5.94.0.tgz +0 -0
- package/components/{tryghost-job-manager-5.92.0.tgz → tryghost-job-manager-5.94.0.tgz} +0 -0
- package/components/{tryghost-link-redirects-5.92.0.tgz → tryghost-link-redirects-5.94.0.tgz} +0 -0
- package/components/tryghost-link-replacer-5.94.0.tgz +0 -0
- package/components/{tryghost-link-tracking-5.92.0.tgz → tryghost-link-tracking-5.94.0.tgz} +0 -0
- package/components/{tryghost-magic-link-5.92.0.tgz → tryghost-magic-link-5.94.0.tgz} +0 -0
- package/components/{tryghost-mail-events-5.92.0.tgz → tryghost-mail-events-5.94.0.tgz} +0 -0
- package/components/tryghost-mailgun-client-5.94.0.tgz +0 -0
- package/components/{tryghost-member-attribution-5.92.0.tgz → tryghost-member-attribution-5.94.0.tgz} +0 -0
- package/components/{tryghost-member-events-5.92.0.tgz → tryghost-member-events-5.94.0.tgz} +0 -0
- package/components/{tryghost-members-api-5.92.0.tgz → tryghost-members-api-5.94.0.tgz} +0 -0
- package/components/{tryghost-members-csv-5.92.0.tgz → tryghost-members-csv-5.94.0.tgz} +0 -0
- package/components/{tryghost-members-events-service-5.92.0.tgz → tryghost-members-events-service-5.94.0.tgz} +0 -0
- package/components/{tryghost-members-importer-5.92.0.tgz → tryghost-members-importer-5.94.0.tgz} +0 -0
- package/components/tryghost-members-offers-5.94.0.tgz +0 -0
- package/components/tryghost-members-payments-5.94.0.tgz +0 -0
- package/components/{tryghost-members-ssr-5.92.0.tgz → tryghost-members-ssr-5.94.0.tgz} +0 -0
- package/components/{tryghost-members-stripe-service-5.92.0.tgz → tryghost-members-stripe-service-5.94.0.tgz} +0 -0
- package/components/{tryghost-mentions-email-report-5.92.0.tgz → tryghost-mentions-email-report-5.94.0.tgz} +0 -0
- package/components/tryghost-milestones-5.94.0.tgz +0 -0
- package/components/tryghost-minifier-5.94.0.tgz +0 -0
- package/components/tryghost-model-to-domain-event-interceptor-5.94.0.tgz +0 -0
- package/components/tryghost-mw-api-version-mismatch-5.94.0.tgz +0 -0
- package/components/{tryghost-mw-cache-control-5.92.0.tgz → tryghost-mw-cache-control-5.94.0.tgz} +0 -0
- package/components/tryghost-mw-error-handler-5.94.0.tgz +0 -0
- package/components/tryghost-mw-session-from-token-5.94.0.tgz +0 -0
- package/components/tryghost-mw-update-user-last-seen-5.94.0.tgz +0 -0
- package/components/tryghost-mw-version-match-5.94.0.tgz +0 -0
- package/components/{tryghost-mw-vhost-5.92.0.tgz → tryghost-mw-vhost-5.94.0.tgz} +0 -0
- package/components/tryghost-nql-filter-expansions-5.94.0.tgz +0 -0
- package/components/tryghost-oembed-service-5.94.0.tgz +0 -0
- package/components/{tryghost-package-json-5.92.0.tgz → tryghost-package-json-5.94.0.tgz} +0 -0
- package/components/tryghost-post-events-5.94.0.tgz +0 -0
- package/components/tryghost-post-revisions-5.94.0.tgz +0 -0
- package/components/{tryghost-posts-service-5.92.0.tgz → tryghost-posts-service-5.94.0.tgz} +0 -0
- package/components/{tryghost-recommendations-5.92.0.tgz → tryghost-recommendations-5.94.0.tgz} +0 -0
- package/components/tryghost-referrers-5.94.0.tgz +0 -0
- package/components/{tryghost-security-5.92.0.tgz → tryghost-security-5.94.0.tgz} +0 -0
- package/components/{tryghost-session-service-5.92.0.tgz → tryghost-session-service-5.94.0.tgz} +0 -0
- package/components/{tryghost-settings-path-manager-5.92.0.tgz → tryghost-settings-path-manager-5.94.0.tgz} +0 -0
- package/components/{tryghost-slack-notifications-5.92.0.tgz → tryghost-slack-notifications-5.94.0.tgz} +0 -0
- package/components/{tryghost-staff-service-5.92.0.tgz → tryghost-staff-service-5.94.0.tgz} +0 -0
- package/components/tryghost-stats-service-5.94.0.tgz +0 -0
- package/components/tryghost-tiers-5.94.0.tgz +0 -0
- package/components/{tryghost-update-check-service-5.92.0.tgz → tryghost-update-check-service-5.94.0.tgz} +0 -0
- package/components/{tryghost-verification-trigger-5.92.0.tgz → tryghost-verification-trigger-5.94.0.tgz} +0 -0
- package/components/{tryghost-version-notifications-data-service-5.92.0.tgz → tryghost-version-notifications-data-service-5.94.0.tgz} +0 -0
- package/components/tryghost-webmentions-5.94.0.tgz +0 -0
- package/core/app.js +22 -0
- package/core/built/admin/assets/admin-x-activitypub/admin-x-activitypub.js +2 -2
- package/core/built/admin/assets/admin-x-activitypub/{index-5eac6af1.mjs → index-51277f76.mjs} +3000 -2661
- package/core/built/admin/assets/admin-x-activitypub/modals-c85985ad.mjs +815 -0
- package/core/built/admin/assets/{chunk.524.1bc6b183876a00383f90.js → chunk.524.b9da8e9c62fc112baf2b.js} +5 -5
- package/core/built/admin/assets/{chunk.582.9682daf3be0962298c43.js → chunk.582.27ddbcbd7a6e7a439db8.js} +6 -6
- package/core/built/admin/assets/{chunk.217.2bd17b550359ea58831b.js → chunk.785.78610bd253a9e2419ec9.js} +27 -20
- package/core/built/admin/assets/{ghost-acdb9966c24d49e97ac26215cb4933e1.js → ghost-535088daf62c8cbea78a012bb6bbafc6.js} +866 -827
- package/core/built/admin/assets/ghost-d1c51d3a2d840dda5aa7b4ffe6057756.css +1 -0
- package/core/built/admin/assets/ghost-dark-98b3a7e593292a7cb410609e17727a3c.css +1 -0
- package/core/built/admin/assets/koenig-lexical/koenig-lexical.js +207 -197
- package/core/built/admin/assets/koenig-lexical/koenig-lexical.umd.js +26 -26
- package/core/built/admin/assets/{vendor-bff75d127fcf4a75c8a83b473bdb308f.js → vendor-649dc64bfd9ecc1bd7361b53680dfdc2.js} +19 -17
- package/core/built/admin/index.html +6 -6
- package/core/server/data/migrations/versions/5.93/2024-09-03-18-51-01-update-stripe-prices-nickname-length.js +19 -0
- package/core/server/data/migrations/versions/5.94/2024-09-03-20-09-40-null-analytics-jobs-timings.js +20 -0
- package/core/server/data/schema/schema.js +1 -1
- package/core/server/services/email-analytics/EmailAnalyticsServiceWrapper.js +49 -11
- package/core/server/services/email-analytics/lib/queries.js +154 -30
- package/core/server/services/oembed/service.js +2 -1
- package/package.json +150 -150
- package/yarn.lock +48 -58
- package/components/tryghost-adapter-cache-memory-ttl-5.92.0.tgz +0 -0
- package/components/tryghost-adapter-cache-redis-5.92.0.tgz +0 -0
- package/components/tryghost-audience-feedback-5.92.0.tgz +0 -0
- package/components/tryghost-bookshelf-repository-5.92.0.tgz +0 -0
- package/components/tryghost-donations-5.92.0.tgz +0 -0
- package/components/tryghost-dynamic-routing-events-5.92.0.tgz +0 -0
- package/components/tryghost-email-addresses-5.92.0.tgz +0 -0
- package/components/tryghost-email-analytics-provider-mailgun-5.92.0.tgz +0 -0
- package/components/tryghost-email-analytics-service-5.92.0.tgz +0 -0
- package/components/tryghost-email-service-5.92.0.tgz +0 -0
- package/components/tryghost-email-suppression-list-5.92.0.tgz +0 -0
- package/components/tryghost-express-dynamic-redirects-5.92.0.tgz +0 -0
- package/components/tryghost-extract-api-key-5.92.0.tgz +0 -0
- package/components/tryghost-ghost-5.92.0.tgz +0 -0
- package/components/tryghost-html-to-plaintext-5.92.0.tgz +0 -0
- package/components/tryghost-in-memory-repository-5.92.0.tgz +0 -0
- package/components/tryghost-link-replacer-5.92.0.tgz +0 -0
- package/components/tryghost-mailgun-client-5.92.0.tgz +0 -0
- package/components/tryghost-members-offers-5.92.0.tgz +0 -0
- package/components/tryghost-members-payments-5.92.0.tgz +0 -0
- package/components/tryghost-milestones-5.92.0.tgz +0 -0
- package/components/tryghost-minifier-5.92.0.tgz +0 -0
- package/components/tryghost-model-to-domain-event-interceptor-5.92.0.tgz +0 -0
- package/components/tryghost-mw-api-version-mismatch-5.92.0.tgz +0 -0
- package/components/tryghost-mw-error-handler-5.92.0.tgz +0 -0
- package/components/tryghost-mw-session-from-token-5.92.0.tgz +0 -0
- package/components/tryghost-mw-update-user-last-seen-5.92.0.tgz +0 -0
- package/components/tryghost-mw-version-match-5.92.0.tgz +0 -0
- package/components/tryghost-nql-filter-expansions-5.92.0.tgz +0 -0
- package/components/tryghost-oembed-service-5.92.0.tgz +0 -0
- package/components/tryghost-post-events-5.92.0.tgz +0 -0
- package/components/tryghost-post-revisions-5.92.0.tgz +0 -0
- package/components/tryghost-referrers-5.92.0.tgz +0 -0
- package/components/tryghost-stats-service-5.92.0.tgz +0 -0
- package/components/tryghost-tiers-5.92.0.tgz +0 -0
- package/components/tryghost-webmentions-5.92.0.tgz +0 -0
- package/core/built/admin/assets/admin-x-activitypub/modals-62a088d9.mjs +0 -965
- package/core/built/admin/assets/ghost-8c20f019d522f17d318e799568924958.css +0 -1
- package/core/built/admin/assets/ghost-dark-b27530aaada81101d641ff1ca5f5df6b.css +0 -1
- /package/core/built/admin/assets/{chunk.217.2bd17b550359ea58831b.js.LICENSE.txt → chunk.785.78610bd253a9e2419ec9.js.LICENSE.txt} +0 -0
|
Binary file
|
|
Binary file
|
package/components/{tryghost-adapter-manager-5.92.0.tgz → tryghost-adapter-manager-5.94.0.tgz}
RENAMED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/components/{tryghost-bootstrap-socket-5.92.0.tgz → tryghost-bootstrap-socket-5.94.0.tgz}
RENAMED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/components/{tryghost-data-generator-5.92.0.tgz → tryghost-data-generator-5.94.0.tgz}
RENAMED
|
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
|
package/components/{tryghost-importer-revue-5.92.0.tgz → tryghost-importer-revue-5.94.0.tgz}
RENAMED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/components/{tryghost-link-redirects-5.92.0.tgz → tryghost-link-redirects-5.94.0.tgz}
RENAMED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/components/{tryghost-member-attribution-5.92.0.tgz → tryghost-member-attribution-5.94.0.tgz}
RENAMED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/components/{tryghost-members-importer-5.92.0.tgz → tryghost-members-importer-5.94.0.tgz}
RENAMED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/components/{tryghost-mw-cache-control-5.92.0.tgz → tryghost-mw-cache-control-5.94.0.tgz}
RENAMED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/components/{tryghost-recommendations-5.92.0.tgz → tryghost-recommendations-5.94.0.tgz}
RENAMED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/components/{tryghost-session-service-5.92.0.tgz → tryghost-session-service-5.94.0.tgz}
RENAMED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/core/app.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const sentry = require('./shared/sentry');
|
|
2
2
|
const express = require('./shared/express');
|
|
3
3
|
const config = require('./shared/config');
|
|
4
|
+
const logging = require('@tryghost/logging');
|
|
4
5
|
const urlService = require('./server/services/url');
|
|
5
6
|
|
|
6
7
|
const fs = require('fs');
|
|
@@ -27,12 +28,33 @@ const maintenanceMiddleware = function maintenanceMiddleware(req, res, next) {
|
|
|
27
28
|
fs.createReadStream(path.resolve(__dirname, './server/views/maintenance.html')).pipe(res);
|
|
28
29
|
};
|
|
29
30
|
|
|
31
|
+
// Used by Ghost (Pro) to ensure that requests cannot be served by the wrong site
|
|
32
|
+
const siteIdMiddleware = function siteIdMiddleware(req, res, next) {
|
|
33
|
+
const configSiteId = config.get('hostSettings:siteId');
|
|
34
|
+
const headerSiteId = req.headers['x-site-id'];
|
|
35
|
+
|
|
36
|
+
if (`${configSiteId}` === `${headerSiteId}`) {
|
|
37
|
+
return next();
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
logging.warn(`Mismatched site id (expected ${configSiteId}, got ${headerSiteId})`);
|
|
41
|
+
|
|
42
|
+
res.set({
|
|
43
|
+
'Cache-Control': 'no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0'
|
|
44
|
+
});
|
|
45
|
+
res.writeHead(500);
|
|
46
|
+
res.end();
|
|
47
|
+
};
|
|
48
|
+
|
|
30
49
|
const rootApp = () => {
|
|
31
50
|
const app = express('root');
|
|
32
51
|
app.use(sentry.requestHandler);
|
|
33
52
|
if (config.get('sentry')?.tracing?.enabled === true) {
|
|
34
53
|
app.use(sentry.tracingHandler);
|
|
35
54
|
}
|
|
55
|
+
if (config.get('hostSettings:siteId')) {
|
|
56
|
+
app.use(siteIdMiddleware);
|
|
57
|
+
}
|
|
36
58
|
app.enable('maintenance');
|
|
37
59
|
app.use(maintenanceMiddleware);
|
|
38
60
|
|