Comparing version 5.2.0 to 5.3.0
@@ -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
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
571483
4169