diff --git a/lib/v2/bilibili/video.js b/lib/v2/bilibili/video.js index 4d9207f8ab507e..d966461bcb07d7 100644 --- a/lib/v2/bilibili/video.js +++ b/lib/v2/bilibili/video.js @@ -16,7 +16,12 @@ module.exports = async (ctx) => { // Cookie: cookie, // }, // }); - const params = utils.addVerifyInfo(`mid=${uid}&ps=30&tid=0&pn=1&keyword=&order=pubdate&platform=web&web_location=1550101&order_avoided=true`, verifyString); + const params = utils.addVerifyInfo( + `mid=${uid}&ps=30&tid=0&pn=1&keyword=&order=pubdate&platform=web&web_location=1550101&order_avoided=true&dm_img_list=[]&dm_img_str=${Buffer.from('no webgl').toString('base64')}&dm_cover_img_str=${Buffer.from( + 'no webgl' + ).toString('base64')}`, + verifyString + ); const response = await got(`https://api.bilibili.com/x/space/wbi/arc/search?${params}`, { headers: { Referer: `https://space.bilibili.com/${uid}/video?tid=0&page=1&keyword=&order=pubdate`, diff --git a/package.json b/package.json index 774574c357d381..f606325e2c3dc2 100644 --- a/package.json +++ b/package.json @@ -86,7 +86,7 @@ "@koa/router": "12.0.1", "@notionhq/client": "2.2.13", "@postlight/parser": "2.2.3", - "@sentry/node": "7.81.0", + "@sentry/node": "7.81.1", "@tonyrl/rand-user-agent": "2.0.40", "aes-js": "3.1.2", "art-template": "4.13.2", @@ -160,9 +160,9 @@ "@types/git-rev-sync": "2.0.2", "@types/html-to-text": "9.0.4", "@types/imapflow": "1.0.16", - "@types/jsdom": "21.1.5", + "@types/jsdom": "21.1.6", "@types/json-bigint": "1.0.4", - "@types/koa": "2.13.11", + "@types/koa": "2.13.12", "@types/koa-basic-auth": "2.0.6", "@types/koa-favicon": "2.1.3", "@types/koa-mount": "4.0.5", @@ -170,15 +170,15 @@ "@types/koa__router": "12.0.4", "@types/lint-staged": "13.2.2", "@types/mailparser": "3.4.4", - "@types/markdown-it": "13.0.6", + "@types/markdown-it": "13.0.7", "@types/module-alias": "2.0.4", - "@types/nodemon": "1.19.5", + "@types/nodemon": "1.19.6", "@types/pidusage": "2.0.5", "@types/plist": "3.0.5", "@types/request-promise-native": "1.0.21", "@types/require-all": "3.0.6", "@types/supertest": "2.0.16", - "@types/tiny-async-pool": "2.0.2", + "@types/tiny-async-pool": "2.0.3", "@types/tough-cookie": "4.0.5", "@vercel/nft": "0.24.3", "cross-env": "7.0.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index aa32951739107d..7c5feb1433faa7 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.81.0 - version: 7.81.0 + specifier: 7.81.1 + version: 7.81.1 '@tonyrl/rand-user-agent': specifier: 2.0.40 version: 2.0.40 @@ -233,14 +233,14 @@ devDependencies: specifier: 1.0.16 version: 1.0.16 '@types/jsdom': - specifier: 21.1.5 - version: 21.1.5 + specifier: 21.1.6 + version: 21.1.6 '@types/json-bigint': specifier: 1.0.4 version: 1.0.4 '@types/koa': - specifier: 2.13.11 - version: 2.13.11 + specifier: 2.13.12 + version: 2.13.12 '@types/koa-basic-auth': specifier: 2.0.6 version: 2.0.6 @@ -263,14 +263,14 @@ devDependencies: specifier: 3.4.4 version: 3.4.4 '@types/markdown-it': - specifier: 13.0.6 - version: 13.0.6 + specifier: 13.0.7 + version: 13.0.7 '@types/module-alias': specifier: 2.0.4 version: 2.0.4 '@types/nodemon': - specifier: 1.19.5 - version: 1.19.5 + specifier: 1.19.6 + version: 1.19.6 '@types/pidusage': specifier: 2.0.5 version: 2.0.5 @@ -287,8 +287,8 @@ devDependencies: specifier: 2.0.16 version: 2.0.16 '@types/tiny-async-pool': - specifier: 2.0.2 - version: 2.0.2 + specifier: 2.0.3 + version: 2.0.3 '@types/tough-cookie': specifier: 4.0.5 version: 4.0.5 @@ -1251,46 +1251,46 @@ packages: selderee: 0.11.0 dev: false - /@sentry-internal/tracing@7.81.0: - resolution: {integrity: sha512-mc3tdOEvAE6kaCvT3BpMwCgfTT2yfXjWpC7g+3N8U/yuQEmQSCDZA/ut7EkzU0DyhG3t8HzT0c+CAG3HtilEAQ==} + /@sentry-internal/tracing@7.81.1: + resolution: {integrity: sha512-E5xm27xrLXL10knH2EWDQsQYh5nb4SxxZzJ3sJwDGG9XGKzBdlp20UUhKqx00wixooVX9uCj3e4Jg8SvNB1hKg==} engines: {node: '>=8'} dependencies: - '@sentry/core': 7.81.0 - '@sentry/types': 7.81.0 - '@sentry/utils': 7.81.0 + '@sentry/core': 7.81.1 + '@sentry/types': 7.81.1 + '@sentry/utils': 7.81.1 dev: false - /@sentry/core@7.81.0: - resolution: {integrity: sha512-FCAKlqo9Z6fku69bkahw1AN+eBfAgRgOL1RpBLZgyG7YBW12vtSkHb5SDvZZTkm541Fo3hhepUTLtX0qmpA4yw==} + /@sentry/core@7.81.1: + resolution: {integrity: sha512-tU37yAmckOGCw/moWKSwekSCWWJP15O6luIq+u7wal22hE88F3Vc5Avo8SeF3upnPR+4ejaOFH+BJTr6bgrs6Q==} engines: {node: '>=8'} dependencies: - '@sentry/types': 7.81.0 - '@sentry/utils': 7.81.0 + '@sentry/types': 7.81.1 + '@sentry/utils': 7.81.1 dev: false - /@sentry/node@7.81.0: - resolution: {integrity: sha512-hFfDxKGB+JhkhpZtM1ntyZDZoMlS8rMsynCSQcqJS39iYcCgdvgy9zOb34mXrX9kXOJNhWWmoloBZGA+KKFTdg==} + /@sentry/node@7.81.1: + resolution: {integrity: sha512-bKS3Mb95bar8AUEZSLKQ/RTSfFXo5sCSPNiBr5dDFuVljDFdkLq6NE3svG5bisrbENqfi0bqWsB4GZ7NHRTPbA==} engines: {node: '>=8'} dependencies: - '@sentry-internal/tracing': 7.81.0 - '@sentry/core': 7.81.0 - '@sentry/types': 7.81.0 - '@sentry/utils': 7.81.0 + '@sentry-internal/tracing': 7.81.1 + '@sentry/core': 7.81.1 + '@sentry/types': 7.81.1 + '@sentry/utils': 7.81.1 https-proxy-agent: 5.0.1 transitivePeerDependencies: - supports-color dev: false - /@sentry/types@7.81.0: - resolution: {integrity: sha512-rbYNYSSrrnwNndC7S+eVT84GRLEyCZNh9oXUQqzgSD6ngXCZ0xFJW6si75uv/XQBWIw4rkj9xfRcy8DU0Tj4fg==} + /@sentry/types@7.81.1: + resolution: {integrity: sha512-dvJvGyctiaPMIQqa46k56Re5IODWMDxiHJ1UjBs/WYDLrmWFPGrEbyJ8w8CYLhYA+7qqrCyIZmHbWSTRIxstHw==} engines: {node: '>=8'} dev: false - /@sentry/utils@7.81.0: - resolution: {integrity: sha512-yC9IvfeVbG4dygi4b+iUUMHp9xeHJfCn6XLbqjJVfq3xjAzBGHgfrpw6fYPNyTljXKb6CTiSXSqaNaQJE4CkPA==} + /@sentry/utils@7.81.1: + resolution: {integrity: sha512-gq+MDXIirHKxNZ+c9/lVvCXd6y2zaZANujwlFggRH2u9SRiPaIXVilLpvMm4uJqmqBMEcY81ArujExtHvkbCqg==} engines: {node: '>=8'} dependencies: - '@sentry/types': 7.81.0 + '@sentry/types': 7.81.1 dev: false /@sinclair/typebox@0.27.8: @@ -1543,8 +1543,8 @@ packages: '@types/istanbul-lib-report': 3.0.0 dev: true - /@types/jsdom@21.1.5: - resolution: {integrity: sha512-sBK/3YjS3uuPj+HzZyhB4GGTnFmk0mdyQfhzZ/sqs9ciyG41QJdZZdwcPa6OfW97OTNTwl5tBAsfEOm/dui9pQ==} + /@types/jsdom@21.1.6: + resolution: {integrity: sha512-/7kkMsC+/kMs7gAYmmBR9P0vGTnOoLhQhyhQJSlXGI5bzTHp6xdo0TtKWQAsz6pmSAeVqKSbqeyP6hytqr9FDw==} dependencies: '@types/node': 20.5.6 '@types/tough-cookie': 4.0.5 @@ -1578,42 +1578,42 @@ packages: /@types/koa-basic-auth@2.0.6: resolution: {integrity: sha512-1/FdT3KiHIkVf+TxYiPPey0wnPBzuts6lz/Obskgo9ZY485J02+uI6STnD114L2iG+Wi5MBqU7EYNphKdKwZWQ==} dependencies: - '@types/koa': 2.13.11 + '@types/koa': 2.13.12 dev: true /@types/koa-compose@3.2.5: resolution: {integrity: sha512-B8nG/OoE1ORZqCkBVsup/AKcvjdgoHnfi4pZMn5UwAPCbhk/96xyv284eBYW8JlQbQ7zDmnpFr68I/40mFoIBQ==} dependencies: - '@types/koa': 2.13.11 + '@types/koa': 2.13.12 dev: true /@types/koa-favicon@2.1.3: resolution: {integrity: sha512-L1XAF8k1iOuh3hA/ZjEqWURm9/62a8A1x7BZR9ZCMw8nbnUBt6oZksz2rfKRCEwESqI2e6WVGlF03fs9DbQQXQ==} dependencies: - '@types/koa': 2.13.11 + '@types/koa': 2.13.12 dev: true /@types/koa-mount@4.0.5: resolution: {integrity: sha512-pV1njJ7r94iqAFzT9D5sGSYKUHFGudCLAnmr4WFli7V5tJf5MAgRQK9leTPJ4gjvgr+hnTf86fZsKoFN358c7w==} dependencies: - '@types/koa': 2.13.11 + '@types/koa': 2.13.12 dev: true /@types/koa-send@4.1.3: resolution: {integrity: sha512-daaTqPZlgjIJycSTNjKpHYuKhXYP30atFc1pBcy6HHqB9+vcymDgYTguPdx9tO4HMOqNyz6bz/zqpxt5eLR+VA==} dependencies: - '@types/koa': 2.13.11 + '@types/koa': 2.13.12 dev: true /@types/koa-static@4.0.4: resolution: {integrity: sha512-j1AUzzl7eJYEk9g01hNTlhmipFh8RFbOQmaMNLvLcNNAkPw0bdTs3XTa3V045XFlrWN0QYnblbDJv2RzawTn6A==} dependencies: - '@types/koa': 2.13.11 + '@types/koa': 2.13.12 '@types/koa-send': 4.1.3 dev: true - /@types/koa@2.13.11: - resolution: {integrity: sha512-0HZSGNdmLlLRvSxv0ngLSp09Hw98c+2XL3ZRYmkE6y8grqTweKEyyaj7LgxkyPUv0gQ5pNS/a7kHXo2Iwha1rA==} + /@types/koa@2.13.12: + resolution: {integrity: sha512-vAo1KuDSYWFDB4Cs80CHvfmzSQWeUb909aQib0C0aFx4sw0K9UZFz2m5jaEP+b3X1+yr904iQiruS0hXi31jbw==} dependencies: '@types/accepts': 1.3.5 '@types/content-disposition': 0.5.5 @@ -1628,7 +1628,7 @@ packages: /@types/koa__router@12.0.4: resolution: {integrity: sha512-Y7YBbSmfXZpa/m5UGGzb7XadJIRBRnwNY9cdAojZGp65Cpe5MAP3mOZE7e3bImt8dfKS4UFcR16SLH8L/z7PBw==} dependencies: - '@types/koa': 2.13.11 + '@types/koa': 2.13.12 dev: true /@types/linkify-it@3.0.3: @@ -1646,8 +1646,8 @@ packages: iconv-lite: 0.6.3 dev: true - /@types/markdown-it@13.0.6: - resolution: {integrity: sha512-0VqpvusJn1/lwRegCxcHVdmLfF+wIsprsKMC9xW8UPcTxhFcQtoN/fBU1zMe8pH7D/RuueMh2CaBaNv+GrLqTw==} + /@types/markdown-it@13.0.7: + resolution: {integrity: sha512-U/CBi2YUUcTHBt5tjO2r5QV/x0Po6nsYwQU4Y04fBS6vfoImaiZ6f8bi3CjTCxBPQSO1LMyUqkByzi8AidyxfA==} dependencies: '@types/linkify-it': 3.0.3 '@types/mdurl': 1.0.2 @@ -1689,8 +1689,8 @@ packages: /@types/node@20.5.6: resolution: {integrity: sha512-Gi5wRGPbbyOTX+4Y2iULQ27oUPrefaB0PxGQJnfyWN3kvEDGM3mIB5M/gQLmitZf7A9FmLeaqxD3L1CXpm3VKQ==} - /@types/nodemon@1.19.5: - resolution: {integrity: sha512-jUKYdrnwLp4jMztMdQEJnF4lBhthCfqE7P6cYCIy0txMJrSFtKqs2HjmyEsyQueLjZjve0IjJ1S+20DtgJpUjA==} + /@types/nodemon@1.19.6: + resolution: {integrity: sha512-vjKuaQOLUA5EY2zkUmWG1ipXbKt9Wd+H/0SiIuHVeH4cHtt6509iRUGH9ZR0iqgUrtj3BrP9KqoTuV3ZCbQcYA==} dependencies: '@types/node': 20.5.6 dev: true @@ -1777,8 +1777,8 @@ packages: '@types/superagent': 4.1.18 dev: true - /@types/tiny-async-pool@2.0.2: - resolution: {integrity: sha512-0dTO8/Qh4aA77NGROkocUM+kHBYVfqJLY9gAFqbz/fDw2iQCRLr75jZwzRgb7rx2kGHgPzuP2NvyY0FU0+Ja1Q==} + /@types/tiny-async-pool@2.0.3: + resolution: {integrity: sha512-n3l1s538tKo9RBoHs4I3DG/VmD3VYhF5mHcgu1sU4Lq7JCNBtxnpBy3OkWSbZsp5r5QOuplh2UkXXXwufoAuNQ==} dev: true /@types/tough-cookie@4.0.5: diff --git a/website/package.json b/website/package.json index 28060a01ec1f44..db3afb8fc48742 100644 --- a/website/package.json +++ b/website/package.json @@ -26,7 +26,7 @@ "markdown-it": "^13.0.2", "meilisearch-docsearch": "^0.6.0", "pinyin-pro": "3.18.2", - "prism-react-renderer": "^2.2.0", + "prism-react-renderer": "^2.3.0", "react": "^18.2.0", "react-dom": "^18.2.0" }, diff --git a/website/pnpm-lock.yaml b/website/pnpm-lock.yaml index bdce505e8d7551..19b8995f71e511 100644 --- a/website/pnpm-lock.yaml +++ b/website/pnpm-lock.yaml @@ -36,8 +36,8 @@ dependencies: specifier: 3.18.2 version: 3.18.2 prism-react-renderer: - specifier: ^2.2.0 - version: 2.2.0(react@18.2.0) + specifier: ^2.3.0 + version: 2.3.0(react@18.2.0) react: specifier: ^18.2.0 version: 18.2.0 @@ -2465,7 +2465,7 @@ packages: lodash: 4.17.21 nprogress: 0.2.0 postcss: 8.4.31 - prism-react-renderer: 2.2.0(react@18.2.0) + prism-react-renderer: 2.3.0(react@18.2.0) prismjs: 1.29.0 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) @@ -2511,7 +2511,7 @@ packages: '@types/react-router-config': 5.0.9 clsx: 1.2.1 parse-numeric-range: 1.3.0 - prism-react-renderer: 2.2.0(react@18.2.0) + prism-react-renderer: 2.3.0(react@18.2.0) react: 18.2.0 react-dom: 18.2.0(react@18.2.0) tslib: 2.6.2 @@ -8985,13 +8985,13 @@ packages: engines: {node: '>=4'} dev: false - /prism-react-renderer@2.2.0(react@18.2.0): - resolution: {integrity: sha512-j4AN0VkEr72598+47xDvpzeYyeh/wPPRNTt9nJFZqIZUxwGKwYqYgt7RVigZ3ZICJWJWN84KEuMKPNyypyhNIw==} + /prism-react-renderer@2.3.0(react@18.2.0): + resolution: {integrity: sha512-UYRg2TkVIaI6tRVHC5OJ4/BxqPUxJkJvq/odLT/ykpt1zGYXooNperUxQcCvi87LyRnR4nCh81ceOA+e7nrydg==} peerDependencies: react: '>=16.0.0' dependencies: '@types/prismjs': 1.26.2 - clsx: 1.2.1 + clsx: 2.0.0 react: 18.2.0 dev: false