logrocket-ngrx
Advanced tools
Comparing version 0.0.1 to 0.1.0
{ | ||
"name": "logrocket-ngrx", | ||
"version": "0.0.1", | ||
"version": "0.1.0", | ||
"description": "ngrx middleware for [LogRocket](https://logrocket.com/).", | ||
"main": "dist/index.js", | ||
"main": "dist/lib/index.js", | ||
"author": "Logrocket <support@logrocket.com> (https://logrocket.com/)", | ||
"typings": "dist/types/index.d.ts", | ||
"license": "MIT", | ||
@@ -16,19 +17,12 @@ "repository": { | ||
"scripts": { | ||
"lint": "eslint src/", | ||
"build": "babel src --out-dir dist" | ||
"install-peers": "npm install logrocket @ngrx/store@>=4 @angular/core@^5.0.0 rxjs@^5.5.0 --no-save", | ||
"build": "tsc --module commonjs" | ||
}, | ||
"dependencies": { | ||
"babel-runtime": "^6.20.0" | ||
"peerDependencies": { | ||
"@ngrx/store": ">=4", | ||
"logrocket": "^0.6" | ||
}, | ||
"devDependencies": { | ||
"babel-cli": "^6.11.4", | ||
"babel-core": "^6.13.0", | ||
"babel-eslint": "^7.0.0", | ||
"babel-plugin-add-module-exports": "^0.2.1", | ||
"babel-polyfill": "^6.13.0", | ||
"babel-preset-es2015": "^6.13.2", | ||
"babel-preset-stage-3": "^6.17.0", | ||
"eslint": "^3.8.1", | ||
"eslint-config-airbnb": "^12.0.0" | ||
"typescript": "^2.8.1" | ||
} | ||
} |
# LogRocket ngrx Middleware | ||
This package exports a default function which takes a `LogRocket` instance and returns an `ngrx` middleware. | ||
This package augments LogRocket sessions to include actions and state from your `@ngrx/store`: | ||
## Getting Started | ||
![](http://i.imgur.com/iaGTx7A.png) | ||
1. Install with NPM: `npm i --save logrocket logrocket-ngrx`. | ||
## Resources | ||
* [Documentation](https://docs.logrocket.com/docs/ngrx-middleware) | ||
2. Create a free account at [https://logrocket.com](https://logrocket.com) and | ||
take note of you application ID. | ||
3. Initialize LogRocket in your app: | ||
## Change Log | ||
``` | ||
import LogRocket from 'logrocket'; | ||
// Initialize LogRocket with your app ID | ||
LogRocket.init(<your_application_id>); | ||
``` | ||
4. (optional) Add the ngrx middleware. | ||
``` | ||
import LogRocket from 'logrocket'; | ||
import createNgrxMiddleware from 'logrocket-ngrx'; | ||
const logrocketMiddleware = createNgrxMiddlware(LogRocket, opts) | ||
``` | ||
That’s it- this is all you need to get started with LogRocket and ngrx! | ||
![](https://cdn-images-1.medium.com/max/1000/1*gdV9FMQZ18xKE3GSURpPDQ.png) | ||
If you’d like to learn more about LogRocket, you can check out the links below. | ||
We’d also like to thank the developers who helped us test out our Angular and | ||
ngrx support and stuck with us despite a few gnarly bugs :) | ||
### Further Info | ||
* LogRocket website- [https://logrocket.com](https://logrocket.com) | ||
* LogRocket Docs - [https://docs.logrocket.com](https://docs.logrocket.com) | ||
* Redux Logging in Production - | ||
[https://blog.logrocket.com/redux-logging-in-production-3b2a4816b713](https://blog.logrocket.com/redux-logging-in-production-3b2a4816b713) | ||
**March 30, 2018**: v0.1.0 | ||
- 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. |
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
4351
1
6
38
2
18
+ Added@angular/core@18.2.4(transitive)
+ Added@ngrx/store@18.0.2(transitive)
+ Addedlogrocket@0.6.21(transitive)
+ Addedrxjs@7.8.1(transitive)
+ Addedtslib@2.7.0(transitive)
+ Addedzone.js@0.14.10(transitive)
- Removedbabel-runtime@^6.20.0
- Removedbabel-runtime@6.26.0(transitive)
- Removedcore-js@2.6.12(transitive)
- Removedregenerator-runtime@0.11.1(transitive)