Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

redux-nl

Package Overview
Dependencies
Maintainers
5
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-nl - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

5

package.json
{
"_from": "redux-nl",
"_id": "redux-nl@0.1.14",
"_inBundle": false,

@@ -37,3 +36,3 @@ "_integrity": "sha512-nH4sbHMnUjdo8UcqYL5TWHTueoBQhiiFN73XJ96lzM6oHSOw9B6FtrdVcFO0vejYbIsmGqHl2vfdRSIYAzgfFQ==",

},
"bundleDependencies": false,
"bundleDependencies": [],
"dependencies": {

@@ -75,3 +74,3 @@ "axios": "^0.19.2",

},
"version": "1.3.0",
"version": "1.4.0",
"devDependencies": {

@@ -78,0 +77,0 @@ "@redux-saga/types": "^1.1.0",

20

README.md

@@ -148,3 +148,3 @@ <p align="center">

apiToken: "...",
},
}
});

@@ -212,4 +212,22 @@ ```

#### Replace Type (Without Route Parameters)
For APIs without route parameters (i.e. APIs with no path), include a `replaceType` to differentiate the action type. i.e.
```js
ReduxNl.post("", {
payload: {
hasCredit: false,
},
meta: {
apiToken: "...",
},
replaceType: "login"
});
```
This will dispatch a `CreateLoginResponse` to the store once and you can listen to this action in your reducer.
### Resources
See [extract-your-api-to-a-client-side-library-using-redux-saga](https://medium.com/@lukebrandonfarrell/network-layer-extract-your-api-to-a-client-side-library-using-redux-saga-514fecfe34a7) to learn more about the architecture behind this library.
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