app-tracker 2.0.0 → 2.0.1

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,4 +1,4 @@
1
- import { AppLoggerConfig } from './log';
1
+ import { AppTrackerConfig } from './log';
2
2
  export declare class AppTrackerService {
3
3
  private sendLogsOnLocal;
4
4
  private consoleLogsOnLocal;
@@ -15,7 +15,7 @@ export declare class AppTrackerService {
15
15
  private isNode;
16
16
  private os;
17
17
  private isRunningLocal;
18
- init(apiKey: string, config?: AppLoggerConfig): void;
18
+ init(apiKey: string, config?: AppTrackerConfig): void;
19
19
  debug(message?: string, ...optionalParams: any[]): void;
20
20
  info(message?: string, ...optionalParams: any[]): void;
21
21
  log(message?: string, ...optionalParams: any[]): void;
package/log.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare class AppLoggerConfig {
1
+ export declare class AppTrackerConfig {
2
2
  /** Should logs in the development environment be sent to the server. For Node enviroment process.env.NODE_ENV must be set to 'development' */
3
3
  sendLogsInDevelopment?: boolean | undefined;
4
4
  logInConsoleInDevelopment?: boolean | undefined;
package/log.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});class AppLoggerConfig{constructor(){this.maxLogsCount=5,this.sendLogsByTypesImmediately=[LogType.error]}}exports.AppLoggerConfig=AppLoggerConfig;class Log{constructor(){this.logType=LogType.log,this.optionalParams=[],this.createdAt=new Date}}var LogType;exports.Log=Log,function(o){o[o.debug=0]="debug",o[o.info=1]="info",o[o.log=2]="log",o[o.warn=3]="warn",o[o.error=4]="error",o[o.critical=5]="critical"}(LogType=exports.LogType||(exports.LogType={}));
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});class AppTrackerConfig{constructor(){this.maxLogsCount=5,this.sendLogsByTypesImmediately=[LogType.error]}}exports.AppTrackerConfig=AppTrackerConfig;class Log{constructor(){this.logType=LogType.log,this.optionalParams=[],this.createdAt=new Date}}var LogType;exports.Log=Log,function(o){o[o.debug=0]="debug",o[o.info=1]="info",o[o.log=2]="log",o[o.warn=3]="warn",o[o.error=4]="error",o[o.critical=5]="critical"}(LogType=exports.LogType||(exports.LogType={}));
package/main.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { AppTrackerService } from './app-tracker.service';
2
- import { AppLoggerConfig } from './log';
2
+ import { AppTrackerConfig } from './log';
3
3
  export declare class AppTracker {
4
4
  private static _service;
5
5
  private static get service();
6
- static init(apiKey: string, config?: AppLoggerConfig): AppTrackerService;
6
+ static init(apiKey: string, config?: AppTrackerConfig): AppTrackerService;
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "app-tracker",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "App Tracker for Web-Applications",
5
5
  "main": "index.js",
6
6
  "scripts": {