react-class
Advanced tools
Comparing version 1.2.3 to 1.2.4
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("React")):"function"==typeof define&&define.amd?define(["React"],e):"object"==typeof exports?exports.ReactClass=e(require("React")):t.ReactClass=e(t.React)}(this,function(t){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(t.__proto__=e)}function u(t){var e=t.constructor.prototype,r=Object.getOwnPropertyNames(e).filter(function(t){return"constructor"!=t&&"render"!=t&&"function"==typeof e[t]});return r.push("setState"),r.forEach(function(e){t[e]=t[e].bind(t)}),t}var a=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),c=function(t,e,r){for(var n=!0;n;){var o=t,u=e,a=r;c=s=i=void 0,n=!1,null===o&&(o=Function.prototype);var c=Object.getOwnPropertyDescriptor(o,u);if(void 0!==c){if("value"in c)return c.value;var i=c.get;return void 0===i?void 0:i.call(a)}var s=Object.getPrototypeOf(o);if(null===s)return void 0;t=s,e=u,r=a,n=!0}},i=r(2),s=r(1),l=function(t){function e(t){n(this,e),c(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t),u(this)}return o(e,t),a(e,[{key:"prepareProps",value:function(t){var e=s({},t);return e.style=this.prepareStyle(e),e.className=this.prepareClassName(e),e}},{key:"prepareClassName",value:function(t){var e=t.className||"",r=this.constructor.defaultProps;return r&&null!=r.defaultClassName&&(e+=" "+r.defaultClassName),e}},{key:"prepareStyle",value:function(t){var e;return this.constructor.defaultProps&&(e=this.constructor.defaultProps.defaultStyle),s({},e,t.style)}}]),e}(i.Component);t.exports=l},function(t,e){"use strict";function r(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function n(t){var e=Object.getOwnPropertyNames(t);return Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(t))),e.filter(function(e){return o.call(t,e)})}var o=Object.prototype.propertyIsEnumerable;t.exports=Object.assign||function(t,e){for(var o,u,a=r(t),c=1;c<arguments.length;c++){o=arguments[c],u=n(Object(o));for(var i=0;i<u.length;i++)a[u[i]]=o[u[i]]}return a}},function(e,r){e.exports=t}])}); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("React")):"function"==typeof define&&define.amd?define(["React"],e):"object"==typeof exports?exports.ReactClass=e(require("React")):t.ReactClass=e(t.React)}(this,function(t){return function(t){function e(o){if(r[o])return r[o].exports;var n=r[o]={exports:{},id:o,loaded:!1};return t[o].call(n.exports,n,n.exports,e),n.loaded=!0,n.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){var e=t.constructor.prototype,r=Object.getOwnPropertyNames(e).filter(function(t){return"constructor"!=t&&"render"!=t&&"function"==typeof e[t]});return r.push("setState"),r.forEach(function(e){t[e]=t[e].bind(t)}),t}var u=function(){function t(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,r,o){return r&&t(e.prototype,r),o&&t(e,o),e}}(),c=function(t,e,r){for(var o=!0;o;){var n=t,a=e,u=r;o=!1,null===n&&(n=Function.prototype);var c=Object.getOwnPropertyDescriptor(n,a);if(void 0!==c){if("value"in c)return c.value;var i=c.get;return void 0===i?void 0:i.call(u)}var s=Object.getPrototypeOf(n);if(null===s)return void 0;t=s,e=a,r=u,o=!0,c=s=void 0}},i=r(2),s=r(1),l=function(t){function e(t){o(this,e),c(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t),a(this)}return n(e,t),u(e,[{key:"prepareProps",value:function(t){var e=s({},t);return e.style=this.prepareStyle(e),e.className=this.prepareClassName(e),e}},{key:"prepareClassName",value:function(t){var e=t.className||"",r=this.constructor.defaultProps;return r&&null!=r.defaultClassName&&(e+=" "+r.defaultClassName),e}},{key:"prepareStyle",value:function(t){var e;return this.constructor.defaultProps&&(e=this.constructor.defaultProps.defaultStyle),s({},e,t.style)}}]),e}(i.Component);t.exports=l},function(t,e){"use strict";function r(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}var o=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;t.exports=Object.assign||function(t,e){for(var a,u,c=r(t),i=1;i<arguments.length;i++){a=Object(arguments[i]);for(var s in a)o.call(a,s)&&(c[s]=a[s]);if(Object.getOwnPropertySymbols){u=Object.getOwnPropertySymbols(a);for(var l=0;l<u.length;l++)n.call(a,u[l])&&(c[u[l]]=a[u[l]])}}return c}},function(e,r){e.exports=t}])}); |
@@ -5,7 +5,7 @@ 'use strict'; | ||
var _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; desc = parent = getter = undefined; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } }; | ||
var _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } }; | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } | ||
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) subClass.__proto__ = 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) : subClass.__proto__ = superClass; } | ||
@@ -31,2 +31,4 @@ var React = require('react'); | ||
var ReactClass = (function (_React$Component) { | ||
_inherits(ReactClass, _React$Component); | ||
function ReactClass(props) { | ||
@@ -39,4 +41,2 @@ _classCallCheck(this, ReactClass); | ||
_inherits(ReactClass, _React$Component); | ||
_createClass(ReactClass, [{ | ||
@@ -43,0 +43,0 @@ key: 'prepareProps', |
{ | ||
"name": "react-class", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"description": "A carefully crafted base class for all your React components ", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
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
15905