Huge News!Announcing our $40M Series B led by Abstract Ventures.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.2 to 0.5.3

2

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

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

@@ -76,5 +76,11 @@ const getPageHtml = require('./getPageHtml')

let url = `https://notion.so/${itemData.id.split('-').join('')}`
let html = await getPageHtml(url)
data.html = html
updateCacheData(data)
let html
try {
html = await getPageHtml(url)
data.html = html
updateCacheData(data)
} catch (error) {
html = 'error'
data.html = html
}
}

@@ -81,0 +87,0 @@ }

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

@@ -5,0 +5,0 @@ const browser = await puppeteer.launch();

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