prism-react-renderer
Advanced tools
Comparing version 0.1.3 to 0.1.4
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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
255029
5957