ghost 5.96.0 → 5.96.2
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.96.2.tgz +0 -0
- package/components/{tryghost-adapter-cache-redis-5.96.0.tgz → tryghost-adapter-cache-redis-5.96.2.tgz} +0 -0
- package/components/{tryghost-adapter-manager-5.96.0.tgz → tryghost-adapter-manager-5.96.2.tgz} +0 -0
- package/components/tryghost-announcement-bar-settings-5.96.2.tgz +0 -0
- package/components/{tryghost-api-framework-5.96.0.tgz → tryghost-api-framework-5.96.2.tgz} +0 -0
- package/components/{tryghost-api-version-compatibility-service-5.96.0.tgz → tryghost-api-version-compatibility-service-5.96.2.tgz} +0 -0
- package/components/{tryghost-audience-feedback-5.96.0.tgz → tryghost-audience-feedback-5.96.2.tgz} +0 -0
- package/components/tryghost-bookshelf-repository-5.96.2.tgz +0 -0
- package/components/{tryghost-bootstrap-socket-5.96.0.tgz → tryghost-bootstrap-socket-5.96.2.tgz} +0 -0
- package/components/tryghost-collections-5.96.2.tgz +0 -0
- package/components/tryghost-constants-5.96.2.tgz +0 -0
- package/components/{tryghost-custom-theme-settings-service-5.96.0.tgz → tryghost-custom-theme-settings-service-5.96.2.tgz} +0 -0
- package/components/{tryghost-data-generator-5.96.0.tgz → tryghost-data-generator-5.96.2.tgz} +0 -0
- package/components/tryghost-domain-events-5.96.2.tgz +0 -0
- package/components/{tryghost-donations-5.96.0.tgz → tryghost-donations-5.96.2.tgz} +0 -0
- package/components/tryghost-dynamic-routing-events-5.96.2.tgz +0 -0
- package/components/tryghost-email-addresses-5.96.2.tgz +0 -0
- package/components/tryghost-email-analytics-provider-mailgun-5.96.2.tgz +0 -0
- package/components/tryghost-email-analytics-service-5.96.2.tgz +0 -0
- package/components/{tryghost-email-content-generator-5.96.0.tgz → tryghost-email-content-generator-5.96.2.tgz} +0 -0
- package/components/tryghost-email-events-5.96.2.tgz +0 -0
- package/components/tryghost-email-service-5.96.2.tgz +0 -0
- package/components/tryghost-email-suppression-list-5.96.2.tgz +0 -0
- package/components/tryghost-express-dynamic-redirects-5.96.2.tgz +0 -0
- package/components/tryghost-external-media-inliner-5.96.2.tgz +0 -0
- package/components/tryghost-extract-api-key-5.96.2.tgz +0 -0
- package/components/tryghost-ghost-5.96.2.tgz +0 -0
- package/components/{tryghost-html-to-plaintext-5.96.0.tgz → tryghost-html-to-plaintext-5.96.2.tgz} +0 -0
- package/components/tryghost-i18n-5.96.2.tgz +0 -0
- package/components/tryghost-importer-handler-content-files-5.96.2.tgz +0 -0
- package/components/tryghost-importer-revue-5.96.2.tgz +0 -0
- package/components/tryghost-in-memory-repository-5.96.2.tgz +0 -0
- package/components/{tryghost-job-manager-5.96.0.tgz → tryghost-job-manager-5.96.2.tgz} +0 -0
- package/components/tryghost-link-redirects-5.96.2.tgz +0 -0
- package/components/{tryghost-link-replacer-5.96.0.tgz → tryghost-link-replacer-5.96.2.tgz} +0 -0
- package/components/{tryghost-link-tracking-5.96.0.tgz → tryghost-link-tracking-5.96.2.tgz} +0 -0
- package/components/{tryghost-magic-link-5.96.0.tgz → tryghost-magic-link-5.96.2.tgz} +0 -0
- package/components/{tryghost-mail-events-5.96.0.tgz → tryghost-mail-events-5.96.2.tgz} +0 -0
- package/components/{tryghost-mailgun-client-5.96.0.tgz → tryghost-mailgun-client-5.96.2.tgz} +0 -0
- package/components/{tryghost-member-attribution-5.96.0.tgz → tryghost-member-attribution-5.96.2.tgz} +0 -0
- package/components/{tryghost-member-events-5.96.0.tgz → tryghost-member-events-5.96.2.tgz} +0 -0
- package/components/{tryghost-members-api-5.96.0.tgz → tryghost-members-api-5.96.2.tgz} +0 -0
- package/components/{tryghost-members-csv-5.96.0.tgz → tryghost-members-csv-5.96.2.tgz} +0 -0
- package/components/{tryghost-members-events-service-5.96.0.tgz → tryghost-members-events-service-5.96.2.tgz} +0 -0
- package/components/{tryghost-members-importer-5.96.0.tgz → tryghost-members-importer-5.96.2.tgz} +0 -0
- package/components/tryghost-members-offers-5.96.2.tgz +0 -0
- package/components/tryghost-members-payments-5.96.2.tgz +0 -0
- package/components/tryghost-members-ssr-5.96.2.tgz +0 -0
- package/components/tryghost-members-stripe-service-5.96.2.tgz +0 -0
- package/components/{tryghost-mentions-email-report-5.96.0.tgz → tryghost-mentions-email-report-5.96.2.tgz} +0 -0
- package/components/tryghost-metrics-server-5.96.2.tgz +0 -0
- package/components/{tryghost-milestones-5.96.0.tgz → tryghost-milestones-5.96.2.tgz} +0 -0
- package/components/tryghost-minifier-5.96.2.tgz +0 -0
- package/components/tryghost-model-to-domain-event-interceptor-5.96.2.tgz +0 -0
- package/components/{tryghost-mw-api-version-mismatch-5.96.0.tgz → tryghost-mw-api-version-mismatch-5.96.2.tgz} +0 -0
- package/components/tryghost-mw-cache-control-5.96.2.tgz +0 -0
- package/components/tryghost-mw-error-handler-5.96.2.tgz +0 -0
- package/components/tryghost-mw-session-from-token-5.96.2.tgz +0 -0
- package/components/tryghost-mw-update-user-last-seen-5.96.2.tgz +0 -0
- package/components/tryghost-mw-version-match-5.96.2.tgz +0 -0
- package/components/tryghost-mw-vhost-5.96.2.tgz +0 -0
- package/components/tryghost-nql-filter-expansions-5.96.2.tgz +0 -0
- package/components/tryghost-oembed-service-5.96.2.tgz +0 -0
- package/components/{tryghost-package-json-5.96.0.tgz → tryghost-package-json-5.96.2.tgz} +0 -0
- package/components/tryghost-post-events-5.96.2.tgz +0 -0
- package/components/tryghost-post-revisions-5.96.2.tgz +0 -0
- package/components/{tryghost-posts-service-5.96.0.tgz → tryghost-posts-service-5.96.2.tgz} +0 -0
- package/components/tryghost-recommendations-5.96.2.tgz +0 -0
- package/components/tryghost-referrers-5.96.2.tgz +0 -0
- package/components/{tryghost-security-5.96.0.tgz → tryghost-security-5.96.2.tgz} +0 -0
- package/components/{tryghost-session-service-5.96.0.tgz → tryghost-session-service-5.96.2.tgz} +0 -0
- package/components/tryghost-settings-path-manager-5.96.2.tgz +0 -0
- package/components/tryghost-slack-notifications-5.96.2.tgz +0 -0
- package/components/{tryghost-staff-service-5.96.0.tgz → tryghost-staff-service-5.96.2.tgz} +0 -0
- package/components/{tryghost-stats-service-5.96.0.tgz → tryghost-stats-service-5.96.2.tgz} +0 -0
- package/components/{tryghost-tiers-5.96.0.tgz → tryghost-tiers-5.96.2.tgz} +0 -0
- package/components/tryghost-update-check-service-5.96.2.tgz +0 -0
- package/components/{tryghost-verification-trigger-5.96.0.tgz → tryghost-verification-trigger-5.96.2.tgz} +0 -0
- package/components/tryghost-version-notifications-data-service-5.96.2.tgz +0 -0
- package/components/tryghost-webmentions-5.96.2.tgz +0 -0
- package/core/bridge.js +11 -8
- package/core/built/admin/assets/admin-x-activitypub/admin-x-activitypub.js +2 -2
- package/core/built/admin/assets/admin-x-activitypub/{index-043cbe5c.mjs → index-def21e23.mjs} +1606 -1608
- package/core/built/admin/assets/admin-x-activitypub/{modals-39d50cfc.mjs → modals-09282c4e.mjs} +2 -2
- package/core/built/admin/assets/admin-x-settings/{CodeEditorView-ef508830.mjs → CodeEditorView-85a3642c.mjs} +2 -2
- package/core/built/admin/assets/admin-x-settings/admin-x-settings.js +1 -1
- package/core/built/admin/assets/admin-x-settings/{index-fb425884.mjs → index-ebbd8de9.mjs} +83 -90
- package/core/built/admin/assets/admin-x-settings/{index-9a5b6317.mjs → index-eeeca6f6.mjs} +2 -2
- package/core/built/admin/assets/admin-x-settings/{modals-12992e35.mjs → modals-8a98634b.mjs} +11206 -16095
- package/core/built/admin/assets/{chunk.524.c8d208efb3cca58fb564.js → chunk.524.e61cf6deaaec6bf6f9d2.js} +5 -5
- package/core/built/admin/assets/{chunk.582.e1e1c593838cdd38970d.js → chunk.582.6fb536052fa03fba4adb.js} +6 -6
- package/core/built/admin/assets/{chunk.874.2b603e6adcf3c2e9788c.js → chunk.874.e1d421507701daac30fb.js} +4529 -5591
- package/core/built/admin/assets/{ghost-6720b11b60bbdb3abbd6b3b5dd314d5d.js → ghost-286f9a114755e8c3c7e9c37550f624a9.js} +21 -21
- package/core/built/admin/assets/{ghost-0c7839fc6bdbca9bf08a2c1291159903.css → ghost-c75b9d653495f9cfce528f6e10900b3f.css} +1 -1
- package/core/built/admin/assets/{ghost-dark-40f095a0e0507e24e12b4bd7dd6bb5d5.css → ghost-dark-6ea629e177f77314f5d75c0ca97190ab.css} +1 -1
- package/core/built/admin/index.html +5 -5
- package/core/frontend/helpers/get.js +24 -41
- package/core/frontend/helpers/ghost_head.js +3 -3
- package/core/frontend/meta/generate-excerpt.js +1 -2
- package/core/frontend/services/{admin-auth-assets/AdminAuthAssetsService.js → assets-minification/AdminAuthAssets.js} +22 -62
- package/core/frontend/services/assets-minification/AssetsMinificationBase.js +79 -0
- package/core/frontend/services/{card-assets/CardAssetService.js → assets-minification/CardAssets.js} +20 -37
- package/core/frontend/services/assets-minification/CommentCountsAssets.js +34 -0
- package/core/frontend/services/assets-minification/MemberAttributionAssets.js +46 -0
- package/core/frontend/services/assets-minification/index.js +16 -0
- package/core/frontend/services/sitemap/BaseSiteMapGenerator.js +4 -1
- package/core/frontend/web/site.js +5 -4
- package/core/server/api/endpoints/utils/serializers/output/mappers/index.js +0 -1
- package/core/server/api/endpoints/utils/serializers/output/oembed.js +0 -7
- package/core/server/data/importer/importers/data/PostsImporter.js +2 -2
- package/core/server/data/migrations/versions/4.0/23-regenerate-posts-html.js +1 -1
- package/core/server/data/migrations/versions/4.9/05-fix-missed-mobiledoc-url-transforms.js +1 -1
- package/core/server/data/migrations/versions/5.0/2022-05-21-00-00-regenerate-posts-html.js +1 -1
- package/core/server/lib/mobiledoc.js +4 -0
- package/core/server/models/member.js +1 -1
- package/core/server/models/mention.js +1 -1
- package/core/server/models/post.js +1 -1
- package/core/server/services/email-service/EmailServiceWrapper.js +1 -1
- package/core/server/services/oembed/service.js +1 -2
- package/core/server/services/themes/activate.js +2 -2
- package/core/server/services/themes/index.js +4 -1
- package/core/server/services/themes/validate.js +7 -5
- package/core/server/views/maintenance.html +3 -3
- package/core/server/web/admin/app.js +2 -1
- package/core/shared/config/defaults.json +3 -0
- package/core/shared/config/helpers.js +4 -1
- package/core/shared/config/utils.js +5 -6
- package/package.json +153 -153
- package/yarn.lock +129 -119
- package/components/tryghost-adapter-cache-memory-ttl-5.96.0.tgz +0 -0
- package/components/tryghost-announcement-bar-settings-5.96.0.tgz +0 -0
- package/components/tryghost-bookshelf-repository-5.96.0.tgz +0 -0
- package/components/tryghost-collections-5.96.0.tgz +0 -0
- package/components/tryghost-constants-5.96.0.tgz +0 -0
- package/components/tryghost-domain-events-5.96.0.tgz +0 -0
- package/components/tryghost-dynamic-routing-events-5.96.0.tgz +0 -0
- package/components/tryghost-email-addresses-5.96.0.tgz +0 -0
- package/components/tryghost-email-analytics-provider-mailgun-5.96.0.tgz +0 -0
- package/components/tryghost-email-analytics-service-5.96.0.tgz +0 -0
- package/components/tryghost-email-events-5.96.0.tgz +0 -0
- package/components/tryghost-email-service-5.96.0.tgz +0 -0
- package/components/tryghost-email-suppression-list-5.96.0.tgz +0 -0
- package/components/tryghost-express-dynamic-redirects-5.96.0.tgz +0 -0
- package/components/tryghost-external-media-inliner-5.96.0.tgz +0 -0
- package/components/tryghost-extract-api-key-5.96.0.tgz +0 -0
- package/components/tryghost-ghost-5.96.0.tgz +0 -0
- package/components/tryghost-i18n-5.96.0.tgz +0 -0
- package/components/tryghost-importer-handler-content-files-5.96.0.tgz +0 -0
- package/components/tryghost-importer-revue-5.96.0.tgz +0 -0
- package/components/tryghost-in-memory-repository-5.96.0.tgz +0 -0
- package/components/tryghost-link-redirects-5.96.0.tgz +0 -0
- package/components/tryghost-members-offers-5.96.0.tgz +0 -0
- package/components/tryghost-members-payments-5.96.0.tgz +0 -0
- package/components/tryghost-members-ssr-5.96.0.tgz +0 -0
- package/components/tryghost-members-stripe-service-5.96.0.tgz +0 -0
- package/components/tryghost-metrics-server-5.96.0.tgz +0 -0
- package/components/tryghost-minifier-5.96.0.tgz +0 -0
- package/components/tryghost-model-to-domain-event-interceptor-5.96.0.tgz +0 -0
- package/components/tryghost-mw-cache-control-5.96.0.tgz +0 -0
- package/components/tryghost-mw-error-handler-5.96.0.tgz +0 -0
- package/components/tryghost-mw-session-from-token-5.96.0.tgz +0 -0
- package/components/tryghost-mw-update-user-last-seen-5.96.0.tgz +0 -0
- package/components/tryghost-mw-version-match-5.96.0.tgz +0 -0
- package/components/tryghost-mw-vhost-5.96.0.tgz +0 -0
- package/components/tryghost-nql-filter-expansions-5.96.0.tgz +0 -0
- package/components/tryghost-oembed-service-5.96.0.tgz +0 -0
- package/components/tryghost-post-events-5.96.0.tgz +0 -0
- package/components/tryghost-post-revisions-5.96.0.tgz +0 -0
- package/components/tryghost-recommendations-5.96.0.tgz +0 -0
- package/components/tryghost-referrers-5.96.0.tgz +0 -0
- package/components/tryghost-settings-path-manager-5.96.0.tgz +0 -0
- package/components/tryghost-slack-notifications-5.96.0.tgz +0 -0
- package/components/tryghost-update-check-service-5.96.0.tgz +0 -0
- package/components/tryghost-version-notifications-data-service-5.96.0.tgz +0 -0
- package/components/tryghost-webmentions-5.96.0.tgz +0 -0
- package/core/frontend/services/admin-auth-assets/index.js +0 -4
- package/core/frontend/services/card-assets/index.js +0 -4
- package/core/frontend/services/comment-counts-assets/CommentCountsAssetsService.js +0 -59
- package/core/frontend/services/comment-counts-assets/index.js +0 -4
- package/core/frontend/services/member-attribution-assets/MemberAttributionAssetsService.js +0 -83
- package/core/frontend/services/member-attribution-assets/index.js +0 -4
- package/core/server/api/endpoints/utils/serializers/output/mappers/oembed.js +0 -5
- /package/core/built/admin/assets/{chunk.874.2b603e6adcf3c2e9788c.js.LICENSE.txt → chunk.874.e1d421507701daac30fb.js.LICENSE.txt} +0 -0
|
Binary file
|
|
Binary file
|
package/components/{tryghost-adapter-manager-5.96.0.tgz → tryghost-adapter-manager-5.96.2.tgz}
RENAMED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/components/{tryghost-audience-feedback-5.96.0.tgz → tryghost-audience-feedback-5.96.2.tgz}
RENAMED
|
Binary file
|
|
Binary file
|
package/components/{tryghost-bootstrap-socket-5.96.0.tgz → tryghost-bootstrap-socket-5.96.2.tgz}
RENAMED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/components/{tryghost-data-generator-5.96.0.tgz → tryghost-data-generator-5.96.2.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
|
package/components/{tryghost-html-to-plaintext-5.96.0.tgz → tryghost-html-to-plaintext-5.96.2.tgz}
RENAMED
|
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-mailgun-client-5.96.0.tgz → tryghost-mailgun-client-5.96.2.tgz}
RENAMED
|
Binary file
|
package/components/{tryghost-member-attribution-5.96.0.tgz → tryghost-member-attribution-5.96.2.tgz}
RENAMED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/components/{tryghost-members-importer-5.96.0.tgz → tryghost-members-importer-5.96.2.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
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/components/{tryghost-session-service-5.96.0.tgz → tryghost-session-service-5.96.2.tgz}
RENAMED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/core/bridge.js
CHANGED
|
@@ -16,10 +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
|
|
20
|
-
const commentCountsAssetService = require('./frontend/services/comment-counts-assets');
|
|
21
|
-
const adminAuthAssetService = require('./frontend/services/admin-auth-assets');
|
|
22
|
-
const memberAttributionAssetService = require('./frontend/services/member-attribution-assets');
|
|
19
|
+
const {adminAuthAssets, cardAssets,commentCountsAssets, memberAttributionAssets} = require('./frontend/services/assets-minification');
|
|
23
20
|
const routerManager = require('./frontend/services/routing').routerManager;
|
|
24
21
|
const settingsCache = require('./shared/settings-cache');
|
|
25
22
|
const urlService = require('./server/services/url');
|
|
@@ -54,6 +51,10 @@ class Bridge {
|
|
|
54
51
|
return themeEngine.getActive();
|
|
55
52
|
}
|
|
56
53
|
|
|
54
|
+
ensureAdminAuthAssetsMiddleware() {
|
|
55
|
+
return adminAuthAssets.serveMiddleware();
|
|
56
|
+
}
|
|
57
|
+
|
|
57
58
|
async activateTheme(loadedTheme, checkedTheme) {
|
|
58
59
|
let settings = {
|
|
59
60
|
locale: settingsCache.get('locale')
|
|
@@ -63,15 +64,17 @@ class Bridge {
|
|
|
63
64
|
try {
|
|
64
65
|
themeEngine.setActive(settings, loadedTheme, checkedTheme);
|
|
65
66
|
|
|
67
|
+
logging.info('Invalidating assets for regeneration');
|
|
68
|
+
|
|
66
69
|
const cardAssetConfig = this.getCardAssetConfig();
|
|
67
70
|
debug('reload card assets config', cardAssetConfig);
|
|
68
|
-
|
|
71
|
+
cardAssets.invalidate(cardAssetConfig);
|
|
69
72
|
|
|
70
73
|
// TODO: is this in the right place?
|
|
71
74
|
// rebuild asset files
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
+
commentCountsAssets.invalidate();
|
|
76
|
+
adminAuthAssets.invalidate();
|
|
77
|
+
memberAttributionAssets.invalidate();
|
|
75
78
|
} catch (err) {
|
|
76
79
|
logging.error(new errors.InternalServerError({
|
|
77
80
|
message: tpl(messages.activateFailed, {theme: loadedTheme.name}),
|