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.26 to 0.6.27

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.26",
"version": "0.6.27",
"repository": {

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

@@ -20,22 +20,23 @@ import {isOnServer} from "../constants";

if (isOnServer) return null;
window.addEventListener("DOMContentLoaded", () => {
// setting the dynamic alerts
alertsDiv = document.createElement("div");
(function initAlertsDiv() {
alertsDiv.id = ALERT_DIV_ID;
// tab index -1 makes the alert be read twice on chrome for some reason
//alertsDiv.tabIndex = -1;
alertsDiv.style.position = "fixed";
alertsDiv.style.bottom = "0";
alertsDiv.style.left = "0";
alertsDiv.style.zIndex = "-5";
alertsDiv.style.opacity = "0";
alertsDiv.style.height = "0";
alertsDiv.style.width = "0";
alertsDiv.setAttribute("role", "alert");
})();
document.body.prepend(alertsDiv);
// setting the dynamic alerts
alertsDiv = document.createElement("div");
(function initAlertsDiv() {
alertsDiv.id = ALERT_DIV_ID;
// tab index -1 makes the alert be read twice on chrome for some reason
//alertsDiv.tabIndex = -1;
alertsDiv.style.position = "fixed";
alertsDiv.style.bottom = "0";
alertsDiv.style.left = "0";
alertsDiv.style.zIndex = "-5";
alertsDiv.style.opacity = "0";
alertsDiv.style.height = "0";
alertsDiv.style.width = "0";
alertsDiv.setAttribute("role", "alert");
})();
document.body.prepend(alertsDiv);
// setting the instructions
Object.entries(ID_TO_INSTRUCTION).forEach(([id, txt]) => document.body.prepend(instructionToHiddenDiv(id, txt)));
// setting the instructions
Object.entries(ID_TO_INSTRUCTION).forEach(([id, txt]) => document.body.prepend(instructionToHiddenDiv(id, txt)));
});
return {...INSTRUCTION_IDs};

@@ -42,0 +43,0 @@ }

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