diff --git a/lib/v2/ft/myft.js b/lib/v2/ft/myft.js index c5d7d0b90ce185..f7bd3aa92522bb 100644 --- a/lib/v2/ft/myft.js +++ b/lib/v2/ft/myft.js @@ -27,7 +27,8 @@ module.exports = async (ctx) => { const $ = cheerio.load(response.data); - item.description = ProcessFeed($('div.article__content-body')); + item.description = ProcessFeed($('article.js-article__content-body')); + item.category = JSON.parse($('script[type="application/ld+json"]').eq(1).text()).itemListElement.map((e) => e.name); item.author = $('a.n-content-tag--author').text(); return item; diff --git a/package.json b/package.json index 02d9acc0c493a3..33e3e34ecc42ce 100644 --- a/package.json +++ b/package.json @@ -86,7 +86,7 @@ "@koa/router": "12.0.0", "@notionhq/client": "2.2.13", "@postlight/parser": "2.2.3", - "@sentry/node": "7.70.0", + "@sentry/node": "7.71.0", "aes-js": "3.1.2", "art-template": "4.13.2", "bbcodejs": "0.0.4", @@ -152,8 +152,8 @@ "@microsoft/eslint-formatter-sarif": "3.0.0", "@types/aes-js": "3.1.2", "@types/crypto-js": "4.1.2", - "@types/eslint": "8.44.2", - "@types/eslint-config-prettier": "6.11.0", + "@types/eslint": "8.44.3", + "@types/eslint-config-prettier": "6.11.1", "@types/etag": "1.8.1", "@types/fs-extra": "11.0.2", "@types/git-rev-sync": "2.0.0", @@ -170,13 +170,13 @@ "@types/mailparser": "3.4.0", "@types/markdown-it": "13.0.1", "@types/module-alias": "2.0.2", - "@types/nodemon": "1.19.2", - "@types/pidusage": "2.0.2", - "@types/plist": "3.0.2", + "@types/nodemon": "1.19.3", + "@types/pidusage": "2.0.3", + "@types/plist": "3.0.3", "@types/request-promise-native": "1.0.18", "@types/require-all": "3.0.3", - "@types/showdown": "2.0.1", - "@types/supertest": "2.0.12", + "@types/showdown": "2.0.2", + "@types/supertest": "2.0.13", "@types/tiny-async-pool": "2.0.0", "@types/tough-cookie": "4.0.3", "@vercel/nft": "0.24.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 931eb84925f1f5..38246291cfc9b6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -15,8 +15,8 @@ dependencies: specifier: 2.2.3 version: 2.2.3 '@sentry/node': - specifier: 7.70.0 - version: 7.70.0 + specifier: 7.71.0 + version: 7.71.0 aes-js: specifier: 3.1.2 version: 3.1.2 @@ -209,11 +209,11 @@ devDependencies: specifier: 4.1.2 version: 4.1.2 '@types/eslint': - specifier: 8.44.2 - version: 8.44.2 + specifier: 8.44.3 + version: 8.44.3 '@types/eslint-config-prettier': - specifier: 6.11.0 - version: 6.11.0 + specifier: 6.11.1 + version: 6.11.1 '@types/etag': specifier: 1.8.1 version: 1.8.1 @@ -263,14 +263,14 @@ devDependencies: specifier: 2.0.2 version: 2.0.2 '@types/nodemon': - specifier: 1.19.2 - version: 1.19.2 + specifier: 1.19.3 + version: 1.19.3 '@types/pidusage': - specifier: 2.0.2 - version: 2.0.2 + specifier: 2.0.3 + version: 2.0.3 '@types/plist': - specifier: 3.0.2 - version: 3.0.2 + specifier: 3.0.3 + version: 3.0.3 '@types/request-promise-native': specifier: 1.0.18 version: 1.0.18 @@ -278,11 +278,11 @@ devDependencies: specifier: 3.0.3 version: 3.0.3 '@types/showdown': - specifier: 2.0.1 - version: 2.0.1 + specifier: 2.0.2 + version: 2.0.2 '@types/supertest': - specifier: 2.0.12 - version: 2.0.12 + specifier: 2.0.13 + version: 2.0.13 '@types/tiny-async-pool': specifier: 2.0.0 version: 2.0.0 @@ -306,7 +306,7 @@ devDependencies: version: 16.1.0(eslint@8.50.0) eslint-plugin-prettier: specifier: 5.0.0 - version: 5.0.0(@types/eslint@8.44.2)(eslint-config-prettier@9.0.0)(eslint@8.50.0)(prettier@3.0.3) + version: 5.0.0(@types/eslint@8.44.3)(eslint-config-prettier@9.0.0)(eslint@8.50.0)(prettier@3.0.3) eslint-plugin-yml: specifier: 1.9.0 version: 1.9.0(eslint@8.50.0) @@ -1240,33 +1240,33 @@ packages: selderee: 0.11.0 dev: false - /@sentry-internal/tracing@7.70.0: - resolution: {integrity: sha512-SpbE6wZhs6QwG2ORWCt8r28o1T949qkWx/KeRTCdK4Ub95PQ3Y3DgnqD8Wz//3q50Wt6EZDEibmz4t067g6PPg==} + /@sentry-internal/tracing@7.71.0: + resolution: {integrity: sha512-HRGsQOrA2Y3Ga+NTgCkTWO+qtU2SFTJ7t9pt/LR8Har9cvVcjLIlHNwPoDx6bVkICK3cGOF8ZtXVmLizVbXoAg==} engines: {node: '>=8'} dependencies: - '@sentry/core': 7.70.0 - '@sentry/types': 7.70.0 - '@sentry/utils': 7.70.0 + '@sentry/core': 7.71.0 + '@sentry/types': 7.71.0 + '@sentry/utils': 7.71.0 tslib: 2.6.2 dev: false - /@sentry/core@7.70.0: - resolution: {integrity: sha512-voUsGVM+jwRp99AQYFnRvr7sVd2tUhIMj1L6F42LtD3vp7t5ZnKp3NpXagtFW2vWzXESfyJUBhM0qI/bFvn7ZA==} + /@sentry/core@7.71.0: + resolution: {integrity: sha512-kZcWnzxzMxyNuCwq65owu0yGbY+C9QJhWFMDBsqmKK1/dSt0bdhNjf3VQW1dJLnWaQTk7rUTHEHGH8JSdV5EAg==} engines: {node: '>=8'} dependencies: - '@sentry/types': 7.70.0 - '@sentry/utils': 7.70.0 + '@sentry/types': 7.71.0 + '@sentry/utils': 7.71.0 tslib: 2.6.2 dev: false - /@sentry/node@7.70.0: - resolution: {integrity: sha512-GeGlnu3QnJX0GN2FvZ3E31e48ZhRzEpREyC0Wa4BRvYHnyiGvsQjo/0RKeq6vvlggRhVnuoMg/jESyUmdntrAA==} + /@sentry/node@7.71.0: + resolution: {integrity: sha512-rvCzfLWAeX+16mOJeb08xDlpBdn/H/G8dj9mENQAom8O0SgMkkRyfYc9pnvsmU5gjuS7C9u+e4ZlOLLr1xZ+zQ==} engines: {node: '>=8'} dependencies: - '@sentry-internal/tracing': 7.70.0 - '@sentry/core': 7.70.0 - '@sentry/types': 7.70.0 - '@sentry/utils': 7.70.0 + '@sentry-internal/tracing': 7.71.0 + '@sentry/core': 7.71.0 + '@sentry/types': 7.71.0 + '@sentry/utils': 7.71.0 cookie: 0.5.0 https-proxy-agent: 5.0.1 lru_map: 0.3.3 @@ -1275,16 +1275,16 @@ packages: - supports-color dev: false - /@sentry/types@7.70.0: - resolution: {integrity: sha512-rY4DqpiDBtXSk4MDNBH3dwWqfPbNBI/9GA7Y5WJSIcObBtfBKp0fzYliHJZD0pgM7d4DPFrDn42K9Iiumgymkw==} + /@sentry/types@7.71.0: + resolution: {integrity: sha512-30PRLZI1RoeWbLE9K7AHsRPWDH22CqC4WcLNeVmRfLC5m1vE1FHb53r98QSKFhLoONMPMVzDhZZgl4ZcC5mptQ==} engines: {node: '>=8'} dev: false - /@sentry/utils@7.70.0: - resolution: {integrity: sha512-0cChMH0lsGp+5I3D4wOHWwjFN19HVrGUs7iWTLTO5St3EaVbdeLbI1vFXHxMxvopbwgpeZafbreHw/loIdZKpw==} + /@sentry/utils@7.71.0: + resolution: {integrity: sha512-aS53l/E/5XsSJMOXHKvS0GlX4gZHBgNAMfhEB3f8rUIn5iLF2uu8lCA1uEvX6VB8b7q/Cg4WFTi6BiJ0hvJHQg==} engines: {node: '>=8'} dependencies: - '@sentry/types': 7.70.0 + '@sentry/types': 7.71.0 tslib: 2.6.2 dev: false @@ -1429,12 +1429,12 @@ packages: '@types/ms': 0.7.31 dev: false - /@types/eslint-config-prettier@6.11.0: - resolution: {integrity: sha512-UBuZMZVog9c9jXvArbYtWH570sRWNaU6kEnUAHsHb/+zAufzPT4I+gMkUR2dVPWlqiceoRU1thjUVdGrAWVpCA==} + /@types/eslint-config-prettier@6.11.1: + resolution: {integrity: sha512-7jQDjrJWXj9DsfmSDpMk9paFh5TQ4qPxl9rYUTLvGLglr/xrxmyVMVxb1gs/7y9HQzRI5EPvnQ9yumwy83H3fg==} dev: true - /@types/eslint@8.44.2: - resolution: {integrity: sha512-sdPRb9K6iL5XZOmBubg8yiFp5yS/JdUDQsq5e6h95km91MCYMuvp7mh1fjPEYUhvHepKpZOjnEaMBR4PxjWDzg==} + /@types/eslint@8.44.3: + resolution: {integrity: sha512-iM/WfkwAhwmPff3wZuPLYiHX18HI24jU8k1ZSH7P8FHwxTjZ2P6CoX2wnF43oprR+YXJM6UUxATkNvyv/JHd+g==} dependencies: '@types/estree': 1.0.1 '@types/json-schema': 7.0.12 @@ -1665,18 +1665,18 @@ packages: /@types/node@20.5.6: resolution: {integrity: sha512-Gi5wRGPbbyOTX+4Y2iULQ27oUPrefaB0PxGQJnfyWN3kvEDGM3mIB5M/gQLmitZf7A9FmLeaqxD3L1CXpm3VKQ==} - /@types/nodemon@1.19.2: - resolution: {integrity: sha512-4GWiTN3HevkxMIxEQ7OpD3MAHhlVsX2tairCMRmf8oYZxmhHw9+UpQpIdGdJrjsMT2Ty26FtJzUUcP/qM5fR8A==} + /@types/nodemon@1.19.3: + resolution: {integrity: sha512-LcKdWgch8uHOF73yYpdE7YPVLT0HnFI60zyNBpJyfAiDDwPy3WAxReQeB84UseE8e8qdJsBqmFXWbjxv7jlXBg==} dependencies: '@types/node': 20.5.6 dev: true - /@types/pidusage@2.0.2: - resolution: {integrity: sha512-lHgpGZjXDfjggZDLkgp4zQTYkvXq4S7RxjBjrDcPe1MBU72hESWxubutx8+AM4QkJdRxAhrQyxSA6pzHKJKlsQ==} + /@types/pidusage@2.0.3: + resolution: {integrity: sha512-ql+nedz/Int5Dnzo3B30wQQ3N5L6iBnxFTAXqsWymqwS82VJlMNry8X2qyokchhn8ccrzJBZAIHz8Qp7iqPaRw==} dev: true - /@types/plist@3.0.2: - resolution: {integrity: sha512-ULqvZNGMv0zRFvqn8/4LSPtnmN4MfhlPNtJCTpKuIIxGVGZ2rYWzFXrvEBoh9CVyqSE7D6YFRJ1hydLHI6kbWw==} + /@types/plist@3.0.3: + resolution: {integrity: sha512-DXkBoKc7jwUR0p439icInmXXMJNhoImdpOrrgA5/nDFK7LVtcJ9MyQNKhJEKpEztnHGWnNWMWLOIR62By0Ln0A==} dependencies: '@types/node': 20.5.6 xmlbuilder: 15.1.1 @@ -1736,8 +1736,8 @@ packages: '@types/node': 20.5.6 dev: true - /@types/showdown@2.0.1: - resolution: {integrity: sha512-xdnAw2nFqomkaL0QdtEk0t7yz26UkaVPl4v1pYJvtE1T0fmfQEH3JaxErEhGByEAl3zUZrkNBlneuJp0WJGqEA==} + /@types/showdown@2.0.2: + resolution: {integrity: sha512-0UnGnwRsiTojb5VGCkgbk3mKJpyAR2EPhalhHGY4/NCFwDyacqVmPWP7uV0mbXC4eh6n7lO3HPCpb2NP+B5NPQ==} dev: true /@types/stack-utils@2.0.1: @@ -1751,8 +1751,8 @@ packages: '@types/node': 20.5.6 dev: true - /@types/supertest@2.0.12: - resolution: {integrity: sha512-X3HPWTwXRerBZS7Mo1k6vMVR1Z6zmJcDVn5O/31whe0tnjE4te6ZJSJGq1RiqHPjzPdMTfjCFogDJmwng9xHaQ==} + /@types/supertest@2.0.13: + resolution: {integrity: sha512-Vc/5/pRwSC055fU7Wu8erTj4gLpID9SdG2zRMuqaHLni3GTsrJ8gyB6MbFZZGLW6vQaGPhiUWRB6uWglv87MEg==} dependencies: '@types/superagent': 4.1.18 dev: true @@ -3195,7 +3195,7 @@ packages: semver: 7.5.4 dev: true - /eslint-plugin-prettier@5.0.0(@types/eslint@8.44.2)(eslint-config-prettier@9.0.0)(eslint@8.50.0)(prettier@3.0.3): + /eslint-plugin-prettier@5.0.0(@types/eslint@8.44.3)(eslint-config-prettier@9.0.0)(eslint@8.50.0)(prettier@3.0.3): resolution: {integrity: sha512-AgaZCVuYDXHUGxj/ZGu1u8H8CYgDY3iG6w5kUFw4AzMVXzB7VvbKgYR4nATIN+OvUrghMbiDLeimVjVY5ilq3w==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: @@ -3209,7 +3209,7 @@ packages: eslint-config-prettier: optional: true dependencies: - '@types/eslint': 8.44.2 + '@types/eslint': 8.44.3 eslint: 8.50.0 eslint-config-prettier: 9.0.0(eslint@8.50.0) prettier: 3.0.3