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.1 to 1.0.2

7

browser.js

@@ -58,3 +58,8 @@

function config (name) {
if (!global.localStorage) return false;
// accessing global.localStorage can trigger a DOMException in sandboxed iframes
try {
if (!global.localStorage) return false;
} catch (_) {
return false;
}
var val = global.localStorage[name];

@@ -61,0 +66,0 @@ if (null == val) return false;

1.0.2 / 2015-10-07
==================
* use try/catch when checking `localStorage` (#3, @kumavis)
1.0.1 / 2014-11-25

@@ -3,0 +8,0 @@ ==================

2

package.json
{
"name": "util-deprecate",
"version": "1.0.1",
"version": "1.0.2",
"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