New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

redux-logger

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-logger - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

5

dist/index.js

@@ -70,4 +70,7 @@ (function webpackUniversalModuleDefinition(root, factory) {

});
var repeat = function repeat(str, times) {
return new Array(times + 1).join(str);
};
var pad = function pad(num, maxLength) {
return "0".repeat(maxLength - num.toString().length) + num;
return repeat("0", maxLength - num.toString().length) + num;
};

@@ -74,0 +77,0 @@

2

dist/index.min.js

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.reduxLogger=t():e.reduxLogger=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){o(1),e.exports=o(1)},function(e,t){"use strict";function o(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return function(t){var o=t.getState;return function(t){return function(i){var c=e.level,u=e.logger,f=e.collapsed,a=e.predicate,d=e.duration,l=void 0===d?!1:d,p=e.timestamp,s=void 0===p?!0:p,g=e.transformer,v=void 0===g?function(e){return e}:g,x=e.actionTransformer,m=void 0===x?function(e){return e}:x,y=u||window.console;if("undefined"==typeof y)return t(i);if("function"==typeof a&&!a(o,i))return t(i);var w=r.now(),h=v(o()),b=t(i),E=r.now()-w,F=v(o()),j=new Date,A="function"==typeof f?f(o,i):f,C=s?" @ "+n(j.getHours(),2)+":"+n(j.getMinutes(),2)+":"+n(j.getSeconds(),2)+"."+n(j.getMilliseconds(),3):"",M=l?" in "+E.toFixed(2)+" ms":"",S=m(i),D="action "+S.type+C+M,L=A?y.groupCollapsed:y.group;try{L.call(y,D)}catch(_){y.log(D)}c?(y[c]("%c prev state","color: #9E9E9E; font-weight: bold",h),y[c]("%c action","color: #03A9F4; font-weight: bold",S),y[c]("%c next state","color: #4CAF50; font-weight: bold",F)):(y.log("%c prev state","color: #9E9E9E; font-weight: bold",h),y.log("%c action","color: #03A9F4; font-weight: bold",S),y.log("%c next state","color: #4CAF50; font-weight: bold",F));try{y.groupEnd()}catch(_){y.log("—— log end ——")}return b}}}}Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){return"0".repeat(t-e.toString().length)+e},r="undefined"!=typeof performance&&"function"==typeof performance.now?performance:Date;t["default"]=o,e.exports=t["default"]}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.reduxLogger=t():e.reduxLogger=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){o(1),e.exports=o(1)},function(e,t){"use strict";function o(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return function(t){var o=t.getState;return function(t){return function(n){var c=e.level,u=e.logger,f=e.collapsed,a=e.predicate,d=e.duration,l=void 0===d?!1:d,p=e.timestamp,s=void 0===p?!0:p,g=e.transformer,v=void 0===g?function(e){return e}:g,x=e.actionTransformer,m=void 0===x?function(e){return e}:x,y=u||window.console;if("undefined"==typeof y)return t(n);if("function"==typeof a&&!a(o,n))return t(n);var w=i.now(),h=v(o()),b=t(n),E=i.now()-w,j=v(o()),A=new Date,F="function"==typeof f?f(o,n):f,C=s?" @ "+r(A.getHours(),2)+":"+r(A.getMinutes(),2)+":"+r(A.getSeconds(),2)+"."+r(A.getMilliseconds(),3):"",M=l?" in "+E.toFixed(2)+" ms":"",S=m(n),D="action "+S.type+C+M,L=F?y.groupCollapsed:y.group;try{L.call(y,D)}catch(_){y.log(D)}c?(y[c]("%c prev state","color: #9E9E9E; font-weight: bold",h),y[c]("%c action","color: #03A9F4; font-weight: bold",S),y[c]("%c next state","color: #4CAF50; font-weight: bold",j)):(y.log("%c prev state","color: #9E9E9E; font-weight: bold",h),y.log("%c action","color: #03A9F4; font-weight: bold",S),y.log("%c next state","color: #4CAF50; font-weight: bold",j));try{y.groupEnd()}catch(_){y.log("—— log end ——")}return b}}}}Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){return new Array(t+1).join(e)},r=function(e,t){return n("0",t-e.toString().length)+e},i="undefined"!=typeof performance&&"function"==typeof performance.now?performance:Date;t["default"]=o,e.exports=t["default"]}])});

@@ -6,4 +6,7 @@ "use strict";

});
var repeat = function repeat(str, times) {
return new Array(times + 1).join(str);
};
var pad = function pad(num, maxLength) {
return "0".repeat(maxLength - num.toString().length) + num;
return repeat("0", maxLength - num.toString().length) + num;
};

@@ -10,0 +13,0 @@

{
"name": "redux-logger",
"version": "2.0.3",
"version": "2.0.4",
"description": "Logger for redux",

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

@@ -1,2 +0,3 @@

const pad = (num, maxLength) => `0`.repeat(maxLength - num.toString().length) + num;
const repeat = (str, times) => (new Array(times + 1)).join(str);
const pad = (num, maxLength) => repeat(`0`, maxLength - num.toString().length) + num;

@@ -3,0 +4,0 @@ // Use the new performance api to get better precision if available

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