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

rsuite

Package Overview
Dependencies
Maintainers
1
Versions
394
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rsuite - npm Package Compare versions

Comparing version 0.0.20 to 0.0.21

karma-7148898/capture.js

25

karma.conf.js

@@ -17,10 +17,7 @@ var webpackConfig = {

module.exports = function(config) {
module.exports = function (config) {
const { env } = process;
config.set({
basePath: '',
files: [
'test/ButtonSpec.js',
'test/CheckboxSpec.js',
'test/FormControlSpec.js'
],
files: ['test/index.js'],
frameworks: [

@@ -31,9 +28,7 @@ 'mocha',

colors: true,
reporters:['mocha'],
browsers: ['PhantomJS'],
reporters: ['mocha'],
logLevel: config.LOG_INFO,
preprocessors: {
'test/ButtonSpec.js': ['webpack'],
'test/CheckboxSpec.js': ['webpack'],
'test/FormControlSpec.js': ['webpack']
'test/index.js': ['webpack'],
},

@@ -43,4 +38,12 @@ webpack: webpackConfig,

noInfo: true
},
browsers: env.BROWSER ? env.BROWSER.split(',') : ['Chrome'],
customLaunchers: {
ChromeCi: {
base: 'Chrome',
flags: ['--no-sandbox'],
},
}
});
};

@@ -80,3 +80,2 @@ 'use strict';

var _props = this.props;
var type = _props.type;
var inline = _props.inline;

@@ -90,2 +89,3 @@ var title = _props.title;

var value = _props.value;
var checked = _props.checked;

@@ -110,2 +110,3 @@

name: name,
checked: checked !== undefined ? checked : value,
value: value,

@@ -112,0 +113,0 @@ disabled: disabled,

@@ -27,3 +27,4 @@ 'use strict';

inline: _react2.default.PropTypes.bool,
value: _react2.default.PropTypes.array
value: _react2.default.PropTypes.array,
onChange: _react2.default.PropTypes.func
},

@@ -30,0 +31,0 @@ contextTypes: {

@@ -70,3 +70,5 @@ 'use strict';

bothEnds: _react2.default.PropTypes.bool,
menuStyle: _react2.default.PropTypes.object
menuStyle: _react2.default.PropTypes.object,
title: _react2.default.PropTypes.oneOfType([_react2.default.PropTypes.string, _react2.default.PropTypes.element]),
autoClose: _react2.default.PropTypes.bool
},

@@ -78,3 +80,4 @@ getDefaultProps: function getDefaultProps() {

disabled: false,
block: false
block: false,
autoClose: true
};

@@ -150,4 +153,6 @@ },

render: function render() {
var _this = this;
var _props = this.props;
var items = _props.items;
var autoClose = _props.autoClose;
var title = _props.title;

@@ -162,3 +167,3 @@ var children = _props.children;

var props = _objectWithoutProperties(_props, ['items', 'title', 'children', 'className', 'activeKey', 'dropup', 'bothEnds', 'menuStyle', 'componentClass']);
var props = _objectWithoutProperties(_props, ['autoClose', 'title', 'children', 'className', 'activeKey', 'dropup', 'bothEnds', 'menuStyle', 'componentClass']);

@@ -176,3 +181,5 @@ var Toggle = _react2.default.createElement(

{
onClose: this.toggle,
onClose: function onClose() {
autoClose && _this.toggle();
},
onSelect: this.handleSelect,

@@ -179,0 +186,0 @@ activeKey: this.state.activeKey,

@@ -44,3 +44,4 @@ 'use strict';

onClose: _react2.default.PropTypes.func,
onSelect: _react2.default.PropTypes.func
onSelect: _react2.default.PropTypes.func,
activeKey: _react2.default.PropTypes.any
},

@@ -47,0 +48,0 @@ getDefaultProps: function getDefaultProps() {

@@ -36,3 +36,6 @@ 'use strict';

type: _react2.default.PropTypes.string,
id: _react2.default.PropTypes.string
id: _react2.default.PropTypes.string,
onChange: _react2.default.PropTypes.func,
onBlur: _react2.default.PropTypes.func,
value: _react2.default.PropTypes.any
},

@@ -39,0 +42,0 @@ contextTypes: {

@@ -29,2 +29,3 @@ 'use strict';

controlId: _react2.default.PropTypes.string,
isValid: _react2.default.PropTypes.bool,
validationState: _react2.default.PropTypes.oneOf(['success', 'warning', 'error'])

@@ -31,0 +32,0 @@ },

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

var _Table3 = require('./Table');
var _Table2 = require('./Table');
var _Table4 = _interopRequireDefault(_Table3);
var _Table3 = _interopRequireDefault(_Table2);

@@ -198,7 +198,6 @@ var _Container2 = require('./Container');

exports.Col = _Col3.default;
exports.Table = _Table4.default;
exports.Table = _Table3.default;
exports.Container = _Container3.default;
exports.Content = _Content3.default;
exports.Panel = _Panel3.default;
exports.PanelGroup = _PanelGroup3.default;
exports.Table = _Table4.default;
exports.PanelGroup = _PanelGroup3.default;

@@ -44,3 +44,4 @@ 'use strict';

eventKey: _react2.default.PropTypes.any,
componentClass: _elementType2.default
componentClass: _elementType2.default,
role: _react2.default.PropTypes.string
},

@@ -47,0 +48,0 @@

@@ -53,3 +53,2 @@ 'use strict';

var props = {
bsStyle: child.props.bsStyle || this.props.bsStyle,
key: child.key ? child.key : index,

@@ -56,0 +55,0 @@ ref: child.ref

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

componentName = componentName || '<<anonymous>>';
if (props[propName] == null) {
if (props[propName] === null || typeof props[propName] === 'undefined') {
if (isRequired) {

@@ -19,0 +19,0 @@ return new Error('Required prop \'' + propName + '\' was not specified in \'' + componentName + '\'.');

@@ -82,3 +82,2 @@ 'use strict';

var _props = this.props;
var type = _props.type;
var inline = _props.inline;

@@ -93,3 +92,3 @@ var title = _props.title;

var props = _objectWithoutProperties(_props, ['type', 'inline', 'title', 'name', 'className', 'children', 'onClick', 'onChange', 'disabled']);
var props = _objectWithoutProperties(_props, ['inline', 'title', 'name', 'className', 'children', 'onClick', 'onChange', 'disabled']);

@@ -96,0 +95,0 @@ var labelClasses = (0, _classnames2.default)({

@@ -27,3 +27,4 @@ 'use strict';

value: _react2.default.PropTypes.array,
onChange: _react2.default.PropTypes.func
onChange: _react2.default.PropTypes.func,
onBlur: _react2.default.PropTypes.func
},

@@ -30,0 +31,0 @@ contextTypes: {

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

return funcs.filter(function (f) {
return f != null;
return f !== null && typeof f !== 'undefined';
}).reduce(function (acc, f) {

@@ -28,0 +28,0 @@ if (typeof f !== 'function') {

{
"name": "rsuite",
"version": "0.0.20",
"version": "0.0.21",
"description": "RSuite components built with React",

@@ -12,4 +12,6 @@ "main": "lib/index.js",

"dev": "NODE_ENV=development webpack-dev-server --hot --inline --progress --colors --port 3000 --config webpack.dev.config.js",
"docs": "rm -R docs/assets && NODE_ENV=production webpack --progress -colors --config webpack.docs.config.js",
"test": "karma start"
"docs": "rm -rf docs/assets && NODE_ENV=production webpack --watch --progress -colors --config webpack.docs.config.js",
"tdd": "karma start",
"lint": "eslint src *.js",
"test": "npm run lint && karma start --single-run"
},

@@ -30,3 +32,3 @@ "keywords": [

},
"author": "",
"author": "Simon Guo <simonguo.2009@gmail.com>",
"license": "MIT",

@@ -39,2 +41,3 @@ "repository": {

"babel-core": "^6.7.6",
"babel-eslint": "^6.1.2",
"babel-loader": "^6.2.4",

@@ -44,3 +47,2 @@ "babel-preset-es2015": "^6.6.0",

"babel-preset-stage-0": "^6.5.0",
"babel-standalone": "^6.7.7",
"brfs": "^1.4.3",

@@ -53,4 +55,7 @@ "chai": "^3.5.0",

"es3ify-loader": "^0.2.0",
"eslint": "^2.8.0",
"eslint": "^1.10.3",
"eslint-config-airbnb": "^12.0.0",
"eslint-plugin-babel": "^3.2.0",
"eslint-plugin-import": "^2.0.1",
"eslint-plugin-jsx-a11y": "^2.2.3",
"eslint-plugin-react": "^5.0.1",

@@ -62,12 +67,11 @@ "extract-text-webpack-plugin": "^1.0.1",

"html-loader": "^0.4.3",
"karma": "^0.13.22",
"karma-chrome-launcher": "^0.2.3",
"karma-cli": "^0.1.2",
"karma-coverage": "^0.5.5",
"karma-coveralls": "^1.1.2",
"karma-firefox-launcher": "^0.1.7",
"karma-mocha": "^0.2.2",
"karma-mocha-reporter": "^2.0.0",
"karma-phantomjs-launcher": "^1.0.1",
"karma-sinon-chai": "^1.2.0",
"html-webpack-plugin": "^2.22.0",
"karma": "^1.1.1",
"karma-chrome-launcher": "^1.0.1",
"karma-cli": "^1.0.1",
"karma-coverage": "^1.1.0",
"karma-firefox-launcher": "^1.0.0",
"karma-mocha": "^1.1.1",
"karma-mocha-reporter": "^2.0.4",
"karma-sinon-chai": "^1.2.2",
"karma-sourcemap-loader": "^0.3.7",

@@ -85,2 +89,4 @@ "karma-webpack": "^1.7.0",

"rimraf": "^2.5.2",
"rsuite-form": "0.1.6",
"rsuite-schema": "0.0.1-alpha.2",
"sinon": "^1.17.4",

@@ -91,7 +97,4 @@ "sinon-chai": "^2.8.0",

"webpack": "^1.13.1",
"webpack-dev-server": "^1.14.1",
"html-webpack-plugin": "^2.22.0",
"rsuite-schema": "0.0.1-alpha.2",
"rsuite-form": "0.1.6"
"webpack-dev-server": "^1.14.1"
}
}

@@ -1,2 +0,2 @@

# RSuite
# RSuite [![Travis][build-badge]][build] [![npm][npm-badge]][npm]

@@ -62,1 +62,9 @@ [![Join the chat at https://gitter.im/rsuite/rsuite](https://badges.gitter.im/rsuite/rsuite.svg)](https://gitter.im/rsuite/rsuite?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

MIT
[build-badge]: https://travis-ci.org/rsuite/rsuite.svg?branch=master
[build]: https://travis-ci.org/rsuite/rsuite
[npm-badge]: https://badge.fury.io/js/rsuite.svg
[npm]: http://badge.fury.io/js/rsuite

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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