Socket
Socket
Sign inDemoInstall

prism-react-renderer

Package Overview
Dependencies
Maintainers
1
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 0.1.2 to 0.1.3

themes/shadesOfPurple.js

4

es/utils/normalizeTokens.js

@@ -39,6 +39,6 @@ var newlineRe = /\r\n|\r|\n/; // Empty lines need to contain a single empty token, denoted with { empty: true }

if (typeof token === "string") {
types = ["plain"];
types = stackIndex > 0 ? types : ["plain"];
content = token;
} else {
types = types.concat(token.type);
types = types[0] === token.type ? types : types.concat(token.type);
content = token.content;

@@ -45,0 +45,0 @@ } // If token.content is an array, increase the stack depth and repeat this while-loop

@@ -43,6 +43,6 @@ "use strict";

if (typeof token === "string") {
types = ["plain"];
types = stackIndex > 0 ? types : ["plain"];
content = token;
} else {
types = types.concat(token.type);
types = types[0] === token.type ? types : types.concat(token.type);
content = token.content;

@@ -49,0 +49,0 @@ } // If token.content is an array, increase the stack depth and repeat this while-loop

{
"name": "prism-react-renderer",
"version": "0.1.2",
"version": "0.1.3",
"description": "Renders highlighted Prism output using React",

@@ -114,2 +114,3 @@ "main": "lib/index.js",

"npm-run-all": "^4.1.3",
"prettier": "^1.14.2",
"prismjs": "^1.15.0",

@@ -116,0 +117,0 @@ "react": "^16.4.2",

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