react-switch
Advanced tools
Comparing version 0.1.0 to 1.0.0
{ | ||
"name": "react-switch", | ||
"version": "0.1.0", | ||
"description": "React components for Dailymotion Switch", | ||
"main": "build/index.js", | ||
"version": "1.0.0", | ||
"description": "Draggable toggle-switch component for react", | ||
"main": "dist/index.js", | ||
"scripts": { | ||
"build": "./node_modules/.bin/gulp build", | ||
"test": "jest" | ||
"build": "babel src -d dist", | ||
"build:watch": "babel src -w -d dist", | ||
"lint": "eslint --ext .js,.jsx src/", | ||
"prepublishOnly": "npm run build", | ||
"test": "jest --verbose" | ||
}, | ||
"author": "Romain Berger <romain.berger@dailymotion.com>", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/yogaboll/react-switch.git" | ||
}, | ||
"author": "Markus Englund <markus.s.englund@gmail.com>", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/yogaboll/react-switch/issues" | ||
}, | ||
"homepage": "https://github.com/yogaboll/react-switch#readme", | ||
"peerDependencies": { | ||
"react": ">=15", | ||
"react-dom": ">=15", | ||
"prop-types": ">=15" | ||
}, | ||
"devDependencies": { | ||
"gulp": "^3.8.11", | ||
"gulp-babel": "^5.0.0", | ||
"gulp-plumber": "^1.0.0", | ||
"jest-cli": "^0.4.0", | ||
"react-tools": "^0.13.1" | ||
"babel-cli": "^6.26.0", | ||
"babel-core": "^6.26.0", | ||
"babel-preset-env": "^1.6.0", | ||
"babel-preset-react": "^6.24.1", | ||
"babel-preset-stage-3": "^6.24.1", | ||
"enzyme": "^2.9.1", | ||
"eslint": "^4.6.1", | ||
"eslint-config-airbnb": "^15.1.0", | ||
"eslint-plugin-import": "^2.7.0", | ||
"eslint-plugin-jsx-a11y": "^5.1.1", | ||
"eslint-plugin-react": "^7.3.0", | ||
"jest": "^21.1.0", | ||
"react-test-renderer": "^15.6.1" | ||
}, | ||
"dependencies": { | ||
"react": "^0.13.1" | ||
}, | ||
"jest": { | ||
"scriptPreprocessor": "<rootDir>/preprocessor.js", | ||
"unmockedModulePathPatterns": [ | ||
"<rootDir>/node_modules/react" | ||
] | ||
"react-draggable": "^3.0.3" | ||
} | ||
} |
@@ -1,38 +0,2 @@ | ||
# React Switch [![Build Status](https://secure.travis-ci.org/romainberger/react-switch.png)](http://travis-ci.org/romainberger/react-switch) | ||
Set of React components for Dailymotion Switch | ||
## Installation | ||
$ npm install -save react-switch | ||
## Usage | ||
```javascript | ||
import {Button} from 'react-switch' | ||
export default class FollowButton extend React.Component { | ||
handleClick() { | ||
API.followUser(this.user) | ||
} | ||
render() { | ||
var classes = 'btn-primary' | ||
return ( | ||
<Button classes={classes} onClick={this.handleClick}><Icon icon="plus" /></Button> | ||
) | ||
} | ||
} | ||
``` | ||
## Components | ||
- Buttons | ||
- Icons | ||
- Badges | ||
## Todo | ||
- Alerts | ||
- Modals | ||
- Player | ||
# react-switch | ||
Draggable toggle-switch component for react |
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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
290
0
0
0
12116
4
13
4
3
2
+ Addedreact-draggable@^3.0.3
+ Addedclassnames@2.5.1(transitive)
+ Addedjs-tokens@4.0.0(transitive)
+ Addedloose-envify@1.4.0(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedprop-types@15.8.1(transitive)
+ Addedreact@18.3.1(transitive)
+ Addedreact-dom@18.3.1(transitive)
+ Addedreact-draggable@3.3.2(transitive)
+ Addedreact-is@16.13.1(transitive)
+ Addedscheduler@0.23.2(transitive)
- Removedreact@^0.13.1
- Removedacorn@5.7.4(transitive)
- Removedamdefine@1.0.1(transitive)
- Removedast-types@0.9.6(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbase62@1.2.8(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedcommander@2.20.3(transitive)
- Removedcommoner@0.10.8(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removeddefined@1.0.1(transitive)
- Removeddetective@4.7.1(transitive)
- Removedenvify@3.4.1(transitive)
- Removedesprima@3.1.3(transitive)
- Removedesprima-fb@15001.1.0-dev-harmony-fb(transitive)
- Removedglob@5.0.15(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removediconv-lite@0.4.24(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedjstransform@11.0.3(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removedobject-assign@2.1.1(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedprivate@0.1.8(transitive)
- Removedq@1.5.1(transitive)
- Removedreact@0.13.3(transitive)
- Removedrecast@0.11.23(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedsource-map@0.4.40.5.7(transitive)
- Removedthrough@2.3.8(transitive)
- Removedwrappy@1.0.2(transitive)