@autofleet/settings 1.0.10 → 1.0.11-beta.1
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 +1 -1
- package/package.json +4 -2
- package/src/index.ts +2 -1
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,
|
|
81
|
+
labels: JSON.stringify(labels),
|
|
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.
|
|
3
|
+
"version": "1.0.11-beta.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -17,11 +17,13 @@
|
|
|
17
17
|
"@autofleet/logger": "^1.0.0",
|
|
18
18
|
"@autofleet/network": "^1.2.1",
|
|
19
19
|
"@types/jest": "^22.0.0",
|
|
20
|
+
"@types/qs": "^6.9.7",
|
|
20
21
|
"bluebird": "^3.7.2",
|
|
21
22
|
"dotenv": "^8.2.0",
|
|
22
23
|
"jest": "^22.4.4",
|
|
23
24
|
"nock": "^10.0.2",
|
|
24
|
-
"node-cache": "^5.1.2"
|
|
25
|
+
"node-cache": "^5.1.2",
|
|
26
|
+
"qs": "^6.5.2"
|
|
25
27
|
},
|
|
26
28
|
"devDependencies": {
|
|
27
29
|
"@typescript-eslint/eslint-plugin": "^4.8.1",
|
package/src/index.ts
CHANGED
|
@@ -7,6 +7,7 @@ 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';
|
|
10
11
|
|
|
11
12
|
dotenv.config();
|
|
12
13
|
|
|
@@ -113,7 +114,7 @@ class SettingsManager {
|
|
|
113
114
|
this.settingsCache.set(cacheKey, waitingToNetwork, this.ttl);
|
|
114
115
|
const networkResponse = await this.network.get(`/api/v1/settings/get-setting/${key}`, {
|
|
115
116
|
params: {
|
|
116
|
-
labels,
|
|
117
|
+
labels: JSON.stringify(labels),
|
|
117
118
|
},
|
|
118
119
|
timeout,
|
|
119
120
|
});
|