Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

log-when-you-update

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

log-when-you-update - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

56

lib/shouldInclude.js

@@ -13,56 +13,12 @@ "use strict";

var _iteratorNormalCompletion = true;
var _didIteratorError = false;
var _iteratorError = undefined;
try {
for (var _iterator = include[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
var regex = _step.value;
if (regex.test(displayName)) {
isIncluded = true;
break;
}
for (var i = 0; i < include.length; i++) {
if (isIncluded = include[i].test(displayName)) {
break;
}
} catch (err) {
_didIteratorError = true;
_iteratorError = err;
} finally {
try {
if (!_iteratorNormalCompletion && _iterator["return"]) {
_iterator["return"]();
}
} finally {
if (_didIteratorError) {
throw _iteratorError;
}
}
}
var _iteratorNormalCompletion2 = true;
var _didIteratorError2 = false;
var _iteratorError2 = undefined;
try {
for (var _iterator2 = exclude[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
var regex = _step2.value;
if (regex.test(displayName)) {
isExcluded = true;
break;
}
for (var i = 0; i < exclude.length; i++) {
if (isExcluded = exclude[i].test(displayName)) {
break;
}
} catch (err) {
_didIteratorError2 = true;
_iteratorError2 = err;
} finally {
try {
if (!_iteratorNormalCompletion2 && _iterator2["return"]) {
_iterator2["return"]();
}
} finally {
if (_didIteratorError2) {
throw _iteratorError2;
}
}
}

@@ -69,0 +25,0 @@

2

package.json
{
"name": "log-when-you-update",
"version": "0.0.3",
"version": "0.0.4",
"description": "Notification your console on log when React is render updates",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

/*!
* log-when-you-update 0.0.2
* log-when-you-update 0.0.3
* MIT Licensed

@@ -227,56 +227,12 @@ */

var _iteratorNormalCompletion = true;
var _didIteratorError = false;
var _iteratorError = undefined;
try {
for (var _iterator = include[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
var regex = _step.value;
if (regex.test(displayName)) {
isIncluded = true;
break;
}
for (var i = 0; i < include.length; i++) {
if (isIncluded = include[i].test(displayName)) {
break;
}
} catch (err) {
_didIteratorError = true;
_iteratorError = err;
} finally {
try {
if (!_iteratorNormalCompletion && _iterator["return"]) {
_iterator["return"]();
}
} finally {
if (_didIteratorError) {
throw _iteratorError;
}
}
}
var _iteratorNormalCompletion2 = true;
var _didIteratorError2 = false;
var _iteratorError2 = undefined;
try {
for (var _iterator2 = exclude[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
var regex = _step2.value;
if (regex.test(displayName)) {
isExcluded = true;
break;
}
for (var i = 0; i < exclude.length; i++) {
if (isExcluded = exclude[i].test(displayName)) {
break;
}
} catch (err) {
_didIteratorError2 = true;
_iteratorError2 = err;
} finally {
try {
if (!_iteratorNormalCompletion2 && _iterator2["return"]) {
_iterator2["return"]();
}
} finally {
if (_didIteratorError2) {
throw _iteratorError2;
}
}
}

@@ -283,0 +239,0 @@

/*!
* log-when-you-update 0.0.2
* log-when-you-update 0.0.3
* MIT Licensed
*/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.LogWhenYouUpdate=t():e.LogWhenYouUpdate=t()}(this,function(){return function(e){function t(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return e[n].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var o={};return t.m=e,t.c=o,t.p="",t(0)}([function(e,t,o){"use strict";function n(e){return function(t,o){var n=(0,i.getDisplayName)(this);(0,u.shouldInclude)(n,e)&&e.notifier({displayName:n,props:this.props,state:this.state})}}function r(e){return function(t,o){var n=(0,i.getDisplayName)(this);(0,u.shouldInclude)(n,e)&&e.notifier({displayName:n,props:this.props,state:this.state})}}Object.defineProperty(t,"__esModule",{value:!0});var i=o(2),a=o(3),u=o(4),l=function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=e.Component.prototype.componentWillMount,i=e.Component.prototype.componentWillUpdate,u=e.createClass;return t=(0,a.normalizeOptions)(t),e.Component.prototype.componentWillMount=n(t),e.Component.prototype.componentWillUpdate=r(t),u&&(e.createClass=function(o){o.mixins||(o.mixins=[]);var i={componentWillMount:n(t),componentWillUpdate:r(t)};return o.mixins=[i].concat(o.mixins),u.call(e,o)}),e.__LOG_WHEN_YOU_UPDATE_RESTORE_FN__=function(){e.Component.prototype.componentWillMount=o,e.Component.prototype.componentWillUpdate=i,e.createClass=u,delete e.__LOG_WHEN_YOU_UPDATE_RESTORE_FN__},e};t.logWhenYouUpdate=l,t.default=l},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){var t=e.displayName,o=e.props,n=e.state;console.log("%c"+t,"color:gray",{props:o,state:n})};t.defaultNotifier=o},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){return e.displayName||e.constructor.displayName||e.constructor.name};t.getDisplayName=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),r=/./;t.DEFAULT_INCLUDE=r;var i=/[^a-zA-Z0-9]/;t.DEFAULT_EXCLUDE=i;var a=function(e){return"string"==typeof e?new RegExp("^"+e+"$"):e},u=function(e){return e?[].concat(e):[]},l=function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=e.include,o=void 0===t?[r]:t,l=e.exclude,p=void 0===l?[i]:l,c=e.notifier,s=void 0===c?n.defaultNotifier:c;return{notifier:s,include:u(o).map(a),exclude:u(p).map(a)}};t.normalizeOptions=l},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t){var o=t.include,n=t.exclude,r=!1,i=!1,a=!0,u=!1,l=void 0;try{for(var p,c=o[Symbol.iterator]();!(a=(p=c.next()).done);a=!0){var s=p.value;if(s.test(e)){r=!0;break}}}catch(d){u=!0,l=d}finally{try{!a&&c.return&&c.return()}finally{if(u)throw l}}var f=!0,m=!1,v=void 0;try{for(var y,_=n[Symbol.iterator]();!(f=(y=_.next()).done);f=!0){var s=y.value;if(s.test(e)){i=!0;break}}}catch(d){m=!0,v=d}finally{try{!f&&_.return&&_.return()}finally{if(m)throw v}}return r&&!i};t.shouldInclude=o}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.LogWhenYouUpdate=t():e.LogWhenYouUpdate=t()}(this,function(){return function(e){function t(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return e[n].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var o={};return t.m=e,t.c=o,t.p="",t(0)}([function(e,t,o){"use strict";function n(e){return function(t,o){var n=(0,i.getDisplayName)(this);(0,u.shouldInclude)(n,e)&&e.notifier({displayName:n,props:this.props,state:this.state})}}function r(e){return function(t,o){var n=(0,i.getDisplayName)(this);(0,u.shouldInclude)(n,e)&&e.notifier({displayName:n,props:this.props,state:this.state})}}Object.defineProperty(t,"__esModule",{value:!0});var i=o(2),p=o(3),u=o(4),a=function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=e.Component.prototype.componentWillMount,i=e.Component.prototype.componentWillUpdate,u=e.createClass;return t=(0,p.normalizeOptions)(t),e.Component.prototype.componentWillMount=n(t),e.Component.prototype.componentWillUpdate=r(t),u&&(e.createClass=function(o){o.mixins||(o.mixins=[]);var i={componentWillMount:n(t),componentWillUpdate:r(t)};return o.mixins=[i].concat(o.mixins),u.call(e,o)}),e.__LOG_WHEN_YOU_UPDATE_RESTORE_FN__=function(){e.Component.prototype.componentWillMount=o,e.Component.prototype.componentWillUpdate=i,e.createClass=u,delete e.__LOG_WHEN_YOU_UPDATE_RESTORE_FN__},e};t.logWhenYouUpdate=a,t.default=a},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){var t=e.displayName,o=e.props,n=e.state;console.log("%c"+t,"color:gray",{props:o,state:n})};t.defaultNotifier=o},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){return e.displayName||e.constructor.displayName||e.constructor.name};t.getDisplayName=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),r=/./;t.DEFAULT_INCLUDE=r;var i=/[^a-zA-Z0-9]/;t.DEFAULT_EXCLUDE=i;var p=function(e){return"string"==typeof e?new RegExp("^"+e+"$"):e},u=function(e){return e?[].concat(e):[]},a=function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=e.include,o=void 0===t?[r]:t,a=e.exclude,s=void 0===a?[i]:a,l=e.notifier,c=void 0===l?n.defaultNotifier:l;return{notifier:c,include:u(o).map(p),exclude:u(s).map(p)}};t.normalizeOptions=a},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t){for(var o=t.include,n=t.exclude,r=!1,i=!1,p=0;p<o.length&&!(r=o[p].test(e));p++);for(var p=0;p<n.length&&!(i=n[p].test(e));p++);return r&&!i};t.shouldInclude=o}])});
//# sourceMappingURL=log-when-you-update.min.js.map

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