@eso-status/forum-message 2.0.0-dev.0 → 2.0.0-dev.1
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
CHANGED
|
@@ -31,14 +31,14 @@ npm i @eso-status/forum-message
|
|
|
31
31
|
### Usage
|
|
32
32
|
```javascript
|
|
33
33
|
import ForumMessage from '@eso-status/forum-message';
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
34
|
+
import { EsoStatusRawData } from '@eso-status/types';
|
|
35
|
+
import { ForumMessagePTSURL } from '@eso-status/forum-message/const';
|
|
36
36
|
|
|
37
37
|
// Homepage data
|
|
38
|
-
const
|
|
38
|
+
const esoStatusRawDataList: EsoStatusRawData[] = await ForumMessage.getData();
|
|
39
39
|
|
|
40
40
|
// PTS category homepage data
|
|
41
|
-
const
|
|
41
|
+
const esoStatusRawDataList: EsoStatusRawData[] = await ForumMessage.getData(ForumMessagePTSURL);
|
|
42
42
|
```
|
|
43
43
|
### Return exemple
|
|
44
44
|
```text
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const types_1 = require("@eso-status/types");
|
|
3
4
|
const slug_match_1 = require("./slug.match");
|
|
4
5
|
/**
|
|
5
6
|
* Class for identifying the list of slugs contained in an announcement
|
|
@@ -15,16 +16,16 @@ class SlugIdentifier {
|
|
|
15
16
|
* @private
|
|
16
17
|
*/
|
|
17
18
|
this.slugList = [
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
19
|
+
types_1.ServerPcEuSlug,
|
|
20
|
+
types_1.ServerPcNaSlug,
|
|
21
|
+
types_1.ServerPcPtsSlug,
|
|
22
|
+
types_1.ServerPsEuSlug,
|
|
23
|
+
types_1.ServerPsNaSlug,
|
|
24
|
+
types_1.ServerXboxEuSlug,
|
|
25
|
+
types_1.ServerXboxNaSlug,
|
|
26
|
+
types_1.ServiceStoreEsoSlug,
|
|
27
|
+
types_1.ServiceSystemAccountSlug,
|
|
28
|
+
types_1.ServiceWebSiteSlug,
|
|
28
29
|
];
|
|
29
30
|
/**
|
|
30
31
|
* List of indicators proving that the announcement pertains to the slug server_pc_eu
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const types_1 = require("@eso-status/types");
|
|
3
4
|
/**
|
|
4
5
|
* Class for identifying the status contained in an announcement
|
|
5
6
|
*/
|
|
@@ -13,7 +14,7 @@ class StatusIdentifier {
|
|
|
13
14
|
* List of statuses to check for presence in the announcement
|
|
14
15
|
* @private
|
|
15
16
|
*/
|
|
16
|
-
this.statusList = [
|
|
17
|
+
this.statusList = [types_1.UpStatus, types_1.DownStatus, types_1.PlannedStatus];
|
|
17
18
|
/**
|
|
18
19
|
* List of indicators proving that the announcement pertains to the status up
|
|
19
20
|
* @private
|
|
@@ -77,7 +78,7 @@ class StatusIdentifier {
|
|
|
77
78
|
*/
|
|
78
79
|
default() {
|
|
79
80
|
if (!this.status) {
|
|
80
|
-
this.status =
|
|
81
|
+
this.status = types_1.PlannedStatus;
|
|
81
82
|
}
|
|
82
83
|
}
|
|
83
84
|
}
|
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.1",
|
|
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",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"README.md"
|
|
64
64
|
],
|
|
65
65
|
"engines": {
|
|
66
|
-
"node": "
|
|
66
|
+
"node": "^18.18.0 || ^20.0.0"
|
|
67
67
|
},
|
|
68
68
|
"bugs": {
|
|
69
69
|
"url": "https://github.com/eso-status/forum-message/issues"
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"prepare": "husky"
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {
|
|
89
|
-
"@eso-status/types": "2.0.0-dev.
|
|
89
|
+
"@eso-status/types": "2.0.0-dev.11",
|
|
90
90
|
"axios": "1.7.7",
|
|
91
91
|
"moment": "2.30.1"
|
|
92
92
|
},
|