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

redux-dryer

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-dryer - npm Package Compare versions

Comparing version 0.1.7 to 0.1.8

5

package.json
{
"name": "redux-dryer",
"version": "0.1.7",
"version": "0.1.8",
"description": "Redux utilities to keep your reducers small and DRY",

@@ -28,3 +28,6 @@ "main": "dist/index.js",

"babel-preset-env": "^1.6.1"
},
"dependencies": {
"lodash": "^4.17.5"
}
}

8

README.md

@@ -55,2 +55,3 @@ # Redux-dryer

const BitcoinActions = {
fetchedBitcoin: () => {}, // event actions, without payload
setAmount: (rate, balance) => ({ bitcoins: balance / rate })

@@ -69,6 +70,9 @@ };

export const toBTC = balance => dispatch =>
export const toBTC = balance => dispatch =>
fetch("https://api.coindesk.com/v1/bpi/currentprice.json")
.then(r => r.json())
.then(json => dispatch(BitcoinActions.setAmount(getRate(json), balance)));
.then(json => {
dispatch(BitcoinActions.fetchedBitcoin());
dispatch(BitcoinActions.setAmount(getRate(json), balance));
});
```

@@ -75,0 +79,0 @@

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