ghost 5.87.0 → 5.87.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/LICENSE +1 -1
- package/README.md +6 -5
- package/components/tryghost-adapter-cache-memory-ttl-5.87.2.tgz +0 -0
- package/components/{tryghost-adapter-cache-redis-5.87.0.tgz → tryghost-adapter-cache-redis-5.87.2.tgz} +0 -0
- package/components/{tryghost-adapter-manager-5.87.0.tgz → tryghost-adapter-manager-5.87.2.tgz} +0 -0
- package/components/tryghost-announcement-bar-settings-5.87.2.tgz +0 -0
- package/components/{tryghost-api-framework-5.87.0.tgz → tryghost-api-framework-5.87.2.tgz} +0 -0
- package/components/{tryghost-api-version-compatibility-service-5.87.0.tgz → tryghost-api-version-compatibility-service-5.87.2.tgz} +0 -0
- package/components/tryghost-audience-feedback-5.87.2.tgz +0 -0
- package/components/tryghost-bookshelf-repository-5.87.2.tgz +0 -0
- package/components/{tryghost-bootstrap-socket-5.87.0.tgz → tryghost-bootstrap-socket-5.87.2.tgz} +0 -0
- package/components/{tryghost-collections-5.87.0.tgz → tryghost-collections-5.87.2.tgz} +0 -0
- package/components/tryghost-constants-5.87.2.tgz +0 -0
- package/components/tryghost-custom-theme-settings-service-5.87.2.tgz +0 -0
- package/components/{tryghost-data-generator-5.87.0.tgz → tryghost-data-generator-5.87.2.tgz} +0 -0
- package/components/tryghost-domain-events-5.87.2.tgz +0 -0
- package/components/{tryghost-donations-5.87.0.tgz → tryghost-donations-5.87.2.tgz} +0 -0
- package/components/tryghost-dynamic-routing-events-5.87.2.tgz +0 -0
- package/components/tryghost-email-addresses-5.87.2.tgz +0 -0
- package/components/{tryghost-email-analytics-provider-mailgun-5.87.0.tgz → tryghost-email-analytics-provider-mailgun-5.87.2.tgz} +0 -0
- package/components/{tryghost-email-analytics-service-5.87.0.tgz → tryghost-email-analytics-service-5.87.2.tgz} +0 -0
- package/components/tryghost-email-content-generator-5.87.2.tgz +0 -0
- package/components/{tryghost-email-events-5.87.0.tgz → tryghost-email-events-5.87.2.tgz} +0 -0
- package/components/tryghost-email-service-5.87.2.tgz +0 -0
- package/components/tryghost-email-suppression-list-5.87.2.tgz +0 -0
- package/components/tryghost-express-dynamic-redirects-5.87.2.tgz +0 -0
- package/components/tryghost-external-media-inliner-5.87.2.tgz +0 -0
- package/components/tryghost-extract-api-key-5.87.2.tgz +0 -0
- package/components/tryghost-ghost-5.87.2.tgz +0 -0
- package/components/{tryghost-html-to-plaintext-5.87.0.tgz → tryghost-html-to-plaintext-5.87.2.tgz} +0 -0
- package/components/tryghost-i18n-5.87.2.tgz +0 -0
- package/components/tryghost-importer-handler-content-files-5.87.2.tgz +0 -0
- package/components/{tryghost-importer-revue-5.87.0.tgz → tryghost-importer-revue-5.87.2.tgz} +0 -0
- package/components/tryghost-in-memory-repository-5.87.2.tgz +0 -0
- package/components/{tryghost-job-manager-5.87.0.tgz → tryghost-job-manager-5.87.2.tgz} +0 -0
- package/components/tryghost-link-redirects-5.87.2.tgz +0 -0
- package/components/{tryghost-link-replacer-5.87.0.tgz → tryghost-link-replacer-5.87.2.tgz} +0 -0
- package/components/tryghost-link-tracking-5.87.2.tgz +0 -0
- package/components/tryghost-magic-link-5.87.2.tgz +0 -0
- package/components/{tryghost-mail-events-5.87.0.tgz → tryghost-mail-events-5.87.2.tgz} +0 -0
- package/components/{tryghost-mailgun-client-5.87.0.tgz → tryghost-mailgun-client-5.87.2.tgz} +0 -0
- package/components/{tryghost-member-attribution-5.87.0.tgz → tryghost-member-attribution-5.87.2.tgz} +0 -0
- package/components/tryghost-member-events-5.87.2.tgz +0 -0
- package/components/tryghost-members-api-5.87.2.tgz +0 -0
- package/components/tryghost-members-csv-5.87.2.tgz +0 -0
- package/components/tryghost-members-events-service-5.87.2.tgz +0 -0
- package/components/{tryghost-members-importer-5.87.0.tgz → tryghost-members-importer-5.87.2.tgz} +0 -0
- package/components/{tryghost-members-offers-5.87.0.tgz → tryghost-members-offers-5.87.2.tgz} +0 -0
- package/components/tryghost-members-payments-5.87.2.tgz +0 -0
- package/components/tryghost-members-ssr-5.87.2.tgz +0 -0
- package/components/tryghost-members-stripe-service-5.87.2.tgz +0 -0
- package/components/{tryghost-mentions-email-report-5.87.0.tgz → tryghost-mentions-email-report-5.87.2.tgz} +0 -0
- package/components/{tryghost-milestones-5.87.0.tgz → tryghost-milestones-5.87.2.tgz} +0 -0
- package/components/{tryghost-minifier-5.87.0.tgz → tryghost-minifier-5.87.2.tgz} +0 -0
- package/components/tryghost-model-to-domain-event-interceptor-5.87.2.tgz +0 -0
- package/components/tryghost-mw-api-version-mismatch-5.87.2.tgz +0 -0
- package/components/tryghost-mw-cache-control-5.87.2.tgz +0 -0
- package/components/tryghost-mw-error-handler-5.87.2.tgz +0 -0
- package/components/{tryghost-mw-session-from-token-5.87.0.tgz → tryghost-mw-session-from-token-5.87.2.tgz} +0 -0
- package/components/tryghost-mw-update-user-last-seen-5.87.2.tgz +0 -0
- package/components/{tryghost-mw-version-match-5.87.0.tgz → tryghost-mw-version-match-5.87.2.tgz} +0 -0
- package/components/tryghost-mw-vhost-5.87.2.tgz +0 -0
- package/components/tryghost-nql-filter-expansions-5.87.2.tgz +0 -0
- package/components/tryghost-oembed-service-5.87.2.tgz +0 -0
- package/components/{tryghost-package-json-5.87.0.tgz → tryghost-package-json-5.87.2.tgz} +0 -0
- package/components/tryghost-post-events-5.87.2.tgz +0 -0
- package/components/tryghost-post-revisions-5.87.2.tgz +0 -0
- package/components/tryghost-posts-service-5.87.2.tgz +0 -0
- package/components/tryghost-recommendations-5.87.2.tgz +0 -0
- package/components/tryghost-referrers-5.87.2.tgz +0 -0
- package/components/{tryghost-security-5.87.0.tgz → tryghost-security-5.87.2.tgz} +0 -0
- package/components/{tryghost-session-service-5.87.0.tgz → tryghost-session-service-5.87.2.tgz} +0 -0
- package/components/tryghost-settings-path-manager-5.87.2.tgz +0 -0
- package/components/tryghost-slack-notifications-5.87.2.tgz +0 -0
- package/components/tryghost-staff-service-5.87.2.tgz +0 -0
- package/components/tryghost-stats-service-5.87.2.tgz +0 -0
- package/components/{tryghost-tiers-5.87.0.tgz → tryghost-tiers-5.87.2.tgz} +0 -0
- package/components/{tryghost-update-check-service-5.87.0.tgz → tryghost-update-check-service-5.87.2.tgz} +0 -0
- package/components/tryghost-verification-trigger-5.87.2.tgz +0 -0
- package/components/{tryghost-version-notifications-data-service-5.87.0.tgz → tryghost-version-notifications-data-service-5.87.2.tgz} +0 -0
- package/components/{tryghost-webmentions-5.87.0.tgz → tryghost-webmentions-5.87.2.tgz} +0 -0
- package/content/themes/casper/assets/built/screen.css +1 -1
- package/content/themes/casper/assets/built/screen.css.map +1 -1
- package/content/themes/casper/assets/css/screen.css +12 -0
- package/content/themes/casper/package.json +1 -1
- package/content/themes/casper/post.hbs +1 -1
- package/content/themes/source/assets/built/screen.css +1 -1
- package/content/themes/source/assets/built/screen.css.map +1 -1
- package/content/themes/source/assets/css/screen.css +12 -45
- package/content/themes/source/default.hbs +3 -0
- package/content/themes/source/package.json +1 -1
- package/content/themes/source/partials/email-subscription.hbs +1 -1
- package/content/themes/source/partials/feature-image.hbs +8 -9
- package/content/themes/source/partials/typography/fonts.hbs +15 -0
- package/content/themes/source/partials/typography/mono.hbs +21 -0
- package/content/themes/source/partials/typography/sans.hbs +11 -0
- package/content/themes/source/partials/typography/serif.hbs +21 -0
- package/content/themes/source/post.hbs +2 -2
- package/core/boot.js +0 -4
- package/core/built/admin/assets/admin-x-activitypub/admin-x-activitypub.js +3 -3
- package/core/built/admin/assets/admin-x-activitypub/index-b4a353e7.mjs +18739 -0
- package/core/built/admin/assets/admin-x-activitypub/modals-f64a65f9.mjs +514 -0
- package/core/built/admin/assets/admin-x-demo/admin-x-demo.js +2 -2
- package/core/built/admin/assets/admin-x-demo/index-5e68f89b.mjs +12341 -0
- package/core/built/admin/assets/admin-x-demo/{modals-0790023d.mjs → modals-f789a6c4.mjs} +109 -108
- package/core/built/admin/assets/admin-x-settings/{CodeEditorView-18434b62.mjs → CodeEditorView-e762149f.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-26c4c463.mjs → index-b5d002c9.mjs} +2 -2
- package/core/built/admin/assets/admin-x-settings/{index-c8f7240c.mjs → index-e85d0dcf.mjs} +14001 -10336
- package/core/built/admin/assets/admin-x-settings/{modals-bef82301.mjs → modals-ccd29d36.mjs} +10876 -14498
- package/core/built/admin/assets/{chunk.216.1641331b33471771559d.js → chunk.42.0879e40a4de3db25b177.js} +6069 -6334
- package/core/built/admin/assets/{chunk.216.1641331b33471771559d.js.LICENSE.txt → chunk.42.0879e40a4de3db25b177.js.LICENSE.txt} +1 -44
- package/core/built/admin/assets/{chunk.524.d2e0fcb8c19f3c1a3b30.js → chunk.524.a026cb2ef64affe16853.js} +5 -5
- package/core/built/admin/assets/{chunk.582.21faf5b79ae545480852.js → chunk.582.87261633b6177d1a30a5.js} +11 -11
- package/core/built/admin/assets/{ghost-7cd5e5705abfd8aa74248fc44aec54b5.js → ghost-07422c98448d7259d957d65c6737a274.js} +451 -468
- package/core/built/admin/assets/ghost-cb98187b163a0d8b42d752ab890e039a.css +1 -0
- package/core/built/admin/assets/ghost-dark-0d78b0a11f5c2604992de20c1bfe396f.css +1 -0
- package/core/built/admin/assets/koenig-lexical/index.css +1 -1
- package/core/built/admin/assets/koenig-lexical/koenig-lexical.js +6427 -6384
- package/core/built/admin/assets/koenig-lexical/koenig-lexical.umd.js +111 -110
- package/core/built/admin/assets/{vendor-104fd33edb243021ce2f1a3797d513ef.js → vendor-051d43ec47258b77ffd2fcc21a6d8c50.js} +564 -987
- package/core/built/admin/index.html +6 -6
- package/core/frontend/services/routing/controllers/unsubscribe.js +1 -2
- package/core/frontend/src/cards/css/bookmark.css +1 -1
- package/core/frontend/src/member-attribution/member-attribution.js +15 -1
- package/core/server/api/endpoints/utils/serializers/output/authentication.js +1 -1
- package/core/server/data/importer/importers/data/ProductsImporter.js +18 -0
- package/core/server/lib/image/ImageSize.js +15 -3
- package/core/server/lib/image/ImageUtils.js +2 -1
- package/core/server/services/custom-redirects/CustomRedirectsAPI.js +3 -4
- package/core/server/services/custom-redirects/validation.js +21 -3
- package/core/server/services/recommendations/RecommendationServiceWrapper.js +6 -11
- package/core/server/services/webhooks/WebhookTrigger.js +2 -1
- package/core/shared/labs.js +0 -7
- package/package.json +159 -161
- package/yarn.lock +1181 -935
- package/components/tryghost-adapter-cache-memory-ttl-5.87.0.tgz +0 -0
- package/components/tryghost-announcement-bar-settings-5.87.0.tgz +0 -0
- package/components/tryghost-audience-feedback-5.87.0.tgz +0 -0
- package/components/tryghost-bookshelf-repository-5.87.0.tgz +0 -0
- package/components/tryghost-constants-5.87.0.tgz +0 -0
- package/components/tryghost-custom-theme-settings-service-5.87.0.tgz +0 -0
- package/components/tryghost-domain-events-5.87.0.tgz +0 -0
- package/components/tryghost-dynamic-routing-events-5.87.0.tgz +0 -0
- package/components/tryghost-email-addresses-5.87.0.tgz +0 -0
- package/components/tryghost-email-content-generator-5.87.0.tgz +0 -0
- package/components/tryghost-email-service-5.87.0.tgz +0 -0
- package/components/tryghost-email-suppression-list-5.87.0.tgz +0 -0
- package/components/tryghost-express-dynamic-redirects-5.87.0.tgz +0 -0
- package/components/tryghost-external-media-inliner-5.87.0.tgz +0 -0
- package/components/tryghost-extract-api-key-5.87.0.tgz +0 -0
- package/components/tryghost-ghost-5.87.0.tgz +0 -0
- package/components/tryghost-i18n-5.87.0.tgz +0 -0
- package/components/tryghost-importer-handler-content-files-5.87.0.tgz +0 -0
- package/components/tryghost-in-memory-repository-5.87.0.tgz +0 -0
- package/components/tryghost-link-redirects-5.87.0.tgz +0 -0
- package/components/tryghost-link-tracking-5.87.0.tgz +0 -0
- package/components/tryghost-magic-link-5.87.0.tgz +0 -0
- package/components/tryghost-member-events-5.87.0.tgz +0 -0
- package/components/tryghost-members-api-5.87.0.tgz +0 -0
- package/components/tryghost-members-csv-5.87.0.tgz +0 -0
- package/components/tryghost-members-events-service-5.87.0.tgz +0 -0
- package/components/tryghost-members-payments-5.87.0.tgz +0 -0
- package/components/tryghost-members-ssr-5.87.0.tgz +0 -0
- package/components/tryghost-members-stripe-service-5.87.0.tgz +0 -0
- package/components/tryghost-model-to-domain-event-interceptor-5.87.0.tgz +0 -0
- package/components/tryghost-mw-api-version-mismatch-5.87.0.tgz +0 -0
- package/components/tryghost-mw-cache-control-5.87.0.tgz +0 -0
- package/components/tryghost-mw-error-handler-5.87.0.tgz +0 -0
- package/components/tryghost-mw-update-user-last-seen-5.87.0.tgz +0 -0
- package/components/tryghost-mw-vhost-5.87.0.tgz +0 -0
- package/components/tryghost-nql-filter-expansions-5.87.0.tgz +0 -0
- package/components/tryghost-oembed-service-5.87.0.tgz +0 -0
- package/components/tryghost-post-events-5.87.0.tgz +0 -0
- package/components/tryghost-post-revisions-5.87.0.tgz +0 -0
- package/components/tryghost-posts-service-5.87.0.tgz +0 -0
- package/components/tryghost-recommendations-5.87.0.tgz +0 -0
- package/components/tryghost-referrers-5.87.0.tgz +0 -0
- package/components/tryghost-settings-path-manager-5.87.0.tgz +0 -0
- package/components/tryghost-slack-notifications-5.87.0.tgz +0 -0
- package/components/tryghost-staff-service-5.87.0.tgz +0 -0
- package/components/tryghost-stats-service-5.87.0.tgz +0 -0
- package/components/tryghost-verification-trigger-5.87.0.tgz +0 -0
- package/core/built/admin/assets/admin-x-activitypub/index-adf6f50d.mjs +0 -15011
- package/core/built/admin/assets/admin-x-activitypub/modals-c796922a.mjs +0 -511
- package/core/built/admin/assets/admin-x-demo/index-ea257d67.mjs +0 -8664
- package/core/built/admin/assets/ghost-ce50e3eb300a8e297d8b1f8b372c25d6.css +0 -1
- package/core/built/admin/assets/ghost-dark-4b969016a590f3112196d4ba3da7843a.css +0 -1
- package/core/server/services/websockets/index.js +0 -1
- package/core/server/services/websockets/service.js +0 -38
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require('./service');
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
const {Server} = require('socket.io');
|
|
2
|
-
const debug = require('@tryghost/debug')('websockets');
|
|
3
|
-
const logging = require('@tryghost/logging');
|
|
4
|
-
|
|
5
|
-
const labs = require('../../../shared/labs');
|
|
6
|
-
|
|
7
|
-
module.exports = {
|
|
8
|
-
async init(ghostServer) {
|
|
9
|
-
debug(`[Websockets] Is labs set? ${labs.isSet('websockets')}`);
|
|
10
|
-
|
|
11
|
-
if (labs.isSet('websockets')) {
|
|
12
|
-
logging.info(`Starting websockets service`);
|
|
13
|
-
|
|
14
|
-
const io = new Server(ghostServer.httpServer);
|
|
15
|
-
let count = 0;
|
|
16
|
-
|
|
17
|
-
io.on(`connection`, (socket) => {
|
|
18
|
-
logging.info(`Websockets client connected (id: ${socket.id})`);
|
|
19
|
-
|
|
20
|
-
// on connect, send current value
|
|
21
|
-
socket.emit('addCount', count);
|
|
22
|
-
// listen to to changes in value from client
|
|
23
|
-
socket.on('addCount', () => {
|
|
24
|
-
count = count + 1;
|
|
25
|
-
debug(`[Websockets] received addCount from client, count is now ${count}`);
|
|
26
|
-
socket.broadcast.emit('addCount', count);
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
ghostServer.registerCleanupTask(async () => {
|
|
31
|
-
logging.warn(`Stopping websockets service`);
|
|
32
|
-
await new Promise((resolve) => {
|
|
33
|
-
io.close(resolve);
|
|
34
|
-
});
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
};
|