New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gatsby-source-notion-database

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-source-notion-database - npm Package Compare versions

Comparing version 0.5.3 to 0.5.4

yarn.lock

0

gatsby-node.js

@@ -0,0 +0,0 @@ const Notabase = require("notabase")

2

package.json
{
"name": "gatsby-source-notion-database",
"version": "0.5.3",
"version": "0.5.4",
"description": "Load data from Notion's database",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -0,0 +0,0 @@ # gatsby-source-notion-database

@@ -73,14 +73,10 @@ const getPageHtml = require('./getPageHtml')

if (cachedData) {
console.log(`get html from cache: ${tableName} - ${itemData.id}`)
data.html = cachedData.html
} else {
console.log(`get html from notion: ${tableName} - ${itemData.id}`)
let url = `https://notion.so/${itemData.id.split('-').join('')}`
let html
try {
html = await getPageHtml(url)
data.html = html
updateCacheData(data)
} catch (error) {
html = 'error'
data.html = html
}
let html = await getPageHtml(url)
data.html = html
updateCacheData(data)
}

@@ -87,0 +83,0 @@ }

const puppeteer = require('puppeteer');
process.setMaxListeners(0)
const getPageHtml = async (url) => {

@@ -55,3 +55,3 @@ const browser = await puppeteer.launch();

else {
return false
return 'error'
}

@@ -58,0 +58,0 @@ })

Sorry, the diff of this file is not supported yet

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