gatsby-source-notion-churnotion 1.0.57 → 1.0.59
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/util/fetchData.js +3 -3
- package/package.json +1 -1
package/dist/util/fetchData.js
CHANGED
@@ -57,9 +57,9 @@ const fetchGetWithRetry = async (url, options = {}, tryCount = 0, maxRetries = 5
|
|
57
57
|
if (block.has_children) {
|
58
58
|
block.children = [];
|
59
59
|
const pageUrl = `blocks/${block.id}/children?page_size=100`;
|
60
|
-
const childData = await (0, exports.fetchGetWithRetry)(pageUrl
|
61
|
-
const childResults = childData.
|
62
|
-
block.children.push(childResults);
|
60
|
+
const childData = await (0, exports.fetchGetWithRetry)(pageUrl);
|
61
|
+
const childResults = childData.results;
|
62
|
+
block.children.push(...childResults);
|
63
63
|
}
|
64
64
|
}
|
65
65
|
return response.data;
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "gatsby-source-notion-churnotion",
|
3
3
|
"description": "Gatsby plugin that can connect with One Notion Database RECURSIVELY using official API",
|
4
|
-
"version": "1.0.
|
4
|
+
"version": "1.0.59",
|
5
5
|
"skipLibCheck": true,
|
6
6
|
"license": "0BSD",
|
7
7
|
"main": "./dist/gatsby-node.js",
|