configcat-common
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -22,2 +22,7 @@ import { IConfigCatClient } from "./ConfigCatClient"; | ||
export declare function createClientWithLazyLoad(apiKey: string, configCatKernel: IConfigCatKernel, options?: ILazyLoadingOptions): IConfigCatClient; | ||
/** | ||
* Create an instance of ConfigCatConsoleLogger | ||
* @param {LogLevel} logLevel - Specifies message's filtering to output for the CofigCatConsoleLogger. | ||
*/ | ||
export declare function createConsoleLogger(logLevel: LogLevel): IConfigCatLogger; | ||
export interface IAutoPollOptions extends IOptions { | ||
@@ -24,0 +29,0 @@ pollIntervalSeconds?: number; |
@@ -5,2 +5,3 @@ "use strict"; | ||
var ConfigCatClientOptions_1 = require("./ConfigCatClientOptions"); | ||
var ConfigCatLogger_1 = require("./ConfigCatLogger"); | ||
/** | ||
@@ -33,2 +34,10 @@ * Create an instance of ConfigCatClient and setup AutoPoll mode | ||
exports.createClientWithLazyLoad = createClientWithLazyLoad; | ||
/** | ||
* Create an instance of ConfigCatConsoleLogger | ||
* @param {LogLevel} logLevel - Specifies message's filtering to output for the CofigCatConsoleLogger. | ||
*/ | ||
function createConsoleLogger(logLevel) { | ||
return new ConfigCatLogger_1.ConfigCatConsoleLogger(logLevel); | ||
} | ||
exports.createConsoleLogger = createConsoleLogger; | ||
var LogLevel; | ||
@@ -35,0 +44,0 @@ (function (LogLevel) { |
@@ -61,3 +61,3 @@ "use strict"; | ||
if (result.Value == null) { | ||
result.EvaluateLog.ReturnValue = defaultValue; | ||
result.EvaluateLog.ReturnValue = config.ConfigJSON[key][ProjectConfig_1.Setting.Value]; | ||
} | ||
@@ -64,0 +64,0 @@ this.logger.info(result.EvaluateLog.GetLog()); |
{ | ||
"name": "configcat-common", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "ConfigCat is a configuration as a service that lets you manage your features and configurations without actually deploying new code.", | ||
@@ -28,4 +28,4 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@types/semver": "^6.2.0", | ||
"js-sha1": "^0.6.0" | ||
"js-sha1": "^0.6.0", | ||
"semver": "^7.1.1" | ||
}, | ||
@@ -35,3 +35,3 @@ "devDependencies": { | ||
"@types/mocha": "^5.2.5", | ||
"@types/node": "^10.12.2", | ||
"@types/node": "^10.17.11", | ||
"chai": "^4.2.0", | ||
@@ -38,0 +38,0 @@ "del": "^3.0.0", |
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
60171
1269
+ Addedsemver@^7.1.1
+ Addedsemver@7.6.3(transitive)
- Removed@types/semver@^6.2.0
- Removed@types/semver@6.2.7(transitive)