react-dnd-multi-backend
Advanced tools
Comparing version 3.0.2 to 3.0.3
@@ -6,3 +6,10 @@ 'use strict'; | ||
}); | ||
exports.default = undefined; | ||
var _objectAssign = require('./objectAssign'); | ||
var _objectAssign2 = _interopRequireDefault(_objectAssign); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } | ||
@@ -190,3 +197,9 @@ | ||
var newEvent = new event.constructor(event.type, event); | ||
var newEvent = null; | ||
try { | ||
newEvent = new event.constructor(event.type, event); | ||
} catch (_e) { | ||
newEvent = document.createEvent('Event'); | ||
newEvent.initEvent(event.type, event.bubbles, event.cancelable); | ||
} | ||
event.target.dispatchEvent(newEvent); | ||
@@ -216,6 +229,6 @@ } | ||
var options = Object.assign({ backends: [] }, sourceOptions || {}); | ||
var options = (0, _objectAssign2.default)({ backends: [] }, sourceOptions || {}); | ||
if (options.backends.length < 1) { | ||
throw new Error('You must specify at least one Backend, if you are coming from 2.x.x (or don\'t understand this error)\n see this guide: https://github.com/louisbrunner/react-dnd-multi-backend/tree/next#migrating-from-2xx'); | ||
throw new Error('You must specify at least one Backend, if you are coming from 2.x.x (or don\'t understand this error)\n see this guide: https://github.com/louisbrunner/react-dnd-multi-backend#migrating-from-2xx'); | ||
} | ||
@@ -222,0 +235,0 @@ |
{ | ||
"name": "react-dnd-multi-backend", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "Multi Backend system for React DnD", | ||
@@ -41,5 +41,5 @@ "author": "Louis Brunner <louis.brunner.fr@gmail.com> (https://github.com/LouisBrunner)", | ||
"devDependencies": { | ||
"babel-cli": "^6.16.0", | ||
"babel-cli": "^6.26.0", | ||
"babel-eslint": "^7.0.0", | ||
"babel-loader": "^6.2.5", | ||
"babel-loader": "^7.1.2", | ||
"babel-plugin-istanbul": "^4.0.0", | ||
@@ -50,25 +50,26 @@ "babel-plugin-transform-class-properties": "^6.16.0", | ||
"babel-preset-react": "^6.16.0", | ||
"babel-register": "^6.24.0", | ||
"chai": "^3.5.0", | ||
"chai-enzyme": "^0.6.1", | ||
"babel-register": "^6.26.0", | ||
"chai": "^4.1.1", | ||
"chai-enzyme": "^0.8.0", | ||
"coveralls": "^2.12.0", | ||
"enzyme": "^2.7.1", | ||
"eslint": "^3.8.1", | ||
"eslint-loader": "^1.6.1", | ||
"eslint-plugin-react": "^6.10.2", | ||
"jsdom": "^9.12.0", | ||
"jsdom-global": "^2.1.1", | ||
"mocha": "^3.2.0", | ||
"enzyme": "^2.9.1", | ||
"eslint": "^4.5.0", | ||
"eslint-loader": "^1.9.0", | ||
"eslint-plugin-react": "^7.3.0", | ||
"jsdom": "^11.2.0", | ||
"jsdom-global": "^3.0.2", | ||
"mocha": "^3.5.0", | ||
"mocha-jsdom": "^1.1.0", | ||
"nyc": "^10.1.2", | ||
"react": "*", | ||
"nyc": "^11.1.0", | ||
"object-assign": "^4.1.1", | ||
"react": ">=15.3.0", | ||
"react-addons-test-utils": "*", | ||
"react-dom": "*", | ||
"react-test-renderer": "^15.5.4", | ||
"sinon": "^2.1.0", | ||
"sinon-chai": "^2.9.0", | ||
"sinon": "^3.2.1", | ||
"sinon-chai": "^2.13.0", | ||
"sinon-spy-utils": "^1.0.0", | ||
"watch-run": "^1.2.5", | ||
"webpack": "^2.2.1", | ||
"webpack-dev-server": "^2.4.2", | ||
"webpack": "^3.5.5", | ||
"webpack-dev-server": "^2.7.1", | ||
"webpack-merge": "^4.1.0" | ||
@@ -80,4 +81,4 @@ }, | ||
"react-dnd-html5-backend": "*", | ||
"react-dnd-touch-backend": "*" | ||
"react-dnd-touch-backend": "^0.3.13" | ||
} | ||
} |
@@ -14,3 +14,3 @@ # React DnD Multi Backend [![NPM Version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coveralls-image]][coveralls-url] [![dependencies Status][deps-image]][deps-url] [![devDependencies Status][deps-dev-image]][deps-dev-url] | ||
This is the **next** version of this package, see [Migrating from 2.x.x](#migrating-from-2xx) for instructions if you are coming from `react-dnd-multi-backend@2.x.x`. | ||
See [Migrating from 2.x.x](#migrating-from-2xx) for instructions if you are coming from `react-dnd-multi-backend@2.x.x`. | ||
@@ -23,3 +23,3 @@ | ||
```sh | ||
npm install react-dnd-multi-backend@next | ||
npm install react-dnd-multi-backend | ||
``` | ||
@@ -26,0 +26,0 @@ |
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
212038
12
382
2
33
+ Addedasap@2.0.6(transitive)
+ Addeddisposables@1.0.2(transitive)
+ Addeddnd-core@2.6.0(transitive)
+ Addedhoist-non-react-statics@2.5.5(transitive)
+ Addedinvariant@2.2.4(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedlodash-es@4.17.21(transitive)
+ Addedreact-dnd@2.6.0(transitive)
+ Addedreact-dnd-touch-backend@0.3.21(transitive)
+ Addedredux@3.7.2(transitive)
+ Addedsymbol-observable@1.2.0(transitive)
- Removedreact-dnd-touch-backend@16.0.1(transitive)