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.0.1 to 1.0.2

15

modules/__tests__/DragDropManager-test.js

@@ -91,2 +91,17 @@ 'use strict';

it('accepts symbol types', function () {
var source = new _NormalSource$NonDraggableSource$BadItemSource.NormalSource();
var target = new _NormalTarget$NonDroppableTarget$TargetWithNoDropResult$BadResultTarget$TransformResultTarget.NormalTarget();
_expect2['default'](function () {
return registry.addSource(Symbol(), source);
}).to.not.throwError();
_expect2['default'](function () {
return registry.addTarget(Symbol(), target);
}).to.not.throwError();
_expect2['default'](function () {
return registry.addTarget([Symbol(), Symbol()], target);
}).to.not.throwError();
});
it('throws on invalid type', function () {

@@ -93,0 +108,0 @@ var source = new _NormalSource$NonDraggableSource$BadItemSource.NormalSource();

2

modules/utils/HandlerRegistry.js

@@ -50,3 +50,3 @@ 'use strict';

_invariant2['default'](typeof type === 'string', allowArray ? 'Type can only be a string or an array of them.' : 'Type can only be a string.');
_invariant2['default'](typeof type === 'string' || typeof type === 'symbol', allowArray ? 'Type can only be a string, a symbol, or an array of either.' : 'Type can only be a string or a symbol.');
}

@@ -53,0 +53,0 @@

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

@@ -5,0 +5,0 @@ "main": "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