2022-07-20 17:10:38 +03:00
|
|
|
{
|
|
|
|
"name": "ghost",
|
2023-02-07 13:32:43 +03:00
|
|
|
"version": "5.33.7",
|
2022-07-20 17:10:38 +03:00
|
|
|
"description": "The professional publishing platform",
|
|
|
|
"author": "Ghost Foundation",
|
|
|
|
"homepage": "https://ghost.org",
|
|
|
|
"keywords": [
|
|
|
|
"ghost",
|
|
|
|
"blog",
|
|
|
|
"cms",
|
|
|
|
"headless",
|
|
|
|
"content",
|
|
|
|
"markdown"
|
|
|
|
],
|
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
|
|
|
"url": "git://github.com/TryGhost/Ghost.git"
|
|
|
|
},
|
|
|
|
"bugs": "https://github.com/TryGhost/Ghost/issues",
|
|
|
|
"contributors": "https://github.com/TryGhost/Ghost/graphs/contributors",
|
|
|
|
"license": "MIT",
|
|
|
|
"scripts": {
|
|
|
|
"start": "node index",
|
2022-10-19 14:58:00 +03:00
|
|
|
"setup": "knex-migrator init",
|
2022-09-26 14:27:34 +03:00
|
|
|
"build": "npm pack --pack-destination ../..",
|
2022-07-20 18:37:59 +03:00
|
|
|
"test": "yarn test:unit",
|
|
|
|
"test:single": "mocha --require=./test/utils/overrides.js --exit --trace-warnings --recursive --extension=test.js --timeout=60000",
|
2022-07-20 17:10:38 +03:00
|
|
|
"test:all": "yarn test:unit && yarn test:integration && yarn test:e2e && yarn lint",
|
|
|
|
"test:debug": "DEBUG=ghost:test* yarn test",
|
|
|
|
"test:unit": "c8 yarn test:unit:base",
|
|
|
|
"test:unit:base": "mocha --require=./test/utils/overrides.js --exit --trace-warnings --recursive --extension=test.js './test/unit' --timeout=2000",
|
2022-08-05 13:57:57 +03:00
|
|
|
"test:integration": "mocha --require=./test/utils/overrides.js --exit --trace-warnings --recursive --extension=test.js './test/integration' --timeout=10000",
|
2022-07-21 10:38:38 +03:00
|
|
|
"test:e2e": "mocha --require=./test/utils/overrides.js --exit --trace-warnings --recursive --extension=test.js './test/e2e-api' './test/e2e-frontend' './test/e2e-server' './test/e2e-webhooks' --timeout=15000",
|
2022-07-20 17:10:38 +03:00
|
|
|
"test:regression": "mocha --require=./test/utils/overrides.js --exit --trace-warnings --recursive --extension=test.js './test/regression' --timeout=60000",
|
2022-12-06 13:30:07 +03:00
|
|
|
"test:browser": "NODE_ENV=testing-browser playwright test test/e2e-browser",
|
2022-12-07 06:47:01 +03:00
|
|
|
"test:browser:single": "NODE_ENV=testing-browser playwright test",
|
2022-12-06 13:30:07 +03:00
|
|
|
"test:browser:setup": "npx playwright install",
|
|
|
|
"test:browser:record": "NODE_ENV=testing-browser yarn start record-test",
|
2022-11-16 12:21:33 +03:00
|
|
|
"test:ci": "c8 -c ./.c8rc.e2e.json yarn test:ci:base",
|
2022-11-30 06:39:32 +03:00
|
|
|
"test:ci:base": "yarn test:e2e -b && yarn test:integration -b && yarn test:regression -b",
|
2022-07-20 17:10:38 +03:00
|
|
|
"test:unit:slow": "yarn test:unit --reporter=mocha-slow-test-reporter",
|
|
|
|
"test:int:slow": "yarn test:integration --reporter=mocha-slow-test-reporter",
|
|
|
|
"test:e2e:slow": "yarn test:e2e --reporter=mocha-slow-test-reporter",
|
|
|
|
"test:reg:slow": "mocha --require=./test/utils/overrides.js --exit --trace-warnings --recursive --extension=test.js './test/regression' --timeout=60000 --reporter=mocha-slow-test-reporter",
|
|
|
|
"lint:server": "eslint --ignore-path .eslintignore 'core/server/**/*.js' 'core/*.js' '*.js'",
|
|
|
|
"lint:shared": "eslint --ignore-path .eslintignore 'core/shared/**/*.js'",
|
|
|
|
"lint:frontend": "eslint --ignore-path .eslintignore 'core/frontend/**/*.js'",
|
|
|
|
"lint:test": "eslint -c test/.eslintrc.js --ignore-path test/.eslintignore 'test/**/*.js'",
|
|
|
|
"lint:code": "yarn lint:server && yarn lint:shared && yarn lint:frontend",
|
|
|
|
"lint": "yarn lint:server && yarn lint:shared && yarn lint:frontend && yarn lint:test",
|
2022-08-02 21:23:24 +03:00
|
|
|
"build:css": "postcss core/frontend/public/ghost.css --no-map --use cssnano -o core/frontend/public/ghost.min.css",
|
2022-08-31 10:48:47 +03:00
|
|
|
"prepack": "yarn workspace ghost-admin run build:prod && yarn build:css && npx --yes daniellockyer/monobundle"
|
2022-07-20 17:10:38 +03:00
|
|
|
},
|
|
|
|
"engines": {
|
2023-01-04 12:45:48 +03:00
|
|
|
"node": "^14.18.0 || ^16.13.0 || ^18.12.1",
|
2022-07-20 17:10:38 +03:00
|
|
|
"cli": "^1.17.0"
|
|
|
|
},
|
|
|
|
"dependencies": {
|
2022-12-13 17:53:27 +03:00
|
|
|
"@sentry/node": "7.11.1",
|
2022-12-14 07:18:55 +03:00
|
|
|
"@tryghost/adapter-base-cache": "0.1.3",
|
2022-07-26 15:57:43 +03:00
|
|
|
"@tryghost/adapter-manager": "0.0.0",
|
2022-12-14 07:18:55 +03:00
|
|
|
"@tryghost/admin-api-schema": "4.2.1",
|
2022-08-11 17:39:37 +03:00
|
|
|
"@tryghost/api-framework": "0.0.0",
|
2022-07-26 15:57:43 +03:00
|
|
|
"@tryghost/api-version-compatibility-service": "0.0.0",
|
2022-10-11 17:53:54 +03:00
|
|
|
"@tryghost/audience-feedback": "0.0.0",
|
2023-01-02 21:32:59 +03:00
|
|
|
"@tryghost/bookshelf-plugins": "0.6.3",
|
2022-07-26 15:57:43 +03:00
|
|
|
"@tryghost/bootstrap-socket": "0.0.0",
|
2022-12-14 07:18:55 +03:00
|
|
|
"@tryghost/color-utils": "0.1.22",
|
|
|
|
"@tryghost/config-url-helpers": "1.0.4",
|
2022-07-26 15:57:43 +03:00
|
|
|
"@tryghost/constants": "0.0.0",
|
2022-07-20 18:20:24 +03:00
|
|
|
"@tryghost/custom-theme-settings-service": "0.0.0",
|
2022-10-27 13:51:09 +03:00
|
|
|
"@tryghost/data-generator": "0.0.0",
|
2023-01-02 21:32:59 +03:00
|
|
|
"@tryghost/database-info": "0.3.14",
|
|
|
|
"@tryghost/debug": "0.1.21",
|
2022-07-21 10:15:29 +03:00
|
|
|
"@tryghost/domain-events": "0.0.0",
|
2023-01-20 15:08:30 +03:00
|
|
|
"@tryghost/dynamic-routing-events": "0.0.0",
|
2022-07-20 18:20:24 +03:00
|
|
|
"@tryghost/email-analytics-provider-mailgun": "0.0.0",
|
|
|
|
"@tryghost/email-analytics-service": "0.0.0",
|
2022-07-26 15:57:43 +03:00
|
|
|
"@tryghost/email-content-generator": "0.0.0",
|
2023-01-13 14:45:58 +03:00
|
|
|
"@tryghost/email-mock-receiver": "0.1.0",
|
2022-11-25 18:00:47 +03:00
|
|
|
"@tryghost/email-service": "0.0.0",
|
2022-11-18 10:02:32 +03:00
|
|
|
"@tryghost/email-suppression-list": "0.0.0",
|
2023-01-02 21:32:59 +03:00
|
|
|
"@tryghost/errors": "1.2.20",
|
2022-07-21 10:24:02 +03:00
|
|
|
"@tryghost/express-dynamic-redirects": "0.0.0",
|
2022-12-14 07:18:55 +03:00
|
|
|
"@tryghost/helpers": "1.1.75",
|
2022-08-03 15:47:37 +03:00
|
|
|
"@tryghost/html-to-plaintext": "0.0.0",
|
2023-01-02 21:32:59 +03:00
|
|
|
"@tryghost/http-cache-utils": "0.1.6",
|
2022-12-14 07:18:55 +03:00
|
|
|
"@tryghost/image-transform": "1.2.3",
|
2022-12-16 00:00:43 +03:00
|
|
|
"@tryghost/importer-revue": "0.0.0",
|
2022-07-26 15:57:43 +03:00
|
|
|
"@tryghost/job-manager": "0.0.0",
|
2023-01-04 12:42:36 +03:00
|
|
|
"@tryghost/kg-card-factory": "4.0.0",
|
|
|
|
"@tryghost/kg-default-atoms": "4.0.0",
|
|
|
|
"@tryghost/kg-default-cards": "6.0.0",
|
2022-11-29 19:57:01 +03:00
|
|
|
"@tryghost/kg-default-nodes": "0.0.1",
|
2022-11-08 18:05:58 +03:00
|
|
|
"@tryghost/kg-lexical-html-renderer": "0.0.11",
|
2023-01-04 12:42:36 +03:00
|
|
|
"@tryghost/kg-mobiledoc-html-renderer": "6.0.0",
|
2022-12-14 07:18:55 +03:00
|
|
|
"@tryghost/limit-service": "1.2.4",
|
2022-09-14 01:26:35 +03:00
|
|
|
"@tryghost/link-redirects": "0.0.0",
|
2022-09-19 18:12:54 +03:00
|
|
|
"@tryghost/link-replacer": "0.0.0",
|
2022-09-14 01:27:27 +03:00
|
|
|
"@tryghost/link-tracking": "0.0.0",
|
2023-01-20 14:51:03 +03:00
|
|
|
"@tryghost/logging": "2.4.0",
|
2022-07-21 10:15:29 +03:00
|
|
|
"@tryghost/magic-link": "0.0.0",
|
2022-08-12 18:48:40 +03:00
|
|
|
"@tryghost/mailgun-client": "0.0.0",
|
2022-08-18 18:38:42 +03:00
|
|
|
"@tryghost/member-attribution": "0.0.0",
|
2022-07-21 10:15:29 +03:00
|
|
|
"@tryghost/member-events": "0.0.0",
|
|
|
|
"@tryghost/members-api": "0.0.0",
|
2022-08-18 12:36:16 +03:00
|
|
|
"@tryghost/members-csv": "0.0.0",
|
2022-07-21 10:15:29 +03:00
|
|
|
"@tryghost/members-events-service": "0.0.0",
|
|
|
|
"@tryghost/members-importer": "0.0.0",
|
|
|
|
"@tryghost/members-offers": "0.0.0",
|
|
|
|
"@tryghost/members-ssr": "0.0.0",
|
|
|
|
"@tryghost/members-stripe-service": "0.0.0",
|
2023-01-02 21:32:59 +03:00
|
|
|
"@tryghost/metrics": "1.0.20",
|
2022-07-26 15:57:43 +03:00
|
|
|
"@tryghost/minifier": "0.0.0",
|
|
|
|
"@tryghost/mw-api-version-mismatch": "0.0.0",
|
2022-08-11 15:10:39 +03:00
|
|
|
"@tryghost/mw-cache-control": "0.0.0",
|
2022-07-26 15:57:43 +03:00
|
|
|
"@tryghost/mw-error-handler": "0.0.0",
|
|
|
|
"@tryghost/mw-session-from-token": "0.0.0",
|
2022-07-26 16:12:32 +03:00
|
|
|
"@tryghost/mw-vhost": "0.0.0",
|
2023-01-02 21:32:59 +03:00
|
|
|
"@tryghost/nodemailer": "0.3.31",
|
2022-10-27 12:44:19 +03:00
|
|
|
"@tryghost/nql": "0.11.0",
|
2022-08-15 10:33:23 +03:00
|
|
|
"@tryghost/oembed-service": "0.0.0",
|
2022-07-26 15:57:43 +03:00
|
|
|
"@tryghost/package-json": "0.0.0",
|
2023-01-02 21:32:59 +03:00
|
|
|
"@tryghost/pretty-cli": "1.2.33",
|
2022-11-09 12:40:06 +03:00
|
|
|
"@tryghost/promise": "0.2.1",
|
2023-01-02 21:32:59 +03:00
|
|
|
"@tryghost/request": "0.1.34",
|
2022-07-26 15:57:43 +03:00
|
|
|
"@tryghost/security": "0.0.0",
|
|
|
|
"@tryghost/session-service": "0.0.0",
|
|
|
|
"@tryghost/settings-path-manager": "0.0.0",
|
2022-12-14 07:18:55 +03:00
|
|
|
"@tryghost/social-urls": "0.1.34",
|
2022-08-26 18:00:32 +03:00
|
|
|
"@tryghost/staff-service": "0.0.0",
|
2022-09-20 16:18:51 +03:00
|
|
|
"@tryghost/stats-service": "0.0.0",
|
2022-12-14 07:18:55 +03:00
|
|
|
"@tryghost/string": "0.2.2",
|
2022-10-21 11:27:45 +03:00
|
|
|
"@tryghost/tiers": "0.0.0",
|
2023-01-02 21:32:59 +03:00
|
|
|
"@tryghost/tpl": "0.1.21",
|
2022-07-26 15:57:43 +03:00
|
|
|
"@tryghost/update-check-service": "0.0.0",
|
2022-11-29 19:57:01 +03:00
|
|
|
"@tryghost/url-utils": "4.3.0",
|
2022-12-14 07:18:55 +03:00
|
|
|
"@tryghost/validator": "0.1.31",
|
2022-07-21 10:15:29 +03:00
|
|
|
"@tryghost/verification-trigger": "0.0.0",
|
2023-01-02 21:32:59 +03:00
|
|
|
"@tryghost/version": "0.1.19",
|
2023-01-17 10:55:53 +03:00
|
|
|
"@tryghost/webmentions": "0.0.0",
|
2023-01-02 21:32:59 +03:00
|
|
|
"@tryghost/zip": "1.1.31",
|
2022-07-20 17:10:38 +03:00
|
|
|
"amperize": "0.6.1",
|
2022-08-03 09:13:06 +03:00
|
|
|
"analytics-node": "6.2.0",
|
2022-07-20 17:10:38 +03:00
|
|
|
"bluebird": "3.7.2",
|
2022-10-07 00:20:56 +03:00
|
|
|
"body-parser": "1.20.1",
|
2022-07-20 17:10:38 +03:00
|
|
|
"bookshelf": "1.2.0",
|
2023-01-03 22:09:30 +03:00
|
|
|
"bookshelf-relations": "2.5.1",
|
2022-07-20 17:10:38 +03:00
|
|
|
"brute-knex": "4.0.1",
|
2022-11-23 13:37:03 +03:00
|
|
|
"bson-objectid": "2.0.4",
|
2022-07-20 17:10:38 +03:00
|
|
|
"chalk": "4.1.2",
|
|
|
|
"cheerio": "0.22.0",
|
2022-08-03 13:56:14 +03:00
|
|
|
"common-tags": "1.8.2",
|
2022-07-20 17:10:38 +03:00
|
|
|
"compression": "1.7.4",
|
|
|
|
"connect-slashes": "1.4.0",
|
|
|
|
"cookie-session": "2.0.0",
|
|
|
|
"cors": "2.8.5",
|
|
|
|
"downsize": "0.0.8",
|
2022-10-10 05:33:02 +03:00
|
|
|
"express": "4.18.2",
|
2022-07-20 17:10:38 +03:00
|
|
|
"express-brute": "1.0.1",
|
|
|
|
"express-hbs": "2.4.0",
|
2022-10-25 00:21:25 +03:00
|
|
|
"express-jwt": "7.7.7",
|
2022-07-20 17:10:38 +03:00
|
|
|
"express-lazy-router": "1.0.4",
|
|
|
|
"express-query-boolean": "2.0.0",
|
|
|
|
"express-session": "1.17.3",
|
2022-12-12 20:15:55 +03:00
|
|
|
"fs-extra": "11.1.0",
|
2022-07-20 17:10:38 +03:00
|
|
|
"ghost-storage-base": "1.0.0",
|
2023-01-16 03:20:18 +03:00
|
|
|
"glob": "8.1.0",
|
2022-07-20 17:10:38 +03:00
|
|
|
"got": "9.6.0",
|
2023-01-06 13:59:02 +03:00
|
|
|
"gscan": "4.36.0",
|
2022-08-31 22:21:36 +03:00
|
|
|
"human-number": "2.0.1",
|
2022-07-20 17:10:38 +03:00
|
|
|
"image-size": "1.0.2",
|
|
|
|
"intl": "1.2.5",
|
|
|
|
"intl-messageformat": "5.4.3",
|
|
|
|
"js-yaml": "4.1.0",
|
|
|
|
"jsonpath": "1.1.1",
|
|
|
|
"jsonwebtoken": "8.5.1",
|
2022-08-09 08:03:08 +03:00
|
|
|
"juice": "8.1.0",
|
2022-07-20 17:10:38 +03:00
|
|
|
"keypair": "1.0.4",
|
2023-01-23 05:01:58 +03:00
|
|
|
"knex": "2.4.2",
|
2023-01-12 12:46:09 +03:00
|
|
|
"knex-migrator": "5.1.1",
|
2022-07-20 17:10:38 +03:00
|
|
|
"lodash": "4.17.21",
|
2023-01-09 19:38:57 +03:00
|
|
|
"luxon": "3.2.1",
|
2022-07-20 17:10:38 +03:00
|
|
|
"moment": "2.24.0",
|
|
|
|
"moment-timezone": "0.5.23",
|
|
|
|
"multer": "1.4.4",
|
2023-02-07 11:13:53 +03:00
|
|
|
"mysql2": "3.1.1",
|
2022-07-20 17:10:38 +03:00
|
|
|
"nconf": "0.12.0",
|
|
|
|
"node-jose": "2.1.1",
|
|
|
|
"oembed-parser": "1.4.9",
|
|
|
|
"path-match": "1.2.4",
|
|
|
|
"probe-image-size": "7.2.3",
|
|
|
|
"rss": "1.2.2",
|
2023-02-01 18:39:45 +03:00
|
|
|
"sanitize-html": "2.9.0",
|
2022-10-06 01:30:32 +03:00
|
|
|
"semver": "7.3.8",
|
2022-07-20 17:10:38 +03:00
|
|
|
"stoppable": "1.1.0",
|
2022-09-06 02:31:04 +03:00
|
|
|
"uuid": "9.0.0",
|
2022-07-20 17:10:38 +03:00
|
|
|
"xml": "1.0.1"
|
|
|
|
},
|
|
|
|
"optionalDependencies": {
|
2023-01-04 12:42:36 +03:00
|
|
|
"@tryghost/html-to-mobiledoc": "2.0.0",
|
2022-12-12 20:08:22 +03:00
|
|
|
"sqlite3": "5.1.4"
|
2022-07-20 17:10:38 +03:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2023-01-25 07:03:58 +03:00
|
|
|
"@playwright/test": "1.30.0",
|
2023-01-18 13:42:42 +03:00
|
|
|
"@tryghost/express-test": "0.13.0",
|
2023-01-02 21:32:59 +03:00
|
|
|
"@tryghost/webhook-mock-receiver": "0.2.3",
|
2022-08-03 13:58:37 +03:00
|
|
|
"@types/common-tags": "1.8.1",
|
2022-07-20 19:05:27 +03:00
|
|
|
"c8": "7.12.0",
|
2022-07-20 17:10:38 +03:00
|
|
|
"cli-progress": "3.11.2",
|
2022-10-28 17:13:51 +03:00
|
|
|
"cssnano": "5.1.14",
|
2023-01-31 04:19:12 +03:00
|
|
|
"eslint": "8.33.0",
|
2022-12-05 06:33:18 +03:00
|
|
|
"expect": "^29.0.0",
|
2023-02-09 05:18:24 +03:00
|
|
|
"html-validate": "7.13.2",
|
🐛 Fixed storing original files for images (#16117)
fixes https://github.com/TryGhost/Team/issues/481
This change fixes an issue when multiple images with the same name are
uploaded in parallel. The current system does not guarantee that the
original filename is stored under NAME+`_o`, because the upload for the
original file and the resized file are happening in parallel.
Solution:
- Wait for the storage of the resized image (= the image without the _o
suffix) before storing the original file.
- When that is stored, use the generated file name of the stored image
to generate the filename with the _o suffix. This way, it will always
match and we don't risk both files to have a different number suffix.
We'll also set the `targetDir` argument when saving the file, to avoid
storing the original file in a different directory (when uploading a
file around midnight both files could be stored in 2023/01 and 2023/02).
Some extra optimisations needed with this fix:
- Previously when uploading image.jpg, while it already exists, it would
store two filenames on e.g., `image-3.jpg` and `image_o-3.jpg`. Note the
weird positioning of `_o`. This probably caused bugs when uploading
files named `image-3.jpg`, which would store the original in
`image-3_o.jpg`, but this original would never be used by the
handle-image-sizes middleware (it would look for `image_o-3.jpg`). This
fix would solve this weird naming issue, and make it more consistent.
But we need to make sure our middlewares (including handle-image-sizes)
will be able to handle both file locations to remain compatible with the
old format. This isn't additional work, because it would fix the old bug
too.
- Prevent uploading files that end with `_o`, e.g. by automatically
stripping that suffix from uploaded files. To prevent collisions.
Advantage(s):
- We keep the original file name, which is better for SEO.
- No changes required to the storage adapters.
Downside(s):
- The storage of both files will nog happen parallel any longer. But I
expect the performance implications to be minimal.
- Changes to the routing: normalize middleware is removed
2023-01-30 18:40:50 +03:00
|
|
|
"form-data": "^4.0.0",
|
2022-10-24 05:41:53 +03:00
|
|
|
"inquirer": "8.2.5",
|
2023-01-13 01:06:45 +03:00
|
|
|
"jwks-rsa": "3.0.1",
|
2022-12-12 16:20:22 +03:00
|
|
|
"mocha": "10.2.0",
|
2022-07-20 17:10:38 +03:00
|
|
|
"mocha-slow-test-reporter": "0.1.2",
|
|
|
|
"mock-knex": "TryGhost/mock-knex#8ecb8c227bf463c991c3d820d33f59efc3ab9682",
|
2023-01-11 00:36:44 +03:00
|
|
|
"nock": "13.3.0",
|
2022-07-20 17:10:38 +03:00
|
|
|
"papaparse": "5.3.2",
|
2023-01-17 15:27:23 +03:00
|
|
|
"postcss": "8.4.21",
|
2022-11-30 01:20:54 +03:00
|
|
|
"postcss-cli": "10.1.0",
|
2022-07-20 17:10:38 +03:00
|
|
|
"rewire": "6.0.0",
|
|
|
|
"should": "13.2.3",
|
2022-11-07 23:39:48 +03:00
|
|
|
"sinon": "14.0.2",
|
2022-12-08 20:16:37 +03:00
|
|
|
"supertest": "6.3.3",
|
2022-12-01 15:05:20 +03:00
|
|
|
"tmp": "0.2.1",
|
|
|
|
"toml": "3.0.0"
|
2022-07-20 17:10:38 +03:00
|
|
|
},
|
|
|
|
"resolutions": {
|
2023-01-20 14:51:03 +03:00
|
|
|
"@elastic/elasticsearch": "8.5.0",
|
|
|
|
"@tryghost/logging": "2.4.0",
|
2022-07-20 17:10:38 +03:00
|
|
|
"moment": "2.24.0",
|
|
|
|
"moment-timezone": "0.5.23"
|
|
|
|
}
|
|
|
|
}
|