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

chai-dom

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chai-dom - npm Package Compare versions

Comparing version 1.8.0 to 1.8.1

8

chai-dom.js

@@ -66,9 +66,7 @@ (function(chaiDom) {

isHTMLElement = function(el) {
return el.nodeType === window.Node.ELEMENT_NODE;
return el.nodeType === 1 // window.Node.ELEMENT_NODE
},
NODE_LIST_STRING = Object.prototype.toString.call(document.childNodes),
isNodeList = function(obj) {
return Object.prototype.toString.call(obj) === NODE_LIST_STRING;
return Object.prototype.toString.call(obj) === '[object NodeList]'
}

@@ -222,3 +220,3 @@

if (isNodeList(obj) || isHTMLElement(obj)) {
var actualLength = obj.children ? obj.children.length : obj.length;
var actualLength = obj.children ? obj.children.length : obj.length
this.assert(

@@ -225,0 +223,0 @@ actualLength === length

@@ -16,3 +16,3 @@ {

],
"version": "1.8.0",
"version": "1.8.1",
"repository": {

@@ -19,0 +19,0 @@ "type": "git",

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