@heliyos/heliyos-api-core 1.0.53 → 1.0.54

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.
Files changed (2) hide show
  1. package/dist/axios.js +2 -13
  2. package/package.json +1 -2
package/dist/axios.js CHANGED
@@ -8,7 +8,6 @@ const axios_1 = __importDefault(require("axios"));
8
8
  const logger_1 = require("./logger");
9
9
  const http_1 = __importDefault(require("http"));
10
10
  const https_1 = __importDefault(require("https"));
11
- const axios_retry_1 = __importDefault(require("axios-retry"));
12
11
  const config = {
13
12
  withCredentials: true,
14
13
  };
@@ -68,21 +67,11 @@ const httpsAgent = new https_1.default.Agent({
68
67
  // Axios server configs
69
68
  const servers = {
70
69
  // Auth server
71
- authServer: (0, axios_retry_1.default)(axios_1.default.create(Object.assign(Object.assign({}, config), { baseURL: process.env.BASE_URL_AUTH_SERVER, auth: {
70
+ authServer: axios_1.default.create(Object.assign(Object.assign({}, config), { baseURL: process.env.BASE_URL_AUTH_SERVER, auth: {
72
71
  username: "auth",
73
72
  password: process.env.SECRET_OF_AUTH_SERVER,
74
73
  }, httpAgent,
75
- httpsAgent })), {
76
- retries: 3,
77
- retryDelay: axios_retry_1.default.exponentialDelay,
78
- shouldResetTimeout: true,
79
- retryCondition: (error) => {
80
- var _a;
81
- return axios_retry_1.default.isNetworkOrIdempotentRequestError(error) ||
82
- error.code === "ECONNRESET" ||
83
- ((_a = error.response) === null || _a === void 0 ? void 0 : _a.status) === 503;
84
- },
85
- }),
74
+ httpsAgent })),
86
75
  // Agent server
87
76
  agentServer: axios_1.default.create(Object.assign(Object.assign({}, config), { baseURL: process.env.BASE_URL_AGENT_SERVER, auth: {
88
77
  username: "agent",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heliyos/heliyos-api-core",
3
- "version": "1.0.53",
3
+ "version": "1.0.54",
4
4
  "description": "Heliyos's core api functions and middlewares. Its a private package hosted on npm.",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {
@@ -31,7 +31,6 @@
31
31
  "@aws-sdk/client-secrets-manager": "3.682.0",
32
32
  "@aws-sdk/client-sqs": "3.682.0",
33
33
  "axios": "^1.7.7",
34
- "axios-retry": "4.5.0",
35
34
  "basic-auth": "^2.0.1",
36
35
  "body-parser": "^1.20.3",
37
36
  "compression": "1.8.1",