@quantform/core 0.7.27 → 0.7.28
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.
|
@@ -3,7 +3,6 @@ export declare function useExecutionMode(): {
|
|
|
3
3
|
isReplay: boolean;
|
|
4
4
|
isPaper: boolean;
|
|
5
5
|
isLive: boolean;
|
|
6
|
-
isIdle: boolean;
|
|
7
6
|
isSimulation: boolean;
|
|
8
7
|
recording: boolean;
|
|
9
8
|
};
|
|
@@ -15,6 +14,5 @@ export declare namespace useExecutionMode {
|
|
|
15
14
|
var liveOptions: (options: {
|
|
16
15
|
recording: boolean;
|
|
17
16
|
}) => Dependency;
|
|
18
|
-
var idleOptions: () => Dependency;
|
|
19
17
|
}
|
|
20
18
|
//# sourceMappingURL=use-execution-mode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-execution-mode.d.ts","sourceRoot":"","sources":["../src/use-execution-mode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAc,MAAM,aAAa,CAAC;AASrD,wBAAgB,gBAAgB
|
|
1
|
+
{"version":3,"file":"use-execution-mode.d.ts","sourceRoot":"","sources":["../src/use-execution-mode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAc,MAAM,aAAa,CAAC;AASrD,wBAAgB,gBAAgB;;;;;;EAU/B;yBAVe,gBAAgB"}
|
|
@@ -9,7 +9,6 @@ function useExecutionMode() {
|
|
|
9
9
|
isReplay: mode === 'replay',
|
|
10
10
|
isPaper: mode === 'paper',
|
|
11
11
|
isLive: mode === 'live',
|
|
12
|
-
isIdle: mode === 'idle',
|
|
13
12
|
isSimulation: mode !== 'live',
|
|
14
13
|
recording
|
|
15
14
|
};
|
|
@@ -27,7 +26,3 @@ useExecutionMode.liveOptions = (options) => ({
|
|
|
27
26
|
provide: injectionToken,
|
|
28
27
|
useValue: { mode: 'live', ...options }
|
|
29
28
|
});
|
|
30
|
-
useExecutionMode.idleOptions = () => ({
|
|
31
|
-
provide: injectionToken,
|
|
32
|
-
useValue: { mode: 'idle', recording: false }
|
|
33
|
-
});
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@ import { Dependency, useContext } from '@lib/module';
|
|
|
3
3
|
const injectionToken = Symbol('execution-mode');
|
|
4
4
|
|
|
5
5
|
type ExecutionMode = {
|
|
6
|
-
mode: 'replay' | 'paper' | 'live'
|
|
6
|
+
mode: 'replay' | 'paper' | 'live';
|
|
7
7
|
recording: boolean;
|
|
8
8
|
};
|
|
9
9
|
|
|
@@ -14,7 +14,6 @@ export function useExecutionMode() {
|
|
|
14
14
|
isReplay: mode === 'replay',
|
|
15
15
|
isPaper: mode === 'paper',
|
|
16
16
|
isLive: mode === 'live',
|
|
17
|
-
isIdle: mode === 'idle',
|
|
18
17
|
isSimulation: mode !== 'live',
|
|
19
18
|
recording
|
|
20
19
|
};
|
|
@@ -34,8 +33,3 @@ useExecutionMode.liveOptions = (options: { recording: boolean }): Dependency =>
|
|
|
34
33
|
provide: injectionToken,
|
|
35
34
|
useValue: { mode: 'live', ...options } as ExecutionMode
|
|
36
35
|
});
|
|
37
|
-
|
|
38
|
-
useExecutionMode.idleOptions = (): Dependency => ({
|
|
39
|
-
provide: injectionToken,
|
|
40
|
-
useValue: { mode: 'idle', recording: false } as ExecutionMode
|
|
41
|
-
});
|