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

svelte-dnd-action

Package Overview
Dependencies
Maintainers
1
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-dnd-action - npm Package Compare versions

Comparing version 0.6.29 to 0.6.30

2

package.json

@@ -43,3 +43,3 @@ {

"description": "*An awesome drag and drop library for Svelte 3 (not using the browser's built-in dnd, thanks god): Rich animations, nested containers, touch support and more *",
"version": "0.6.29",
"version": "0.6.30",
"repository": {

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

@@ -73,3 +73,3 @@ import {SHADOW_ELEMENT_ATTRIBUTE_NAME} from "../constants";

/// other properties
copyStylesRecursively(copyFromEl, draggedEl);
copyStylesFromTo(copyFromEl, draggedEl);
transformDraggedElement();

@@ -104,17 +104,2 @@ }

/**
* @param {HTMLElement} copyFromEl
* @param {HTMLElement} copyToEl
*/
function copyStylesRecursively(copyFromEl, copyToEl) {
copyStylesFromTo(copyFromEl, copyToEl);
if ((copyFromEl.children || []).length !== (copyToEl.children || []).length) {
throw new Error("got corrupted dragged element");
}
if (!copyFromEl.children) return;
for (let i = 0; i < copyFromEl.children.length; i++) {
copyStylesRecursively(copyFromEl.children[i], copyToEl.children[i]);
}
}
/**
* makes the element compatible with being draggable

@@ -121,0 +106,0 @@ * @param {HTMLElement} draggableEl

Sorry, the diff of this file is too big to display

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