gatsby-source-notion-churnotion 1.0.60 → 1.0.62

Sign up to get free protection for your applications and to get access to all the features.
@@ -154,7 +154,8 @@ const getPages = async ({ databaseId, reporter, getCache, actions, createNode, c
154
154
  create_date: page.created_time,
155
155
  update_date: page.last_edited_time,
156
156
  version: page.properties?.version?.number || null,
157
- description: null,
157
+ description: page.properties?.description?.rich_text?.[0]?.plain_text ||
158
+ null,
158
159
  slug: slug,
159
160
  category_list: categoryPath,
160
161
  children: [],
@@ -20,7 +20,12 @@ const scraper = (0, metascraper_1.default)([
20
20
  const processMetadata = async (blocks, actions, createNodeId, reporter) => {
21
21
  const { createNode } = actions;
22
22
  for (const block of blocks) {
23
- if (block.type === "text" || block.type === "paragraph") {
23
+ if (block.type === "text" ||
24
+ block.type === "paragraph" ||
25
+ block.type === "bulleted_list_item" ||
26
+ block.type === "numbered_list_item" ||
27
+ block.type === "quote" ||
28
+ block.type === "callout") {
24
29
  const richText = block[block.type]?.rich_text || [];
25
30
  for (const text of richText) {
26
31
  const href = text.href;
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.60",
4
+ "version": "1.0.62",
5
5
  "skipLibCheck": true,
6
6
  "license": "0BSD",
7
7
  "main": "./dist/gatsby-node.js",