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

dom-align

Package Overview
Dependencies
Maintainers
4
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.11.1 to 1.12.0

18

dist-node/index.js

@@ -1165,3 +1165,19 @@ 'use strict';

if (isStillFailX || isStillFailY) {
points = align.points;
var _newPoints2 = points; // 重置对应部分的翻转逻辑
if (isStillFailX) {
_newPoints2 = flip(points, /[lr]/gi, {
l: 'r',
r: 'l'
});
}
if (isStillFailY) {
_newPoints2 = flip(points, /[tb]/gi, {
t: 'b',
b: 't'
});
}
points = _newPoints2;
offset = align.offset || [0, 0];

@@ -1168,0 +1184,0 @@ targetOffset = align.targetOffset || [0, 0];

@@ -1211,3 +1211,19 @@ function _typeof(obj) {

if (isStillFailX || isStillFailY) {
points = align.points;
var _newPoints2 = points; // 重置对应部分的翻转逻辑
if (isStillFailX) {
_newPoints2 = flip(points, /[lr]/gi, {
l: 'r',
r: 'l'
});
}
if (isStillFailY) {
_newPoints2 = flip(points, /[tb]/gi, {
t: 'b',
b: 't'
});
}
points = _newPoints2;
offset = align.offset || [0, 0];

@@ -1214,0 +1230,0 @@ targetOffset = align.targetOffset || [0, 0];

2

package.json
{
"name": "dom-align",
"description": "Align DOM Node Flexibly ",
"version": "1.11.1",
"version": "1.12.0",
"license": "MIT",

@@ -6,0 +6,0 @@ "files": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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