Comparing version 0.3.2 to 0.3.3
{ | ||
"name": "notablog", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"description": "Generate a minimalistic blog from a Notion.so table.", | ||
@@ -35,5 +35,5 @@ "main": "src/index", | ||
"nast-util-to-html": "0.2.2", | ||
"notionapi-agent": "0.5.2", | ||
"notionapi-agent": "0.6.0", | ||
"squirrelly": "7.5.0" | ||
} | ||
} |
const fs = require('fs') | ||
const path = require('path') | ||
const NotionAgent = require('notionapi-agent') | ||
const { NotionAgent } = require('notionapi-agent') | ||
const TaskManager = require('@dnpr/task-manager') | ||
@@ -18,3 +18,3 @@ const { copyDirSync } = require('@dnpr/fsutil') | ||
const theme = config.theme | ||
const apiAgent = new NotionAgent({ suppressWarning: true }) | ||
const apiAgent = new NotionAgent({ suppressWarning: true, verbose: false }) | ||
@@ -21,0 +21,0 @@ const taskManagerOpts = { |
@@ -331,4 +331,4 @@ const { getOnePageAsTree } = require('nast-util-from-notionapi') | ||
} else { | ||
return `<span>${icon}</span>` | ||
return icon ? `<span>${icon}</span>` : '' | ||
} | ||
} |
const fs = require('fs') | ||
const fsPromises = fs.promises | ||
const path = require('path') | ||
const NotionAgent = require('notionapi-agent') | ||
const { NotionAgent } = require('notionapi-agent') | ||
const { getOnePageAsTree } = require('nast-util-from-notionapi') | ||
@@ -58,3 +58,3 @@ const { renderToHTML } = require('nast-util-to-html') | ||
log(`Fetch page ${pageID}`) | ||
nast = await getOnePageAsTree(pageID, new NotionAgent({ suppressWarning: true })) | ||
nast = await getOnePageAsTree(pageID, new NotionAgent({ suppressWarning: true, verbose: false })) | ||
fs.writeFile(cachePath, JSON.stringify(nast), (err) => { | ||
@@ -61,0 +61,0 @@ if (err) console.error(err) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4750148
+ Added@dnpr/make-request@0.1.0(transitive)
+ Addednotionapi-agent@0.6.0(transitive)
- Removed@dnpr/make-request@0.1.1(transitive)
- Removednotionapi-agent@0.5.2(transitive)
Updatednotionapi-agent@0.6.0