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.12 to 1.1.13

1

lib/giscus.js

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

}
console.log(frontmatter?.value.comment);
if (frontmatter?.value.comment !== undefined) {

@@ -35,0 +34,0 @@ // If comment is false, comments are not loaded

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

}
console.log(frontmatter?.value.comment);
if (frontmatter?.value.comment !== undefined) {

@@ -48,0 +47,0 @@ // If comment is false, comments are not loaded

2

package.json
{
"name": "vitepress-plugin-comment-with-giscus",
"version": "1.1.12",
"version": "1.1.13",
"description": "vitepress comment plugin based on giscus",

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

@@ -22,7 +22,9 @@ # vitepress-plugin-comment-with-giscus

In the `index` file under the `.vitepress/theme` path
```ts
// .vitepress/theme/index.js
import DefaultTheme from 'vitepress/theme';
import giscusTalk from 'vitepress-plugin-comment-with-giscus';
import { useData, useRoute } from 'vitepress';
import { toRefs } from "vue";

@@ -37,3 +39,3 @@ export default {

// Get frontmatter and route
const { frontmatter } = useData();
const { frontmatter } = toRefs(useData());
const route = useRoute();

@@ -68,2 +70,4 @@

[Click to see the list of currently supported languages](https://github.com/giscus/giscus/blob/main/lib/i18n.tsx#L45)
## Extended

@@ -70,0 +74,0 @@

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