abbot-http-client 0.0.50 → 0.0.51

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.
package/dist/index.cjs CHANGED
@@ -382,10 +382,10 @@ var AbbotHttp = class extends Axios {
382
382
  message: "No response received",
383
383
  data: null
384
384
  };
385
- if (err.code === "ECONNABORTED") {
385
+ if (error.code === "ECONNABORTED") {
386
386
  err.response.code = -1;
387
387
  err.response.message = "\u0E01\u0E32\u0E23\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E43\u0E0A\u0E49\u0E40\u0E27\u0E25\u0E32\u0E19\u0E32\u0E40\u0E01\u0E34\u0E19\u0E44\u0E1B";
388
- } else if (err.code === "ERR_NETWORK") {
388
+ } else if (error.code === "ERR_NETWORK") {
389
389
  err.response.code = -2;
390
390
  err.response.message = "\u0E01\u0E32\u0E23\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E2D\u0E34\u0E19\u0E40\u0E15\u0E2D\u0E23\u0E4C\u0E40\u0E19\u0E47\u0E15\u0E21\u0E35\u0E1B\u0E31\u0E0D\u0E2B\u0E32";
391
391
  }
package/dist/index.js CHANGED
@@ -336,10 +336,10 @@ var AbbotHttp = class extends Axios {
336
336
  message: "No response received",
337
337
  data: null
338
338
  };
339
- if (err.code === "ECONNABORTED") {
339
+ if (error.code === "ECONNABORTED") {
340
340
  err.response.code = -1;
341
341
  err.response.message = "\u0E01\u0E32\u0E23\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E43\u0E0A\u0E49\u0E40\u0E27\u0E25\u0E32\u0E19\u0E32\u0E40\u0E01\u0E34\u0E19\u0E44\u0E1B";
342
- } else if (err.code === "ERR_NETWORK") {
342
+ } else if (error.code === "ERR_NETWORK") {
343
343
  err.response.code = -2;
344
344
  err.response.message = "\u0E01\u0E32\u0E23\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E2D\u0E34\u0E19\u0E40\u0E15\u0E2D\u0E23\u0E4C\u0E40\u0E19\u0E47\u0E15\u0E21\u0E35\u0E1B\u0E31\u0E0D\u0E2B\u0E32";
345
345
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "abbot-http-client",
3
- "version": "0.0.50",
3
+ "version": "0.0.51",
4
4
  "description": "This package helps Abbot team to handle all the axios requests.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",