mowojang 0.4.6-dev.0 → 0.4.7

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/README.md CHANGED
@@ -79,12 +79,9 @@ All Validator Functions are exported combined as `validate.x`.
79
79
 
80
80
  ## 📎 Credits
81
81
 
82
- - Mowojang Creator (Mat):
83
- - [Website](https://matdoes.dev)
84
- - [GitHub](https://github.com/mat-1)
85
- - [Ko-Fi](https://ko-fi.com/matdoesdev)
82
+ - Mowojang Creator (Mat): [Website](https://matdoes.dev), [GitHub](https://github.com/mat-1) or [Ko-Fi](https://ko-fi.com/matdoesdev)
86
83
 
87
- ## 📡 [Status](https://mowojang-status.pixelic.dev/)
84
+ ## 📡 [Mowojang Status](https://mowojang-status.pixelic.dev/)
88
85
 
89
86
  <details>
90
87
  <summary>Show status badges</summary>
package/dist/index.js CHANGED
@@ -37,7 +37,7 @@ import { setupCache } from "axios-cache-interceptor";
37
37
  // package.json
38
38
  var package_default = {
39
39
  name: "mowojang",
40
- version: "0.4.6-dev.0",
40
+ version: "0.4.7",
41
41
  description: "A simple JavaScript and TypeScript compatible wrapper for the Mowojang-API.",
42
42
  exports: {
43
43
  ".": {
@@ -117,7 +117,7 @@ var axiosInstance_default = /* @__PURE__ */ __name((options, logger) => {
117
117
  return res;
118
118
  },
119
119
  (err) => {
120
- const isConnectionError = err.code === "ECONNRESET" || err.code === "ETIMEDOUT" || (err?.response?.status ?? 0) >= 500;
120
+ const isConnectionError = ["ECONNRESET", "ETIMEDOUT", "ECONNREFUSED", "ENOTFOUND", "EAI_AGAIN"].includes(err.code) || (err?.response?.status ?? 0) >= 500;
121
121
  if (isConnectionError) {
122
122
  const fullURL = axios.getUri(err.config);
123
123
  const host = new URL(fullURL).host;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mowojang",
3
- "version": "0.4.6-dev.0",
3
+ "version": "0.4.7",
4
4
  "description": "A simple JavaScript and TypeScript compatible wrapper for the Mowojang-API.",
5
5
  "exports": {
6
6
  ".": {