gatsby-source-notion-churnotion 1.0.93 → 1.0.96

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,10 +12,12 @@ const node_nlp_1 = require("node-nlp");
12
12
  const manager = new node_nlp_1.NlpManager({ languages: ["ko"] });
13
13
  const getTokens = async (doc) => {
14
14
  const result = await manager.process("ko", doc);
15
- if (!result.tokens) {
15
+ if (!result.entities) {
16
16
  return [];
17
17
  }
18
- return result.tokens.filter((token) => token.length > 1);
18
+ return result.entities
19
+ .map((entity) => entity.utteranceText)
20
+ .filter((text) => text.length > 1);
19
21
  };
20
22
  const vector_similarity_memo = new Map();
21
23
  const md5 = (str) => {
@@ -74,11 +76,6 @@ const getSpaceSeparatedDoc = async (doc) => {
74
76
  return tokens.join(" ");
75
77
  };
76
78
  const onPostBootstrap = async ({ actions, getNode, getNodesByType, createNodeId, reporter, cache }, options) => {
77
- const { etriToken } = options;
78
- if (etriToken === "") {
79
- reporter.info("[Related Post] Skip getting related post logic.");
80
- return;
81
- }
82
79
  const nodes = getNodesByType(constants_1.NODE_TYPE.Post);
83
80
  const docs = nodes
84
81
  .map((node) => ({ id: node.id, text: node.rawText }))
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.93",
4
+ "version": "1.0.96",
5
5
  "skipLibCheck": true,
6
6
  "license": "0BSD",
7
7
  "main": "./dist/gatsby-node.js",