reactronic 0.24.117 → 0.24.118
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.
- package/build/dist/source/api.d.ts +2 -2
- package/build/dist/source/api.js +1 -1
- package/build/dist/source/{tree/RxTree.d.ts → core/RxNode.d.ts} +1 -1
- package/build/dist/source/{tree/RxTree.js → core/RxNode.js} +1 -1
- package/build/dist/source/{tree → core}/RxNodeUtils.js +1 -1
- package/package.json +1 -1
- /package/build/dist/source/{tree → core}/RxNodeUtils.d.ts +0 -0
|
@@ -17,6 +17,6 @@ export { Transaction } from './core/Transaction.js';
|
|
|
17
17
|
export { Monitor } from './core/Monitor.js';
|
|
18
18
|
export { Journal } from './core/Journal.js';
|
|
19
19
|
export { RxSystem, raw, obs, transactional, reactive, cached, transaction, unobs, sensitive, options } from './RxSystem.js';
|
|
20
|
-
export { RxNode, Mode, Priority, BaseDriver, RxNodeVariable } from './
|
|
21
|
-
export type { Delegate, SimpleDelegate, RxNodeDecl, RxNodeDriver, RxNodeContext } from './
|
|
20
|
+
export { RxNode, Mode, Priority, BaseDriver, RxNodeVariable } from './core/RxNode.js';
|
|
21
|
+
export type { Delegate, SimpleDelegate, RxNodeDecl, RxNodeDriver, RxNodeContext } from './core/RxNode.js';
|
|
22
22
|
export { Clock } from './Clock.js';
|
package/build/dist/source/api.js
CHANGED
|
@@ -13,5 +13,5 @@ export { Transaction } from './core/Transaction.js';
|
|
|
13
13
|
export { Monitor } from './core/Monitor.js';
|
|
14
14
|
export { Journal } from './core/Journal.js';
|
|
15
15
|
export { RxSystem, raw, obs, transactional, reactive, cached, transaction, unobs, sensitive, options } from './RxSystem.js';
|
|
16
|
-
export { RxNode, Mode, Priority, BaseDriver, RxNodeVariable } from './
|
|
16
|
+
export { RxNode, Mode, Priority, BaseDriver, RxNodeVariable } from './core/RxNode.js';
|
|
17
17
|
export { Clock } from './Clock.js';
|
|
@@ -35,7 +35,7 @@ export declare abstract class RxNode<E = unknown> {
|
|
|
35
35
|
static readonly longFrameDuration = 300;
|
|
36
36
|
static currentUpdatePriority: Priority;
|
|
37
37
|
static frameDuration: number;
|
|
38
|
-
static
|
|
38
|
+
static acquire<E = void>(driver: RxNodeDriver<E>, declaration?: RxNodeDecl<E>, preset?: RxNodeDecl<E>): RxNode<E>;
|
|
39
39
|
static get isFirstUpdate(): boolean;
|
|
40
40
|
static get nodeStamp(): number;
|
|
41
41
|
static triggerUpdate(node: RxNode<any>, triggers: unknown): void;
|
|
@@ -35,7 +35,7 @@ export var Priority;
|
|
|
35
35
|
Priority[Priority["Background"] = 2] = "Background";
|
|
36
36
|
})(Priority || (Priority = {}));
|
|
37
37
|
export class RxNode {
|
|
38
|
-
static
|
|
38
|
+
static acquire(driver, declaration, preset) {
|
|
39
39
|
var _a;
|
|
40
40
|
let result;
|
|
41
41
|
if (declaration)
|
|
@@ -18,7 +18,7 @@ export function getCallerInfo(prefix) {
|
|
|
18
18
|
const stack = error.stack || '';
|
|
19
19
|
Error.stackTraceLimit = restore;
|
|
20
20
|
const lines = stack.split('\n');
|
|
21
|
-
let i = lines.findIndex(x => x.indexOf('.
|
|
21
|
+
let i = lines.findIndex(x => x.indexOf('.acquire') >= 0);
|
|
22
22
|
i = i >= 0 ? i + 2 : 5;
|
|
23
23
|
let caller = extractFunctionAndLocation(lines[i]);
|
|
24
24
|
let location = caller;
|
package/package.json
CHANGED
|
File without changes
|