@amplitude/analytics-core
Advanced tools
Comparing version 1.1.2 to 1.2.0
@@ -7,2 +7,3 @@ import { Event, Config as IConfig, Logger as ILogger, LogLevel, Storage, Transport, Plan, IngestionMetadata, ServerZone, Options } from '@amplitude/analytics-types'; | ||
flushIntervalMillis: number; | ||
instanceName: string; | ||
logLevel: LogLevel; | ||
@@ -20,2 +21,3 @@ loggerProvider: Logger; | ||
flushQueueSize: number; | ||
instanceName?: string; | ||
loggerProvider: ILogger; | ||
@@ -22,0 +24,0 @@ logLevel: LogLevel; |
@@ -10,2 +10,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
flushIntervalMillis: 10000, | ||
instanceName: '$default_instance', | ||
logLevel: analytics_types_1.LogLevel.Warn, | ||
@@ -28,2 +29,3 @@ loggerProvider: new logger_1.Logger(), | ||
this.flushQueueSize = options.flushQueueSize || defaultConfig.flushQueueSize; | ||
this.instanceName = options.instanceName || defaultConfig.instanceName; | ||
this.loggerProvider = options.loggerProvider || defaultConfig.loggerProvider; | ||
@@ -30,0 +32,0 @@ this.logLevel = (_b = options.logLevel) !== null && _b !== void 0 ? _b : defaultConfig.logLevel; |
@@ -7,2 +7,3 @@ import { Event, Config as IConfig, Logger as ILogger, LogLevel, Storage, Transport, Plan, IngestionMetadata, ServerZone, Options } from '@amplitude/analytics-types'; | ||
flushIntervalMillis: number; | ||
instanceName: string; | ||
logLevel: LogLevel; | ||
@@ -20,2 +21,3 @@ loggerProvider: Logger; | ||
flushQueueSize: number; | ||
instanceName?: string; | ||
loggerProvider: ILogger; | ||
@@ -22,0 +24,0 @@ logLevel: LogLevel; |
@@ -8,2 +8,3 @@ import { LogLevel, ServerZone, } from '@amplitude/analytics-types'; | ||
flushIntervalMillis: 10000, | ||
instanceName: '$default_instance', | ||
logLevel: LogLevel.Warn, | ||
@@ -25,2 +26,3 @@ loggerProvider: new Logger(), | ||
this.flushQueueSize = options.flushQueueSize || defaultConfig.flushQueueSize; | ||
this.instanceName = options.instanceName || defaultConfig.instanceName; | ||
this.loggerProvider = options.loggerProvider || defaultConfig.loggerProvider; | ||
@@ -27,0 +29,0 @@ this.logLevel = (_b = options.logLevel) !== null && _b !== void 0 ? _b : defaultConfig.logLevel; |
{ | ||
"name": "@amplitude/analytics-core", | ||
"version": "1.1.2", | ||
"version": "1.2.0", | ||
"description": "", | ||
@@ -38,3 +38,3 @@ "author": "Amplitude Inc", | ||
"dependencies": { | ||
"@amplitude/analytics-types": "^1.2.1", | ||
"@amplitude/analytics-types": "^1.3.0", | ||
"tslib": "^2.4.1" | ||
@@ -45,3 +45,3 @@ }, | ||
], | ||
"gitHead": "301ba1e94d67ead341bea225189d7794acdd6922" | ||
"gitHead": "01c20d61e8c51b59dc7fdf83d4abd57391aecf71" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
359535
3502