Skip to content

Commit 22dd594

Browse files
committed
chore: build
1 parent 308e7d8 commit 22dd594

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dist/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27086,11 +27086,11 @@ exports.Portainer = void 0;
2708627086
const axios_1 = __nccwpck_require__(8757);
2708727087
class Portainer {
2708827088
constructor(baseUrl, username, password) {
27089-
this.baseUrl = baseUrl;
27089+
this.baseUrl = `${baseUrl}/api`;
2709027090
this.username = username;
2709127091
this.password = password;
2709227092
this.axios = axios_1.default.create({
27093-
baseURL: baseUrl,
27093+
baseURL: this.baseUrl,
2709427094
headers: {
2709527095
'Content-Type': 'application/json',
2709627096
},
@@ -27127,7 +27127,7 @@ class Portainer {
2712727127
Authorization: `Bearer ${this.token}`,
2712827128
},
2712927129
params: {
27130-
endpointId,
27130+
filters: endpointId ? JSON.stringify({ endpointId }) : undefined,
2713127131
},
2713227132
});
2713327133
return data;

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)