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.6.6 to 0.6.7

2

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

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

@@ -20,3 +20,3 @@ const puppeteer = require('puppeteer');

})
// TOC 链接转化

@@ -59,2 +59,8 @@ let qs = "#notion-app > div > div.notion-cursor-listener > div > div.notion-scroller.vertical.horizontal > div.notion-page-content > div > div:nth-child(1) > div > a"

// bookmark 修复,notion更改了 bookmark block 的生成规则,a 标签内没有 href了
document.querySelectorAll("#notion-app > div > div.notion-cursor-listener > div > div.notion-scroller.vertical.horizontal > div.notion-page-content > div[data-block-id] > div > div > a").forEach(a => {
if (!a.href) {
a.href = a.querySelector("div > div:first-child > div:last-child").innerText
}
})
// 表格视图 CSS 修复

@@ -61,0 +67,0 @@ document.querySelectorAll("div.notion-scroller.horizontal").forEach(item => {

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