gatsby-source-notion-churnotion 1.0.30 → 1.0.31
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/dist/api/getBooks.js +1 -0
- package/dist/api/getPages.js +1 -1
- package/package.json +1 -1
package/dist/api/getBooks.js
CHANGED
@@ -36,6 +36,7 @@ const getBooks = async ({ bookDatabaseId, reporter, createNode, createNodeId, })
|
|
36
36
|
url: `${constants_1.COMMON_URI}/${constants_1.BOOK_URI}/${slug}`,
|
37
37
|
book_category: page.properties?.category?.relation?.[0]?.id || `Etc`,
|
38
38
|
};
|
39
|
+
reporter.info(`[DEBUG] Book ${bookNode.book_name} has book_category: ${bookNode.book_category}`);
|
39
40
|
createNode(bookNode);
|
40
41
|
}
|
41
42
|
};
|
package/dist/api/getPages.js
CHANGED
@@ -56,7 +56,7 @@ const getPages = async ({ databaseId, reporter, getCache, actions, createNode, c
|
|
56
56
|
url: `${constants_1.COMMON_URI}/${constants_1.CATEGORY_URI}${categoryUrl}`,
|
57
57
|
books: ``,
|
58
58
|
};
|
59
|
-
createNode(categoryNode);
|
59
|
+
await createNode(categoryNode);
|
60
60
|
// Find Book
|
61
61
|
const bookRelations = page.properties?.books?.relation || null;
|
62
62
|
if (bookRelations) {
|
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.31",
|
5
5
|
"skipLibCheck": true,
|
6
6
|
"license": "0BSD",
|
7
7
|
"main": "./dist/gatsby-node.js",
|