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

@workpop/dux

Package Overview
Dependencies
Maintainers
13
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@workpop/dux - npm Package Compare versions

Comparing version 2.0.3 to 2.1.0

dist/reducers/utils.js

10

CHANGELOG.md

@@ -5,2 +5,12 @@ # Change Log

<a name="2.1.0"></a>
# [2.1.0](https://github.com/Workpop/dux/compare/v2.0.3...v2.1.0) (2017-06-15)
### Features
* **FSA:** make reducers fsa compliant ([1d77e16](https://github.com/Workpop/dux/commit/1d77e16))
<a name="2.0.3"></a>

@@ -7,0 +17,0 @@ ## [2.0.3](https://github.com/Workpop/dux/compare/v2.0.2...v2.0.3) (2017-04-04)

6

dist/reducers/common.js

@@ -17,2 +17,4 @@ 'use strict';

var _utils = require('./utils');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -50,3 +52,3 @@

case TYPE:
return action.data;
return (0, _utils.getDataFromAction)(action);
default:

@@ -71,3 +73,3 @@ return reducer(state, action);

case TYPE:
return _extends({}, (0, _merge3.default)(state, action.data));
return _extends({}, (0, _merge3.default)(state, (0, _utils.getDataFromAction)(action)));
default:

@@ -74,0 +76,0 @@ return reducer(state, action);

@@ -34,2 +34,4 @@ 'use strict';

var _utils = require('./utils');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -162,2 +164,3 @@

var data = (0, _utils.getDataFromAction)(action);
switch (action.type) {

@@ -168,5 +171,5 @@ case TYPE:

if (index < 0) {
return [].concat(_toConsumableArray(state), [action.data]);
return [].concat(_toConsumableArray(state), [data]);
}
return [].concat(_toConsumableArray(state.slice(0, index)), [action.data], _toConsumableArray(state.slice(index)));
return [].concat(_toConsumableArray(state.slice(0, index)), [data], _toConsumableArray(state.slice(index)));
}

@@ -192,2 +195,3 @@ default:

var data = (0, _utils.getDataFromAction)(action);
switch (action.type) {

@@ -198,5 +202,5 @@ case TYPE:

if (index < 0) {
return [].concat(_toConsumableArray(state), _toConsumableArray(action.data));
return [].concat(_toConsumableArray(state), _toConsumableArray(data));
}
return [].concat(_toConsumableArray(state.slice(0, index)), _toConsumableArray(action.data), _toConsumableArray(state.slice(index)));
return [].concat(_toConsumableArray(state.slice(0, index)), _toConsumableArray(data), _toConsumableArray(state.slice(index)));
}

@@ -222,2 +226,3 @@ default:

var data = (0, _utils.getDataFromAction)(action);
switch (action.type) {

@@ -230,3 +235,3 @@ case TYPE:

}
var merged = (0, _merge3.default)(state[index], action.data);
var merged = (0, _merge3.default)(state[index], data);
return [].concat(_toConsumableArray(state.slice(0, index)), [merged], _toConsumableArray(state.slice(index + 1)));

@@ -254,2 +259,3 @@ }

var data = (0, _utils.getDataFromAction)(action);
switch (action.type) {

@@ -262,3 +268,3 @@ case TYPE:

}
return [].concat(_toConsumableArray(state.slice(0, index)), [action.data], _toConsumableArray(state.slice(index + 1)));
return [].concat(_toConsumableArray(state.slice(0, index)), [data], _toConsumableArray(state.slice(index + 1)));
}

@@ -265,0 +271,0 @@ default:

{
"name": "@workpop/dux",
"version": "2.0.3",
"version": "2.1.0",
"description": "HOC Redux Functions",

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

"lodash": "^4.x.x",
"reselect": "^x.x.x"
"reselect": "^3.0.0"
},

@@ -49,0 +49,0 @@ "pre-commit": [

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