Ghost/ghost/oembed-service/package.json
jbenezech 75811f35bc
🐛 Fixed embedded cards for non-utf8 content (#15578)
closes: https://github.com/TryGhost/Ghost/issues/14973

- When fetching content using a non-standard charset, characters were notproperly decoded to utf-8 resulting in mangled text in the editor -> Detect charset and use iconv to decode the page text

- When requesting a non bookmark card, if no oembed data could be foundand we fallback to bookmark, a second network request to fetch the content was issued. This seemed unnecessary -> refactored to avoid that
2022-10-13 12:19:47 +01:00

45 lines
1.3 KiB
JSON

{
"name": "@tryghost/oembed-service",
"version": "0.0.0",
"repository": "https://github.com/TryGhost/Ghost/tree/main/packages/oembed-service",
"author": "Ghost Foundation",
"private": true,
"main": "index.js",
"scripts": {
"dev": "echo \"Implement me!\"",
"test:unit": "NODE_ENV=testing c8 --all --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.12.0",
"mocha": "10.0.0"
},
"dependencies": {
"@tryghost/errors": "1.2.18",
"@tryghost/logging": "2.3.2",
"@tryghost/tpl": "0.1.18",
"charset": "^1.0.1",
"cheerio": "0.22.0",
"iconv-lite": "^0.6.3",
"lodash": "4.17.21",
"metascraper": "5.31.1",
"metascraper-author": "5.31.1",
"metascraper-description": "5.31.1",
"metascraper-image": "5.31.1",
"metascraper-logo": "5.31.1",
"metascraper-logo-favicon": "5.31.1",
"metascraper-publisher": "5.31.1",
"metascraper-title": "5.31.1",
"metascraper-url": "5.31.1",
"oembed-parser": "1.4.9",
"tough-cookie": "4.1.2"
}
}