Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-reorder

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-reorder - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

5

examples/src/js/index.js

@@ -5,5 +5,6 @@ 'use strict';

var ReactDOM = require('react-dom');
var createReactClass = require('create-react-class');
var Reorder = require('../../../index');
var ListItem = React.createClass({
var ListItem = createReactClass({
render: function () {

@@ -19,3 +20,3 @@ return React.createElement('div', {

var Main = React.createClass({
var Main = createReactClass({
callback: function (event, item, index, newIndex, list) {

@@ -22,0 +23,0 @@ this.setState({arr: list});

13

index.js
(function () {
'use strict';
var getReorderComponent = function (React, ReactDOM) {
var getReorderComponent = function (React, ReactDOM, createReactClass) {
return React.createClass({
return createReactClass({
displayName: 'Reorder',

@@ -462,7 +462,8 @@ nonCollisionElement: new RegExp('(^|\\s)(placeholder|dragged)($|\\s)', ''),

var ReactDOM = require('react-dom');
module.exports = getReorderComponent(React, ReactDOM);
var createReactClass = require('create-react-class');
module.exports = getReorderComponent(React, ReactDOM, createReactClass);
// Export for amd / require
} else if (typeof define === 'function' && define.amd) { // eslint-disable-line no-undef
define(['react', 'react-dom'], function (React, ReactDOM) { // eslint-disable-line no-undef
return getReorderComponent(React, ReactDOM);
define(['react', 'react-dom', 'create-react-class'], function (ReactAMD, ReactDOMAMD, createReactClassAMD) { // eslint-disable-line no-undef
return getReorderComponent(ReactAMD, ReactDOMAMD, createReactClassAMD);
});

@@ -483,5 +484,5 @@ // Export globally

root.Reorder = getReorderComponent(root.React, root.ReactDOM);
root.Reorder = getReorderComponent(root.React, root.ReactDOM, root.createReactClass);
}
})();
{
"name": "react-reorder",
"version": "2.1.0",
"version": "2.1.1",
"description": "Drag & drop, touch enabled, reorderable / sortable list, React component",

@@ -33,11 +33,17 @@ "author": "Jake 'Sid' Smith",

],
"dependencies": {},
"dependencies": {
"create-react-class": "~15.5.2"
},
"devDependencies": {
"browserify": "=12.0.1",
"http-server": "=0.8.5",
"less": "=2.5.3",
"less": "=2.7.2",
"react": ">=0.14.7",
"react-dom": ">=0.14.7",
"watchify": "=3.6.1"
},
"peerDependencies": {
"react": "*",
"react-dom": "*"
}
}

Sorry, the diff of this file is not supported yet

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