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

@xiee/utils

Package Overview
Dependencies
Maintainers
1
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xiee/utils - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3

6

js/center-img.js

@@ -8,3 +8,3 @@ (function() {

// center an image if it is the only element of its parent
if (parent.childNodes.length === 1) {
if (parent.childElementCount === 1) {
// if there is a link on image, check grandparent

@@ -14,4 +14,4 @@ var parentA = parent.nodeName === 'A';

parent = parent.parentElement;
if (parent.childNodes.length != 1) continue;
parent.firstChild.style.border = 'none';
if (parent.childElementCount != 1) continue;
parent.firstElementChild.style.border = 'none';
}

@@ -18,0 +18,0 @@ if (parent.nodeName === 'P') {

{
"name": "@xiee/utils",
"version": "1.2.2",
"version": "1.2.3",
"description": "Miscellaneous tools and utilities to manipulate HTML pages",

@@ -5,0 +5,0 @@ "scripts": {

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