redux-devtools
Advanced tools
Comparing version 1.0.0 to 1.0.2
@@ -95,3 +95,4 @@ 'use strict'; | ||
isVisible: true | ||
} | ||
}, | ||
timestamps: [Date.now()] | ||
}; | ||
@@ -110,2 +111,3 @@ | ||
var monitorState = liftedState.monitorState; | ||
var timestamps = liftedState.timestamps; | ||
@@ -118,2 +120,3 @@ switch (liftedAction.type) { | ||
currentStateIndex = 0; | ||
timestamps = [liftedAction.timestamp]; | ||
break; | ||
@@ -125,2 +128,3 @@ case ActionTypes.COMMIT: | ||
currentStateIndex = 0; | ||
timestamps = [liftedAction.timestamp]; | ||
break; | ||
@@ -131,2 +135,3 @@ case ActionTypes.ROLLBACK: | ||
currentStateIndex = 0; | ||
timestamps = [liftedAction.timestamp]; | ||
break; | ||
@@ -143,2 +148,5 @@ case ActionTypes.TOGGLE_ACTION: | ||
}); | ||
timestamps = timestamps.filter(function (_, i) { | ||
return !skippedActions[i]; | ||
}); | ||
skippedActions = {}; | ||
@@ -152,2 +160,3 @@ currentStateIndex = Math.min(currentStateIndex, stagedActions.length - 1); | ||
stagedActions = [].concat(stagedActions, [liftedAction.action]); | ||
timestamps = [].concat(timestamps, [liftedAction.timestamp]); | ||
break; | ||
@@ -159,2 +168,3 @@ case ActionTypes.SET_MONITOR_STATE: | ||
stagedActions = liftedAction.stagedActions; | ||
timestamps = liftedAction.timestamps; | ||
committedState = liftedAction.committedState; | ||
@@ -176,3 +186,4 @@ currentStateIndex = stagedActions.length - 1; | ||
currentStateIndex: currentStateIndex, | ||
monitorState: monitorState | ||
monitorState: monitorState, | ||
timestamps: timestamps | ||
}; | ||
@@ -186,3 +197,7 @@ }; | ||
function liftAction(action) { | ||
var liftedAction = { type: ActionTypes.PERFORM_ACTION, action: action }; | ||
var liftedAction = { | ||
type: ActionTypes.PERFORM_ACTION, | ||
action: action, | ||
timestamp: Date.now() | ||
}; | ||
return liftedAction; | ||
@@ -229,9 +244,9 @@ } | ||
reset: function reset() { | ||
return { type: ActionTypes.RESET }; | ||
return { type: ActionTypes.RESET, timestamp: Date.now() }; | ||
}, | ||
rollback: function rollback() { | ||
return { type: ActionTypes.ROLLBACK }; | ||
return { type: ActionTypes.ROLLBACK, timestamp: Date.now() }; | ||
}, | ||
commit: function commit() { | ||
return { type: ActionTypes.COMMIT }; | ||
return { type: ActionTypes.COMMIT, timestamp: Date.now() }; | ||
}, | ||
@@ -238,0 +253,0 @@ sweep: function sweep() { |
@@ -43,5 +43,4 @@ 'use strict'; | ||
bottom: bottom ? 0 : undefined, | ||
maxHeight: bottom && top ? '100%' : '20%', | ||
maxWidth: left && right ? '100%' : '20%', | ||
minWidth: 300, | ||
maxHeight: bottom && top ? '100%' : '30%', | ||
maxWidth: left && right ? '100%' : '30%', | ||
wordWrap: 'break-word', | ||
@@ -48,0 +47,0 @@ boxSizing: 'border-box', |
@@ -38,3 +38,3 @@ 'use strict'; | ||
height: '100%', | ||
fontSize: '0.95em' | ||
minWidth: 300 | ||
}, | ||
@@ -41,0 +41,0 @@ buttonBar: { |
@@ -1,23 +0,22 @@ | ||
"use strict"; | ||
'use strict'; | ||
exports.__esModule = true; | ||
exports["default"] = function (hex, lum) { | ||
hex = String(hex).replace(/[^0-9a-f]/gi, ""); | ||
if (hex.length < 6) { | ||
hex = hex.replace(/(.)/g, "$1$1"); | ||
} | ||
lum = lum || 0; | ||
exports['default'] = function (hexColor, lightness) { | ||
var hex = String(hexColor).replace(/[^0-9a-f]/gi, ''); | ||
if (hex.length < 6) { | ||
hex = hex.replace(/(.)/g, '$1$1'); | ||
} | ||
var lum = lightness || 0; | ||
var rgb = "#", | ||
c; | ||
for (var i = 0; i < 3; ++i) { | ||
c = parseInt(hex.substr(i * 2, 2), 16); | ||
c = Math.round(Math.min(Math.max(0, c + c * lum), 255)).toString(16); | ||
rgb += ("00" + c).substr(c.length); | ||
} | ||
return rgb; | ||
var rgb = '#'; | ||
var c = undefined; | ||
for (var i = 0; i < 3; ++i) { | ||
c = parseInt(hex.substr(i * 2, 2), 16); | ||
c = Math.round(Math.min(Math.max(0, c + c * lum), 255)).toString(16); | ||
rgb += ('00' + c).substr(c.length); | ||
} | ||
return rgb; | ||
}; | ||
; | ||
module.exports = exports["default"]; | ||
module.exports = exports['default']; |
{ | ||
"name": "redux-devtools", | ||
"version": "1.0.0", | ||
"version": "1.0.2", | ||
"description": "Redux DevTools with hot reloading and time travel", | ||
@@ -13,3 +13,3 @@ "main": "lib/index.js", | ||
"test:cov": "babel-node ./node_modules/.bin/isparta cover ./node_modules/.bin/_mocha -- --recursive", | ||
"prepublish": "npm run clean && npm run build" | ||
"prepublish": "npm run lint && npm run test && npm run clean && npm run build" | ||
}, | ||
@@ -16,0 +16,0 @@ "repository": { |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
102167
2603
0