@meru2802/aux-server 1.0.20 → 1.0.21
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apiController.d.ts","sourceRoot":"","sources":["../../src/controllers/apiController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAE5C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAOjE,qBAAa,aAAc,SAAQ,cAAc;gBACnC,gBAAgB,CAAC,EAAE,iBAAiB;IAIzC,YAAY,GAAU,KAAK,OAAO,EAAE,KAAK,QAAQ,KAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"apiController.d.ts","sourceRoot":"","sources":["../../src/controllers/apiController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAE5C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAOjE,qBAAa,aAAc,SAAQ,cAAc;gBACnC,gBAAgB,CAAC,EAAE,iBAAiB;IAIzC,YAAY,GAAU,KAAK,OAAO,EAAE,KAAK,QAAQ,KAAG,OAAO,CAAC,IAAI,CAAC,CA0GtE;IAEK,cAAc,GACnB,KAAK,OAAO,EACZ,KAAK,QAAQ,KACZ,OAAO,CAAC,IAAI,CAAC,CAkUd;CACH"}
|
|
@@ -44,6 +44,7 @@ class ApiController extends BaseController_1.BaseController {
|
|
|
44
44
|
userEpmId,
|
|
45
45
|
expiration: expiration.toISOString(),
|
|
46
46
|
});
|
|
47
|
+
const agent = (0, utils_1.getNoProxyHttpAgent)();
|
|
47
48
|
const epmResponse = await axios_1.default.post(epmUrl, {
|
|
48
49
|
name: keyName,
|
|
49
50
|
expiration: expiration.toISOString(),
|
|
@@ -54,7 +55,7 @@ class ApiController extends BaseController_1.BaseController {
|
|
|
54
55
|
"Content-Type": "application/json",
|
|
55
56
|
"X-API-KEY": this.config.epmConfig.masterApiKey,
|
|
56
57
|
},
|
|
57
|
-
httpsAgent:
|
|
58
|
+
httpsAgent: agent,
|
|
58
59
|
validateStatus: () => true,
|
|
59
60
|
});
|
|
60
61
|
console.log("EPM API Response:", {
|
|
@@ -137,7 +138,7 @@ class ApiController extends BaseController_1.BaseController {
|
|
|
137
138
|
}
|
|
138
139
|
if (!meshNodeId) {
|
|
139
140
|
const errorResponse = {
|
|
140
|
-
error:
|
|
141
|
+
error: `'meshNodeId' for agent id: ${agentId} not found. This endpoint needs reinstallation`,
|
|
141
142
|
timestamp: new Date().toISOString(),
|
|
142
143
|
};
|
|
143
144
|
res.status(400).json(errorResponse);
|
|
@@ -18,7 +18,7 @@ class HealthController extends BaseController_1.BaseController {
|
|
|
18
18
|
this.status = (req, res) => {
|
|
19
19
|
const response = {
|
|
20
20
|
service: "aux-server",
|
|
21
|
-
version: "1.0.
|
|
21
|
+
version: "1.0.21",
|
|
22
22
|
meshCentral: {
|
|
23
23
|
connected: this.isWebSocketConnected,
|
|
24
24
|
server: this.meshServer,
|