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.3 to 0.1.4

6

es/utils/themeToDict.js
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
var themeToDict = function themeToDict(theme, language) {
var plain = theme.plain;
var plain = theme.plain; // $FlowFixMe
var base = Object.create(null);
var themeDict = theme.styles.reduce(function (acc, themeEntry) {

@@ -21,3 +23,3 @@ var types = themeEntry.types,

return acc;
}, {}); // $FlowFixMe
}, base); // $FlowFixMe

@@ -24,0 +26,0 @@ themeDict.root = plain; // $FlowFixMe

@@ -9,3 +9,5 @@ "use strict";

var themeToDict = function themeToDict(theme, language) {
var plain = theme.plain;
var plain = theme.plain; // $FlowFixMe
var base = Object.create(null);
var themeDict = theme.styles.reduce(function (acc, themeEntry) {

@@ -27,3 +29,3 @@ var types = themeEntry.types,

return acc;
}, {}); // $FlowFixMe
}, base); // $FlowFixMe

@@ -30,0 +32,0 @@ themeDict.root = plain; // $FlowFixMe

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

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

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