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

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.0.9 to 1.0.11

4

index.js

@@ -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 @@ ```

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