deprecatejs
Advanced tools
Comparing version 1.0.9 to 1.0.11
@@ -6,3 +6,5 @@ 'use strict'; | ||
if (!deprecate.production) { | ||
console.log('- Deprecation Warning! ' + ( message || '')); | ||
var funcName = callback.name || 'Anonymous Function'; | ||
console.log('- Deprecation Warning!', funcName, | ||
'has been deprecated.', ( message || '')); | ||
} | ||
@@ -9,0 +11,0 @@ return callback.apply(null, arguments); |
{ | ||
"name": "deprecatejs", | ||
"version": "1.0.9", | ||
"version": "1.0.11", | ||
"description": "Wrapper to deprecate JavaScript functions. Displays a custom error message if consumers call a function you've marked as deprecated", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -25,3 +25,3 @@ # DeprecateJS | ||
someModule.oldFunc('foo.'); | ||
// CONSOLE ERROR: - Deprecated Method Call - Please use newFunc instead | ||
// CONSOLE ERROR: - Deprecated Method Call - Anonymous function has been deprecated. Please use newFunc instead | ||
// foo. | ||
@@ -28,0 +28,0 @@ ``` |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
14354
98
1