mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 14:03:48 +03:00
2e2b3c7c0f
refs TryGhost/Team#2840 - moves the `entities.decode()` step to the `LinkReplacer` class so that it's applied to all links, not just the ones that are replaced in the email service - adds a test case to `LinkReplacer` to ensure that the `entities.decode()` step is applied to all links correctly, decoding any URLs with HTML entities in them --------- Co-authored-by: Chris Raible <chris@ghost.org>
43 lines
1.2 KiB
JSON
43 lines
1.2 KiB
JSON
{
|
|
"name": "@tryghost/email-service",
|
|
"version": "0.0.0",
|
|
"repository": "https://github.com/TryGhost/Ghost/tree/main/packages/email-service",
|
|
"author": "Ghost Foundation",
|
|
"private": true,
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"dev": "echo \"Implement me!\"",
|
|
"test:unit": "NODE_ENV=testing c8 --all --check-coverage --100 --reporter text --reporter cobertura mocha './test/**/*.test.js'",
|
|
"test": "yarn test:unit",
|
|
"lint:code": "eslint *.js lib/ --ext .js --cache",
|
|
"lint": "yarn lint:code && yarn lint:test",
|
|
"lint:test": "eslint -c test/.eslintrc.js test/ --ext .js --cache"
|
|
},
|
|
"files": [
|
|
"index.js",
|
|
"lib"
|
|
],
|
|
"devDependencies": {
|
|
"c8": "7.13.0",
|
|
"html-validate": "7.13.3",
|
|
"mocha": "10.2.0",
|
|
"should": "13.2.3",
|
|
"sinon": "15.0.2"
|
|
},
|
|
"dependencies": {
|
|
"@tryghost/color-utils": "0.1.23",
|
|
"@tryghost/email-events": "0.0.0",
|
|
"@tryghost/errors": "1.2.21",
|
|
"@tryghost/html-to-plaintext": "0.0.0",
|
|
"@tryghost/kg-default-cards": "6.0.5",
|
|
"@tryghost/logging": "2.4.1",
|
|
"@tryghost/tpl": "0.1.22",
|
|
"@tryghost/validator": "^0.2.0",
|
|
"bson-objectid": "2.0.4",
|
|
"cheerio": "0.22.0",
|
|
"handlebars": "4.7.7",
|
|
"juice": "8.1.0",
|
|
"moment-timezone": "0.5.23"
|
|
}
|
|
}
|