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 +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
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 (
|
|
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 (
|
|
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 (
|
|
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 (
|
|
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
|
}
|