ghost 4.32.1 → 4.33.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/core/boot.js +3 -0
- package/core/built/assets/{ghost-dark-67f6ba8347be37f997b3a7e430b29f72.css → ghost-dark-661a50922267648a0362c3d367a22013.css} +1 -1
- package/core/built/assets/{ghost.min-2d5f48403647d1e11805691cc7ad0835.css → ghost.min-1f0218f33e08f8d69b2159977d0c9318.css} +1 -1
- package/core/built/assets/{ghost.min-7535b70693bcefde1665bdf621087cbe.js → ghost.min-501554f903f29164473a5dc620caaddb.js} +1285 -1229
- package/core/built/assets/img/apple-touch-icon-74680e326a7e87b159d366c7d4fb3d4b.png +0 -0
- package/core/built/assets/img/large-ac90af7c93a4b47e8d956fa9fef31d9d.png +0 -0
- package/core/built/assets/img/medium-fef07013cffd5c45a655a250912a0ad7.png +0 -0
- package/core/built/assets/img/small-b90396925485f17b2ca82c31be42de5f.png +0 -0
- package/core/built/assets/img/touch-icon-ipad-2e78629d62ad05746f980f14623dfadb.png +0 -0
- package/core/built/assets/img/touch-icon-iphone-93ed4382d391be9180093fd77ce8f410.png +0 -0
- package/core/built/assets/{vendor.min-0e0334a490951ab747706621f9ccd8b6.css → vendor.min-2c8ad32b7960bb605ebc20097fee5ebd.css} +9 -17
- package/core/built/assets/{vendor.min-45e83041aeba4ea7b184f669b20a2b23.js → vendor.min-d43620e98444a46441495445f4c155f8.js} +721 -781
- package/core/frontend/helpers/date.js +3 -4
- package/core/frontend/services/routing/config/canary.js +1 -1
- package/core/frontend/services/routing/config/v4.js +1 -1
- package/core/frontend/services/theme-engine/middleware/update-global-template-options.js +3 -1
- package/core/frontend/web/site.js +5 -1
- package/core/server/api/canary/settings.js +2 -1
- package/core/server/api/canary/utils/serializers/output/products.js +4 -0
- package/core/server/data/db/info.js +4 -0
- package/core/server/data/migrations/versions/4.33/2022-01-14-11-50-add-type-column-to-products.js +12 -0
- package/core/server/data/migrations/versions/4.33/2022-01-14-11-51-add-default-free-tier.js +37 -0
- package/core/server/data/migrations/versions/4.33/2022-01-18-09-07-remove-duplicate-offer-redemptions.js +46 -0
- package/core/server/data/migrations/versions/4.33/2022-01-19-10-43-add-active-column-to-products-table.js +7 -0
- package/core/server/data/schema/default-settings.json +1 -1
- package/core/server/data/schema/fixtures/fixtures.json +9 -1
- package/core/server/data/schema/schema.js +2 -0
- package/core/server/models/base/plugins/data-manipulation.js +3 -2
- package/core/server/models/product.js +4 -0
- package/core/server/models/tag.js +8 -0
- package/core/server/services/members/api.js +2 -16
- package/core/server/services/members/config.js +1 -9
- package/core/server/services/members/middleware.js +5 -3
- package/core/server/services/members/service.js +14 -46
- package/core/server/services/offers/service.js +1 -4
- package/core/server/services/public-config/config.js +3 -2
- package/core/server/services/stripe/config.js +24 -9
- package/core/server/services/stripe/index.js +1 -45
- package/core/server/services/stripe/service.js +58 -0
- package/core/server/update-check.js +2 -1
- package/core/server/web/admin/views/default-prod.html +10 -13
- package/core/server/web/admin/views/default.html +10 -13
- package/core/server/web/members/app.js +3 -2
- package/core/server/web/shared/middleware/cache-control.js +12 -0
- package/core/shared/config/defaults.json +2 -2
- package/core/shared/labs.js +2 -1
- package/package.json +59 -57
- package/yarn.lock +657 -737
- package/core/built/assets/img/large-bf46e150380a4979a7389b45f5bb479d.png +0 -0
- package/core/built/assets/img/medium-7359075af28d69523987ff4c0e2067c5.png +0 -0
- package/core/built/assets/img/small-42ff134f320b8b5a6eca3781c4e4b2db.png +0 -0
- package/core/built/assets/img/touch-icon-ipad-3117c0fa950d0fc43c95becef61f4167.png +0 -0
- package/core/built/assets/img/touch-icon-iphone-d2790931c3477664981061ed9fa5242e.png +0 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
const _ = require('lodash');
|
|
2
|
+
const StripeService = require('@tryghost/members-stripe-service');
|
|
3
|
+
const logging = require('@tryghost/logging');
|
|
4
|
+
const membersService = require('../members');
|
|
5
|
+
const config = require('../../../shared/config');
|
|
6
|
+
const settings = require('../../../shared/settings-cache');
|
|
7
|
+
const urlUtils = require('../../../shared/url-utils');
|
|
8
|
+
const events = require('../../lib/common/events');
|
|
9
|
+
const models = require('../../models');
|
|
10
|
+
const {getConfig} = require('./config');
|
|
11
|
+
|
|
12
|
+
async function configureApi() {
|
|
13
|
+
const cfg = getConfig(settings, config, urlUtils);
|
|
14
|
+
if (cfg) {
|
|
15
|
+
await module.exports.configure(cfg);
|
|
16
|
+
return true;
|
|
17
|
+
}
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const debouncedConfigureApi = _.debounce(() => {
|
|
22
|
+
configureApi();
|
|
23
|
+
}, 600);
|
|
24
|
+
|
|
25
|
+
module.exports = new StripeService({
|
|
26
|
+
membersService,
|
|
27
|
+
models: _.pick(models, ['Product', 'StripePrice', 'StripeCustomerSubscription', 'StripeProduct', 'MemberStripeCustomer', 'Offer', 'Settings']),
|
|
28
|
+
StripeWebhook: {
|
|
29
|
+
async get() {
|
|
30
|
+
return {
|
|
31
|
+
webhook_id: settings.get('members_stripe_webhook_id'),
|
|
32
|
+
secret: settings.get('members_stripe_webhook_secret')
|
|
33
|
+
};
|
|
34
|
+
},
|
|
35
|
+
async save(data) {
|
|
36
|
+
await models.Settings.edit([{
|
|
37
|
+
key: 'members_stripe_webhook_id',
|
|
38
|
+
value: data.webhook_id
|
|
39
|
+
}, {
|
|
40
|
+
key: 'members_stripe_webhook_secret',
|
|
41
|
+
value: data.secret
|
|
42
|
+
}]);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
module.exports.init = async function init() {
|
|
48
|
+
try {
|
|
49
|
+
await configureApi();
|
|
50
|
+
} catch (err) {
|
|
51
|
+
logging.error(err);
|
|
52
|
+
}
|
|
53
|
+
events.on('settings.edited', function (model) {
|
|
54
|
+
if (['stripe_publishable_key', 'stripe_secret_key', 'stripe_connect_publishable_key', 'stripe_connect_secret_key'].includes(model.get('key'))) {
|
|
55
|
+
debouncedConfigureApi();
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
};
|
|
@@ -4,6 +4,7 @@ const api = require('./api');
|
|
|
4
4
|
const config = require('../shared/config');
|
|
5
5
|
const urlUtils = require('./../shared/url-utils');
|
|
6
6
|
const jobsService = require('./services/jobs');
|
|
7
|
+
const databaseInfo = require('./data/db/info');
|
|
7
8
|
|
|
8
9
|
const request = require('@tryghost/request');
|
|
9
10
|
const ghostVersion = require('@tryghost/version');
|
|
@@ -44,7 +45,7 @@ module.exports = async () => {
|
|
|
44
45
|
config: {
|
|
45
46
|
mail: config.get('mail'),
|
|
46
47
|
env: config.get('env'),
|
|
47
|
-
databaseType:
|
|
48
|
+
databaseType: databaseInfo.getEngine(),
|
|
48
49
|
checkEndpoint: config.get('updateCheck:url'),
|
|
49
50
|
isPrivacyDisabled: config.isPrivacyDisabled('useUpdateCheck'),
|
|
50
51
|
notificationGroups: config.get('notificationGroups'),
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<title>Ghost Admin</title>
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
<meta name="ghost-admin/config/environment" content="%7B%22modulePrefix%22%3A%22ghost-admin%22%2C%22environment%22%3A%22production%22%2C%22rootURL%22%3A%22%2F%22%2C%22locationType%22%3A%22trailing-hash%22%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%2C%22EXTEND_PROTOTYPES%22%3A%7B%22Date%22%3Afalse%2C%22Array%22%3Atrue%2C%22String%22%3Atrue%2C%22Function%22%3Afalse%7D%2C%22_APPLICATION_TEMPLATE_WRAPPER%22%3Afalse%2C%22_JQUERY_INTEGRATION%22%3Atrue%2C%22_TEMPLATE_ONLY_GLIMMER_COMPONENTS%22%3Atrue%7D%2C%22APP%22%3A%7B%22version%22%3A%224.
|
|
11
|
+
<meta name="ghost-admin/config/environment" content="%7B%22modulePrefix%22%3A%22ghost-admin%22%2C%22environment%22%3A%22production%22%2C%22rootURL%22%3A%22%2F%22%2C%22locationType%22%3A%22trailing-hash%22%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%2C%22EXTEND_PROTOTYPES%22%3A%7B%22Date%22%3Afalse%2C%22Array%22%3Atrue%2C%22String%22%3Atrue%2C%22Function%22%3Afalse%7D%2C%22_APPLICATION_TEMPLATE_WRAPPER%22%3Afalse%2C%22_JQUERY_INTEGRATION%22%3Atrue%2C%22_TEMPLATE_ONLY_GLIMMER_COMPONENTS%22%3Atrue%7D%2C%22APP%22%3A%7B%22version%22%3A%224.33%22%2C%22name%22%3A%22ghost-admin%22%7D%2C%22ember-simple-auth%22%3A%7B%7D%2C%22moment%22%3A%7B%22includeTimezone%22%3A%22all%22%7D%2C%22%40sentry%2Fember%22%3A%7B%22disablePerformance%22%3Atrue%2C%22sentry%22%3A%7B%7D%7D%2C%22ember-cli-mirage%22%3A%7B%22usingProxy%22%3Afalse%2C%22useDefaultPassthroughs%22%3Atrue%7D%2C%22exportApplicationGlobal%22%3Afalse%2C%22ember-load%22%3A%7B%22loadingIndicatorClass%22%3A%22ember-load-indicator%22%7D%7D" />
|
|
12
12
|
|
|
13
13
|
<meta name="HandheldFriendly" content="True" />
|
|
14
14
|
<meta name="MobileOptimized" content="320" />
|
|
@@ -21,16 +21,13 @@
|
|
|
21
21
|
<meta name="apple-mobile-web-app-title" content="Ghost" />
|
|
22
22
|
|
|
23
23
|
<link rel="shortcut icon" href="assets/img/favicon.ico" />
|
|
24
|
-
<link rel="apple-touch-icon
|
|
25
|
-
<link rel="apple-touch-icon-precomposed" sizes="76x76" href="assets/img/touch-icon-ipad-3117c0fa950d0fc43c95becef61f4167.png" />
|
|
26
|
-
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="assets/img/small-42ff134f320b8b5a6eca3781c4e4b2db.png" />
|
|
27
|
-
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="assets/img/medium-7359075af28d69523987ff4c0e2067c5.png" />
|
|
24
|
+
<link rel="apple-touch-icon" href="assets/img/apple-touch-icon-74680e326a7e87b159d366c7d4fb3d4b.png" />
|
|
28
25
|
|
|
29
26
|
<meta name="application-name" content="Ghost" />
|
|
30
|
-
<meta name="msapplication-TileColor" content="#
|
|
31
|
-
<meta name="msapplication-square70x70logo" content="assets/img/small-
|
|
32
|
-
<meta name="msapplication-square150x150logo" content="assets/img/medium-
|
|
33
|
-
<meta name="msapplication-square310x310logo" content="assets/img/large-
|
|
27
|
+
<meta name="msapplication-TileColor" content="#15171A" />
|
|
28
|
+
<meta name="msapplication-square70x70logo" content="assets/img/small-b90396925485f17b2ca82c31be42de5f.png" />
|
|
29
|
+
<meta name="msapplication-square150x150logo" content="assets/img/medium-fef07013cffd5c45a655a250912a0ad7.png" />
|
|
30
|
+
<meta name="msapplication-square310x310logo" content="assets/img/large-ac90af7c93a4b47e8d956fa9fef31d9d.png" />
|
|
34
31
|
|
|
35
32
|
<!-- variables that we don't want postcss-custom-properties to remove -->
|
|
36
33
|
<style>
|
|
@@ -40,8 +37,8 @@
|
|
|
40
37
|
</style>
|
|
41
38
|
|
|
42
39
|
|
|
43
|
-
<link rel="stylesheet" href="assets/vendor.min-
|
|
44
|
-
<link rel="stylesheet" href="assets/ghost.min-
|
|
40
|
+
<link rel="stylesheet" href="assets/vendor.min-2c8ad32b7960bb605ebc20097fee5ebd.css">
|
|
41
|
+
<link rel="stylesheet" href="assets/ghost.min-1f0218f33e08f8d69b2159977d0c9318.css" title="light">
|
|
45
42
|
|
|
46
43
|
|
|
47
44
|
|
|
@@ -59,8 +56,8 @@
|
|
|
59
56
|
<div id="ember-basic-dropdown-wormhole"></div>
|
|
60
57
|
|
|
61
58
|
|
|
62
|
-
<script src="assets/vendor.min-
|
|
63
|
-
<script src="assets/ghost.min-
|
|
59
|
+
<script src="assets/vendor.min-d43620e98444a46441495445f4c155f8.js"></script>
|
|
60
|
+
<script src="assets/ghost.min-501554f903f29164473a5dc620caaddb.js"></script>
|
|
64
61
|
|
|
65
62
|
</body>
|
|
66
63
|
</html>
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<title>Ghost Admin</title>
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
<meta name="ghost-admin/config/environment" content="%7B%22modulePrefix%22%3A%22ghost-admin%22%2C%22environment%22%3A%22production%22%2C%22rootURL%22%3A%22%2F%22%2C%22locationType%22%3A%22trailing-hash%22%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%2C%22EXTEND_PROTOTYPES%22%3A%7B%22Date%22%3Afalse%2C%22Array%22%3Atrue%2C%22String%22%3Atrue%2C%22Function%22%3Afalse%7D%2C%22_APPLICATION_TEMPLATE_WRAPPER%22%3Afalse%2C%22_JQUERY_INTEGRATION%22%3Atrue%2C%22_TEMPLATE_ONLY_GLIMMER_COMPONENTS%22%3Atrue%7D%2C%22APP%22%3A%7B%22version%22%3A%224.
|
|
11
|
+
<meta name="ghost-admin/config/environment" content="%7B%22modulePrefix%22%3A%22ghost-admin%22%2C%22environment%22%3A%22production%22%2C%22rootURL%22%3A%22%2F%22%2C%22locationType%22%3A%22trailing-hash%22%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%2C%22EXTEND_PROTOTYPES%22%3A%7B%22Date%22%3Afalse%2C%22Array%22%3Atrue%2C%22String%22%3Atrue%2C%22Function%22%3Afalse%7D%2C%22_APPLICATION_TEMPLATE_WRAPPER%22%3Afalse%2C%22_JQUERY_INTEGRATION%22%3Atrue%2C%22_TEMPLATE_ONLY_GLIMMER_COMPONENTS%22%3Atrue%7D%2C%22APP%22%3A%7B%22version%22%3A%224.33%22%2C%22name%22%3A%22ghost-admin%22%7D%2C%22ember-simple-auth%22%3A%7B%7D%2C%22moment%22%3A%7B%22includeTimezone%22%3A%22all%22%7D%2C%22%40sentry%2Fember%22%3A%7B%22disablePerformance%22%3Atrue%2C%22sentry%22%3A%7B%7D%7D%2C%22ember-cli-mirage%22%3A%7B%22usingProxy%22%3Afalse%2C%22useDefaultPassthroughs%22%3Atrue%7D%2C%22exportApplicationGlobal%22%3Afalse%2C%22ember-load%22%3A%7B%22loadingIndicatorClass%22%3A%22ember-load-indicator%22%7D%7D" />
|
|
12
12
|
|
|
13
13
|
<meta name="HandheldFriendly" content="True" />
|
|
14
14
|
<meta name="MobileOptimized" content="320" />
|
|
@@ -21,16 +21,13 @@
|
|
|
21
21
|
<meta name="apple-mobile-web-app-title" content="Ghost" />
|
|
22
22
|
|
|
23
23
|
<link rel="shortcut icon" href="assets/img/favicon.ico" />
|
|
24
|
-
<link rel="apple-touch-icon
|
|
25
|
-
<link rel="apple-touch-icon-precomposed" sizes="76x76" href="assets/img/touch-icon-ipad-3117c0fa950d0fc43c95becef61f4167.png" />
|
|
26
|
-
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="assets/img/small-42ff134f320b8b5a6eca3781c4e4b2db.png" />
|
|
27
|
-
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="assets/img/medium-7359075af28d69523987ff4c0e2067c5.png" />
|
|
24
|
+
<link rel="apple-touch-icon" href="assets/img/apple-touch-icon-74680e326a7e87b159d366c7d4fb3d4b.png" />
|
|
28
25
|
|
|
29
26
|
<meta name="application-name" content="Ghost" />
|
|
30
|
-
<meta name="msapplication-TileColor" content="#
|
|
31
|
-
<meta name="msapplication-square70x70logo" content="assets/img/small-
|
|
32
|
-
<meta name="msapplication-square150x150logo" content="assets/img/medium-
|
|
33
|
-
<meta name="msapplication-square310x310logo" content="assets/img/large-
|
|
27
|
+
<meta name="msapplication-TileColor" content="#15171A" />
|
|
28
|
+
<meta name="msapplication-square70x70logo" content="assets/img/small-b90396925485f17b2ca82c31be42de5f.png" />
|
|
29
|
+
<meta name="msapplication-square150x150logo" content="assets/img/medium-fef07013cffd5c45a655a250912a0ad7.png" />
|
|
30
|
+
<meta name="msapplication-square310x310logo" content="assets/img/large-ac90af7c93a4b47e8d956fa9fef31d9d.png" />
|
|
34
31
|
|
|
35
32
|
<!-- variables that we don't want postcss-custom-properties to remove -->
|
|
36
33
|
<style>
|
|
@@ -40,8 +37,8 @@
|
|
|
40
37
|
</style>
|
|
41
38
|
|
|
42
39
|
|
|
43
|
-
<link rel="stylesheet" href="assets/vendor.min-
|
|
44
|
-
<link rel="stylesheet" href="assets/ghost.min-
|
|
40
|
+
<link rel="stylesheet" href="assets/vendor.min-2c8ad32b7960bb605ebc20097fee5ebd.css">
|
|
41
|
+
<link rel="stylesheet" href="assets/ghost.min-1f0218f33e08f8d69b2159977d0c9318.css" title="light">
|
|
45
42
|
|
|
46
43
|
|
|
47
44
|
|
|
@@ -59,8 +56,8 @@
|
|
|
59
56
|
<div id="ember-basic-dropdown-wormhole"></div>
|
|
60
57
|
|
|
61
58
|
|
|
62
|
-
<script src="assets/vendor.min-
|
|
63
|
-
<script src="assets/ghost.min-
|
|
59
|
+
<script src="assets/vendor.min-d43620e98444a46441495445f4c155f8.js"></script>
|
|
60
|
+
<script src="assets/ghost.min-501554f903f29164473a5dc620caaddb.js"></script>
|
|
64
61
|
|
|
65
62
|
</body>
|
|
66
63
|
</html>
|
|
@@ -6,6 +6,7 @@ const express = require('../../../shared/express');
|
|
|
6
6
|
const urlUtils = require('../../../shared/url-utils');
|
|
7
7
|
const sentry = require('../../../shared/sentry');
|
|
8
8
|
const membersService = require('../../services/members');
|
|
9
|
+
const stripeService = require('../../services/stripe');
|
|
9
10
|
const middleware = membersService.middleware;
|
|
10
11
|
const shared = require('../shared');
|
|
11
12
|
const labs = require('../../../shared/labs');
|
|
@@ -28,7 +29,7 @@ module.exports = function setupMembersApp() {
|
|
|
28
29
|
// Routing
|
|
29
30
|
|
|
30
31
|
// Webhooks
|
|
31
|
-
membersApp.post('/webhooks/stripe',
|
|
32
|
+
membersApp.post('/webhooks/stripe', bodyParser.raw({type: 'application/json'}), stripeService.webhookController.handle.bind(stripeService.webhookController));
|
|
32
33
|
|
|
33
34
|
// Initializes members specific routes as well as assigns members specific data to the req/res objects
|
|
34
35
|
// We don't want to add global bodyParser middleware as that interfers with stripe webhook requests on - `/webhooks`.
|
|
@@ -38,7 +39,7 @@ module.exports = function setupMembersApp() {
|
|
|
38
39
|
membersApp.get('/api/session', middleware.getIdentityToken);
|
|
39
40
|
membersApp.get('/api/offers/:id', middleware.getOfferData);
|
|
40
41
|
membersApp.delete('/api/session', middleware.deleteSession);
|
|
41
|
-
membersApp.get('/api/site', middleware.getMemberSiteData);
|
|
42
|
+
membersApp.get('/api/site', shared.middleware.cacheControl('public', {maxAge: 30}), middleware.getMemberSiteData);
|
|
42
43
|
|
|
43
44
|
// NOTE: this is wrapped in a function to ensure we always go via the getter
|
|
44
45
|
membersApp.post('/api/send-magic-link', bodyParser.json(), shared.middleware.brute.membersAuth, (req, res, next) => membersService.api.middleware.sendMagicLink(req, res, next));
|
|
@@ -8,6 +8,11 @@
|
|
|
8
8
|
|
|
9
9
|
const isString = require('lodash/isString');
|
|
10
10
|
|
|
11
|
+
/**
|
|
12
|
+
* @param {'public'|'private'} profile Use "private" if you do not want caching
|
|
13
|
+
* @param {object} [options]
|
|
14
|
+
* @param {number} [options.maxAge] The max-age in seconds to use when profile is "public"
|
|
15
|
+
*/
|
|
11
16
|
const cacheControl = (profile, options = {maxAge: 0}) => {
|
|
12
17
|
const profiles = {
|
|
13
18
|
public: `public, max-age=${options.maxAge}`,
|
|
@@ -20,6 +25,13 @@ const cacheControl = (profile, options = {maxAge: 0}) => {
|
|
|
20
25
|
output = profiles[profile];
|
|
21
26
|
}
|
|
22
27
|
|
|
28
|
+
/**
|
|
29
|
+
* @param {import('express').Request} req
|
|
30
|
+
* @param {import('express').Response} res
|
|
31
|
+
* @param {() => void} next
|
|
32
|
+
*
|
|
33
|
+
* @returns {void}
|
|
34
|
+
*/
|
|
23
35
|
return function cacheControlHeaders(req, res, next) {
|
|
24
36
|
if (output) {
|
|
25
37
|
res.set({'Cache-Control': output});
|
|
@@ -127,8 +127,8 @@
|
|
|
127
127
|
"emailAnalytics": true
|
|
128
128
|
},
|
|
129
129
|
"portal": {
|
|
130
|
-
"url": "https://unpkg.com/@tryghost/portal@~1.
|
|
131
|
-
"version": "1.
|
|
130
|
+
"url": "https://unpkg.com/@tryghost/portal@~1.14.0/umd/portal.min.js",
|
|
131
|
+
"version": "1.14"
|
|
132
132
|
},
|
|
133
133
|
"tenor": {
|
|
134
134
|
"publicReadOnlyApiKey": null,
|
package/core/shared/labs.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ghost",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.33.1",
|
|
4
4
|
"description": "The professional publishing platform",
|
|
5
5
|
"author": "Ghost Foundation",
|
|
6
6
|
"homepage": "https://ghost.org",
|
|
@@ -55,56 +55,58 @@
|
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@nexes/nql": "0.6.0",
|
|
57
57
|
"@sentry/node": "6.16.1",
|
|
58
|
-
"@tryghost/adapter-manager": "0.2.
|
|
59
|
-
"@tryghost/admin-api-schema": "2.
|
|
60
|
-
"@tryghost/bookshelf-plugins": "0.3.
|
|
61
|
-
"@tryghost/bootstrap-socket": "0.2.
|
|
62
|
-
"@tryghost/color-utils": "0.1.
|
|
63
|
-
"@tryghost/config-url-helpers": "0.1.
|
|
64
|
-
"@tryghost/constants": "1.0.
|
|
58
|
+
"@tryghost/adapter-manager": "0.2.27",
|
|
59
|
+
"@tryghost/admin-api-schema": "2.7.0",
|
|
60
|
+
"@tryghost/bookshelf-plugins": "0.3.6",
|
|
61
|
+
"@tryghost/bootstrap-socket": "0.2.16",
|
|
62
|
+
"@tryghost/color-utils": "0.1.6",
|
|
63
|
+
"@tryghost/config-url-helpers": "0.1.4",
|
|
64
|
+
"@tryghost/constants": "1.0.1",
|
|
65
65
|
"@tryghost/custom-theme-settings-service": "0.3.1",
|
|
66
|
-
"@tryghost/
|
|
66
|
+
"@tryghost/database-info": "0.1.0",
|
|
67
|
+
"@tryghost/debug": "0.1.10",
|
|
67
68
|
"@tryghost/email-analytics-provider-mailgun": "1.0.7",
|
|
68
69
|
"@tryghost/email-analytics-service": "1.0.5",
|
|
69
|
-
"@tryghost/errors": "1.2.
|
|
70
|
-
"@tryghost/express-dynamic-redirects": "0.2.
|
|
71
|
-
"@tryghost/helpers": "1.1.
|
|
72
|
-
"@tryghost/image-transform": "1.0.
|
|
73
|
-
"@tryghost/job-manager": "0.8.
|
|
74
|
-
"@tryghost/kg-card-factory": "3.1.
|
|
75
|
-
"@tryghost/kg-default-atoms": "3.1.
|
|
76
|
-
"@tryghost/kg-default-cards": "5.15.
|
|
77
|
-
"@tryghost/kg-markdown-html-renderer": "5.1.
|
|
78
|
-
"@tryghost/kg-mobiledoc-html-renderer": "5.3.
|
|
79
|
-
"@tryghost/limit-service": "1.0.
|
|
80
|
-
"@tryghost/logging": "2.0.
|
|
81
|
-
"@tryghost/magic-link": "1.0.
|
|
82
|
-
"@tryghost/members-api": "
|
|
83
|
-
"@tryghost/members-csv": "1.2.
|
|
84
|
-
"@tryghost/members-importer": "0.
|
|
85
|
-
"@tryghost/members-offers": "0.10.
|
|
86
|
-
"@tryghost/members-ssr": "1.0.
|
|
87
|
-
"@tryghost/
|
|
88
|
-
"@tryghost/
|
|
89
|
-
"@tryghost/
|
|
90
|
-
"@tryghost/mw-
|
|
91
|
-
"@tryghost/
|
|
92
|
-
"@tryghost/
|
|
93
|
-
"@tryghost/
|
|
94
|
-
"@tryghost/
|
|
95
|
-
"@tryghost/
|
|
96
|
-
"@tryghost/
|
|
97
|
-
"@tryghost/
|
|
98
|
-
"@tryghost/
|
|
99
|
-
"@tryghost/
|
|
100
|
-
"@tryghost/
|
|
101
|
-
"@tryghost/
|
|
70
|
+
"@tryghost/errors": "1.2.1",
|
|
71
|
+
"@tryghost/express-dynamic-redirects": "0.2.4",
|
|
72
|
+
"@tryghost/helpers": "1.1.55",
|
|
73
|
+
"@tryghost/image-transform": "1.0.27",
|
|
74
|
+
"@tryghost/job-manager": "0.8.18",
|
|
75
|
+
"@tryghost/kg-card-factory": "3.1.1",
|
|
76
|
+
"@tryghost/kg-default-atoms": "3.1.1",
|
|
77
|
+
"@tryghost/kg-default-cards": "5.15.12",
|
|
78
|
+
"@tryghost/kg-markdown-html-renderer": "5.1.1",
|
|
79
|
+
"@tryghost/kg-mobiledoc-html-renderer": "5.3.2",
|
|
80
|
+
"@tryghost/limit-service": "1.0.9",
|
|
81
|
+
"@tryghost/logging": "2.0.1",
|
|
82
|
+
"@tryghost/magic-link": "1.0.17",
|
|
83
|
+
"@tryghost/members-api": "4.4.1",
|
|
84
|
+
"@tryghost/members-csv": "1.2.3",
|
|
85
|
+
"@tryghost/members-importer": "0.4.1",
|
|
86
|
+
"@tryghost/members-offers": "0.10.5",
|
|
87
|
+
"@tryghost/members-ssr": "1.0.18",
|
|
88
|
+
"@tryghost/members-stripe-service": "0.6.4",
|
|
89
|
+
"@tryghost/metrics": "1.0.2",
|
|
90
|
+
"@tryghost/minifier": "0.1.10",
|
|
91
|
+
"@tryghost/mw-error-handler": "0.1.2",
|
|
92
|
+
"@tryghost/mw-session-from-token": "0.1.27",
|
|
93
|
+
"@tryghost/nodemailer": "0.3.9",
|
|
94
|
+
"@tryghost/package-json": "1.0.15",
|
|
95
|
+
"@tryghost/promise": "0.1.14",
|
|
96
|
+
"@tryghost/request": "0.1.11",
|
|
97
|
+
"@tryghost/root-utils": "0.3.8",
|
|
98
|
+
"@tryghost/security": "0.2.14",
|
|
99
|
+
"@tryghost/session-service": "0.1.37",
|
|
100
|
+
"@tryghost/settings-path-manager": "0.1.3",
|
|
101
|
+
"@tryghost/social-urls": "0.1.28",
|
|
102
|
+
"@tryghost/string": "0.1.22",
|
|
103
|
+
"@tryghost/tpl": "0.1.9",
|
|
102
104
|
"@tryghost/update-check-service": "0.3.0",
|
|
103
|
-
"@tryghost/url-utils": "2.0.
|
|
104
|
-
"@tryghost/validator": "0.1.
|
|
105
|
-
"@tryghost/version": "0.1.
|
|
106
|
-
"@tryghost/vhost-middleware": "1.0.
|
|
107
|
-
"@tryghost/zip": "1.1.
|
|
105
|
+
"@tryghost/url-utils": "2.0.5",
|
|
106
|
+
"@tryghost/validator": "0.1.10",
|
|
107
|
+
"@tryghost/version": "0.1.8",
|
|
108
|
+
"@tryghost/vhost-middleware": "1.0.20",
|
|
109
|
+
"@tryghost/zip": "1.1.19",
|
|
108
110
|
"amperize": "0.6.1",
|
|
109
111
|
"analytics-node": "6.0.0",
|
|
110
112
|
"bluebird": "3.7.2",
|
|
@@ -112,7 +114,7 @@
|
|
|
112
114
|
"bookshelf": "1.2.0",
|
|
113
115
|
"bookshelf-relations": "2.3.0",
|
|
114
116
|
"brute-knex": "4.0.1",
|
|
115
|
-
"bson-objectid": "2.0.
|
|
117
|
+
"bson-objectid": "2.0.2",
|
|
116
118
|
"bthreads": "0.5.1",
|
|
117
119
|
"cheerio": "0.22.0",
|
|
118
120
|
"compression": "1.7.4",
|
|
@@ -131,9 +133,9 @@
|
|
|
131
133
|
"ghost-storage-base": "1.0.0",
|
|
132
134
|
"glob": "7.2.0",
|
|
133
135
|
"got": "9.6.0",
|
|
134
|
-
"gscan": "4.
|
|
136
|
+
"gscan": "4.22.0",
|
|
135
137
|
"html-to-text": "5.1.1",
|
|
136
|
-
"image-size": "1.0.
|
|
138
|
+
"image-size": "1.0.1",
|
|
137
139
|
"intl": "1.2.5",
|
|
138
140
|
"intl-messageformat": "5.4.3",
|
|
139
141
|
"js-yaml": "4.1.0",
|
|
@@ -175,7 +177,7 @@
|
|
|
175
177
|
"xml": "1.0.1"
|
|
176
178
|
},
|
|
177
179
|
"optionalDependencies": {
|
|
178
|
-
"@tryghost/html-to-mobiledoc": "1.8.
|
|
180
|
+
"@tryghost/html-to-mobiledoc": "1.8.3",
|
|
179
181
|
"sqlite3": "5.0.2"
|
|
180
182
|
},
|
|
181
183
|
"devDependencies": {
|
|
@@ -184,9 +186,9 @@
|
|
|
184
186
|
"c8": "7.11.0",
|
|
185
187
|
"chai": "4.3.4",
|
|
186
188
|
"coffeescript": "2.6.1",
|
|
187
|
-
"cssnano": "5.0.
|
|
189
|
+
"cssnano": "5.0.15",
|
|
188
190
|
"eslint": "7.32.0",
|
|
189
|
-
"eslint-plugin-ghost": "2.
|
|
191
|
+
"eslint-plugin-ghost": "2.12.0",
|
|
190
192
|
"expect": "27.4.6",
|
|
191
193
|
"grunt": "1.4.1",
|
|
192
194
|
"grunt-bg-shell": "2.3.3",
|
|
@@ -200,20 +202,20 @@
|
|
|
200
202
|
"grunt-subgrunt": "1.3.0",
|
|
201
203
|
"grunt-update-submodules": "0.4.1",
|
|
202
204
|
"jwks-rsa": "2.0.5",
|
|
203
|
-
"mocha": "9.1.
|
|
205
|
+
"mocha": "9.1.4",
|
|
204
206
|
"mocha-slow-test-reporter": "0.1.2",
|
|
205
207
|
"mock-knex": "0.4.10",
|
|
206
|
-
"nock": "13.2.
|
|
208
|
+
"nock": "13.2.2",
|
|
207
209
|
"papaparse": "5.3.1",
|
|
208
210
|
"postcss": "8.4.5",
|
|
209
211
|
"rewire": "5.0.0",
|
|
210
212
|
"should": "13.2.3",
|
|
211
213
|
"sinon": "11.1.2",
|
|
212
|
-
"supertest": "6.
|
|
214
|
+
"supertest": "6.2.2",
|
|
213
215
|
"tmp": "0.2.1"
|
|
214
216
|
},
|
|
215
217
|
"resolutions": {
|
|
216
|
-
"@tryghost/logging": "2.0.
|
|
218
|
+
"@tryghost/logging": "2.0.1",
|
|
217
219
|
"moment": "2.24.0",
|
|
218
220
|
"moment-timezone": "0.5.23"
|
|
219
221
|
}
|