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

vitepress-plugin-comment-with-giscus

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vitepress-plugin-comment-with-giscus - npm Package Compare versions

Comparing version 1.1.10 to 1.1.11

4

lib/giscus.js

@@ -50,3 +50,3 @@ import giscus from '@giscus/vue';

}
const dark = !!document.querySelector('html')?.className;
const isDark = document.querySelector('html')?.className.indexOf('dark') !== -1;
// Get the parent container and create a comment container

@@ -71,3 +71,3 @@ // 获取父容器,并创建评论容器

render: () => {
return h(giscus, { ...defaultProps, theme: dark ? darkTheme : lightTheme, ...props });
return h(giscus, { ...defaultProps, theme: isDark ? darkTheme : lightTheme, ...props });
}

@@ -74,0 +74,0 @@ }).mount('#giscus');

@@ -62,3 +62,3 @@ import giscus from '@giscus/vue';

}
const dark: boolean = !!document.querySelector('html')?.className;
const isDark:boolean = document.querySelector('html')?.className.indexOf('dark') !== -1;
// Get the parent container and create a comment container

@@ -84,3 +84,3 @@ // 获取父容器,并创建评论容器

return h(
(giscus as Component), { ...defaultProps, theme: dark ? darkTheme : lightTheme, ...props }
(giscus as Component), { ...defaultProps, theme: isDark ? darkTheme : lightTheme, ...props }
);

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

{
"name": "vitepress-plugin-comment-with-giscus",
"version": "1.1.10",
"version": "1.1.11",
"description": "vitepress comment plugin based on giscus",

@@ -5,0 +5,0 @@ "type": "module",

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