Skip to content

Commit 2fe94cf

Browse files
committed
fix: do the same for registry client
1 parent 7a10314 commit 2fe94cf

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

shared/api/registry.js

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,11 @@
11
"use strict";
22

3-
const axios = require("axios");
4-
const https = require("https");
3+
const { getApiManager } = require("./index");
54
const { manageError } = require("./utils");
65

76
class RegistryApi {
87
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-
});
8+
this.apiManager = getApiManager(registryApiUrl, token);
189
}
1910

2011
listRegistryNamespace(projectId) {

0 commit comments

Comments
 (0)