@nizza/core 0.4.0-alpha.3 → 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.
@@ -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 log from 'loglevel';
2
- type Logger = log.Logger;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nizza/core",
3
- "version": "0.4.0-alpha.3",
3
+ "version": "0.4.0-alpha.4",
4
4
  "type": "module",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/index.cjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nizza/core",
3
- "version": "0.4.0-alpha.3",
3
+ "version": "0.4.0-alpha.4",
4
4
  "type": "module",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/index.cjs",