notion2hast 0.1.2 → 0.1.4
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 +2 -2
- package/dist/cli.d.ts +0 -1
- package/dist/cli.js +1 -1
- package/dist/lib/client.d.ts +1 -1
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -33,9 +33,9 @@ class FromNotion extends Client {
|
|
|
33
33
|
super()
|
|
34
34
|
this.client = new NotionClient(options)
|
|
35
35
|
}
|
|
36
|
-
|
|
36
|
+
listBlockChildren(
|
|
37
37
|
...args: Parameters<NotionClient['blocks']['children']['list']>
|
|
38
|
-
):
|
|
38
|
+
): ReturnType<NotionClient['blocks']['children']['list']> {
|
|
39
39
|
return this.client.blocks.children.list(...args)
|
|
40
40
|
}
|
|
41
41
|
}
|
package/dist/cli.d.ts
CHANGED
package/dist/cli.js
CHANGED
package/dist/lib/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Client as NotionClient } from '@notionhq/client';
|
|
2
2
|
export declare abstract class Client {
|
|
3
|
-
abstract listBlockChildren(...args: Parameters<NotionClient['blocks']['children']['list']>):
|
|
3
|
+
abstract listBlockChildren(...args: Parameters<NotionClient['blocks']['children']['list']>): ReturnType<NotionClient['blocks']['children']['list']>;
|
|
4
4
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "notion2hast",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Notion blocks to hast",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "hankei6km <hankei6km@gmail.com> (https://github.com/hankei6km)",
|
|
@@ -37,22 +37,22 @@
|
|
|
37
37
|
"csb:test": "npm test -- --runInBand --watchAll"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@notionhq/client": "^
|
|
40
|
+
"@notionhq/client": "^4.0.0",
|
|
41
41
|
"hash.js": "^1.1.7",
|
|
42
42
|
"hast-util-classnames": "^3.0.0",
|
|
43
43
|
"hast-util-to-html": "^9.0.0",
|
|
44
44
|
"hastscript": "^9.0.0",
|
|
45
45
|
"sha.js": "^2.4.11",
|
|
46
|
-
"yargs": "^
|
|
46
|
+
"yargs": "^18.0.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@types/jest": "^
|
|
50
|
-
"@types/node": "^
|
|
49
|
+
"@types/jest": "^30.0.0",
|
|
50
|
+
"@types/node": "^20.12.8",
|
|
51
51
|
"@types/sha.js": "^2.4.0",
|
|
52
52
|
"@types/yargs": "^17.0.12",
|
|
53
|
-
"jest": "^
|
|
54
|
-
"rimraf": "^
|
|
55
|
-
"ts-jest": "^
|
|
53
|
+
"jest": "^30.0.0",
|
|
54
|
+
"rimraf": "^6.0.1",
|
|
55
|
+
"ts-jest": "^29.1.2",
|
|
56
56
|
"ts-node": "^10.9.1",
|
|
57
57
|
"typescript": "^5.0.2"
|
|
58
58
|
}
|