reactronic 0.22.507 → 0.22.508

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.
@@ -113,12 +113,10 @@ export class Mvcc {
113
113
  return m in os.data || m in h.data;
114
114
  }
115
115
  defineProperty(h, m, attributes) {
116
- if (attributes.get && attributes.set) {
116
+ const result = attributes.get !== undefined && attributes.set !== undefined;
117
+ if (result)
117
118
  Object.defineProperty(h.data, m, attributes);
118
- return true;
119
- }
120
- else
121
- throw new Error('not implemented');
119
+ return result;
122
120
  }
123
121
  getOwnPropertyDescriptor(h, m) {
124
122
  const os = Changeset.current().getObjectSnapshot(h, m);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reactronic",
3
- "version": "0.22.507",
3
+ "version": "0.22.508",
4
4
  "description": "Reactronic - Transactional Reactive State Management",
5
5
  "publisher": "Nezaboodka Software",
6
6
  "license": "Apache-2.0",