Skip to content

Commit

Permalink
fix: 修复语雀文档获取问题
Browse files Browse the repository at this point in the history
  • Loading branch information
LetTTGACO committed Nov 24, 2023
1 parent 9340df1 commit f522ba9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/sdk-yuque/src/token/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ class YuqueWithToken {
// 过滤未发布和公开的文章
pages = pages
.filter((page) => {
// 2023/11/24调整,语雀不再返回format字段
if (!page.format) return true
if (page.format === 'laketable') {
out.warning('跳过下载', `【${page.title}】存在暂不支持的文档格式:数据表`)
}
Expand Down
1 change: 0 additions & 1 deletion packages/shared/src/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export const request = async <T>(
...reqOpts?.headers,
},
gzip: true,
proxy: process.env.http_proxy,
// 超时时间 60s
timeout: Number(process.env?.REQUEST_TIMEOUT || 60000) || 60000,
...reqOpts,
Expand Down

0 comments on commit f522ba9

Please sign in to comment.