@autofleet/settings 1.0.11-beta.0 → 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 -3
- package/package.json +1 -1
- package/src/index.ts +1 -2
package/dist/index.js
CHANGED
|
@@ -21,7 +21,6 @@ const logger_1 = __importDefault(require("@autofleet/logger"));
|
|
|
21
21
|
const node_cache_1 = __importDefault(require("node-cache"));
|
|
22
22
|
const events_1 = __importDefault(require("events"));
|
|
23
23
|
const util_1 = __importDefault(require("util"));
|
|
24
|
-
const qs_1 = __importDefault(require("qs"));
|
|
25
24
|
dotenv_1.default.config();
|
|
26
25
|
const nextTick = util_1.default.promisify(process.nextTick);
|
|
27
26
|
const logger = logger_1.default();
|
|
@@ -79,9 +78,8 @@ class SettingsManager {
|
|
|
79
78
|
this.settingsCache.set(cacheKey, waitingToNetwork, this.ttl);
|
|
80
79
|
const networkResponse = yield this.network.get(`/api/v1/settings/get-setting/${key}`, {
|
|
81
80
|
params: {
|
|
82
|
-
labels,
|
|
81
|
+
labels: JSON.stringify(labels),
|
|
83
82
|
},
|
|
84
|
-
paramsSerializer: (params) => qs_1.default.stringify(params),
|
|
85
83
|
timeout,
|
|
86
84
|
});
|
|
87
85
|
networkValue = networkResponse.data.value;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -114,9 +114,8 @@ class SettingsManager {
|
|
|
114
114
|
this.settingsCache.set(cacheKey, waitingToNetwork, this.ttl);
|
|
115
115
|
const networkResponse = await this.network.get(`/api/v1/settings/get-setting/${key}`, {
|
|
116
116
|
params: {
|
|
117
|
-
labels,
|
|
117
|
+
labels: JSON.stringify(labels),
|
|
118
118
|
},
|
|
119
|
-
paramsSerializer: (params: any) => qs.stringify(params),
|
|
120
119
|
timeout,
|
|
121
120
|
});
|
|
122
121
|
networkValue = networkResponse.data.value;
|