Comparing version 1.2.0 to 1.2.1
@@ -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: |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
0
63592
1648