inferno-create-class
Advanced tools
Comparing version 7.3.3 to 7.4.0
@@ -1,1 +0,1 @@ | ||
!function(t,n){"object"===typeof exports&&"undefined"!==typeof module?n(exports,require("inferno")):"function"===typeof define&&define.amd?define(["exports","inferno"],n):n((t=t||self).Inferno=t.Inferno||{},t.Inferno)}(this,(function(t,n){"use strict";var e="a runtime error occured! Use Inferno in development environment to find the error.";function o(t){throw t||(t=e),new Error("Inferno Error: "+t)}var r={componentDidMount:1,componentDidUnmount:1,componentDidUpdate:1,componentWillMount:1,componentWillUnmount:1,componentWillUpdate:1,constructor:1,render:1,shouldComponentUpdate:1};function i(t,n){for(var e in n)t[e]=n[e];return t}function p(t,n){void 0===n&&(n={});for(var e=0,o=t.length;e<o;++e){var r=t[e];for(var i in r.mixins&&p(r.mixins,n),r)r.hasOwnProperty(i)&&"function"===typeof r[i]&&(n[i]||(n[i]=[])).push(r[i])}return n}function u(t,n){return function(){for(var e,o=arguments,r=0,i=t.length;r<i;++r){var p=t[r],u=p.apply(this,o);n?e=n(e,u):u&&(e=u)}return e}}function a(t,n){if(n)for(var e in"object"!==typeof n&&o("Expected Mixin to return value to be an object or null."),t||(t={}),n)n.hasOwnProperty(e)&&(t.hasOwnProperty(e)&&o("Mixins return duplicate key "+e+" in their return values"),t[e]=n[e]);return t}function f(t,n,e){var o=void 0!==n[t]?e.concat(n[t]):e;n[t]="getDefaultProps"===t||"getInitialState"===t||"getChildContext"===t?u(o,a):u(o)}t.createClass=function(t){var e=function(t){function n(n,e){t.call(this,n,e),function(t){for(var n in t){var e=t[n];"function"!==typeof e||e.__bound||r[n]||((t[n]=e.bind(t)).__bound=!0)}}(this),this.getInitialState&&(this.state=this.getInitialState())}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.replaceState=function(t,n){this.setState(t,n)},n.prototype.isMounted=function(){return null!==this.$LI&&!this.$UN},n}(n.Component);return e.displayName=t.name||t.displayName||"Component",e.propTypes=t.propTypes,e.mixins=t.mixins&&p(t.mixins),e.getDefaultProps=t.getDefaultProps,i(e.prototype,t),t.statics&&i(e,t.statics),t.mixins&&function(t,n){for(var e in n)if(n.hasOwnProperty(e)){var o=n[e],r=void 0;r="getDefaultProps"===e?t:t.prototype,"function"===typeof o[0]?f(e,r,o):r[e]=o}}(e,p(t.mixins)),e.getDefaultProps&&(e.defaultProps=e.getDefaultProps()),e},Object.defineProperty(t,"__esModule",{value:!0})})); | ||
!function(t,n){"object"===typeof exports&&"undefined"!==typeof module?n(exports,require("inferno")):"function"===typeof define&&define.amd?define(["exports","inferno"],n):n((t=t||self).Inferno=t.Inferno||{},t.Inferno)}(this,(function(t,n){"use strict";function e(t){throw t||(t="a runtime error occured! Use Inferno in development environment to find the error."),new Error("Inferno Error: "+t)}var o={componentDidMount:1,componentDidUnmount:1,componentDidUpdate:1,componentWillMount:1,componentWillUnmount:1,componentWillUpdate:1,constructor:1,render:1,shouldComponentUpdate:1};function r(t,n){for(var e in n)t[e]=n[e];return t}function i(t,n){void 0===n&&(n={});for(var e=0,o=t.length;e<o;++e){var r=t[e];for(var p in r.mixins&&i(r.mixins,n),r)r.hasOwnProperty(p)&&"function"===typeof r[p]&&(n[p]||(n[p]=[])).push(r[p])}return n}function p(t,n){return function(){for(var e,o=arguments,r=0,i=t.length;r<i;++r){var p=t[r],u=p.apply(this,o);n?e=n(e,u):u&&(e=u)}return e}}function u(t,n){if(n)for(var o in"object"!==typeof n&&e("Expected Mixin to return value to be an object or null."),t||(t={}),n)n.hasOwnProperty(o)&&(t.hasOwnProperty(o)&&e("Mixins return duplicate key "+o+" in their return values"),t[o]=n[o]);return t}function a(t,n,e){var o=void 0!==n[t]?e.concat(n[t]):e;n[t]="getDefaultProps"===t||"getInitialState"===t||"getChildContext"===t?p(o,u):p(o)}t.createClass=function(t){var e=function(t){function n(n,e){t.call(this,n,e),function(t){for(var n in t){var e=t[n];"function"!==typeof e||e.__bound||o[n]||((t[n]=e.bind(t)).__bound=!0)}}(this),this.getInitialState&&(this.state=this.getInitialState())}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.replaceState=function(t,n){this.setState(t,n)},n.prototype.isMounted=function(){return null!==this.$LI&&!this.$UN},n}(n.Component);return e.displayName=t.name||t.displayName||"Component",e.propTypes=t.propTypes,e.mixins=t.mixins&&i(t.mixins),e.getDefaultProps=t.getDefaultProps,r(e.prototype,t),t.statics&&r(e,t.statics),t.mixins&&function(t,n){for(var e in n)if(n.hasOwnProperty(e)){var o=n[e],r=void 0;r="getDefaultProps"===e?t:t.prototype,"function"===typeof o[0]?a(e,r,o):r[e]=o}}(e,i(t.mixins)),e.getDefaultProps&&(e.defaultProps=e.getDefaultProps()),e},Object.defineProperty(t,"__esModule",{value:!0})})); |
{ | ||
"name": "inferno-create-class", | ||
"version": "7.3.3", | ||
"version": "7.4.0", | ||
"license": "MIT", | ||
@@ -35,7 +35,7 @@ "description": "Provides a helper to create Inferno Components without needing ES2015", | ||
"dependencies": { | ||
"inferno": "7.3.3" | ||
"inferno": "7.4.0" | ||
}, | ||
"devDependencies": { | ||
"inferno-create-element": "7.3.3", | ||
"inferno-shared": "7.3.3" | ||
"inferno-create-element": "7.4.0", | ||
"inferno-shared": "7.4.0" | ||
}, | ||
@@ -48,3 +48,3 @@ "rollup": { | ||
}, | ||
"gitHead": "82092b8357fe9026813e06b8475d41d05112dfd5" | ||
"gitHead": "df7b1c7bb1244a0f193adef7dfb4baa4b7ac00c0" | ||
} |
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
33176
+ Addedinferno@7.4.0(transitive)
+ Addedinferno-shared@7.4.0(transitive)
+ Addedinferno-vnode-flags@7.4.0(transitive)
- Removedinferno@7.3.3(transitive)
- Removedinferno-shared@7.3.3(transitive)
- Removedinferno-vnode-flags@7.3.3(transitive)
Updatedinferno@7.4.0