gatsby-source-notion-churnotion 1.1.7 → 1.1.9
Sign up to get free protection for your applications and to get access to all the features.
package/dist/api/getPages.js
CHANGED
@@ -165,7 +165,7 @@ const getPages = async ({ databaseId, reporter, getCache, actions, createNode, c
|
|
165
165
|
update_date: page.last_edited_time,
|
166
166
|
version: page.properties?.version?.number || null,
|
167
167
|
description: page.properties?.description?.rich_text?.[0]?.plain_text ||
|
168
|
-
|
168
|
+
rawText,
|
169
169
|
slug: slug,
|
170
170
|
category_list: categoryPath,
|
171
171
|
children: [],
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.processTableOfContents = void 0;
|
4
|
+
const crypto_1 = require("crypto");
|
4
5
|
const processTableOfContents = async (block, tableOfContents) => {
|
5
6
|
if (["heading_1", "heading_2", "heading_3"].includes(block.type) &&
|
6
7
|
block[block.type]?.rich_text?.length > 0) {
|
@@ -9,7 +10,7 @@ const processTableOfContents = async (block, tableOfContents) => {
|
|
9
10
|
.replace(/[^a-zA-Z0-9가-힣\s-_]/g, "")
|
10
11
|
.trim()
|
11
12
|
.replace(/\s+/g, "-")
|
12
|
-
.toLowerCase()}`;
|
13
|
+
.toLowerCase()}-${(0, crypto_1.randomUUID)().substring(0, 4)}`;
|
13
14
|
block.hash = hash;
|
14
15
|
tableOfContents.push({
|
15
16
|
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.1.
|
4
|
+
"version": "1.1.9",
|
5
5
|
"skipLibCheck": true,
|
6
6
|
"license": "0BSD",
|
7
7
|
"main": "./dist/gatsby-node.js",
|