reactronic 0.22.308 → 0.22.309

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.
Files changed (45) hide show
  1. package/build/dist/source/Buffer.d.ts +8 -0
  2. package/build/dist/source/Buffer.js +8 -0
  3. package/build/dist/source/Controller.d.ts +12 -0
  4. package/build/dist/source/Controller.js +6 -0
  5. package/build/dist/source/Logging.d.ts +38 -0
  6. package/build/dist/source/Logging.js +113 -0
  7. package/build/dist/source/Options.d.ts +38 -0
  8. package/build/dist/source/Options.js +21 -0
  9. package/build/dist/source/Ref.d.ts +34 -0
  10. package/build/dist/source/Ref.js +90 -0
  11. package/build/dist/source/Rx.d.ts +27 -0
  12. package/build/dist/source/Rx.js +58 -0
  13. package/build/dist/source/Worker.d.ts +8 -0
  14. package/build/dist/source/Worker.js +2 -0
  15. package/build/dist/source/api.d.ts +14 -0
  16. package/build/dist/source/api.js +42 -0
  17. package/build/dist/source/impl/Changeset.d.ts +60 -0
  18. package/build/dist/source/impl/Changeset.js +361 -0
  19. package/build/dist/source/impl/Data.d.ts +60 -0
  20. package/build/dist/source/impl/Data.js +51 -0
  21. package/build/dist/source/impl/Hooks.d.ts +96 -0
  22. package/build/dist/source/impl/Hooks.js +310 -0
  23. package/build/dist/source/impl/Journal.d.ts +34 -0
  24. package/build/dist/source/impl/Journal.js +149 -0
  25. package/build/dist/source/impl/Meta.d.ts +13 -0
  26. package/build/dist/source/impl/Meta.js +33 -0
  27. package/build/dist/source/impl/Monitor.d.ts +32 -0
  28. package/build/dist/source/impl/Monitor.js +97 -0
  29. package/build/dist/source/impl/Operation.d.ts +93 -0
  30. package/build/dist/source/impl/Operation.js +722 -0
  31. package/build/dist/source/impl/Transaction.d.ts +30 -0
  32. package/build/dist/source/impl/Transaction.js +313 -0
  33. package/build/dist/source/util/Dbg.d.ts +15 -0
  34. package/build/dist/source/util/Dbg.js +96 -0
  35. package/build/dist/source/util/Sealant.d.ts +14 -0
  36. package/build/dist/source/util/Sealant.js +30 -0
  37. package/build/dist/source/util/SealedArray.d.ts +16 -0
  38. package/build/dist/source/util/SealedArray.js +28 -0
  39. package/build/dist/source/util/SealedMap.d.ts +13 -0
  40. package/build/dist/source/util/SealedMap.js +21 -0
  41. package/build/dist/source/util/SealedSet.d.ts +13 -0
  42. package/build/dist/source/util/SealedSet.js +21 -0
  43. package/build/dist/source/util/Utils.d.ts +9 -0
  44. package/build/dist/source/util/Utils.js +62 -0
  45. package/package.json +1 -1
@@ -0,0 +1,93 @@
1
+ import { F } from '../util/Utils';
2
+ import { MemberOptions } from '../Options';
3
+ import { Controller } from '../Controller';
4
+ import { MemberName, ObjectHandle, Subscription, Subscriber, SubscriptionInfo, AbstractChangeset } from './Data';
5
+ import { Transaction } from './Transaction';
6
+ import { OptionsImpl } from './Hooks';
7
+ export declare class OperationController extends Controller<any> {
8
+ readonly objectHandle: ObjectHandle;
9
+ readonly memberName: MemberName;
10
+ configure(options: Partial<MemberOptions>): MemberOptions;
11
+ get options(): MemberOptions;
12
+ get nonreactive(): any;
13
+ get args(): ReadonlyArray<any>;
14
+ get result(): any;
15
+ get error(): boolean;
16
+ get stamp(): number;
17
+ get isUpToDate(): boolean;
18
+ markObsolete(): void;
19
+ pullLastResult(args?: any[]): any;
20
+ constructor(h: ObjectHandle, m: MemberName);
21
+ useOrRun(weak: boolean, args: any[] | undefined): Operation;
22
+ static of(method: F<any>): Controller<any>;
23
+ static configureImpl(self: OperationController | undefined, options: Partial<MemberOptions>): MemberOptions;
24
+ static runWithin<T>(op: Operation | undefined, func: F<T>, ...args: any[]): T;
25
+ static why(): string;
26
+ static briefWhy(): string;
27
+ static dependencies(): string[];
28
+ private peek;
29
+ private use;
30
+ private edit;
31
+ private acquireFromSnapshot;
32
+ private run;
33
+ private static markObsolete;
34
+ }
35
+ declare class Operation extends Subscription implements Subscriber {
36
+ static current?: Operation;
37
+ static queuedReactions: Array<Subscriber>;
38
+ static deferredReactions: Array<Operation>;
39
+ readonly margin: number;
40
+ readonly transaction: Transaction;
41
+ readonly controller: OperationController;
42
+ readonly changeset: AbstractChangeset;
43
+ subscriptions: Map<Subscription, SubscriptionInfo> | undefined;
44
+ options: OptionsImpl;
45
+ cause: string | undefined;
46
+ args: any[];
47
+ result: any;
48
+ error: any;
49
+ started: number;
50
+ obsoleteDueTo: string | undefined;
51
+ obsoleteSince: number;
52
+ successor: Operation | undefined;
53
+ constructor(controller: OperationController, changeset: AbstractChangeset, former: Operation | OptionsImpl);
54
+ get isOperation(): boolean;
55
+ get originSnapshotId(): number;
56
+ hint(): string;
57
+ get order(): number;
58
+ get ['#this'](): string;
59
+ why(): string;
60
+ briefWhy(): string;
61
+ dependencies(): string[];
62
+ wrap<T>(func: F<T>): F<T>;
63
+ run(proxy: any, args: any[] | undefined): void;
64
+ markObsoleteDueTo(subscription: Subscription, m: MemberName, changeset: AbstractChangeset, h: ObjectHandle, outer: string, since: number, reactions: Subscriber[]): void;
65
+ runIfNotUpToDate(now: boolean, nothrow: boolean): void;
66
+ isNotUpToDate(): boolean;
67
+ reenterOver(head: Operation): this;
68
+ private static run;
69
+ private enter;
70
+ private leaveOrAsync;
71
+ private leave;
72
+ private monitorEnter;
73
+ private monitorLeave;
74
+ private addToDeferredReactions;
75
+ private static processDeferredReactions;
76
+ private static markUsed;
77
+ private static markEdited;
78
+ private static isConflicting;
79
+ private static propagateAllChangesThroughSubscriptions;
80
+ private static revokeAllSubscriptions;
81
+ private static propagateMemberChangeThroughSubscriptions;
82
+ private static enqueueReactionsToRun;
83
+ private static runQueuedReactionsLoop;
84
+ private unsubscribeFromAllSubscriptions;
85
+ private subscribeTo;
86
+ private static canSubscribe;
87
+ private static createOperation;
88
+ private static rememberOperationOptions;
89
+ static init(): void;
90
+ }
91
+ export declare function resolveReturn(value: any): any;
92
+ export declare function rejectRethrow(error: any): never;
93
+ export {};