Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

notablog

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

notablog - npm Package Compare versions

Comparing version 0.3.2 to 0.3.3

4

package.json
{
"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)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc