@eso-status/forum-message 2.0.0-dev.4 → 2.0.0-dev.6
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 +1 -1
- package/lib/connector.js +2 -0
- package/lib/raw.d.ts +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -148,7 +148,7 @@ const esoStatusRawDataList: EsoStatusRawData[] = await ForumMessage.getData(Foru
|
|
|
148
148
|
zone: 'pts',
|
|
149
149
|
status: 'planned',
|
|
150
150
|
rawSlug: 'PTS',
|
|
151
|
-
rawDate: 'Thursday at 9:00AM EDT (13:00 UTC)
|
|
151
|
+
rawDate: 'Thursday at 9:00AM EDT (13:00 UTC)',
|
|
152
152
|
rawStatus: 'We will be performing maintenance',
|
|
153
153
|
dates: [ Moment<2024-09-05T13:00:00Z> ]
|
|
154
154
|
}
|
package/lib/connector.js
CHANGED
|
@@ -73,7 +73,9 @@ class Connector {
|
|
|
73
73
|
replace() {
|
|
74
74
|
this.raw = this.raw.map((raw) => {
|
|
75
75
|
let initialRaw = raw;
|
|
76
|
+
initialRaw = initialRaw.replace(' 。', '');
|
|
76
77
|
initialRaw = initialRaw.replace(/<br\/>\n/g, '<br>');
|
|
78
|
+
initialRaw = initialRaw.replace('. <br>', '.<br>');
|
|
77
79
|
if (!initialRaw.includes('. <')) {
|
|
78
80
|
return initialRaw.replace('. ', '.');
|
|
79
81
|
}
|
package/lib/raw.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ import { EsoStatusRawData } from './interface/esoStatusRawData.interface';
|
|
|
4
4
|
* Class containing announcement information
|
|
5
5
|
*/
|
|
6
6
|
export default class Raw {
|
|
7
|
-
private url;
|
|
8
|
-
private raw;
|
|
7
|
+
private readonly url;
|
|
8
|
+
private readonly raw;
|
|
9
9
|
/**
|
|
10
10
|
* Status identification class
|
|
11
11
|
* @private
|
|
@@ -20,7 +20,7 @@ export default class Raw {
|
|
|
20
20
|
* Class for identifying the list of slugs
|
|
21
21
|
* @private
|
|
22
22
|
*/
|
|
23
|
-
private slugsIdentifier;
|
|
23
|
+
private readonly slugsIdentifier;
|
|
24
24
|
/**
|
|
25
25
|
* List of information about slugs found in the announcement
|
|
26
26
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eso-status/forum-message",
|
|
3
|
-
"version": "2.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.6",
|
|
4
4
|
"description": "Library for retrieving and formatting data, available at https://forums.elderscrollsonline.com or https://forums.elderscrollsonline.com/en/categories/pts",
|
|
5
5
|
"author": "@dov118 <contact@dov118.dev> (https://dov118.dev)",
|
|
6
6
|
"main": "lib/index.js",
|