gatsby-source-notion-churnotion 1.2.0 → 1.2.1

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.
@@ -16,10 +16,10 @@ const timeLimit_1 = require("../util/timeLimit");
16
16
  const MAX_CONCURRENT_REQUESTS = 10;
17
17
  const getPages = async ({ databaseId, reporter, getCache, actions, createNode, createNodeId, createParentChildLink, getNode, cache, }) => {
18
18
  // Get the Notion API key from environment variables
19
- const notionApiKey = process.env.NOTION_API_KEY;
19
+ const notionApiKey = process.env.GATSBY_INTEGRATION_TOKEN;
20
20
  if (!notionApiKey) {
21
- reporter.error("[ERROR] NOTION_API_KEY environment variable is not set!");
22
- throw new Error("NOTION_API_KEY environment variable is required");
21
+ reporter.error("[ERROR] GATSBY_INTEGRATION_TOKEN environment variable is not set!");
22
+ throw new Error("GATSBY_INTEGRATION_TOKEN environment variable is required");
23
23
  }
24
24
  // Initialize the TypeScript Notion Service for methods not implemented in Rust
25
25
  const notionService = new service_1.NotionService({
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.2.0",
4
+ "version": "1.2.1",
5
5
  "skipLibCheck": true,
6
6
  "license": "0BSD",
7
7
  "main": "./dist/gatsby-node.js",