magicpen-prism
Advanced tools
Comparing version 5.0.0 to 5.0.1
@@ -1,3 +0,3 @@ | ||
var oldPrismGlobal = global.Prism; | ||
var prism = (global.Prism = require('prismjs')); | ||
const oldPrismGlobal = global.Prism; | ||
const prism = (global.Prism = require('prismjs')); | ||
require('prismjs/components/prism-graphql.js'); | ||
@@ -8,3 +8,3 @@ require('prismjs/components/prism-csp.js'); | ||
var defaultTheme = { | ||
const defaultTheme = { | ||
// Adapted from the default Prism theme: | ||
@@ -49,3 +49,3 @@ prismComment: '#708090', // slategray | ||
var languageMapping = { | ||
const languageMapping = { | ||
'text/html': 'markup', | ||
@@ -92,5 +92,5 @@ 'application/xml': 'markup', | ||
} | ||
var that = this; | ||
var capitalizedLanguage = upperCamelCase(language); | ||
var languageDefinition = prism.languages[language]; | ||
const that = this; | ||
const capitalizedLanguage = upperCamelCase(language); | ||
const languageDefinition = prism.languages[language]; | ||
@@ -103,3 +103,3 @@ function printTokens(token, parentStyle) { | ||
} else if (typeof token === 'string') { | ||
var upperCamelCasedParentStyle = upperCamelCase(parentStyle); | ||
const upperCamelCasedParentStyle = upperCamelCase(parentStyle); | ||
token = token.replace(/</g, '<'); | ||
@@ -106,0 +106,0 @@ if ( |
{ | ||
"name": "magicpen-prism", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "Add syntax highlighting support to magicpen via prism.js", | ||
@@ -15,9 +15,9 @@ "repository": { | ||
"coveralls": "^3.0.3", | ||
"eslint": "^7.0.0", | ||
"eslint-config-prettier": "^7.0.0", | ||
"eslint-config-standard": "^16.0.0", | ||
"eslint": "^8.6.0", | ||
"eslint-config-prettier": "^8.2.0", | ||
"eslint-config-standard": "^17.0.0", | ||
"eslint-plugin-import": "^2.16.0", | ||
"eslint-plugin-mocha": "^8.0.0", | ||
"eslint-plugin-node": "^11.0.0", | ||
"eslint-plugin-promise": "^4.0.1", | ||
"eslint-plugin-mocha": "^10.0.1", | ||
"eslint-plugin-n": "^15.1.0", | ||
"eslint-plugin-promise": "^6.0.0", | ||
"eslint-plugin-standard": "^5.0.0", | ||
@@ -27,3 +27,3 @@ "magicpen": "^6.2.1", | ||
"nyc": "^15.0.0", | ||
"prettier": "~2.2.0", | ||
"prettier": "~2.5.0", | ||
"unexpected": "^12.0.0" | ||
@@ -45,2 +45,3 @@ }, | ||
}, | ||
"license": "BSD-3-Clause", | ||
"nyc": { | ||
@@ -47,0 +48,0 @@ "include": [ |
Sorry, the diff of this file is too big to display
82488
5
2399