Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

configcat-common

Package Overview
Dependencies
Maintainers
4
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

configcat-common - npm Package Compare versions

Comparing version 8.0.1 to 8.0.2

10

lib/ConfigServiceBase.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc