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

dom-align

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dom-align - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

2

index.js

@@ -211,3 +211,3 @@ /**

var offset, w, h;
if (!utils.isWindow(node)) {
if (!utils.isWindow(node) && node.nodeType !== 9) {
offset = utils.offset(node);

@@ -214,0 +214,0 @@ w = utils.outerWidth(node);

@@ -363,2 +363,5 @@ var RE_NUM = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source;

getWindow: function (node) {
if (node && node.document && node.setTimeout) {
return node;
}
var doc = node.ownerDocument || node;

@@ -365,0 +368,0 @@ return doc.defaultView || doc.parentWindow;

{
"name": "dom-align",
"version": "1.0.3",
"version": "1.0.4",
"description": "Align DOM Node Flexibly ",

@@ -5,0 +5,0 @@ "keywords": [

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