@texonom/ncompat 1.1.5 → 1.2.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/LICENSE +21 -0
- package/build/.tsbuildinfo +1 -1
- package/build/convert-block.d.ts +7 -7
- package/build/convert-block.d.ts.map +1 -1
- package/build/convert-color.d.ts +2 -2
- package/build/convert-color.d.ts.map +1 -1
- package/build/convert-page.d.ts +12 -12
- package/build/convert-page.d.ts.map +1 -1
- package/build/convert-rich-text.d.ts +4 -4
- package/build/convert-rich-text.d.ts.map +1 -1
- package/build/index.js +1 -1
- package/build/index.js.map +1 -1
- package/build/notion-compat-api.d.ts +227 -227
- package/build/notion-compat-api.d.ts.map +1 -1
- package/package.json +4 -4
- package/readme.md +3 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notion-compat-api.d.ts","sourceRoot":"","sources":["../src/notion-compat-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"notion-compat-api.d.ts","sourceRoot":"","sources":["../src/notion-compat-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAM9C,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAA8B,MAAM,SAAS,CAAA;AACzG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACxD,qBAAa,eAAe;IAC1B,MAAM,EAAE,MAAM,CAAA;gBAEF,MAAM,EAAE,MAAM;IAIb,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC;IA2B7D,WAAW,CACf,WAAW,EAAE,MAAM,EACnB,EACE,WAAe,EAChB,GAAE;QACD,WAAW,CAAC,EAAE,MAAM,CAAA;KAChB;;;;;;IA8HF,mBAAmB,CAAC,OAAO,EAAE,MAAM;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiB1C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@texonom/ncompat",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Compatibility layer between the official Notion API and unofficial private API.",
|
|
6
6
|
"repository": "texonom/notion-node",
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"p-queue": "^7.3.4",
|
|
21
|
-
"@texonom/
|
|
22
|
-
"@texonom/
|
|
21
|
+
"@texonom/nutils": "^1.2.0",
|
|
22
|
+
"@texonom/ntypes": "^1.2.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@notionhq/client": "^1.0.4",
|
|
26
|
-
"@texonom/nclient": "^1.
|
|
26
|
+
"@texonom/nclient": "^1.2.0"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"@notionhq/client": "^1.0.4"
|
package/readme.md
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
<p align="center">
|
|
2
|
-
<img alt="React Notion X" src="https://raw.githubusercontent.com/texonom/notion-node/master/media/notion-ts.png" width="689">
|
|
3
|
-
</p>
|
|
4
|
-
|
|
5
1
|
# ncompat
|
|
6
2
|
|
|
7
3
|
> A compatibility layer between the official Notion API and the unofficial Notion API
|
|
8
4
|
|
|
5
|
+
[](https://www.npmjs.com/package/@texonom/ncompat) [](https://github.com/texonom/notion-node/actions/workflows/test.yml) [](https://prettier.io)
|
|
6
|
+
|
|
9
7
|
## Features
|
|
10
8
|
|
|
11
9
|
- fully compatible with `nreact`
|
|
@@ -15,7 +13,7 @@
|
|
|
15
13
|
|
|
16
14
|
```ts
|
|
17
15
|
import { Client } from '@notionhq/client'
|
|
18
|
-
import { NotionCompatAPI } from 'ncompat'
|
|
16
|
+
import { NotionCompatAPI } from '@texonom/ncompat'
|
|
19
17
|
|
|
20
18
|
const notion = new NotionCompatAPI(new Client({ auth: process.env.NOTION_TOKEN }))
|
|
21
19
|
|
|
@@ -144,9 +142,3 @@ The main feature missing from `ncompat` right now is collection (database) suppo
|
|
|
144
142
|
- breadcrumb
|
|
145
143
|
- template
|
|
146
144
|
- unsupported
|
|
147
|
-
|
|
148
|
-
## License
|
|
149
|
-
|
|
150
|
-
MIT © [Travis Fischer](https://transitivebullsh.it)
|
|
151
|
-
|
|
152
|
-
Support my OSS work by <a href="https://twitter.com/transitive_bs">following me on twitter <img src="https://storage.googleapis.com/saasify-assets/twitter-logo.svg" alt="twitter" height="24px" align="center"></a>
|