New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

svelte-movable

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-movable - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

10

lib/index.js

@@ -11,4 +11,10 @@ /**

var extractUnit = function (text, axis) {
var unit = text.slice(-1);
if (unit !== '%' && unit !== 'px') {
var unit = 'px';
if (text.slice(-1) === '%') {
unit = '%';
}
else if (text.slice(-2) === 'px') {
unit = 'px';
}
else {
throw new Error("Invalid delta ".concat(axis !== null && axis !== void 0 ? axis : '', " unit. Only 'px' and '%' are supported."));

@@ -15,0 +21,0 @@ }

2

package.json
{
"name": "svelte-movable",
"version": "1.0.3",
"version": "1.0.4",
"description": "Action to move node on mousedown",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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