gatsby-source-notion-churnotion 1.1.4 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
package/dist/onPostBootstrap.js
CHANGED
@@ -107,9 +107,10 @@ const onPostBootstrap = async ({ actions, getNode, getNodesByType, createNodeId,
|
|
107
107
|
.map((x) => (x === undefined ? 0 : x)));
|
108
108
|
});
|
109
109
|
nodes.forEach((node) => {
|
110
|
-
const
|
111
|
-
|
112
|
-
.map((id) => getNode(id))
|
110
|
+
const related_node_ids = getRelatedPosts(node.id, bow_vectors);
|
111
|
+
const related_nodes = related_node_ids
|
112
|
+
.map((id) => getNode(id))
|
113
|
+
.filter((relatedNode) => relatedNode !== undefined);
|
113
114
|
const digest = `${node.id} - ${constants_1.NODE_TYPE.RelatedPost}`;
|
114
115
|
actions.createNode({
|
115
116
|
id: createNodeId(digest),
|
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.5",
|
5
5
|
"skipLibCheck": true,
|
6
6
|
"license": "0BSD",
|
7
7
|
"main": "./dist/gatsby-node.js",
|