@eso-status/service-alerts 2.0.0-dev.3 → 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.
@@ -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
  }
@@ -1,4 +1,3 @@
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';
@@ -44,9 +43,9 @@ export interface EsoStatusRawData {
44
43
  */
45
44
  zone: Zone;
46
45
  /**
47
- * List of dates contained in the announcement
46
+ * List of dates contained in the announcement (ISO 8601)
48
47
  */
49
- dates: Moment[];
48
+ dates: string[];
50
49
  /**
51
50
  * Raw data of the date contained in the announcement
52
51
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eso-status/service-alerts",
3
- "version": "2.0.0-dev.3",
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,7 +84,7 @@
84
84
  "prepare": "husky"
85
85
  },
86
86
  "dependencies": {
87
- "@eso-status/types": "2.0.0-dev.12",
87
+ "@eso-status/types": "2.0.0-dev.13",
88
88
  "axios": "1.7.7",
89
89
  "moment": "2.30.1"
90
90
  },