Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

magicpen

Package Overview
Dependencies
Maintainers
2
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

magicpen - npm Package Compare versions

Comparing version 5.2.0 to 5.3.0

13

lib/MagicPen.js

@@ -475,8 +475,14 @@ /*global window*/

if (existingPlugin) {
if (existingPlugin === plugin) {
if (existingPlugin === plugin || (typeof plugin.version !== 'undefined' && plugin.version === existingPlugin.version)) {
// No-op
return this;
} else {
throw new Error("Another instance of the plugin '" + plugin.name + "' is already installed. " +
"Please check your node_modules folder for unmet peerDependencies.");
throw new Error("Another instance of the plugin '" + plugin.name + "' " +
"is already installed" +
(typeof existingPlugin.version !== 'undefined' ?
' (version ' + existingPlugin.version +
(typeof plugin.version !== 'undefined' ?
', trying to install ' + plugin.version : '') +
')' : '') +
". Please check your node_modules folder for unmet peerDependencies.");
}

@@ -491,2 +497,3 @@ }

' name: <an optional plugin name>,\n' +
' version: <an optional semver version string>,\n' +
' dependencies: <an optional list of dependencies>,\n' +

@@ -493,0 +500,0 @@ ' installInto: <a function that will update the given magicpen instance>\n' +

@@ -815,8 +815,14 @@ /*!

if (existingPlugin) {
if (existingPlugin === plugin) {
if (existingPlugin === plugin || (typeof plugin.version !== 'undefined' && plugin.version === existingPlugin.version)) {
// No-op
return this;
} else {
throw new Error("Another instance of the plugin '" + plugin.name + "' is already installed. " +
"Please check your node_modules folder for unmet peerDependencies.");
throw new Error("Another instance of the plugin '" + plugin.name + "' " +
"is already installed" +
(typeof existingPlugin.version !== 'undefined' ?
' (version ' + existingPlugin.version +
(typeof plugin.version !== 'undefined' ?
', trying to install ' + plugin.version : '') +
')' : '') +
". Please check your node_modules folder for unmet peerDependencies.");
}

@@ -831,2 +837,3 @@ }

' name: <an optional plugin name>,\n' +
' version: <an optional semver version string>,\n' +
' dependencies: <an optional list of dependencies>,\n' +

@@ -833,0 +840,0 @@ ' installInto: <a function that will update the given magicpen instance>\n' +

{
"name": "magicpen",
"version": "5.2.0",
"version": "5.3.0",
"description": "Styled output in both consoles and browsers",

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

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