seqda 1.1.1 → 1.1.2

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +3 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seqda",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Sequential Data Store",
5
5
  "main": "src/index.js",
6
6
  "type": "commonjs",
package/src/index.js CHANGED
@@ -220,6 +220,9 @@ function createStoreSubsection(options, sectionTemplate, path) {
220
220
  if (value && typeof value === 'object' && value === currentState)
221
221
  throw new Error(`Error: "${getPath(path)}" the state value is the same, but it is required to be different.`);
222
222
 
223
+ if (!Nife.propsDiffer(value, currentState))
224
+ return;
225
+
223
226
  let previousState = currentState;
224
227
  this[INTERNAL_STATE] = setPath(this[INTERNAL_STATE], path, value);
225
228