abbot-http-client 0.0.49 → 0.0.50
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 +7 -0
- package/dist/index.js +7 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -382,6 +382,13 @@ var AbbotHttp = class extends Axios {
|
|
|
382
382
|
message: "No response received",
|
|
383
383
|
data: null
|
|
384
384
|
};
|
|
385
|
+
if (err.code === "ECONNABORTED") {
|
|
386
|
+
err.response.code = -1;
|
|
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") {
|
|
389
|
+
err.response.code = -2;
|
|
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
|
+
}
|
|
385
392
|
return Promise.reject(
|
|
386
393
|
new import_axios2.AxiosError(
|
|
387
394
|
err.message,
|
package/dist/index.js
CHANGED
|
@@ -336,6 +336,13 @@ var AbbotHttp = class extends Axios {
|
|
|
336
336
|
message: "No response received",
|
|
337
337
|
data: null
|
|
338
338
|
};
|
|
339
|
+
if (err.code === "ECONNABORTED") {
|
|
340
|
+
err.response.code = -1;
|
|
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") {
|
|
343
|
+
err.response.code = -2;
|
|
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
|
+
}
|
|
339
346
|
return Promise.reject(
|
|
340
347
|
new AxiosError(
|
|
341
348
|
err.message,
|