We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a10314 commit 2fe94cfCopy full SHA for 2fe94cf
shared/api/registry.js
@@ -1,20 +1,11 @@
1
"use strict";
2
3
-const axios = require("axios");
4
-const https = require("https");
+const { getApiManager } = require("./index");
5
const { manageError } = require("./utils");
6
7
class RegistryApi {
8
constructor(registryApiUrl, token) {
9
- this.apiManager = axios.create({
10
- baseURL: registryApiUrl,
11
- headers: {
12
- "X-Auth-Token": token,
13
- },
14
- httpsAgent: new https.Agent({
15
- rejectUnauthorized: false,
16
- }),
17
- });
+ this.apiManager = getApiManager(registryApiUrl, token);
18
}
19
20
listRegistryNamespace(projectId) {
0 commit comments