react-clientside-effect
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -1,3 +0,3 @@ | ||
import _inheritsLoose from '@babel/runtime/helpers/inheritsLoose'; | ||
import _defineProperty from '@babel/runtime/helpers/defineProperty'; | ||
import _inheritsLoose from '@babel/runtime/helpers/esm/inheritsLoose'; | ||
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty'; | ||
import React, { PureComponent } from 'react'; | ||
@@ -4,0 +4,0 @@ |
@@ -15,4 +15,2 @@ (function (global, factory) { | ||
var inheritsLoose = _inheritsLoose; | ||
function _defineProperty(obj, key, value) { | ||
@@ -33,4 +31,2 @@ if (key in obj) { | ||
var defineProperty = _defineProperty; | ||
function withSideEffect(reducePropsToState, handleStateChangeOnClient) { | ||
@@ -71,3 +67,3 @@ if (process.env.NODE_ENV !== "production") { | ||
function (_PureComponent) { | ||
inheritsLoose(SideEffect, _PureComponent); | ||
_inheritsLoose(SideEffect, _PureComponent); | ||
@@ -107,3 +103,3 @@ function SideEffect() { | ||
defineProperty(SideEffect, "displayName", "SideEffect(" + getDisplayName(WrappedComponent) + ")"); | ||
_defineProperty(SideEffect, "displayName", "SideEffect(" + getDisplayName(WrappedComponent) + ")"); | ||
@@ -110,0 +106,0 @@ return SideEffect; |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):e.withSideEffect=t(e.React)}(this,function(e){"use strict";var t="default"in e?e.default:e;var n=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t};var o=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e};return function(r,i){if("production"!==process.env.NODE_ENV){if("function"!=typeof r)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof i)throw new Error("Expected handleStateChangeOnClient to be a function.")}return function(c){if("production"!==process.env.NODE_ENV&&"function"!=typeof c)throw new Error("Expected WrappedComponent to be a React component.");var u,p=[];function f(){u=r(p.map(function(e){return e.props})),i(u)}var a=function(e){function o(){return e.apply(this,arguments)||this}n(o,e),o.peek=function(){return u};var r=o.prototype;return r.componentDidMount=function(){p.push(this),f()},r.componentDidUpdate=function(){f()},r.componentWillUnmount=function(){var e=p.indexOf(this);p.splice(e,1),f()},r.render=function(){return t.createElement(c,this.props)},o}(e.PureComponent);return o(a,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(c)+")"),a}}}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):e.withSideEffect=t(e.React)}(this,function(e){"use strict";var t="default"in e?e.default:e;return function(n,o){if("production"!==process.env.NODE_ENV){if("function"!=typeof n)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof o)throw new Error("Expected handleStateChangeOnClient to be a function.")}return function(r){if("production"!==process.env.NODE_ENV&&"function"!=typeof r)throw new Error("Expected WrappedComponent to be a React component.");var i,c=[];function p(){i=n(c.map(function(e){return e.props})),o(i)}var u,f,a,d=function(e){var n,o;function u(){return e.apply(this,arguments)||this}o=e,(n=u).prototype=Object.create(o.prototype),n.prototype.constructor=n,n.__proto__=o,u.peek=function(){return i};var f=u.prototype;return f.componentDidMount=function(){c.push(this),p()},f.componentDidUpdate=function(){p()},f.componentWillUnmount=function(){var e=c.indexOf(this);c.splice(e,1),p()},f.render=function(){return t.createElement(r,this.props)},u}(e.PureComponent);return u=d,f="displayName",a="SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")",f in u?Object.defineProperty(u,f,{value:a,enumerable:!0,configurable:!0,writable:!0}):u[f]=a,d}}}); |
{ | ||
"name": "react-clientside-effect", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Create components whose prop changes map to a global side effect", | ||
@@ -66,3 +66,2 @@ "main": "lib/index.js", | ||
"rollup-plugin-babel": "^4.0.3", | ||
"rollup-plugin-commonjs": "^8.3.0", | ||
"rollup-plugin-node-resolve": "^3.0.3", | ||
@@ -69,0 +68,0 @@ "rollup-plugin-uglify": "^3.0.0" |
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
27
16316
220