reactronic 0.22.506 → 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.
|
@@ -8,7 +8,7 @@ export { Kind, Reentrance, LoggingLevel } from './Options';
|
|
|
8
8
|
export type { MemberOptions, SnapshotOptions, LoggingOptions, ProfilingOptions } from './Options';
|
|
9
9
|
export type { Worker } from './Worker';
|
|
10
10
|
export { Controller } from './Controller';
|
|
11
|
-
export { Ref, ToggleRef } from './Ref';
|
|
11
|
+
export { Ref, ToggleRef, refs, toggleRefs, customToggleRefs } from './Ref';
|
|
12
12
|
export type { BoolOnly, GivenTypeOnly } from './Ref';
|
|
13
13
|
export { TransactionalObject, ObservableObject } from './impl/Mvcc';
|
|
14
14
|
export { TransactionalArray, ObservableArray } from './impl/MvccArray';
|
package/build/dist/source/api.js
CHANGED
|
@@ -5,7 +5,7 @@ export { SealedMap } from './util/SealedMap';
|
|
|
5
5
|
export { SealedSet } from './util/SealedSet';
|
|
6
6
|
export { Kind, Reentrance, LoggingLevel } from './Options';
|
|
7
7
|
export { Controller } from './Controller';
|
|
8
|
-
export { Ref, ToggleRef } from './Ref';
|
|
8
|
+
export { Ref, ToggleRef, refs, toggleRefs, customToggleRefs } from './Ref';
|
|
9
9
|
export { TransactionalObject, ObservableObject } from './impl/Mvcc';
|
|
10
10
|
export { TransactionalArray, ObservableArray } from './impl/MvccArray';
|
|
11
11
|
export { TransactionalMap, ObservableMap } from './impl/MvccMap';
|
|
@@ -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
|
-
|
|
116
|
+
const result = attributes.get !== undefined && attributes.set !== undefined;
|
|
117
|
+
if (result)
|
|
117
118
|
Object.defineProperty(h.data, m, attributes);
|
|
118
|
-
|
|
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);
|