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

prism-react-renderer

Package Overview
Dependencies
Maintainers
21
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prism-react-renderer - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

21

dist/index.d.ts
import * as react from 'react';
import { CSSProperties } from 'react';
import { Token as Token$1 } from 'prismjs';
import * as prismjs from 'prismjs';
export { prismjs as Prism };
import Prism__default from 'prismjs';
import * as Prism from 'prismjs';
export { Prism };
type Language = string;
type PrismGrammar = Record<string, unknown>;
type LanguagesDict = Record<Language, PrismGrammar>;
type PrismLib = {
languages: LanguagesDict;
tokenize: (code: string, grammar: PrismGrammar) => Array<Token$1 | string>;
highlight: (code: string, grammar: PrismGrammar, language: Language) => string;
hooks: {
run: (name: string, env: {
code: string;
grammar: PrismGrammar;
language: Language;
}) => void;
};
};
type PrismLib = typeof Prism__default;
type Token = {

@@ -23,0 +10,0 @@ types: string[];

2

package.json
{
"name": "prism-react-renderer",
"version": "2.0.3",
"version": "2.0.4",
"description": "Renders highlighted Prism output using React",

@@ -5,0 +5,0 @@ "sideEffects": true,

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