@webkrafters/react-observable-context 4.5.3 → 4.5.4

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/README.md CHANGED
@@ -23,6 +23,7 @@
23
23
  # React-Observable-Context [Eagle Eye]
24
24
 
25
25
  <ul>
26
+ <li> Update-friendly context.</li>
26
27
  <li> A context bearing an observable consumer [store](#store).</li>
27
28
  <li> Recognizes <b>negative array indexing</b>. Please see <a href="#property-path">Property Path</a> and <code>store.setState</code> <a href="#indexing">Indexing</a>.</li>
28
29
  <li> Only re-renders subscribing components ([clients](#client)) on context state changes.</li>
@@ -112,12 +112,12 @@ function makeReadonly(v) {
112
112
  return v;
113
113
  }
114
114
  ;
115
- var defaultForamtValue = function defaultForamtValue(_ref) {
115
+ var defaultFormatValue = function defaultFormatValue(_ref) {
116
116
  var value = _ref.value;
117
117
  return value;
118
118
  };
119
119
  function mapPathsToObject(source, propertyPaths) {
120
- var transform = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultForamtValue;
120
+ var transform = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultFormatValue;
121
121
  var paths = [];
122
122
  var _iterator2 = _createForOfIteratorHelper(propertyPaths),
123
123
  _step2;
package/package.json CHANGED
@@ -16,7 +16,7 @@
16
16
  "lodash.omit": "^4.5.0",
17
17
  "uuid": "^9.0.0"
18
18
  },
19
- "description": "Observable react context - prevents an automatic total component tree tear-down and re-rendering during context updates.",
19
+ "description": "Observable react context - Update-friendly context. Prevents automatic total component tree tear-down and re-rendering during context updates.",
20
20
  "devDependencies": {
21
21
  "@babel/cli": "^7.17.0",
22
22
  "@babel/core": "^7.20.5",
@@ -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.5.3"
136
+ "version": "4.5.4"
137
137
  }