New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

uxcore-switch

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uxcore-switch - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

17

.eslintrc.json

@@ -7,8 +7,19 @@ {

"env": {
"browser": true
"browser": true,
"mocha": true
},
"rules": {
"import/no-extraneous-dependencies": "off",
"react/jsx-no-bind": "off"
"react/jsx-no-bind": "off",
"jsx-a11y/label-has-for": "off",
"no-plusplus": [
"error",
{
"allowForLoopAfterthoughts": true
}
],
"react/no-unused-prop-types": "off",
"react/forbid-prop-types": "off",
"jsx-a11y/no-static-element-interactions": "off"
}
}
}

27

build/index.js
'use strict';
/**
* Switch Component for uxcore
* @author eternalsky
*
* Copyright 2015-2016, Uxcore Team, Alinw.
* All rights reserved.
*/
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = undefined;
module.exports = require('./Switch');
var _Switch = require('./Switch');
var _Switch2 = _interopRequireDefault(_Switch);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
exports["default"] = _Switch2["default"]; /**
* Switch Component for uxcore
* @author eternalsky
*
* Copyright 2015-2016, Uxcore Team, Alinw.
* All rights reserved.
*/
module.exports = exports['default'];

@@ -5,2 +5,8 @@ 'use strict';

var _rcSwitch = require('rc-switch');
var _rcSwitch2 = _interopRequireDefault(_rcSwitch);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }

@@ -12,14 +18,10 @@

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } /**
* Switch Component for uxcore
* @author eternalsky
*
* Copyright 2015-2016, Uxcore Team, Alinw.
* All rights reserved.
*/
/**
* Switch Component for uxcore
* @author eternalsky
*
* Copyright 2015-2016, Uxcore Team, Alinw.
* All rights reserved.
*/
var RcSwitch = require('rc-switch');
var Switch = function (_RcSwitch) {

@@ -35,5 +37,5 @@ _inherits(Switch, _RcSwitch);

return Switch;
}(RcSwitch);
}(_rcSwitch2["default"]);
Switch.defaultProps = _extends({}, RcSwitch.defaultProps, {
Switch.defaultProps = _extends({}, _rcSwitch2["default"].defaultProps, {
prefixCls: 'kuma-switch'

@@ -43,3 +45,3 @@ });

// http://facebook.github.io/react/docs/reusable-components.html
Switch.propTypes = RcSwitch.propTypes;
Switch.propTypes = _rcSwitch2["default"].propTypes;

@@ -46,0 +48,0 @@ Switch.displayName = 'Switch';

{
"name": "uxcore-switch",
"version": "0.1.5",
"description": "uxcore-switch component for uxcore.",
"repository": "https://github.com/uxcore/uxcore-switch.git",
"author": "eternalsky",
"main": "build/index.js",
"scripts": {
"start": "uxcore-tools run start",
"server": "uxcore-tools run server",
"lint": "uxcore-tools run lint",
"build": "uxcore-tools run build",
"test": "uxcore-tools run test",
"coverage": "uxcore-tools run coverage",
"pub": "uxcore-tools run pub",
"dep": "uxcore-tools run dep",
"tnpm-dep": "uxcore-tools run tnpm-dep",
"chrome": "uxcore-tools run chrome",
"browsers": "uxcore-tools run browsers",
"saucelabs": "uxcore-tools run saucelabs",
"update": "uxcore-tools run update"
},
"bugs": {
"url": "http://github.com/uxcore/uxcore-switch/issues"
},
"keywords": [
"react",
"react-component",
"uxcore-switch",
"Switch",
"switch"
],
"devDependencies": {
"console-polyfill": "^0.2.2",
"es5-shim": "^4.5.8",
"expect.js": "~0.3.1",
"kuma-base": "1.x",
"react": "0.14.x",
"react-addons-test-utils": "0.14.x",
"react-dom": "0.14.x",
"uxcore-kuma": "2.x",
"uxcore-tools": "0.2.x"
},
"dependencies": {
"classnames": "^2.1.2",
"object-assign": "^4.0.0",
"rc-switch": "~1.4.2"
},
"contributors": [],
"license": "MIT"
}
"name": "uxcore-switch",
"version": "0.1.6",
"description": "uxcore-switch component for uxcore.",
"repository": "https://github.com/uxcore/uxcore-switch.git",
"author": "eternalsky",
"main": "build/index.js",
"scripts": {
"start": "uxcore-tools run start",
"server": "uxcore-tools run server",
"lint": "uxcore-tools run lint",
"build": "uxcore-tools run build",
"test": "uxcore-tools run test",
"coverage": "uxcore-tools run coverage",
"pub": "uxcore-tools run pub",
"dep": "uxcore-tools run dep",
"tnpm-dep": "uxcore-tools run tnpm-dep",
"chrome": "uxcore-tools run chrome",
"browsers": "uxcore-tools run browsers",
"saucelabs": "uxcore-tools run saucelabs",
"update": "uxcore-tools run update",
"tnpm-update": "uxcore-tools run tnpm-update"
},
"bugs": {
"url": "http://github.com/uxcore/uxcore-switch/issues"
},
"keywords": [
"react",
"react-component",
"uxcore-switch",
"Switch",
"switch"
],
"devDependencies": {
"console-polyfill": "^0.2.2",
"es5-shim": "^4.5.8",
"expect.js": "~0.3.1",
"kuma-base": "1.x",
"react": "15.6.x",
"react-addons-test-utils": "0.14.x",
"react-dom": "15.6.x",
"uxcore-kuma": "2.x",
"uxcore-tools": "0.2.x"
},
"dependencies": {
"classnames": "^2.1.2",
"object-assign": "^4.0.0",
"rc-switch": "^1.5.3"
},
"contributors": [],
"license": "MIT"
}

@@ -9,2 +9,2 @@ /**

module.exports = require('./Switch');
export default from './Switch'

@@ -9,3 +9,3 @@ /**

const RcSwitch = require('rc-switch');
import RcSwitch from 'rc-switch'

@@ -12,0 +12,0 @@ class Switch extends RcSwitch {}

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