@autofleet/settings 1.0.11-beta.1 → 1.0.11-beta.2

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
@@ -78,7 +78,7 @@ class SettingsManager {
78
78
  this.settingsCache.set(cacheKey, waitingToNetwork, this.ttl);
79
79
  const networkResponse = yield this.network.get(`/api/v1/settings/get-setting/${key}`, {
80
80
  params: {
81
- labels: JSON.stringify(labels),
81
+ labels: labels.map((label) => JSON.stringify(label)),
82
82
  },
83
83
  timeout,
84
84
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autofleet/settings",
3
- "version": "1.0.11-beta.1",
3
+ "version": "1.0.11-beta.2",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/src/index.ts CHANGED
@@ -7,7 +7,6 @@ import Logger from '@autofleet/logger';
7
7
  import NodeCache from 'node-cache';
8
8
  import EventEmitter from 'events';
9
9
  import util from 'util';
10
- import qs from 'qs';
11
10
 
12
11
  dotenv.config();
13
12
 
@@ -114,7 +113,7 @@ class SettingsManager {
114
113
  this.settingsCache.set(cacheKey, waitingToNetwork, this.ttl);
115
114
  const networkResponse = await this.network.get(`/api/v1/settings/get-setting/${key}`, {
116
115
  params: {
117
- labels: JSON.stringify(labels),
116
+ labels: labels.map((label) => JSON.stringify(label)),
118
117
  },
119
118
  timeout,
120
119
  });