Comparing version 1.0.1 to 1.0.2
@@ -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(); |
@@ -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
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
500302
3580