gatsby-source-notion-churnotion 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/onPostBootstrap.js +3 -3
- package/package.json +1 -1
package/dist/onPostBootstrap.js
CHANGED
@@ -75,8 +75,6 @@ const onPostBootstrap = async ({ actions, getNode, getNodesByType, createNodeId,
|
|
75
75
|
docs.map(async (doc) => {
|
76
76
|
if (doc.text) {
|
77
77
|
const key = `${md5(doc.text)}-doc`;
|
78
|
-
reporter.info(`[TEST1] ${doc.text}`);
|
79
|
-
reporter.info(`[TEST2] ${await getTextFromRawText(doc.text)}`);
|
80
78
|
const cached_ssd = await cache.get(key);
|
81
79
|
if (cached_ssd !== undefined) {
|
82
80
|
tfidf.addDocument(cached_ssd);
|
@@ -103,6 +101,7 @@ const onPostBootstrap = async ({ actions, getNode, getNodesByType, createNodeId,
|
|
103
101
|
});
|
104
102
|
});
|
105
103
|
const bow_vectors = new Map();
|
104
|
+
reporter.info(`[DEBUG] BOW Vectors: ${JSON.stringify([...bow_vectors.entries()])}`);
|
106
105
|
docs.forEach((x, i) => {
|
107
106
|
if (bow_vectors === null)
|
108
107
|
return;
|
@@ -115,12 +114,13 @@ const onPostBootstrap = async ({ actions, getNode, getNodesByType, createNodeId,
|
|
115
114
|
const related_nodes = getRelatedPosts(node.id, bow_vectors)
|
116
115
|
.slice(1)
|
117
116
|
.map((id) => getNode(id));
|
117
|
+
reporter.info(`[DEBUG] Related posts for node ${node.id}: ${JSON.stringify(related_nodes)}`);
|
118
118
|
const digest = `${node.id} - ${constants_1.NODE_TYPE.RelatedPost}`;
|
119
119
|
actions.createNode({
|
120
120
|
id: createNodeId(digest),
|
121
121
|
parent: node.id,
|
122
122
|
internal: {
|
123
|
-
type:
|
123
|
+
type: constants_1.NODE_TYPE.RelatedPost,
|
124
124
|
contentDigest: digest,
|
125
125
|
},
|
126
126
|
posts: related_nodes,
|
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.1",
|
5
5
|
"skipLibCheck": true,
|
6
6
|
"license": "0BSD",
|
7
7
|
"main": "./dist/gatsby-node.js",
|