Socket
Socket
Sign inDemoInstall

is-dom

Package Overview
Dependencies
0
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.3 to 1.0.4

2

index.js

@@ -12,5 +12,5 @@ /*global window*/

module.exports = function isNode(val){
if (typeof val !== 'object') return false;
if (!val || typeof val !== 'object') return false;
if ('object' == typeof window.Node) return val instanceof window.Node;
return 'number' == typeof val.nodeType && 'string' == typeof val.nodeName;
}
{
"name": "is-dom",
"version": "1.0.3",
"version": "1.0.4",
"description": "Check if the given object is a dom node",

@@ -5,0 +5,0 @@ "main": "index.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