react-class
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -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(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}])}); | ||
!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&&(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 c=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}}(),u=function(t,e,r){for(var n=!0;n;){var o=t,a=e,c=r;n=!1,null===o&&(o=Function.prototype);var u=Object.getOwnPropertyDescriptor(o,a);if(void 0!==u){if("value"in u)return u.value;var i=u.get;if(void 0===i)return;return i.call(c)}var s=Object.getPrototypeOf(o);if(null===s)return;t=s,e=a,r=c,n=!0,u=s=void 0}},i=r(2),s=r(1),f=function(t){function e(t){n(this,e),u(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t),a(this)}return o(e,t),c(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=f},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)}function n(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;10>r;r++)e["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(e).map(function(t){return e[t]});if("0123456789"!==n.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(t){o[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(a){return!1}}var o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;t.exports=n()?Object.assign:function(t,e){for(var n,c,u=r(t),i=1;i<arguments.length;i++){n=Object(arguments[i]);for(var s in n)o.call(n,s)&&(u[s]=n[s]);if(Object.getOwnPropertySymbols){c=Object.getOwnPropertySymbols(n);for(var f=0;f<c.length;f++)a.call(n,c[f])&&(u[c[f]]=n[c[f]])}}return u}},function(e,r){e.exports=t}])}); |
{ | ||
"name": "react-class", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "A carefully crafted base class for all your React components ", | ||
@@ -41,3 +41,3 @@ "main": "lib/index.js", | ||
"peerDependencies": { | ||
"react": ">=0.14.0" | ||
"react": ">=0.14.0 || >=15.0.0-0" | ||
}, | ||
@@ -44,0 +44,0 @@ "dependencies": { |
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
16355