@riocrypto/common 1.0.652 → 1.0.654
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.
|
@@ -14,10 +14,11 @@ class RioAdminClient {
|
|
|
14
14
|
constructor(axios) {
|
|
15
15
|
this.axios = axios;
|
|
16
16
|
axios.interceptors.request.use((config) => {
|
|
17
|
-
// Exclude specific
|
|
17
|
+
// Exclude specific cookies from being sent
|
|
18
18
|
if (config.headers && config.headers.Cookie) {
|
|
19
|
-
config.headers.Cookie =
|
|
20
|
-
|
|
19
|
+
config.headers.Cookie = String(config.headers.Cookie)
|
|
20
|
+
.replace(/accessToken=[^;]+(; )?/, "")
|
|
21
|
+
.replace(/refreshToken=[^;]+(; )?/, "");
|
|
21
22
|
}
|
|
22
23
|
return config;
|
|
23
24
|
});
|
|
@@ -288,7 +289,7 @@ class RioAdminClient {
|
|
|
288
289
|
}
|
|
289
290
|
getAggregateVolume() {
|
|
290
291
|
return __awaiter(this, void 0, void 0, function* () {
|
|
291
|
-
const response = yield this.axios.get(`/api/
|
|
292
|
+
const response = yield this.axios.get(`/api/admin/volume`);
|
|
292
293
|
return response.data;
|
|
293
294
|
});
|
|
294
295
|
}
|