Socket
Socket
Sign inDemoInstall

deprecatejs

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deprecatejs - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

4

index.js
'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": {

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