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.2 to 1.0.3

8

index.js
/*global window*/
/**
* Module dependencies.
*/
var assert = require('assert');
/**
* Check if object is dom node.

@@ -18,5 +12,5 @@ *

module.exports = function isNode(val){
assert.equal(typeof val, 'object', 'is-dom: val should be an object');
if (typeof val !== 'object') return false;
if ('object' == typeof window.Node) return val instanceof window.Node;
return 'number' == typeof val.nodeType && 'string' == typeof val.nodeName;
}

4

package.json
{
"name": "is-dom",
"version": "1.0.2",
"version": "1.0.3",
"description": "Check if the given object is a dom node",

@@ -9,3 +9,3 @@ "main": "index.js",

},
"repository": "yoshuawuyts/is-dom",
"repository": "npm-dom/is-dom",
"keywords": [

@@ -12,0 +12,0 @@ "dom",

@@ -23,12 +23,11 @@ # is-dom

## License
[MIT](https://tldrlegal.com/license/mit-license) ©
[yoshuawuyts](http://yoshuawuyts.com/)
[MIT](https://tldrlegal.com/license/mit-license)
[npm-image]: https://img.shields.io/npm/v/is-dom.svg?style=flat-square
[npm-url]: https://npmjs.org/package/is-dom
[travis-image]: https://img.shields.io/travis/yoshuawuyts/is-dom.svg?style=flat-square
[travis-url]: https://travis-ci.org/yoshuawuyts/is-dom
[coveralls-image]: https://img.shields.io/coveralls/yoshuawuyts/is-dom.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/yoshuawuyts/is-dom?branch=master
[travis-image]: https://img.shields.io/travis/npm-dom/is-dom.svg?style=flat-square
[travis-url]: https://travis-ci.org/npm-dom/is-dom
[coveralls-image]: https://img.shields.io/coveralls/npm-dom/is-dom.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/npm-dom/is-dom?branch=master
[downloads-image]: http://img.shields.io/npm/dm/is-dom.svg?style=flat-square
[downloads-url]: https://npmjs.org/package/is-dom
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