@azrico/webobject 1.4.147 → 1.4.149

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