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

discus-lib

Package Overview
Dependencies
Maintainers
0
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discus-lib - npm Package Compare versions

Comparing version 0.10.0 to 1.0.0

7

dist/cjs/Discus.d.ts
import React from "react";
import { CommentContextType } from "./utils";
import { CommentContextType, DiscusProps } from "./utils";
export declare const UserNameContext: React.Context<string>;
export declare const CommentContext: React.Context<CommentContextType>;
type discusProps = {
name: string;
};
declare const Discus: React.FC<discusProps>;
declare const Discus: React.FC<DiscusProps>;
export default Discus;
import { Dispatch, SetStateAction } from "react";
export interface DiscusProps {
name: string;
}
export type ReplyType = {

@@ -3,0 +6,0 @@ id: string;

import React from "react";
import { CommentContextType } from "./utils";
import { CommentContextType, DiscusProps } from "./utils";
export declare const UserNameContext: React.Context<string>;
export declare const CommentContext: React.Context<CommentContextType>;
type discusProps = {
name: string;
};
declare const Discus: React.FC<discusProps>;
declare const Discus: React.FC<DiscusProps>;
export default Discus;
import { Dispatch, SetStateAction } from "react";
export interface DiscusProps {
name: string;
}
export type ReplyType = {

@@ -3,0 +6,0 @@ id: string;

{
"name": "discus-lib",
"version": "0.10.0",
"version": "1.0.0",
"description": "",

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

@@ -19,2 +19,3 @@ # discus-lib

The component can also take an object as props which holds the name of the user to be displayed. If the property is not mentioned it will display as __Unknown User__

@@ -25,2 +26,6 @@ ```node

const discusProps = {
name: "Person 1"
}
const App: React.FC = () => {

@@ -30,3 +35,3 @@ return (

<h1>My App</h1>
<Discus />
<Discus {...discusProps} />
</div>

@@ -33,0 +38,0 @@ );

Sorry, the diff of this file is not supported yet

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