mirror of
https://github.com/d0zingcat/nextjs-notion-starter-kit.git
synced 2026-05-13 15:09:47 +00:00
bugfix: notion updated their API syncRecordValues
This commit is contained in:
@@ -20,6 +20,10 @@ export async function getAllPagesImpl(
|
||||
const canonicalPageMap = Object.keys(pageMap).reduce(
|
||||
(map, pageId: string) => {
|
||||
const recordMap = pageMap[pageId]
|
||||
if (!recordMap) {
|
||||
throw new Error(`Error loading page "${pageId}"`)
|
||||
}
|
||||
|
||||
const canonicalPageId = getCanonicalPageId(pageId, recordMap, {
|
||||
uuid: false
|
||||
})
|
||||
|
||||
@@ -35,9 +35,9 @@
|
||||
"isomorphic-unfetch": "^3.1.0",
|
||||
"lqip-modern": "^1.1.3",
|
||||
"next": "^10.0.6",
|
||||
"notion-client": "^4.2.6",
|
||||
"notion-client": "^4.2.7",
|
||||
"notion-types": "^4.0.0",
|
||||
"notion-utils": "^4.2.6",
|
||||
"notion-utils": "^4.2.7",
|
||||
"p-map": "^4.0.0",
|
||||
"p-memoize": "^4.0.0",
|
||||
"puppeteer-core": "^5.5.0",
|
||||
@@ -46,7 +46,7 @@
|
||||
"react-body-classname": "^1.3.1",
|
||||
"react-dom": "17.0.1",
|
||||
"react-icons": "^4.1.0",
|
||||
"react-notion-x": "^4.2.6",
|
||||
"react-notion-x": "^4.2.7",
|
||||
"react-use": "^15.3.3",
|
||||
"use-dark-mode": "^2.3.1"
|
||||
},
|
||||
|
||||
28
yarn.lock
28
yarn.lock
@@ -3304,14 +3304,14 @@ normalize-url@^4.1.0:
|
||||
resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-4.5.0.tgz#453354087e6ca96957bd8f5baf753f5982142129"
|
||||
integrity sha512-2s47yzUxdexf1OhyRi4Em83iQk0aPvwTddtFz4hnSSw9dCEsLEGf6SwIO8ss/19S9iBb5sJaOuTvTGDeZI00BQ==
|
||||
|
||||
notion-client@^4.2.6:
|
||||
version "4.2.6"
|
||||
resolved "https://registry.yarnpkg.com/notion-client/-/notion-client-4.2.6.tgz#23dbbaa7724ab90188112f9df80980e6a8a8eb43"
|
||||
integrity sha512-cqlMqIXUTKAFjZg4TXCjKjomgqI6Y0MG7b38IpIXqTY3s3KkemHbvMMzzYzi7zXQzNAiu9jsjpQ/sxl8CKEdJw==
|
||||
notion-client@^4.2.7:
|
||||
version "4.2.7"
|
||||
resolved "https://registry.yarnpkg.com/notion-client/-/notion-client-4.2.7.tgz#7b559efff64152d1208a2e7f27a3676459713092"
|
||||
integrity sha512-9SQK7H1U47m4x6BCLxGaAaNH/3rqlZIBPpaOG/LKmioWaDyYW2z86As0uKozaGYm1Ic5rZSgdBtzdSwDWgUsEA==
|
||||
dependencies:
|
||||
got "^11.8.1"
|
||||
notion-types "^4.0.0"
|
||||
notion-utils "^4.2.6"
|
||||
notion-utils "^4.2.7"
|
||||
p-map "^4.0.0"
|
||||
|
||||
notion-types@^4.0.0:
|
||||
@@ -3319,10 +3319,10 @@ notion-types@^4.0.0:
|
||||
resolved "https://registry.yarnpkg.com/notion-types/-/notion-types-4.0.0.tgz#f2ede73442be1f1fd873f642cb7b7432b578d849"
|
||||
integrity sha512-bSOMhIcezidw48/kUj7QASK/fdK2coEl9CQOx5DiQ3Glee6GG3SQq5wZsQliyiSAGeoZCxP0Kyp5JCAQFHFrDA==
|
||||
|
||||
notion-utils@^4.2.6:
|
||||
version "4.2.6"
|
||||
resolved "https://registry.yarnpkg.com/notion-utils/-/notion-utils-4.2.6.tgz#c6227cdddf4a4015f1d0935bffcfdaff8311e4de"
|
||||
integrity sha512-erW+eV8HUy9MEqBmjlUAlLV7iasQbzNO/KUzfYl/z/awHTwu//WnPVHD0iLHtedqvfa2fvaLq5/P/wS+yoprfQ==
|
||||
notion-utils@^4.2.7:
|
||||
version "4.2.7"
|
||||
resolved "https://registry.yarnpkg.com/notion-utils/-/notion-utils-4.2.7.tgz#3fed6005de26b14a78fe23e2b0d63f2103d62c06"
|
||||
integrity sha512-MrTT7+DwrYle6gqfw8dkTwbfr6ksfB5OP5/IUXABhkK/E5g81WvSXfa1Nj46TabSlByXbnja8UI4EDY5Z+ue4g==
|
||||
dependencies:
|
||||
notion-types "^4.0.0"
|
||||
p-queue "^6.6.1"
|
||||
@@ -4110,10 +4110,10 @@ react-modal@^3.11.2:
|
||||
react-lifecycles-compat "^3.0.0"
|
||||
warning "^4.0.3"
|
||||
|
||||
react-notion-x@^4.2.6:
|
||||
version "4.2.6"
|
||||
resolved "https://registry.yarnpkg.com/react-notion-x/-/react-notion-x-4.2.6.tgz#596c4100da13a0721273b2605a9f61bacccc3e4d"
|
||||
integrity sha512-zJ/m05kRlUfeIpl+ejI9GaGum992z4FvG67tOzLWDK+XTTD2qWmBf+wbM3zh1yJGpfnIutXd+fypLsECGnbufA==
|
||||
react-notion-x@^4.2.7:
|
||||
version "4.2.7"
|
||||
resolved "https://registry.yarnpkg.com/react-notion-x/-/react-notion-x-4.2.7.tgz#13dc7b90a0e89f5dd5827cc732da910191bb88c6"
|
||||
integrity sha512-b4RW6PwnC+TygOnYl/2h/bsfEOWDGplAEk7aidFAmf1ZzCh8eTQQEBDAflLEQBc1oQ7NGEO8krXQN9VD0gcelw==
|
||||
dependencies:
|
||||
"@matejmazur/react-katex" "^3.1.3"
|
||||
date-fns "^2.15.0"
|
||||
@@ -4123,7 +4123,7 @@ react-notion-x@^4.2.6:
|
||||
lodash.throttle "^4.1.1"
|
||||
medium-zoom "^1.0.6"
|
||||
notion-types "^4.0.0"
|
||||
notion-utils "^4.2.6"
|
||||
notion-utils "^4.2.7"
|
||||
prismjs "^1.20.0"
|
||||
rc-dropdown "^3.1.2"
|
||||
rc-menu "^8.5.2"
|
||||
|
||||
Reference in New Issue
Block a user