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 1.2.0 to 1.2.1

8

lib/HandlerRegistry.js

@@ -163,7 +163,5 @@ 'use strict';

_invariant2['default'](this.getSource(sourceId), 'Expected an existing source.');
this.store.dispatch(_actionsRegistry.removeSource(sourceId));
delete this.handlers[sourceId];
delete this.types[sourceId];
this.store.dispatch(_actionsRegistry.removeSource(sourceId));
};

@@ -173,7 +171,5 @@

_invariant2['default'](this.getTarget(targetId), 'Expected an existing target.');
this.store.dispatch(_actionsRegistry.removeTarget(targetId));
delete this.handlers[targetId];
delete this.types[targetId];
this.store.dispatch(_actionsRegistry.removeTarget(targetId));
};

@@ -180,0 +176,0 @@

@@ -30,8 +30,7 @@ 'use strict';

break;
case _actionsRegistry.REMOVE_TARGET:
return NONE;
case _actionsRegistry.ADD_SOURCE:
case _actionsRegistry.ADD_TARGET:
case _actionsRegistry.REMOVE_TARGET:
case _actionsRegistry.REMOVE_SOURCE:
return state;
return NONE;
case _actionsDragDrop.BEGIN_DRAG:

@@ -38,0 +37,0 @@ case _actionsDragDrop.PUBLISH_DRAG_SOURCE:

{
"name": "dnd-core",
"version": "1.2.0",
"version": "1.2.1",
"description": "Drag and drop sans the GUI",

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

@@ -138,7 +138,5 @@ import invariant from 'invariant';

invariant(this.getSource(sourceId), 'Expected an existing source.');
this.store.dispatch(removeSource(sourceId));
delete this.handlers[sourceId];
delete this.types[sourceId];
this.store.dispatch(removeSource(sourceId));
}

@@ -148,7 +146,5 @@

invariant(this.getTarget(targetId), 'Expected an existing target.');
this.store.dispatch(removeTarget(targetId));
delete this.handlers[targetId];
delete this.types[targetId];
this.store.dispatch(removeTarget(targetId));
}

@@ -155,0 +151,0 @@

@@ -13,8 +13,7 @@ import xor from 'lodash/array/xor';

break;
case REMOVE_TARGET:
return NONE;
case ADD_SOURCE:
case ADD_TARGET:
case REMOVE_TARGET:
case REMOVE_SOURCE:
return state;
return NONE;
case BEGIN_DRAG:

@@ -21,0 +20,0 @@ case PUBLISH_DRAG_SOURCE:

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