Socket
Socket
Sign inDemoInstall

logrocket-ngrx

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

logrocket-ngrx - npm Package Compare versions

Comparing version 0.0.1 to 0.1.0

dist/lib/index.js

24

package.json
{
"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.
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