Ghost/ghost/core/package.json

217 lines
8.3 KiB
JSON
Raw Normal View History

{
"name": "ghost",
2022-08-26 18:00:32 +03:00
"version": "5.12.0",
"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",
"setup": "knex-migrator init && grunt symlink || (exit 0)",
"build": "yarn workspace ghost-admin run build",
"test": "yarn test:unit",
"test:single": "mocha --require=./test/utils/overrides.js --exit --trace-warnings --recursive --extension=test.js --timeout=60000",
"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",
"test:integration": "mocha --require=./test/utils/overrides.js --exit --trace-warnings --recursive --extension=test.js './test/integration' --timeout=10000",
"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",
"test:regression": "mocha --require=./test/utils/overrides.js --exit --trace-warnings --recursive --extension=test.js './test/regression' --timeout=60000",
"test:browser": "playwright test --browser=all test/e2e-browser",
"test:ci": "yarn test:e2e -b && yarn test:integration -b && yarn test:regression -b",
"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",
"build:css": "postcss core/frontend/public/ghost.css --no-map --use cssnano -o core/frontend/public/ghost.min.css",
"prepack": "npx --yes daniellockyer/monobundle && yarn workspace ghost-admin run build:prod && yarn build:css"
},
"engines": {
"node": "^14.17.0 || ^16.13.0",
"cli": "^1.17.0"
},
"dependencies": {
"@sentry/node": "7.11.1",
"@tryghost/adapter-manager": "0.0.0",
"@tryghost/admin-api-schema": "4.1.1",
"@tryghost/api-framework": "0.0.0",
"@tryghost/api-version-compatibility-service": "0.0.0",
"@tryghost/bookshelf-plugins": "0.5.0",
"@tryghost/bootstrap-socket": "0.0.0",
"@tryghost/color-utils": "0.1.20",
"@tryghost/config-url-helpers": "1.0.3",
"@tryghost/constants": "0.0.0",
"@tryghost/custom-theme-settings-service": "0.0.0",
"@tryghost/database-info": "0.3.9",
"@tryghost/debug": "0.1.18",
"@tryghost/domain-events": "0.0.0",
"@tryghost/email-analytics-provider-mailgun": "0.0.0",
"@tryghost/email-analytics-service": "0.0.0",
"@tryghost/email-content-generator": "0.0.0",
"@tryghost/errors": "1.2.15",
"@tryghost/express-dynamic-redirects": "0.0.0",
"@tryghost/helpers": "1.1.72",
"@tryghost/html-to-plaintext": "0.0.0",
"@tryghost/image-transform": "1.2.2",
"@tryghost/job-manager": "0.0.0",
"@tryghost/kg-card-factory": "3.1.4",
"@tryghost/kg-default-atoms": "3.1.3",
"@tryghost/kg-default-cards": "5.16.3",
"@tryghost/kg-mobiledoc-html-renderer": "5.3.6",
"@tryghost/limit-service": "1.2.3",
"@tryghost/logging": "2.2.4",
"@tryghost/magic-link": "0.0.0",
"@tryghost/mailgun-client": "0.0.0",
Added member attribution events and storage (#15243) refs https://github.com/TryGhost/Team/issues/1808 refs https://github.com/TryGhost/Team/issues/1809 refs https://github.com/TryGhost/Team/issues/1820 refs https://github.com/TryGhost/Team/issues/1814 ### Changes in `member-events` package - Added MemberCreatedEvent (event, not model) - Added SubscriptionCreatedEvent (event, not model) ### Added `member-attribution` package (new) - Added the AttributionBuilder class which is able to convert a url history to an attribution object (exposed as getAttribution on the service itself, which handles the dependencies) ``` [{ "path": "/", "time": 123 }] ``` to ``` { "url": "/", "id": null, "type": "url" } ``` - event handler listens for MemberCreatedEvent and SubscriptionCreatedEvent and creates the corresponding models in the database. ### Changes in `members-api` package - Added urlHistory to `sendMagicLink` endpoint body + convert the urlHistory to an attribution object that is stored in the tokenData of the magic link (sent by Portal in this PR: https://github.com/TryGhost/Portal/pull/256). - Added urlHistory to `createCheckoutSession` endpoint + convert the urlHistory to attribution keys that are saved in the Stripe Session metadata (sent by Portal in this PR: https://github.com/TryGhost/Portal/pull/256). - Added attribution data property to member repository's create method (when a member is created) - Dispatch MemberCreatedEvent with attribution ### Changes in `members-stripe-service` package (`ghost/stripe`) - Dispatch SubscriptionCreatedEvent in WebhookController on subscription checkout (with attribution from session metadata)
2022-08-18 18:38:42 +03:00
"@tryghost/member-attribution": "0.0.0",
"@tryghost/member-events": "0.0.0",
"@tryghost/members-api": "0.0.0",
"@tryghost/members-csv": "0.0.0",
"@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",
"@tryghost/metrics": "1.0.15",
"@tryghost/minifier": "0.0.0",
"@tryghost/mw-api-version-mismatch": "0.0.0",
"@tryghost/mw-cache-control": "0.0.0",
"@tryghost/mw-error-handler": "0.0.0",
"@tryghost/mw-session-from-token": "0.0.0",
"@tryghost/mw-vhost": "0.0.0",
"@tryghost/nodemailer": "0.3.25",
"@tryghost/nql": "0.9.2",
"@tryghost/oembed-service": "0.0.0",
"@tryghost/package-json": "0.0.0",
"@tryghost/pretty-cli": "1.2.30",
"@tryghost/promise": "0.1.21",
"@tryghost/request": "0.1.29",
"@tryghost/security": "0.0.0",
"@tryghost/session-service": "0.0.0",
"@tryghost/settings-path-manager": "0.0.0",
"@tryghost/social-urls": "0.1.33",
2022-08-26 18:00:32 +03:00
"@tryghost/staff-service": "0.0.0",
"@tryghost/stats-service": "0.3.0",
"@tryghost/string": "0.1.27",
"@tryghost/tpl": "0.1.18",
"@tryghost/update-check-service": "0.0.0",
"@tryghost/url-utils": "4.0.3",
"@tryghost/validator": "0.1.27",
"@tryghost/verification-trigger": "0.0.0",
"@tryghost/version": "0.1.16",
"@tryghost/zip": "1.1.28",
"amperize": "0.6.1",
"analytics-node": "6.2.0",
"bluebird": "3.7.2",
"body-parser": "1.20.0",
"bookshelf": "1.2.0",
"bookshelf-relations": "2.4.0",
"brute-knex": "4.0.1",
"bson-objectid": "2.0.3",
"chalk": "4.1.2",
"cheerio": "0.22.0",
"common-tags": "1.8.2",
"compression": "1.7.4",
"connect-slashes": "1.4.0",
"cookie-session": "2.0.0",
"cors": "2.8.5",
"downsize": "0.0.8",
"express": "4.18.1",
"express-brute": "1.0.1",
"express-hbs": "2.4.0",
"express-jwt": "7.7.5",
"express-lazy-router": "1.0.4",
"express-query-boolean": "2.0.0",
"express-session": "1.17.3",
"fs-extra": "10.1.0",
"ghost-storage-base": "1.0.0",
"glob": "8.0.3",
"got": "9.6.0",
"gscan": "4.34.0",
"human-number": "2.0.0",
"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",
"keypair": "1.0.4",
"knex": "2.2.0",
"knex-migrator": "5.0.3",
"lodash": "4.17.21",
2022-08-29 03:09:28 +03:00
"luxon": "3.0.2",
"moment": "2.24.0",
"moment-timezone": "0.5.23",
"multer": "1.4.4",
"mysql2": "2.3.3",
"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",
"sanitize-html": "2.7.1",
"semver": "7.3.7",
"stoppable": "1.1.0",
"uuid": "8.3.2",
"xml": "1.0.1"
},
"optionalDependencies": {
"@tryghost/html-to-mobiledoc": "1.8.10",
2022-08-01 05:02:20 +03:00
"sqlite3": "5.0.11"
},
"devDependencies": {
"@playwright/test": "1.25.1",
"@tryghost/express-test": "0.11.2",
"@tryghost/webhook-mock-receiver": "0.1.2",
"@types/common-tags": "1.8.1",
"c8": "7.12.0",
"cli-progress": "3.11.2",
2022-08-12 21:49:44 +03:00
"cssnano": "5.1.13",
2022-08-15 10:53:57 +03:00
"eslint": "8.22.0",
"grunt": "1.5.3",
"grunt-contrib-symlink": "1.0.0",
"grunt-shell": "4.0.0",
"inquirer": "8.2.4",
"jwks-rsa": "2.1.4",
"mocha": "10.0.0",
"mocha-slow-test-reporter": "0.1.2",
"mock-knex": "TryGhost/mock-knex#8ecb8c227bf463c991c3d820d33f59efc3ab9682",
"nock": "13.2.9",
"papaparse": "5.3.2",
2022-08-09 13:27:28 +03:00
"postcss": "8.4.16",
"postcss-cli": "10.0.0",
"rewire": "6.0.0",
"should": "13.2.3",
"sinon": "14.0.0",
"supertest": "6.2.4",
"tmp": "0.2.1"
},
"resolutions": {
"@tryghost/logging": "2.2.4",
"moment": "2.24.0",
"moment-timezone": "0.5.23"
}
}