@eso-status/live-services 2.0.0-dev.3 → 2.0.0-dev.5

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/lib/connector.js CHANGED
@@ -5,6 +5,7 @@ const const_1 = require("./const");
5
5
  /**
6
6
  * Class for retrieving information from announcements
7
7
  */
8
+ /* eslint-disable @typescript-eslint/no-extraneous-class */
8
9
  class Connector {
9
10
  /**
10
11
  * Method for retrieving remote content via a URL
@@ -12,10 +13,11 @@ class Connector {
12
13
  */
13
14
  static async getRemoteContent() {
14
15
  const response = await axios_1.default.get(const_1.LiveServicesURL);
15
- return response?.status === 200 && !!response?.data
16
- ? JSON.stringify(response?.data)
16
+ return response.status === 200 && !!response.data
17
+ ? JSON.stringify(response.data)
17
18
  : '';
18
19
  }
19
20
  }
20
21
  exports.default = Connector;
22
+ /* eslint-enable @typescript-eslint/no-extraneous-class */
21
23
  //# sourceMappingURL=connector.js.map
package/lib/index.js CHANGED
@@ -6,6 +6,7 @@ const connector_1 = require("./connector");
6
6
  /**
7
7
  * Class for retrieving announcement information
8
8
  */
9
+ /* eslint-disable @typescript-eslint/no-extraneous-class */
9
10
  class LiveServices {
10
11
  /**
11
12
  * Method for retrieving announcement information
@@ -25,7 +26,7 @@ class LiveServices {
25
26
  type: types_1.ServerType,
26
27
  support: raw.support,
27
28
  zone: raw.zone,
28
- status: (json.zos_platform_response.response[raw.raw]?.toLowerCase()),
29
+ status: json.zos_platform_response.response[raw.raw].toLowerCase(),
29
30
  rawSlug: raw.raw,
30
31
  rawStatus: json.zos_platform_response.response[raw.raw],
31
32
  });
@@ -34,4 +35,5 @@ class LiveServices {
34
35
  }
35
36
  }
36
37
  exports.default = LiveServices;
38
+ /* eslint-enable @typescript-eslint/no-extraneous-class */
37
39
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@eso-status/live-services",
3
- "version": "2.0.0-dev.3",
3
+ "version": "2.0.0-dev.5",
4
4
  "description": "Library for retrieving and formatting data, which can be found at https://live-services.elderscrollsonline.com/status/realms",
5
- "author": "@dov118 <contact@dov118.dev> (https://dov118.dev)",
5
+ "author": "@dov118 <contact.dov118.dev@gmail.com> (https://dov118.dev)",
6
6
  "main": "lib/index.js",
7
7
  "license": "MIT",
8
8
  "engineStrict": true,
@@ -37,7 +37,7 @@
37
37
  "README.md"
38
38
  ],
39
39
  "engines": {
40
- "node": "^18.18.0 || ^20.0.0"
40
+ "node": "^20.19.0 || ^22.13.0 || >=24"
41
41
  },
42
42
  "bugs": {
43
43
  "url": "https://github.com/eso-status/live-services/issues"
@@ -54,31 +54,41 @@
54
54
  "build": "rm -R -f lib/* && tsc --project tsconfig.build.json",
55
55
  "dev": "npm run build && node .",
56
56
  "watch": "nodemon --exec npm run dev",
57
- "test": "npm run build && jest --runInBand --setupFiles",
58
- "test:watch": "jest --runInBand --watch --setupFiles",
59
- "test:cov": "jest --runInBand --coverage --setupFiles",
57
+ "test": "npm run build && jest --runInBand",
58
+ "test:watch": "jest --runInBand --watch",
59
+ "test:cov": "jest --runInBand --coverage",
60
60
  "prepare": "husky"
61
61
  },
62
62
  "dependencies": {
63
- "@eso-status/types": "2.0.0-dev.13",
64
- "axios": "1.7.7"
63
+ "@eso-status/types": "2.0.0-dev.17",
64
+ "axios": "1.13.6"
65
+ },
66
+ "lint-staged": {
67
+ "*.ts": [
68
+ "eslint --fix",
69
+ "prettier --write"
70
+ ],
71
+ "*.{json,md,yml,yaml}": [
72
+ "prettier --write"
73
+ ]
65
74
  },
66
75
  "devDependencies": {
67
- "@types/jest": "29.5.13",
68
- "eslint": "8.57.1",
69
- "eslint-config-airbnb-base": "15.0.0",
70
- "eslint-config-airbnb-typescript": "18.0.0",
71
- "eslint-config-prettier": "9.1.0",
72
- "eslint-plugin-jest": "28.8.3",
73
- "eslint-plugin-prettier": "5.2.1",
74
- "eslint-plugin-sonarjs": "2.0.3",
75
- "eslint-plugin-unused-imports": "4.1.4",
76
- "husky": "9.1.6",
77
- "jest": "29.7.0",
78
- "nodemon": "3.1.7",
79
- "prettier": "3.3.3",
80
- "ts-jest": "29.2.5",
81
- "typescript": "5.5.4"
76
+ "@eslint/js": "10.0.1",
77
+ "@types/jest": "30.0.0",
78
+ "eslint": "10.0.3",
79
+ "eslint-config-prettier": "10.1.8",
80
+ "eslint-plugin-jest": "29.15.0",
81
+ "eslint-plugin-sonarjs": "4.0.2",
82
+ "eslint-plugin-unused-imports": "4.4.1",
83
+ "globals": "17.4.0",
84
+ "husky": "9.1.7",
85
+ "jest": "30.3.0",
86
+ "lint-staged": "16.3.3",
87
+ "nodemon": "3.1.14",
88
+ "prettier": "3.8.1",
89
+ "ts-jest": "29.4.6",
90
+ "typescript": "5.9.3",
91
+ "typescript-eslint": "8.57.0"
82
92
  },
83
93
  "jest": {
84
94
  "moduleFileExtensions": [
@@ -96,9 +106,6 @@
96
106
  ],
97
107
  "coverageDirectory": "./coverage",
98
108
  "testEnvironment": "node",
99
- "setupFiles": [
100
- "dotenv/config"
101
- ],
102
109
  "moduleDirectories": [
103
110
  "node_modules",
104
111
  "src"