@notionhq/client 5.3.0 → 5.5.0
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 +1 -7
- package/build/package.json +9 -6
- package/build/src/api-endpoints.d.ts +2306 -2272
- package/build/src/api-endpoints.d.ts.map +1 -1
- package/build/src/api-endpoints.js +18 -8
- package/build/src/api-endpoints.js.map +1 -1
- package/package.json +9 -6
package/README.md
CHANGED
|
@@ -300,13 +300,7 @@ Another customization you can make is to pass your own `fetch` function to the `
|
|
|
300
300
|
|
|
301
301
|
## Examples
|
|
302
302
|
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
```bash
|
|
306
|
-
npm run examples:install
|
|
307
|
-
# or
|
|
308
|
-
npm run install:examples
|
|
309
|
-
```
|
|
303
|
+
For sample code and example projects, see [notion-cookbook](https://github.com/makenotion/notion-cookbook/tree/main/examples).
|
|
310
304
|
|
|
311
305
|
## Requirements and compatibility
|
|
312
306
|
|
package/build/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@notionhq/client",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.5.0",
|
|
4
4
|
"description": "A simple and easy to use client for the Notion API",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18"
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"main": "./build/src",
|
|
23
23
|
"types": "./build/src/index.d.ts",
|
|
24
24
|
"scripts": {
|
|
25
|
-
"prepare": "npm run build",
|
|
25
|
+
"prepare": "husky && npm run build",
|
|
26
26
|
"prepublishOnly": "npm run checkLoggedIn && npm run lint && npm run test",
|
|
27
27
|
"build": "tsc",
|
|
28
28
|
"prettier": "prettier --write .",
|
|
@@ -31,10 +31,11 @@
|
|
|
31
31
|
"check-links": "git ls-files | grep md$ | xargs -n 1 markdown-link-check",
|
|
32
32
|
"prebuild": "npm run clean",
|
|
33
33
|
"clean": "rm -rf ./build",
|
|
34
|
-
"checkLoggedIn": "./scripts/verifyLoggedIn.sh"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"
|
|
34
|
+
"checkLoggedIn": "./scripts/verifyLoggedIn.sh"
|
|
35
|
+
},
|
|
36
|
+
"lint-staged": {
|
|
37
|
+
"*.{ts,js,json,md}": "prettier --write",
|
|
38
|
+
"*.ts": "eslint --fix"
|
|
38
39
|
},
|
|
39
40
|
"author": "",
|
|
40
41
|
"license": "MIT",
|
|
@@ -48,7 +49,9 @@
|
|
|
48
49
|
"@typescript-eslint/parser": "5.39.0",
|
|
49
50
|
"cspell": "5.4.1",
|
|
50
51
|
"eslint": "7.24.0",
|
|
52
|
+
"husky": "^9.1.7",
|
|
51
53
|
"jest": "28.1.2",
|
|
54
|
+
"lint-staged": "^16.2.6",
|
|
52
55
|
"markdown-link-check": "3.13.7",
|
|
53
56
|
"prettier": "2.8.8",
|
|
54
57
|
"ts-jest": "28.0.5",
|