deprecatejs
Advanced tools
Comparing version 1.1.0 to 1.2.0
'use strict'; | ||
var deprecate = function (callback, message) { | ||
var deprecate = function (callback, message, scope) { | ||
return function deprecateFn() { | ||
@@ -10,3 +10,3 @@ if (!deprecate.production) { | ||
} | ||
return callback.apply(null, arguments); | ||
return callback.apply(scope || null, arguments); | ||
}; | ||
@@ -13,0 +13,0 @@ }; |
{ | ||
"name": "deprecatejs", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Wrapper to deprecate JavaScript functions. Displays a custom error message if consumers call a function you've marked as deprecated", | ||
"main": "index.js", | ||
"scripts": { | ||
"lint": "./node_modules/gulp/bin/gulp.js lint", | ||
"mocha": "./node_modules/mocha/bin/_mocha", | ||
"test": "npm run lint && npm run mocha" | ||
"lint": "./node_modules/.bin/gulp lint", | ||
"test": "./node_modules/.bin/mocha" | ||
}, | ||
@@ -11,0 +10,0 @@ "repository": { |
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
2637