@nizza/core 0.4.0-alpha.2 → 0.4.0-alpha.4
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/dist/index.cjs +11 -11
- package/dist/index.mjs +3365 -3364
- package/dist/lib/constants/eventBus.d.ts +12 -12
- package/dist/lib/nizza-store/NizzaStore.d.ts +2 -0
- package/dist/lib/utils/logger.d.ts +2 -4
- package/dist/package.json +1 -1
- package/package.json +1 -1
|
@@ -8,17 +8,17 @@
|
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
10
|
export declare const EventBusWildcards: {
|
|
11
|
-
ALL:
|
|
12
|
-
CORE:
|
|
13
|
-
LIVE_STREAMING_EVENT:
|
|
14
|
-
EVENT_CHAT:
|
|
15
|
-
EVENT_PRODUCTS:
|
|
16
|
-
CUSTOMIZE_LIVE:
|
|
17
|
-
PLAYER:
|
|
18
|
-
SNACK_SIZE_VIDEO:
|
|
19
|
-
SNACK_SIZE_VIDEO_ADMIN:
|
|
20
|
-
UI:
|
|
21
|
-
UTILS:
|
|
11
|
+
readonly ALL: "*";
|
|
12
|
+
readonly CORE: "core:*";
|
|
13
|
+
readonly LIVE_STREAMING_EVENT: "event:*";
|
|
14
|
+
readonly EVENT_CHAT: "event:chat:*";
|
|
15
|
+
readonly EVENT_PRODUCTS: "event:products:*";
|
|
16
|
+
readonly CUSTOMIZE_LIVE: "customize-live:*";
|
|
17
|
+
readonly PLAYER: "player:*";
|
|
18
|
+
readonly SNACK_SIZE_VIDEO: "ssv:*";
|
|
19
|
+
readonly SNACK_SIZE_VIDEO_ADMIN: "ssv:admin:*";
|
|
20
|
+
readonly UI: "ui:*";
|
|
21
|
+
readonly UTILS: "utils:*";
|
|
22
22
|
};
|
|
23
23
|
/**
|
|
24
24
|
* Enumeration that defines the names of events used in the application.
|
|
@@ -30,5 +30,5 @@ export declare const EventBusWildcards: {
|
|
|
30
30
|
*
|
|
31
31
|
*/
|
|
32
32
|
export declare const EventNames: {
|
|
33
|
-
EVENT_STATUS_CHANGED:
|
|
33
|
+
readonly EVENT_STATUS_CHANGED: "event:statusChanged";
|
|
34
34
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import log from 'loglevel';
|
|
1
2
|
import { NizzaConfiguration, NizzaProductDataSource } from '../types';
|
|
2
3
|
import { DefaultEventBus } from './DefaultEventBus';
|
|
3
4
|
export declare class NizzaStore {
|
|
@@ -6,6 +7,7 @@ export declare class NizzaStore {
|
|
|
6
7
|
private _configManager;
|
|
7
8
|
private _eventBus;
|
|
8
9
|
readonly instanceId: string;
|
|
10
|
+
readonly log: log.RootLogger;
|
|
9
11
|
private constructor();
|
|
10
12
|
static instance(): NizzaStore;
|
|
11
13
|
configure(config: NizzaConfiguration): Promise<this>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export declare const logger: log.Logger;
|
|
1
|
+
import { Logger } from 'loglevel';
|
|
2
|
+
export declare const logger: Logger;
|
|
4
3
|
/**
|
|
5
4
|
* Create a LogLevel instance for given context
|
|
6
5
|
* @param {string} context - The context to create logger for
|
|
@@ -25,4 +24,3 @@ export declare function getLogger(context: string): Logger;
|
|
|
25
24
|
* @returns {Logger} The initialized LogLevel logger instance
|
|
26
25
|
*/
|
|
27
26
|
export declare function initializeLogger(context: string): Logger;
|
|
28
|
-
export {};
|
package/dist/package.json
CHANGED