logrocket-ngrx
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -10,12 +10,15 @@ "use strict"; | ||
var reduxMiddleware = logrocket.reduxMiddleware(options); | ||
var currentState; | ||
var store; | ||
// return a metareducer | ||
return function (reducer) { | ||
var currentState; | ||
var fakeDispatch = reduxMiddleware({ | ||
getState: function () { return currentState; }, | ||
})(function () { }); | ||
return function (state, action) { | ||
var newState = reducer(state, action); | ||
currentState = state; | ||
fakeDispatch(action); | ||
if (!store) { | ||
store = reduxMiddleware({ | ||
getState: function () { return currentState; }, | ||
}); | ||
} | ||
store(function () { return newState; })(action); | ||
return newState; | ||
@@ -22,0 +25,0 @@ }; |
{ | ||
"name": "logrocket-ngrx", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "ngrx middleware for [LogRocket](https://logrocket.com/).", | ||
@@ -5,0 +5,0 @@ "main": "dist/lib/index.js", |
@@ -13,6 +13,10 @@ # LogRocket ngrx Middleware | ||
**May 10, 2018**: v0.1.1 | ||
- Fixed a bug with initial state not being recorded correctly. | ||
- Fixed a bug with feature state resending initial state events. | ||
**March 30, 2018**: v0.1.0 | ||
- Added TypeScript types and jsdoc-style comments for inline documentation | ||
- Added TypeScript types and jsdoc-style comments for inline documentation. | ||
- Added peer dependency on `logrocket` and `@ngrx/store` packages. | ||
- Added this changelog. | ||
- Changed file location of main entry file. |
Sorry, the diff of this file is not supported yet
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
4642
41
22