Socket
Socket
Sign inDemoInstall

util-deprecate

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

11

browser.js

@@ -11,4 +11,11 @@

* Returns a modified function which warns once by default.
* If --no-deprecation is set, then it is a no-op.
*
* If `localStorage.noDeprecation = true` is set, then it is a no-op.
*
* If `localStorage.throwDeprecation = true` is set, then deprecated functions
* will throw an Error when invoked.
*
* If `localStorage.traceDeprecation = true` is set, then deprecated functions
* will invoke `console.trace()` instead of `console.error()`.
*
* @param {Function} fn - the function to deprecate

@@ -33,3 +40,3 @@ * @param {String} msg - the string to print to the console when `fn` is invoked

} else {
console.error(msg);
console.warn(msg);
}

@@ -36,0 +43,0 @@ warned = true;

1.0.1 / 2014-11-25
==================
* browser: use `console.warn()` for deprecation calls
* browser: more jsdocs
1.0.0 / 2014-04-30

@@ -3,0 +9,0 @@ ==================

2

package.json
{
"name": "util-deprecate",
"version": "1.0.0",
"version": "1.0.1",
"description": "The Node.js `util.deprecate()` function with browser support",

@@ -5,0 +5,0 @@ "main": "node.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc