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

dnd-core

Package Overview
Dependencies
Maintainers
1
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dnd-core - npm Package Compare versions

Comparing version 0.13.0 to 0.13.1

4

dist-modules/DragDropMonitor.js

@@ -179,2 +179,6 @@ 'use strict';

DragDropMonitor.prototype.getSourceClientOffset = function getSourceClientOffset() {
return this.dragOffsetStore.getSourceClientOffset();
};
DragDropMonitor.prototype.getClientOffset = function getClientOffset() {

@@ -181,0 +185,0 @@ return this.dragOffsetStore.getClientOffset();

@@ -91,7 +91,23 @@ 'use strict';

DragOffsetStore.prototype.getDifferenceFromInitialOffset = function getDifferenceFromInitialOffset() {
DragOffsetStore.prototype.getSourceClientOffset = function getSourceClientOffset() {
var _state = this.state;
var clientOffset = _state.clientOffset;
var initialClientOffset = _state.initialClientOffset;
var initialSourceClientOffset = _state.initialSourceClientOffset;
if (!clientOffset || !initialClientOffset || !initialSourceClientOffset) {
return null;
}
return {
x: clientOffset.x + initialSourceClientOffset.x - initialClientOffset.x,
y: clientOffset.y + initialSourceClientOffset.y - initialClientOffset.y
};
};
DragOffsetStore.prototype.getDifferenceFromInitialOffset = function getDifferenceFromInitialOffset() {
var _state2 = this.state;
var clientOffset = _state2.clientOffset;
var initialClientOffset = _state2.initialClientOffset;
if (!clientOffset || !initialClientOffset) {

@@ -98,0 +114,0 @@ return null;

2

package.json
{
"name": "dnd-core",
"version": "0.13.0",
"version": "0.13.1",
"description": "Drag and drop sans the GUI",

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

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

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