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

bianco.dom-to-array

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bianco.dom-to-array - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

9

index.js

@@ -12,4 +12,7 @@ 'use strict';

// is it a node list?
// watch out window.length exists and must be filtered
if (els !== window && els.length)
if (
/^\[object (HTMLCollection|NodeList|Object)\]$/
.test(Object.prototype.toString.call(els))
&& typeof els.length === 'number'
)
return Array.from(els)

@@ -25,2 +28,2 @@ else

module.exports = domToArray;
module.exports = domToArray;

@@ -10,4 +10,7 @@ /**

// is it a node list?
// watch out window.length exists and must be filtered
if (els !== window && els.length)
if (
/^\[object (HTMLCollection|NodeList|Object)\]$/
.test(Object.prototype.toString.call(els))
&& typeof els.length === 'number'
)
return Array.from(els)

@@ -14,0 +17,0 @@ else

{
"name": "bianco.dom-to-array",
"version": "0.0.7",
"version": "0.0.8",
"description": "Converts any DOM node/s to a loopable array",
"main": "index.js",
"jsnext:main": "index.next.js",
"module": "index.next.js",
"scripts": {

@@ -8,0 +9,0 @@ "prepublish": "npm run build && npm test",

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