diff --git a/packages/sdk-yuque/src/token/core.ts b/packages/sdk-yuque/src/token/core.ts index f8191144..4adb67d7 100644 --- a/packages/sdk-yuque/src/token/core.ts +++ b/packages/sdk-yuque/src/token/core.ts @@ -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}】存在暂不支持的文档格式:数据表`) } diff --git a/packages/shared/src/request.ts b/packages/shared/src/request.ts index 45da1136..4c02de33 100644 --- a/packages/shared/src/request.ts +++ b/packages/shared/src/request.ts @@ -18,7 +18,6 @@ export const request = async ( ...reqOpts?.headers, }, gzip: true, - proxy: process.env.http_proxy, // 超时时间 60s timeout: Number(process.env?.REQUEST_TIMEOUT || 60000) || 60000, ...reqOpts,