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

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
  */
@@ -1,4 +1,3 @@
1
- import { Moment } from 'moment';
2
1
  /**
3
2
  * Class for identifying and formatting the date contained in an announcement
4
3
  */
@@ -9,9 +8,9 @@ export default class DateFormatter {
9
8
  */
10
9
  rawDate: string;
11
10
  /**
12
- * List of dates formatted correctly contained in the announcement
11
+ * List of dates formatted correctly contained in the announcement (ISO 8601)
13
12
  */
14
- dates: Moment[];
13
+ dates: string[];
15
14
  /**
16
15
  * @param raw Raw data of the announcement
17
16
  */
@@ -24,7 +24,8 @@ class DateFormatter {
24
24
  .set('minutes', Number(hourData.split(':')[1]))
25
25
  .set('seconds', 0)
26
26
  .set('milliseconds', 0)
27
- .utcOffset(0),
27
+ .utcOffset(0)
28
+ .toISOString(),
28
29
  ];
29
30
  }
30
31
  }
@@ -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
@@ -1,54 +1,53 @@
1
- import { Moment } from 'moment/moment';
2
1
  import { Slug, Status, Support, Type, Zone } from '@eso-status/types';
3
2
  import { RemoteRawSlug } from '../type/remoteRawSlug.type';
4
3
  import { RemoteRawStatus } from '../type/remoteRawStatus.type';
5
4
  import { SourceUrl } from '../type/sourceUrl.type';
6
5
  /**
7
- * Donnée brute du status d'un server/service ESO
6
+ * Raw data of an ESO server/service status
8
7
  */
9
8
  export interface EsoStatusRawData {
10
9
  /**
11
- * URL de la source de la donnée
10
+ * URL of the data source
12
11
  */
13
12
  source: SourceUrl;
14
13
  /**
15
- * Donnée brute permettant d'identifier le server/service et son status
14
+ * Raw data used to identify the server/service and its status
16
15
  */
17
16
  raw: string;
18
17
  /**
19
- * Status du server/service
18
+ * Status of the server/service
20
19
  */
21
20
  status: Status;
22
21
  /**
23
- * Donnée brute ayant permis d'identifier le status
22
+ * Raw data used to identify the status
24
23
  */
25
24
  rawStatus: RemoteRawStatus;
26
25
  /**
27
- * Slug du server/service
26
+ * Slug of the server/service
28
27
  */
29
28
  slug: Slug;
30
29
  /**
31
- * Donnée brute ayant permis d'identifier le slug
30
+ * Raw data used to identify the slug
32
31
  */
33
32
  rawSlug: RemoteRawSlug;
34
33
  /**
35
- * Type du server/service
34
+ * Type of the server/service
36
35
  */
37
36
  type: Type;
38
37
  /**
39
- * Support du server/service
38
+ * Support of the server/service
40
39
  */
41
40
  support: Support;
42
41
  /**
43
- * Zone du server/service
42
+ * Zone of the server/service
44
43
  */
45
44
  zone: Zone;
46
45
  /**
47
- * Liste des dates contenue dans l'annonce
46
+ * List of dates contained in the announcement (ISO 8601)
48
47
  */
49
- dates: Moment[];
48
+ dates: string[];
50
49
  /**
51
- * Donnée brute de la date contenue dans l'annonce
50
+ * Raw data of the date contained in the announcement
52
51
  */
53
52
  rawDate: string;
54
53
  }
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.4",
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.13",
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"