@webkrafters/react-observable-context 4.1.0 → 4.1.1

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.
@@ -106,7 +106,7 @@ var AccessorCache = function () {
106
106
  var _classPrivateMethodGe = _classPrivateMethodGet(this, _getOriginAt, _getOriginAt2).call(this, path),
107
107
  exists = _classPrivateMethodGe.exists,
108
108
  newAtomVal = _classPrivateMethodGe.value;
109
- if (path !== _constants.FULL_STATE_SELECTOR && exists && typeof newAtomVal === 'undefined' && !(0, _utils.getProperty)(originChanges, path).trail.length || (0, _lodash2["default"])(newAtomVal, atoms[path].value)) {
109
+ if (path !== _constants.FULL_STATE_SELECTOR && exists && (newAtomVal === null || newAtomVal === 'undefined') && !(0, _utils.getProperty)(originChanges, path).trail.length || (0, _lodash2["default"])(newAtomVal, atoms[path].value)) {
110
110
  continue;
111
111
  }
112
112
  atoms[path].setValue(newAtomVal);
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "steveswork <stephen.isienyi@gmail.com> (https://github.com/steveswork)"
8
8
  ],
9
9
  "dependencies": {
10
- "@webkrafters/get-property": "^1.0.1",
10
+ "@webkrafters/get-property": "^1.0.2",
11
11
  "lodash.clonedeepwith": "^4.5.0",
12
12
  "lodash.isboolean": "^3.0.3",
13
13
  "lodash.isempty": "^4.4.0",
@@ -125,7 +125,7 @@
125
125
  "url": "git+https://github.com/webKrafters/react-observable-context.git"
126
126
  },
127
127
  "scripts": {
128
- "build": "eslint --fix && rm -rf dist && babel src -d dist && npx -p typescript tsc",
128
+ "build": "eslint --fix && rm -rf dist && babel src -d dist --ignore '**/*.test.js' && npx -p typescript tsc",
129
129
  "postbuild": "node ./post-builder",
130
130
  "test": "eslint --fix && jest --coverage --updateSnapshot",
131
131
  "test:clean": "jest --clearCache",
@@ -133,5 +133,5 @@
133
133
  "test:watch": "eslint --fix && jest --updateSnapshot --watchAll"
134
134
  },
135
135
  "types": "dist/main/index.d.ts",
136
- "version": "4.1.0"
136
+ "version": "4.1.1"
137
137
  }