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.
- package/dist/api/getPages.js +3 -3
- package/package.json +1 -1
package/dist/api/getPages.js
CHANGED
@@ -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.
|
19
|
+
const notionApiKey = process.env.GATSBY_INTEGRATION_TOKEN;
|
20
20
|
if (!notionApiKey) {
|
21
|
-
reporter.error("[ERROR]
|
22
|
-
throw new Error("
|
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.
|
4
|
+
"version": "1.2.1",
|
5
5
|
"skipLibCheck": true,
|
6
6
|
"license": "0BSD",
|
7
7
|
"main": "./dist/gatsby-node.js",
|