gatsby-source-notion-churnotion 1.0.51 → 1.0.53

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,6 +18,7 @@ const createSchemaCustomization = ({ actions }) => {
18
18
  version: Int
19
19
  description: String
20
20
  slug: String
21
+ tableOfContents: [JSON]
21
22
  category_list: [${constants_1.NODE_TYPE.Category}]
22
23
  url: String!
23
24
  thumbnail: File @link(by: "id", from: "thumbnail")
@@ -12,7 +12,7 @@ const processTableOfContents = async (blocks, actions, getCache, createNodeId, r
12
12
  block.type === "heading_2" ||
13
13
  block.type === "heading_3")) {
14
14
  const plainText = block[block.type]?.rich_text[0]?.plain_text || "";
15
- const hash = `#${plainText.replace(/\s+/g, "-").toLowerCase()}`;
15
+ const hash = `${plainText.replace(/\s+/g, "-").toLowerCase()}`;
16
16
  block.hash = hash;
17
17
  tableOfContents.push({
18
18
  type: block.type,
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.51",
4
+ "version": "1.0.53",
5
5
  "skipLibCheck": true,
6
6
  "license": "0BSD",
7
7
  "main": "./dist/gatsby-node.js",