File tree Expand file tree Collapse file tree 5 files changed +15
-15
lines changed Expand file tree Collapse file tree 5 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 11
11
"prepare" : " husky install"
12
12
},
13
13
"dependencies" : {
14
- "@notionhq/client" : " ^2.2.5" ,
15
14
"dayjs" : " ^1.11.8" ,
16
15
"is-url-superb" : " ^6.1.0" ,
17
16
"jotai" : " ^2.8.0" ,
18
17
"lodash" : " ^4.17.21" ,
19
18
"lqip-modern" : " ^2.0.0" ,
20
19
"next" : " ^13.4.4" ,
20
+ "notion-to-utils" : " ^0.4.4" ,
21
21
"p-map" : " ^7.0.2" ,
22
22
"react" : " ^18.2.0" ,
23
23
"react-dom" : " ^18.2.0" ,
Original file line number Diff line number Diff line change 1
- import {
2
- PageObjectResponse ,
3
- MultiSelectPropertyItemObjectResponse ,
4
- } from '@notionhq/client/build/src/api-endpoints' ;
1
+ import { PageObjectResponse , MultiSelectPropertyItemObjectResponse } from 'notion-to-utils' ;
5
2
6
3
import { PreviewImage } from '@/interfaces/notion' ;
7
- export {
8
- type PageObjectResponse ,
9
- type GetPageResponse ,
10
- } from '@notionhq/client/build/src/api-endpoints' ;
11
4
12
5
export type SelectPropertyResponse = MultiSelectPropertyItemObjectResponse [ 'multi_select' ] [ number ] ;
13
6
export type SelectColor = SelectPropertyResponse [ 'color' ] ;
Original file line number Diff line number Diff line change 1
- import { GetPageResponse } from '@notionhq/client/build/src/api-endpoints ' ;
1
+ import { GetPageResponse } from 'notion-to-utils ' ;
2
2
3
3
import getSlugsAndDates from '@/utils/getSlugsAndDates' ;
4
4
Original file line number Diff line number Diff line change 1
- import { Client } from '@notionhq/client ' ;
1
+ import { Client } from 'notion-to-utils ' ;
2
2
3
3
const notionClient = new Client ( {
4
4
auth : process . env . NOTION_TOKEN ,
Original file line number Diff line number Diff line change 158
158
" @nodelib/fs.scandir" " 2.1.5"
159
159
fastq "^1.6.0"
160
160
161
- " @notionhq/client@^2.2.5 " :
162
- version "2.2.5 "
163
- resolved "https://registry.yarnpkg.com/@notionhq/client/-/client-2.2.5 .tgz#8c5152016ea769f2d885327fef45d0ef834f89b2 "
164
- integrity sha512-NobSaeSK0DMuxAIy2pg53Iv850tGFxXYEYacFBQgO634L1uwQv7WQCAdeFQpD3kJiEycQfSYv6RGC5VENEXjiQ ==
161
+ " @notionhq/client@^2.2.15 " :
162
+ version "2.2.15 "
163
+ resolved "https://registry.yarnpkg.com/@notionhq/client/-/client-2.2.15 .tgz#739fc8edb1357a2e2e35d026571fafe17c089606 "
164
+ integrity sha512-XhdSY/4B1D34tSco/GION+23GMjaS9S2zszcqYkMHo8RcWInymF6L1x+Gk7EmHdrSxNFva2WM8orhC4BwQCwgw ==
165
165
dependencies :
166
166
" @types/node-fetch" " ^2.5.10"
167
167
node-fetch "^2.6.1"
@@ -2311,6 +2311,13 @@ normalize-url@^7.0.3:
2311
2311
resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-7.2.0.tgz#5317f78cff95f5fa1e76cc0b5e33245c43781e11"
2312
2312
integrity sha512-uhXOdZry0L6M2UIo9BTt7FdpBDiAGN/7oItedQwPKh8jh31ZlvC8U9Xl/EJ3aijDHaywXTW3QbZ6LuCocur1YA==
2313
2313
2314
+ notion-to-utils@^0.4.4 :
2315
+ version "0.4.4"
2316
+ resolved "https://registry.yarnpkg.com/notion-to-utils/-/notion-to-utils-0.4.4.tgz#d0419a39f14e99b021477e4521c801d3336f8531"
2317
+ integrity sha512-Tp0IORqdT3E3yKpHyuuUXcifb2GLpfc6hpbzwUmpMTRD2LlrTP2GBL0QsiiM6yrLyt+k0X8YWyUEu0zp6KPTzg==
2318
+ dependencies :
2319
+ " @notionhq/client" " ^2.2.15"
2320
+
2314
2321
notion-types@^6.16.0 :
2315
2322
version "6.16.0"
2316
2323
resolved "https://registry.yarnpkg.com/notion-types/-/notion-types-6.16.0.tgz#1c676b180095d14209a6760dd8586db55a115e91"
You can’t perform that action at this time.
0 commit comments