configcat-common
Advanced tools
Comparing version 8.0.1 to 8.0.2
@@ -96,10 +96,10 @@ "use strict"; | ||
|| fetchResult.config.timestamp > latestConfig.timestamp && (!fetchResult.config.isEmpty || latestConfig.isEmpty))) return [3 /*break*/, 3]; | ||
latestConfig = fetchResult.config; | ||
return [4 /*yield*/, this.options.cache.set(this.cacheKey, latestConfig)]; | ||
return [4 /*yield*/, this.options.cache.set(this.cacheKey, fetchResult.config)]; | ||
case 2: | ||
_a.sent(); | ||
this.onConfigUpdated(latestConfig); | ||
if (success) { | ||
this.onConfigChanged(latestConfig); | ||
this.onConfigUpdated(fetchResult.config); | ||
if (success && (fetchResult.config.httpETag != latestConfig.httpETag || fetchResult.config.configJson != latestConfig.configJson)) { | ||
this.onConfigChanged(fetchResult.config); | ||
} | ||
latestConfig = fetchResult.config; | ||
_a.label = 3; | ||
@@ -106,0 +106,0 @@ case 3: return [2 /*return*/, [fetchResult, latestConfig]]; |
@@ -93,10 +93,10 @@ import { __awaiter, __generator } from "tslib"; | ||
|| fetchResult.config.timestamp > latestConfig.timestamp && (!fetchResult.config.isEmpty || latestConfig.isEmpty))) return [3 /*break*/, 3]; | ||
latestConfig = fetchResult.config; | ||
return [4 /*yield*/, this.options.cache.set(this.cacheKey, latestConfig)]; | ||
return [4 /*yield*/, this.options.cache.set(this.cacheKey, fetchResult.config)]; | ||
case 2: | ||
_a.sent(); | ||
this.onConfigUpdated(latestConfig); | ||
if (success) { | ||
this.onConfigChanged(latestConfig); | ||
this.onConfigUpdated(fetchResult.config); | ||
if (success && (fetchResult.config.httpETag != latestConfig.httpETag || fetchResult.config.configJson != latestConfig.configJson)) { | ||
this.onConfigChanged(fetchResult.config); | ||
} | ||
latestConfig = fetchResult.config; | ||
_a.label = 3; | ||
@@ -103,0 +103,0 @@ case 3: return [2 /*return*/, [fetchResult, latestConfig]]; |
{ | ||
"name": "configcat-common", | ||
"version": "8.0.1", | ||
"version": "8.0.2", | ||
"description": "ConfigCat is a configuration as a service that lets you manage your features and configurations without actually deploying new code.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
410328