vineanova-redux-artifacts 1.36.0 → 1.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
- ## 1.36.0 (2021-09-27)
5
+ ## 1.37.0 (2021-09-27)
6
6
 
7
7
 
8
8
  ### Features
@@ -91,7 +91,7 @@ var createNamedReducer = function createNamedReducer() {
91
91
  value = payload.value;
92
92
  if (!Array.isArray(state.data)) return state;
93
93
  if (!key) return state;
94
- if (!id) return state;
94
+ if (!entityId) return state;
95
95
  var newEntities = state.data.map(function (entity) {
96
96
  if (entity.id === entityId) {
97
97
  return _objectSpread(_objectSpread({}, entity), {}, _defineProperty({}, key, value));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vineanova-redux-artifacts",
3
- "version": "1.36.0",
3
+ "version": "1.37.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "browser": "lib/index.js",
@@ -59,7 +59,7 @@ const createNamedReducer = (reducerName = '') =>
59
59
  const { entityId, key, value } = payload;
60
60
  if(!Array.isArray(state.data)) return state;
61
61
  if(!key) return state;
62
- if(!id) return state;
62
+ if(!entityId) return state;
63
63
  const newEntities = state.data.map(entity => {
64
64
  if (entity.id === entityId) {
65
65
  return {