@azrico/webobject 1.4.148 → 1.4.150

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.
@@ -167,8 +167,7 @@ var SimpleObject = exports.SimpleObject = /*#__PURE__*/function (_MapableObject)
167
167
  return _context.abrupt("return", false);
168
168
  case 7:
169
169
  isValueChanged = false;
170
- console.log("setValue", key, value, shouldNotify);
171
- _context.prev = 9;
170
+ /* --------------------------- set if not changed --------------------------- */
172
171
  oldval = this.getValue(key);
173
172
  if (!(0, _object.object_equals)(oldval, value, {
174
173
  strictArrayCheck: true,
@@ -177,23 +176,21 @@ var SimpleObject = exports.SimpleObject = /*#__PURE__*/function (_MapableObject)
177
176
  _classPrivateMethodGet(this, _setProperty, _setProperty2).call(this, key, value);
178
177
  isValueChanged = true;
179
178
  } else isValueChanged = false;
180
- case 12:
181
- _context.prev = 12;
179
+ /* --------------------------------- notify --------------------------------- */
182
180
  if (!(shouldNotify === true || shouldNotify === "auto" && isValueChanged)) {
183
- _context.next = 16;
181
+ _context.next = 13;
184
182
  break;
185
183
  }
186
- _context.next = 16;
184
+ _context.next = 13;
187
185
  return this.notifyChanged("", key, value);
188
- case 16:
189
- return _context.finish(12);
190
- case 17:
186
+ case 13:
187
+ console.log("setValue", key, value, isValueChanged);
191
188
  return _context.abrupt("return", isValueChanged);
192
- case 18:
189
+ case 15:
193
190
  case "end":
194
191
  return _context.stop();
195
192
  }
196
- }, _callee, this, [[9,, 12, 17]]);
193
+ }, _callee, this);
197
194
  }));
198
195
  function setValue(_x, _x2) {
199
196
  return _setValue.apply(this, arguments);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azrico/webobject",
3
- "version": "1.4.148",
3
+ "version": "1.4.150",
4
4
  "description": "Stateful object",
5
5
  "author": "Azrideus",
6
6
  "license": "MIT",