@secret-momo/notion 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,2 +1,8 @@
1
- # notion
1
+ # @secret-momo/notion
2
+
2
3
  封装 Notion 的一些 API,方便个人使用。
4
+
5
+ ## 环境变量
6
+
7
+ - `NOTION_AUTH_TOKEN`: Notion 鉴权 token
8
+ - `NOTION_DATA_SOURCE_ID`: Notion 数据源 ID
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AA+C1C,wBAAgB,eAAe,WAK9B"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AA+C1C,wBAAgB,eAAe,WAM9B"}
package/lib/client.js CHANGED
@@ -32,7 +32,9 @@ async function customFetch(input, init) {
32
32
  function newNotionClient() {
33
33
  return new Client({
34
34
  auth: process.env.NOTION_AUTH_TOKEN,
35
- fetch: customFetch
35
+ fetch: customFetch,
36
+ timeoutMs: 1e3 * 60 * 10
37
+ // 10 分钟超时的时间
36
38
  });
37
39
  }
38
40
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secret-momo/notion",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "files": [
5
5
  "lib"
6
6
  ],