@autofleet/settings 1.3.2 → 1.3.3

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.
package/dist/index.js CHANGED
@@ -118,7 +118,7 @@ class SettingsManager {
118
118
  settingsToGet.map((obj) => {
119
119
  const cacheKey = this.getCacheKey(obj.key, labels);
120
120
  const cacheValue = this.settingsCache.get(cacheKey);
121
- if (cacheValue) {
121
+ if (cacheValue && cacheValue !== waitingToNetwork) {
122
122
  settingsToReturn.set(obj.key, cacheValue);
123
123
  }
124
124
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autofleet/settings",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/src/index.ts CHANGED
@@ -169,7 +169,7 @@ class SettingsManager {
169
169
  settingsToGet.map((obj) => {
170
170
  const cacheKey = this.getCacheKey(obj.key, labels);
171
171
  const cacheValue = this.settingsCache.get(cacheKey);
172
- if (cacheValue) {
172
+ if (cacheValue && cacheValue !== waitingToNetwork) {
173
173
  settingsToReturn.set(obj.key, cacheValue);
174
174
  } else {
175
175
  settingsToFetch.push(obj.key);