@eso-status/service-alerts 2.0.0-dev.2 → 2.0.0-dev.3

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.
@@ -16,7 +16,7 @@ export default class Connector {
16
16
  * List of slugs whose data has already been retrieved
17
17
  * @private
18
18
  */
19
- private alreadyGet;
19
+ private readonly alreadyGet;
20
20
  /**
21
21
  * @param remoteContent Content of the source retrieved
22
22
  */
@@ -41,6 +41,7 @@ class SlugIdentifier {
41
41
  this.ServerPsEuMatchesList = [
42
42
  'The European megaservers',
43
43
  'The European PlayStation® megaserver',
44
+ 'PlayStation™ Network',
44
45
  ];
45
46
  /**
46
47
  * List of indicators proving that the announcement pertains to the slug server_xbox_eu
@@ -67,6 +68,7 @@ class SlugIdentifier {
67
68
  this.ServerPsNaMatchesList = [
68
69
  'The North American megaservers',
69
70
  'North American PlayStation® megaserver',
71
+ 'PlayStation™ Network',
70
72
  ];
71
73
  /**
72
74
  * List of indicators proving that the announcement pertains to the slug server_xbox_na
@@ -4,51 +4,51 @@ import { RemoteRawSlug } from '../type/remoteRawSlug.type';
4
4
  import { RemoteRawStatus } from '../type/remoteRawStatus.type';
5
5
  import { SourceUrl } from '../type/sourceUrl.type';
6
6
  /**
7
- * Donnée brute du status d'un server/service ESO
7
+ * Raw data of an ESO server/service status
8
8
  */
9
9
  export interface EsoStatusRawData {
10
10
  /**
11
- * URL de la source de la donnée
11
+ * URL of the data source
12
12
  */
13
13
  source: SourceUrl;
14
14
  /**
15
- * Donnée brute permettant d'identifier le server/service et son status
15
+ * Raw data used to identify the server/service and its status
16
16
  */
17
17
  raw: string;
18
18
  /**
19
- * Status du server/service
19
+ * Status of the server/service
20
20
  */
21
21
  status: Status;
22
22
  /**
23
- * Donnée brute ayant permis d'identifier le status
23
+ * Raw data used to identify the status
24
24
  */
25
25
  rawStatus: RemoteRawStatus;
26
26
  /**
27
- * Slug du server/service
27
+ * Slug of the server/service
28
28
  */
29
29
  slug: Slug;
30
30
  /**
31
- * Donnée brute ayant permis d'identifier le slug
31
+ * Raw data used to identify the slug
32
32
  */
33
33
  rawSlug: RemoteRawSlug;
34
34
  /**
35
- * Type du server/service
35
+ * Type of the server/service
36
36
  */
37
37
  type: Type;
38
38
  /**
39
- * Support du server/service
39
+ * Support of the server/service
40
40
  */
41
41
  support: Support;
42
42
  /**
43
- * Zone du server/service
43
+ * Zone of the server/service
44
44
  */
45
45
  zone: Zone;
46
46
  /**
47
- * Liste des dates contenue dans l'annonce
47
+ * List of dates contained in the announcement
48
48
  */
49
49
  dates: Moment[];
50
50
  /**
51
- * Donnée brute de la date contenue dans l'annonce
51
+ * Raw data of the date contained in the announcement
52
52
  */
53
53
  rawDate: string;
54
54
  }
package/lib/raw.d.ts CHANGED
@@ -3,7 +3,7 @@ import { EsoStatusRawData } from './interface/esoStatusRawData.interface';
3
3
  * Class containing announcement information
4
4
  */
5
5
  export default class Raw {
6
- private raw;
6
+ private readonly raw;
7
7
  /**
8
8
  * Status identification class
9
9
  * @private
@@ -18,7 +18,7 @@ export default class Raw {
18
18
  * Class for identifying the list of slugs
19
19
  * @private
20
20
  */
21
- private slugsIdentifier;
21
+ private readonly slugsIdentifier;
22
22
  /**
23
23
  * List of information about slugs found in the announcement
24
24
  */
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Different slugs of announcements concerning the European PlayStation® Megaserver
3
3
  */
4
- export type RemoteServerPsEuRawSlug = 'The European megaservers' | 'The European PlayStation® megaserver';
4
+ export type RemoteServerPsEuRawSlug = 'The European megaservers' | 'The European PlayStation® megaserver' | 'PlayStation™ Network';
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Different slugs of announcements concerning the North American PlayStation® Megaserver
3
3
  */
4
- export type RemoteServerPsNaRawSlug = 'The North American megaservers' | 'North American PlayStation® megaserver';
4
+ export type RemoteServerPsNaRawSlug = 'The North American megaservers' | 'North American PlayStation® megaserver' | 'PlayStation™ Network';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eso-status/service-alerts",
3
- "version": "2.0.0-dev.2",
3
+ "version": "2.0.0-dev.3",
4
4
  "description": "Library for retrieving and formatting data, available at https://help.elderscrollsonline.com/app/answers/detail/a_id/4320.",
5
5
  "author": "@dov118 <contact@dov118.dev> (https://dov118.dev)",
6
6
  "main": "lib/index.js",
@@ -84,23 +84,23 @@
84
84
  "prepare": "husky"
85
85
  },
86
86
  "dependencies": {
87
- "@eso-status/types": "2.0.0-dev.11",
87
+ "@eso-status/types": "2.0.0-dev.12",
88
88
  "axios": "1.7.7",
89
89
  "moment": "2.30.1"
90
90
  },
91
91
  "devDependencies": {
92
- "@types/jest": "29.5.12",
93
- "eslint": "8.57.0",
92
+ "@types/jest": "29.5.13",
93
+ "eslint": "8.57.1",
94
94
  "eslint-config-airbnb-base": "15.0.0",
95
95
  "eslint-config-airbnb-typescript": "18.0.0",
96
96
  "eslint-config-prettier": "9.1.0",
97
97
  "eslint-plugin-jest": "28.8.3",
98
98
  "eslint-plugin-prettier": "5.2.1",
99
- "eslint-plugin-sonarjs": "2.0.2",
100
- "eslint-plugin-unused-imports": "4.1.3",
101
- "husky": "9.1.5",
99
+ "eslint-plugin-sonarjs": "2.0.3",
100
+ "eslint-plugin-unused-imports": "4.1.4",
101
+ "husky": "9.1.6",
102
102
  "jest": "29.7.0",
103
- "nodemon": "3.1.4",
103
+ "nodemon": "3.1.7",
104
104
  "prettier": "3.3.3",
105
105
  "ts-jest": "29.2.5",
106
106
  "typescript": "5.5.4"