New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

magicpen-prism

Package Overview
Dependencies
Maintainers
6
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

magicpen-prism - npm Package Compare versions

Comparing version 5.0.0 to 5.0.1

LICENSE

16

lib/magicPenPrism.js

@@ -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(/&lt;/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

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