ghost 5.93.0 → 5.94.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.94.1.tgz +0 -0
- package/components/tryghost-adapter-cache-redis-5.94.1.tgz +0 -0
- package/components/{tryghost-adapter-manager-5.93.0.tgz → tryghost-adapter-manager-5.94.1.tgz} +0 -0
- package/components/tryghost-announcement-bar-settings-5.94.1.tgz +0 -0
- package/components/{tryghost-api-framework-5.93.0.tgz → tryghost-api-framework-5.94.1.tgz} +0 -0
- package/components/{tryghost-api-version-compatibility-service-5.93.0.tgz → tryghost-api-version-compatibility-service-5.94.1.tgz} +0 -0
- package/components/tryghost-audience-feedback-5.94.1.tgz +0 -0
- package/components/tryghost-bookshelf-repository-5.94.1.tgz +0 -0
- package/components/tryghost-bootstrap-socket-5.94.1.tgz +0 -0
- package/components/tryghost-collections-5.94.1.tgz +0 -0
- package/components/tryghost-constants-5.94.1.tgz +0 -0
- package/components/{tryghost-custom-theme-settings-service-5.93.0.tgz → tryghost-custom-theme-settings-service-5.94.1.tgz} +0 -0
- package/components/{tryghost-data-generator-5.93.0.tgz → tryghost-data-generator-5.94.1.tgz} +0 -0
- package/components/tryghost-domain-events-5.94.1.tgz +0 -0
- package/components/tryghost-donations-5.94.1.tgz +0 -0
- package/components/tryghost-dynamic-routing-events-5.94.1.tgz +0 -0
- package/components/tryghost-email-addresses-5.94.1.tgz +0 -0
- package/components/tryghost-email-analytics-provider-mailgun-5.94.1.tgz +0 -0
- package/components/tryghost-email-analytics-service-5.94.1.tgz +0 -0
- package/components/{tryghost-email-content-generator-5.93.0.tgz → tryghost-email-content-generator-5.94.1.tgz} +0 -0
- package/components/tryghost-email-events-5.94.1.tgz +0 -0
- package/components/tryghost-email-service-5.94.1.tgz +0 -0
- package/components/tryghost-email-suppression-list-5.94.1.tgz +0 -0
- package/components/tryghost-express-dynamic-redirects-5.94.1.tgz +0 -0
- package/components/tryghost-external-media-inliner-5.94.1.tgz +0 -0
- package/components/tryghost-extract-api-key-5.94.1.tgz +0 -0
- package/components/tryghost-ghost-5.94.1.tgz +0 -0
- package/components/tryghost-html-to-plaintext-5.94.1.tgz +0 -0
- package/components/tryghost-i18n-5.94.1.tgz +0 -0
- package/components/tryghost-importer-handler-content-files-5.94.1.tgz +0 -0
- package/components/{tryghost-importer-revue-5.93.0.tgz → tryghost-importer-revue-5.94.1.tgz} +0 -0
- package/components/tryghost-in-memory-repository-5.94.1.tgz +0 -0
- package/components/{tryghost-job-manager-5.93.0.tgz → tryghost-job-manager-5.94.1.tgz} +0 -0
- package/components/tryghost-link-redirects-5.94.1.tgz +0 -0
- package/components/tryghost-link-replacer-5.94.1.tgz +0 -0
- package/components/{tryghost-link-tracking-5.93.0.tgz → tryghost-link-tracking-5.94.1.tgz} +0 -0
- package/components/{tryghost-magic-link-5.93.0.tgz → tryghost-magic-link-5.94.1.tgz} +0 -0
- package/components/{tryghost-mail-events-5.93.0.tgz → tryghost-mail-events-5.94.1.tgz} +0 -0
- package/components/tryghost-mailgun-client-5.94.1.tgz +0 -0
- package/components/{tryghost-member-attribution-5.93.0.tgz → tryghost-member-attribution-5.94.1.tgz} +0 -0
- package/components/{tryghost-member-events-5.93.0.tgz → tryghost-member-events-5.94.1.tgz} +0 -0
- package/components/tryghost-members-api-5.94.1.tgz +0 -0
- package/components/tryghost-members-csv-5.94.1.tgz +0 -0
- package/components/tryghost-members-events-service-5.94.1.tgz +0 -0
- package/components/{tryghost-members-importer-5.93.0.tgz → tryghost-members-importer-5.94.1.tgz} +0 -0
- package/components/tryghost-members-offers-5.94.1.tgz +0 -0
- package/components/tryghost-members-payments-5.94.1.tgz +0 -0
- package/components/tryghost-members-ssr-5.94.1.tgz +0 -0
- package/components/tryghost-members-stripe-service-5.94.1.tgz +0 -0
- package/components/tryghost-mentions-email-report-5.94.1.tgz +0 -0
- package/components/{tryghost-milestones-5.93.0.tgz → tryghost-milestones-5.94.1.tgz} +0 -0
- package/components/tryghost-minifier-5.94.1.tgz +0 -0
- package/components/tryghost-model-to-domain-event-interceptor-5.94.1.tgz +0 -0
- package/components/tryghost-mw-api-version-mismatch-5.94.1.tgz +0 -0
- package/components/tryghost-mw-cache-control-5.94.1.tgz +0 -0
- package/components/tryghost-mw-error-handler-5.94.1.tgz +0 -0
- package/components/tryghost-mw-session-from-token-5.94.1.tgz +0 -0
- package/components/tryghost-mw-update-user-last-seen-5.94.1.tgz +0 -0
- package/components/tryghost-mw-version-match-5.94.1.tgz +0 -0
- package/components/tryghost-mw-vhost-5.94.1.tgz +0 -0
- package/components/tryghost-nql-filter-expansions-5.94.1.tgz +0 -0
- package/components/tryghost-oembed-service-5.94.1.tgz +0 -0
- package/components/tryghost-package-json-5.94.1.tgz +0 -0
- package/components/tryghost-post-events-5.94.1.tgz +0 -0
- package/components/{tryghost-post-revisions-5.93.0.tgz → tryghost-post-revisions-5.94.1.tgz} +0 -0
- package/components/{tryghost-posts-service-5.93.0.tgz → tryghost-posts-service-5.94.1.tgz} +0 -0
- package/components/tryghost-recommendations-5.94.1.tgz +0 -0
- package/components/tryghost-referrers-5.94.1.tgz +0 -0
- package/components/{tryghost-security-5.93.0.tgz → tryghost-security-5.94.1.tgz} +0 -0
- package/components/tryghost-session-service-5.94.1.tgz +0 -0
- package/components/{tryghost-settings-path-manager-5.93.0.tgz → tryghost-settings-path-manager-5.94.1.tgz} +0 -0
- package/components/tryghost-slack-notifications-5.94.1.tgz +0 -0
- package/components/{tryghost-staff-service-5.93.0.tgz → tryghost-staff-service-5.94.1.tgz} +0 -0
- package/components/tryghost-stats-service-5.94.1.tgz +0 -0
- package/components/tryghost-tiers-5.94.1.tgz +0 -0
- package/components/{tryghost-update-check-service-5.93.0.tgz → tryghost-update-check-service-5.94.1.tgz} +0 -0
- package/components/{tryghost-verification-trigger-5.93.0.tgz → tryghost-verification-trigger-5.94.1.tgz} +0 -0
- package/components/tryghost-version-notifications-data-service-5.94.1.tgz +0 -0
- package/components/tryghost-webmentions-5.94.1.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-bf902976.mjs} +4084 -3598
- package/core/built/admin/assets/admin-x-activitypub/modals-b1995907.mjs +815 -0
- package/core/built/admin/assets/admin-x-demo/admin-x-demo.js +1 -1
- package/core/built/admin/assets/admin-x-demo/{index-bfbb9783.mjs → index-b29b8d8c.mjs} +812 -808
- package/core/built/admin/assets/admin-x-demo/{modals-334b160e.mjs → modals-7ad4170c.mjs} +2 -2
- package/core/built/admin/assets/admin-x-settings/{CodeEditorView-6bb10ebd.mjs → CodeEditorView-6983f018.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-52f09138.mjs → index-4d470f8e.mjs} +2 -2
- package/core/built/admin/assets/admin-x-settings/{index-a57eb33d.mjs → index-b62da964.mjs} +1900 -1892
- package/core/built/admin/assets/admin-x-settings/{modals-07c66c7d.mjs → modals-3083b8bf.mjs} +115 -114
- package/core/built/admin/assets/{chunk.524.b8e3b4aa87fcd581b137.js → chunk.524.846f0087859e8da09f30.js} +5 -5
- package/core/built/admin/assets/{chunk.582.a3c9ecefa2618454961c.js → chunk.582.f57480cae0723ba6ce02.js} +6 -6
- package/core/built/admin/assets/{chunk.217.2bd17b550359ea58831b.js → chunk.785.1cf095d594cd27c9036e.js} +78 -63
- package/core/built/admin/assets/{ghost-9767eb06282ff32f4c204945b30f2ee5.js → ghost-492e8f36dfc460b4f2228259c27a1711.js} +904 -857
- package/core/built/admin/assets/ghost-81adcc22c7836b40b08a662812319e01.css +1 -0
- package/core/built/admin/assets/ghost-dark-88c10b0aa259d4b666d6a98174c6f5bd.css +1 -0
- package/core/built/admin/assets/koenig-lexical/koenig-lexical.js +201 -194
- package/core/built/admin/assets/koenig-lexical/koenig-lexical.umd.js +25 -25
- 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/importer/import-manager.js +2 -2
- package/core/server/data/importer/importers/data/PostsImporter.js +2 -2
- package/core/server/data/migrations/versions/4.46/2022-04-13-12-58-fill-uuid-for-newsletters.js +2 -2
- package/core/server/data/migrations/versions/4.46/2022-04-13-13-00-add-default-newsletter.js +2 -2
- package/core/server/data/migrations/versions/5.94/2024-09-03-20-09-40-null-analytics-jobs-timings.js +20 -0
- package/core/server/models/email.js +2 -2
- package/core/server/models/member.js +3 -3
- package/core/server/models/newsletter.js +2 -2
- package/core/server/models/post.js +2 -2
- package/core/server/models/settings.js +1 -2
- 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/members-events/index.js +20 -2
- package/core/server/services/oembed/service.js +2 -1
- package/core/server/web/parent/middleware/request-id.js +2 -2
- package/core/shared/labs.js +2 -1
- package/core/shared/settings-cache/public.js +2 -1
- package/package.json +154 -155
- package/yarn.lock +277 -166
- package/components/tryghost-adapter-cache-memory-ttl-5.93.0.tgz +0 -0
- package/components/tryghost-adapter-cache-redis-5.93.0.tgz +0 -0
- package/components/tryghost-announcement-bar-settings-5.93.0.tgz +0 -0
- package/components/tryghost-audience-feedback-5.93.0.tgz +0 -0
- package/components/tryghost-bookshelf-repository-5.93.0.tgz +0 -0
- package/components/tryghost-bootstrap-socket-5.93.0.tgz +0 -0
- package/components/tryghost-collections-5.93.0.tgz +0 -0
- package/components/tryghost-constants-5.93.0.tgz +0 -0
- package/components/tryghost-domain-events-5.93.0.tgz +0 -0
- package/components/tryghost-donations-5.93.0.tgz +0 -0
- package/components/tryghost-dynamic-routing-events-5.93.0.tgz +0 -0
- package/components/tryghost-email-addresses-5.93.0.tgz +0 -0
- package/components/tryghost-email-analytics-provider-mailgun-5.93.0.tgz +0 -0
- package/components/tryghost-email-analytics-service-5.93.0.tgz +0 -0
- package/components/tryghost-email-events-5.93.0.tgz +0 -0
- package/components/tryghost-email-service-5.93.0.tgz +0 -0
- package/components/tryghost-email-suppression-list-5.93.0.tgz +0 -0
- package/components/tryghost-express-dynamic-redirects-5.93.0.tgz +0 -0
- package/components/tryghost-external-media-inliner-5.93.0.tgz +0 -0
- package/components/tryghost-extract-api-key-5.93.0.tgz +0 -0
- package/components/tryghost-ghost-5.93.0.tgz +0 -0
- package/components/tryghost-html-to-plaintext-5.93.0.tgz +0 -0
- package/components/tryghost-i18n-5.93.0.tgz +0 -0
- package/components/tryghost-importer-handler-content-files-5.93.0.tgz +0 -0
- package/components/tryghost-in-memory-repository-5.93.0.tgz +0 -0
- package/components/tryghost-link-redirects-5.93.0.tgz +0 -0
- package/components/tryghost-link-replacer-5.93.0.tgz +0 -0
- package/components/tryghost-mailgun-client-5.93.0.tgz +0 -0
- package/components/tryghost-members-api-5.93.0.tgz +0 -0
- package/components/tryghost-members-csv-5.93.0.tgz +0 -0
- package/components/tryghost-members-events-service-5.93.0.tgz +0 -0
- package/components/tryghost-members-offers-5.93.0.tgz +0 -0
- package/components/tryghost-members-payments-5.93.0.tgz +0 -0
- package/components/tryghost-members-ssr-5.93.0.tgz +0 -0
- package/components/tryghost-members-stripe-service-5.93.0.tgz +0 -0
- package/components/tryghost-mentions-email-report-5.93.0.tgz +0 -0
- package/components/tryghost-minifier-5.93.0.tgz +0 -0
- package/components/tryghost-model-to-domain-event-interceptor-5.93.0.tgz +0 -0
- package/components/tryghost-mw-api-version-mismatch-5.93.0.tgz +0 -0
- package/components/tryghost-mw-cache-control-5.93.0.tgz +0 -0
- package/components/tryghost-mw-error-handler-5.93.0.tgz +0 -0
- package/components/tryghost-mw-session-from-token-5.93.0.tgz +0 -0
- package/components/tryghost-mw-update-user-last-seen-5.93.0.tgz +0 -0
- package/components/tryghost-mw-version-match-5.93.0.tgz +0 -0
- package/components/tryghost-mw-vhost-5.93.0.tgz +0 -0
- package/components/tryghost-nql-filter-expansions-5.93.0.tgz +0 -0
- package/components/tryghost-oembed-service-5.93.0.tgz +0 -0
- package/components/tryghost-package-json-5.93.0.tgz +0 -0
- package/components/tryghost-post-events-5.93.0.tgz +0 -0
- package/components/tryghost-recommendations-5.93.0.tgz +0 -0
- package/components/tryghost-referrers-5.93.0.tgz +0 -0
- package/components/tryghost-session-service-5.93.0.tgz +0 -0
- package/components/tryghost-slack-notifications-5.93.0.tgz +0 -0
- package/components/tryghost-stats-service-5.93.0.tgz +0 -0
- package/components/tryghost-tiers-5.93.0.tgz +0 -0
- package/components/tryghost-version-notifications-data-service-5.93.0.tgz +0 -0
- package/components/tryghost-webmentions-5.93.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.1cf095d594cd27c9036e.js.LICENSE.txt} +0 -0
|
Binary file
|
|
Binary file
|
package/components/{tryghost-adapter-manager-5.93.0.tgz → tryghost-adapter-manager-5.94.1.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-data-generator-5.93.0.tgz → tryghost-data-generator-5.94.1.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.93.0.tgz → tryghost-importer-revue-5.94.1.tgz}
RENAMED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/components/{tryghost-member-attribution-5.93.0.tgz → tryghost-member-attribution-5.94.1.tgz}
RENAMED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/components/{tryghost-members-importer-5.93.0.tgz → tryghost-members-importer-5.94.1.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
|
|
Binary file
|
|
Binary file
|
package/components/{tryghost-post-revisions-5.93.0.tgz → tryghost-post-revisions-5.94.1.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
|
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
|
|