@eso-status/forum-message 2.0.0-dev.23 → 2.0.0-dev.25
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 +118 -112
- package/lib/connector.d.ts +40 -5
- package/lib/connector.js +93 -67
- package/lib/connector.js.map +1 -0
- package/lib/const/ForumMessagePtsUrl.const.d.ts +3 -0
- package/lib/const/ForumMessagePtsUrl.const.js +5 -0
- package/lib/const/ForumMessagePtsUrl.const.js.map +1 -0
- package/lib/const/ForumMessageUrl.const.d.ts +3 -0
- package/lib/const/ForumMessageUrl.const.js +5 -0
- package/lib/const/ForumMessageUrl.const.js.map +1 -0
- package/lib/formatter/date.formatter.js +10 -7
- package/lib/formatter/date.formatter.js.map +1 -0
- package/lib/identifier/slug.identifier.js +28 -48
- package/lib/identifier/slug.identifier.js.map +1 -0
- package/lib/identifier/slug.match.js.map +1 -0
- package/lib/identifier/status.identifier.js.map +1 -0
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -0
- package/lib/interface/esoStatusRawData.interface.d.ts +58 -0
- package/lib/interface/esoStatusRawData.interface.js +3 -0
- package/lib/interface/esoStatusRawData.interface.js.map +1 -0
- package/lib/pattern/content/forumMessagePtsReplace.pattern.d.ts +2 -0
- package/lib/pattern/content/forumMessagePtsReplace.pattern.js +7 -0
- package/lib/pattern/content/forumMessagePtsReplace.pattern.js.map +1 -0
- package/lib/pattern/content/forumMessageReplace.pattern.d.ts +2 -0
- package/lib/pattern/content/forumMessageReplace.pattern.js +14 -0
- package/lib/pattern/content/forumMessageReplace.pattern.js.map +1 -0
- package/lib/pattern/message/messageFilter.pattern.d.ts +2 -0
- package/lib/pattern/message/messageFilter.pattern.js +12 -0
- package/lib/pattern/message/messageFilter.pattern.js.map +1 -0
- package/lib/pattern/message/messageReplace.pattern.d.ts +2 -0
- package/lib/pattern/message/messageReplace.pattern.js +28 -0
- package/lib/pattern/message/messageReplace.pattern.js.map +1 -0
- package/lib/pattern/message/messageSanitize.pattern.d.ts +2 -0
- package/lib/pattern/message/messageSanitize.pattern.js +28 -0
- package/lib/pattern/message/messageSanitize.pattern.js.map +1 -0
- package/lib/pattern/slugIdentifier/serverPcEuSlugIdentifier.pattern.d.ts +6 -0
- package/lib/pattern/slugIdentifier/serverPcEuSlugIdentifier.pattern.js +20 -0
- package/lib/pattern/slugIdentifier/serverPcEuSlugIdentifier.pattern.js.map +1 -0
- package/lib/pattern/slugIdentifier/serverPcNaSlugIdentifier.pattern.d.ts +6 -0
- package/lib/pattern/slugIdentifier/serverPcNaSlugIdentifier.pattern.js +21 -0
- package/lib/pattern/slugIdentifier/serverPcNaSlugIdentifier.pattern.js.map +1 -0
- package/lib/pattern/slugIdentifier/serverPcPtsSlugIdentifier.pattern.d.ts +6 -0
- package/lib/pattern/slugIdentifier/serverPcPtsSlugIdentifier.pattern.js +5 -0
- package/lib/pattern/slugIdentifier/serverPcPtsSlugIdentifier.pattern.js.map +1 -0
- package/lib/pattern/slugIdentifier/serverPsEuSlugIdentifier.pattern.d.ts +6 -0
- package/lib/pattern/slugIdentifier/serverPsEuSlugIdentifier.pattern.js +19 -0
- package/lib/pattern/slugIdentifier/serverPsEuSlugIdentifier.pattern.js.map +1 -0
- package/lib/pattern/slugIdentifier/serverPsNaSlugIdentifier.pattern.d.ts +6 -0
- package/lib/pattern/slugIdentifier/serverPsNaSlugIdentifier.pattern.js +23 -0
- package/lib/pattern/slugIdentifier/serverPsNaSlugIdentifier.pattern.js.map +1 -0
- package/lib/pattern/slugIdentifier/serverXboxEuSlugIdentifier.pattern.d.ts +6 -0
- package/lib/pattern/slugIdentifier/serverXboxEuSlugIdentifier.pattern.js +17 -0
- package/lib/pattern/slugIdentifier/serverXboxEuSlugIdentifier.pattern.js.map +1 -0
- package/lib/pattern/slugIdentifier/serverXboxNaSlugIdentifier.pattern.d.ts +6 -0
- package/lib/pattern/slugIdentifier/serverXboxNaSlugIdentifier.pattern.js +16 -0
- package/lib/pattern/slugIdentifier/serverXboxNaSlugIdentifier.pattern.js.map +1 -0
- package/lib/pattern/slugIdentifier/serviceStoreEsoSlugIdentifier.pattern.d.ts +6 -0
- package/lib/pattern/slugIdentifier/serviceStoreEsoSlugIdentifier.pattern.js +5 -0
- package/lib/pattern/slugIdentifier/serviceStoreEsoSlugIdentifier.pattern.js.map +1 -0
- package/lib/pattern/slugIdentifier/serviceSystemAccountSlugIdentifier.pattern.d.ts +6 -0
- package/lib/pattern/slugIdentifier/serviceSystemAccountSlugIdentifier.pattern.js +5 -0
- package/lib/pattern/slugIdentifier/serviceSystemAccountSlugIdentifier.pattern.js.map +1 -0
- package/lib/pattern/slugIdentifier/serviceWebSiteSlugIdentifier.pattern.d.ts +6 -0
- package/lib/pattern/slugIdentifier/serviceWebSiteSlugIdentifier.pattern.js +5 -0
- package/lib/pattern/slugIdentifier/serviceWebSiteSlugIdentifier.pattern.js.map +1 -0
- package/lib/raw.d.ts +10 -0
- package/lib/raw.js +18 -0
- package/lib/raw.js.map +1 -0
- package/lib/tsconfig.build.tsbuildinfo +1 -0
- package/lib/type/matchesList.type.d.ts +4 -0
- package/lib/type/matchesList.type.js +3 -0
- package/lib/type/matchesList.type.js.map +1 -0
- package/lib/type/messagePattern.type.d.ts +1 -0
- package/lib/type/messagePattern.type.js +3 -0
- package/lib/type/messagePattern.type.js.map +1 -0
- package/lib/type/messageType.type.js.map +1 -0
- package/lib/type/remoteDownRawStatus.type.js.map +1 -0
- package/lib/type/remoteIssuesRawStatus.type.js.map +1 -0
- package/lib/type/remotePlannedRawStatus.type.js.map +1 -0
- package/lib/type/remoteRawSlug.type.d.ts +2 -1
- package/lib/type/remoteRawSlug.type.js.map +1 -0
- package/lib/type/remoteRawStatus.type.js.map +1 -0
- package/lib/type/remoteServerPcEuRawSlug.type.d.ts +1 -1
- package/lib/type/remoteServerPcEuRawSlug.type.js.map +1 -0
- package/lib/type/remoteServerPcNaRawSlug.type.d.ts +1 -1
- package/lib/type/remoteServerPcNaRawSlug.type.js.map +1 -0
- package/lib/type/remoteServerPcPtsRawSlug.type.js.map +1 -0
- package/lib/type/remoteServerPsEuRawSlug.type.d.ts +1 -1
- package/lib/type/remoteServerPsEuRawSlug.type.js.map +1 -0
- package/lib/type/remoteServerPsNaRawSlug.type.d.ts +1 -1
- package/lib/type/remoteServerPsNaRawSlug.type.js.map +1 -0
- package/lib/type/remoteServerXboxEuRawSlug.type.d.ts +1 -1
- package/lib/type/remoteServerXboxEuRawSlug.type.js.map +1 -0
- package/lib/type/remoteServerXboxNaRawSlug.type.d.ts +1 -1
- package/lib/type/remoteServerXboxNaRawSlug.type.js.map +1 -0
- package/lib/type/remoteServiceStoreEsoRawSlug.type.d.ts +1 -1
- package/lib/type/remoteServiceStoreEsoRawSlug.type.js.map +1 -0
- package/lib/type/remoteServiceSystemAccountRawSlug.type.d.ts +1 -1
- package/lib/type/remoteServiceSystemAccountRawSlug.type.js.map +1 -0
- package/lib/type/remoteServiceWebSiteRawSlug.type.d.ts +1 -1
- package/lib/type/remoteServiceWebSiteRawSlug.type.js.map +1 -0
- package/lib/type/remoteUpRawStatus.type.js.map +1 -0
- package/lib/type/sourceUrl.type.d.ts +3 -1
- package/lib/type/sourceUrl.type.js.map +1 -0
- package/lib/type/sourceUrlForumMessage.type.d.ts +1 -0
- package/lib/type/sourceUrlForumMessage.type.js +3 -0
- package/lib/type/sourceUrlForumMessage.type.js.map +1 -0
- package/lib/type/sourceUrlForumMessagePts.type.d.ts +1 -0
- package/lib/type/sourceUrlForumMessagePts.type.js +3 -0
- package/lib/type/sourceUrlForumMessagePts.type.js.map +1 -0
- package/package.json +15 -89
- package/lib/const.d.ts +0 -9
- package/lib/const.js +0 -12
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remoteServiceWebSiteRawSlug.type.js","sourceRoot":"","sources":["../../src/type/remoteServiceWebSiteRawSlug.type.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remoteUpRawStatus.type.js","sourceRoot":"","sources":["../../src/type/remoteUpRawStatus.type.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { SourceUrlForumMessageType } from './sourceUrlForumMessage.type';
|
|
2
|
+
import { SourceUrlForumMessagePtsType } from './sourceUrlForumMessagePts.type';
|
|
1
3
|
/**
|
|
2
4
|
* Different URLs serving as sources for retrieving maintenance announcements
|
|
3
5
|
*/
|
|
4
|
-
export type SourceUrl =
|
|
6
|
+
export type SourceUrl = SourceUrlForumMessageType | SourceUrlForumMessagePtsType;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sourceUrl.type.js","sourceRoot":"","sources":["../../src/type/sourceUrl.type.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type SourceUrlForumMessageType = 'https://forums.elderscrollsonline.com';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sourceUrlForumMessage.type.js","sourceRoot":"","sources":["../../src/type/sourceUrlForumMessage.type.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type SourceUrlForumMessagePtsType = 'https://forums.elderscrollsonline.com/en/categories/pts';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sourceUrlForumMessagePts.type.js","sourceRoot":"","sources":["../../src/type/sourceUrlForumMessagePts.type.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,64 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eso-status/forum-message",
|
|
3
|
-
"version": "2.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.25",
|
|
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@gmail.com> (https://dov118.dev)",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"engineStrict": true,
|
|
9
9
|
"files": [
|
|
10
|
-
"lib/
|
|
11
|
-
"lib/formatter/date.formatter.js",
|
|
12
|
-
"lib/identifier/slug.identifier.d.ts",
|
|
13
|
-
"lib/identifier/slug.identifier.js",
|
|
14
|
-
"lib/identifier/slug.match.d.ts",
|
|
15
|
-
"lib/identifier/slug.match.js",
|
|
16
|
-
"lib/identifier/status.identifier.d.ts",
|
|
17
|
-
"lib/identifier/status.identifier.js",
|
|
18
|
-
"lib/type/messageType.type.d.ts",
|
|
19
|
-
"lib/type/messageType.type.js",
|
|
20
|
-
"lib/type/remoteDownRawStatus.type.d.ts",
|
|
21
|
-
"lib/type/remoteDownRawStatus.type.js",
|
|
22
|
-
"lib/type/remoteIssuesRawStatus.type.d.ts",
|
|
23
|
-
"lib/type/remoteIssuesRawStatus.type.js",
|
|
24
|
-
"lib/type/remotePlannedRawStatus.type.d.ts",
|
|
25
|
-
"lib/type/remotePlannedRawStatus.type.js",
|
|
26
|
-
"lib/type/remoteRawSlug.type.d.ts",
|
|
27
|
-
"lib/type/remoteRawSlug.type.js",
|
|
28
|
-
"lib/type/remoteRawStatus.type.d.ts",
|
|
29
|
-
"lib/type/remoteRawStatus.type.js",
|
|
30
|
-
"lib/type/remoteServerPcEuRawSlug.type.d.ts",
|
|
31
|
-
"lib/type/remoteServerPcEuRawSlug.type.js",
|
|
32
|
-
"lib/type/remoteServerPcNaRawSlug.type.d.ts",
|
|
33
|
-
"lib/type/remoteServerPcNaRawSlug.type.js",
|
|
34
|
-
"lib/type/remoteServerPcPtsRawSlug.type.d.ts",
|
|
35
|
-
"lib/type/remoteServerPcPtsRawSlug.type.js",
|
|
36
|
-
"lib/type/remoteServerPsEuRawSlug.type.d.ts",
|
|
37
|
-
"lib/type/remoteServerPsEuRawSlug.type.js",
|
|
38
|
-
"lib/type/remoteServerPsNaRawSlug.type.d.ts",
|
|
39
|
-
"lib/type/remoteServerPsNaRawSlug.type.js",
|
|
40
|
-
"lib/type/remoteServerXboxEuRawSlug.type.d.ts",
|
|
41
|
-
"lib/type/remoteServerXboxEuRawSlug.type.js",
|
|
42
|
-
"lib/type/remoteServerXboxNaRawSlug.type.d.ts",
|
|
43
|
-
"lib/type/remoteServerXboxNaRawSlug.type.js",
|
|
44
|
-
"lib/type/remoteServiceStoreEsoRawSlug.type.d.ts",
|
|
45
|
-
"lib/type/remoteServiceStoreEsoRawSlug.type.js",
|
|
46
|
-
"lib/type/remoteServiceSystemAccountRawSlug.type.d.ts",
|
|
47
|
-
"lib/type/remoteServiceSystemAccountRawSlug.type.js",
|
|
48
|
-
"lib/type/remoteServiceWebSiteRawSlug.type.d.ts",
|
|
49
|
-
"lib/type/remoteServiceWebSiteRawSlug.type.js",
|
|
50
|
-
"lib/type/remoteUpRawStatus.type.d.ts",
|
|
51
|
-
"lib/type/remoteUpRawStatus.type.js",
|
|
52
|
-
"lib/type/sourceUrl.type.d.ts",
|
|
53
|
-
"lib/type/sourceUrl.type.js",
|
|
54
|
-
"lib/connector.d.ts",
|
|
55
|
-
"lib/connector.js",
|
|
56
|
-
"lib/const.d.ts",
|
|
57
|
-
"lib/const.js",
|
|
58
|
-
"lib/index.d.ts",
|
|
59
|
-
"lib/index.js",
|
|
60
|
-
"lib/raw.d.ts",
|
|
61
|
-
"lib/raw.js",
|
|
10
|
+
"lib/",
|
|
62
11
|
".npmrc,",
|
|
63
12
|
"LICENSE.md",
|
|
64
13
|
"package.json",
|
|
@@ -82,16 +31,11 @@
|
|
|
82
31
|
"build": "rm -R -f lib/* && tsc --project tsconfig.build.json",
|
|
83
32
|
"dev": "npm run build && node .",
|
|
84
33
|
"watch": "nodemon --exec npm run dev",
|
|
85
|
-
"test": "npm run build && jest --runInBand",
|
|
86
|
-
"test:watch": "jest --runInBand --watch",
|
|
87
|
-
"test:cov": "jest --runInBand --coverage",
|
|
34
|
+
"test": "npm run build && jest --config jest.config.ts --runInBand",
|
|
35
|
+
"test:watch": "jest --config jest.config.ts --runInBand --watch",
|
|
36
|
+
"test:cov": "jest --config jest.config.ts --runInBand --coverage",
|
|
88
37
|
"prepare": "husky"
|
|
89
38
|
},
|
|
90
|
-
"dependencies": {
|
|
91
|
-
"@eso-status/types": "2.0.0-dev.19",
|
|
92
|
-
"axios": "1.13.6",
|
|
93
|
-
"moment": "2.30.1"
|
|
94
|
-
},
|
|
95
39
|
"lint-staged": {
|
|
96
40
|
"*.ts": [
|
|
97
41
|
"eslint --fix",
|
|
@@ -101,12 +45,17 @@
|
|
|
101
45
|
"prettier --write"
|
|
102
46
|
]
|
|
103
47
|
},
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"@eso-status/types": "2.0.0-dev.21",
|
|
50
|
+
"axios": "1.14.0",
|
|
51
|
+
"moment": "2.30.1"
|
|
52
|
+
},
|
|
104
53
|
"devDependencies": {
|
|
105
54
|
"@eslint/js": "10.0.1",
|
|
106
55
|
"@types/jest": "30.0.0",
|
|
107
|
-
"eslint": "10.0
|
|
56
|
+
"eslint": "10.2.0",
|
|
108
57
|
"eslint-config-prettier": "10.1.8",
|
|
109
|
-
"eslint-plugin-jest": "29.15.
|
|
58
|
+
"eslint-plugin-jest": "29.15.1",
|
|
110
59
|
"eslint-plugin-sonarjs": "4.0.2",
|
|
111
60
|
"eslint-plugin-unused-imports": "4.4.1",
|
|
112
61
|
"globals": "17.4.0",
|
|
@@ -115,32 +64,9 @@
|
|
|
115
64
|
"lint-staged": "16.4.0",
|
|
116
65
|
"nodemon": "3.1.14",
|
|
117
66
|
"prettier": "3.8.1",
|
|
118
|
-
"ts-jest": "29.4.
|
|
67
|
+
"ts-jest": "29.4.9",
|
|
68
|
+
"ts-node": "10.9.2",
|
|
119
69
|
"typescript": "5.9.3",
|
|
120
|
-
"typescript-eslint": "8.
|
|
121
|
-
},
|
|
122
|
-
"jest": {
|
|
123
|
-
"moduleFileExtensions": [
|
|
124
|
-
"js",
|
|
125
|
-
"json",
|
|
126
|
-
"ts"
|
|
127
|
-
],
|
|
128
|
-
"rootDir": "./",
|
|
129
|
-
"testRegex": ".*\\.e2e-spec\\.ts|.*\\.spec\\.ts$",
|
|
130
|
-
"transform": {
|
|
131
|
-
"^.+\\.ts$": "ts-jest"
|
|
132
|
-
},
|
|
133
|
-
"collectCoverageFrom": [
|
|
134
|
-
"src/**/*.ts"
|
|
135
|
-
],
|
|
136
|
-
"coverageDirectory": "./coverage",
|
|
137
|
-
"testEnvironment": "node",
|
|
138
|
-
"moduleDirectories": [
|
|
139
|
-
"node_modules",
|
|
140
|
-
"src"
|
|
141
|
-
],
|
|
142
|
-
"modulePaths": [
|
|
143
|
-
"<rootDir>"
|
|
144
|
-
]
|
|
70
|
+
"typescript-eslint": "8.58.0"
|
|
145
71
|
}
|
|
146
72
|
}
|
package/lib/const.d.ts
DELETED
package/lib/const.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ForumMessagePTSURL = exports.ForumMessageURL = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Homepage URL
|
|
6
|
-
*/
|
|
7
|
-
exports.ForumMessageURL = 'https://forums.elderscrollsonline.com';
|
|
8
|
-
/**
|
|
9
|
-
* PTS category homepage URL
|
|
10
|
-
*/
|
|
11
|
-
exports.ForumMessagePTSURL = 'https://forums.elderscrollsonline.com/en/categories/pts';
|
|
12
|
-
//# sourceMappingURL=const.js.map
|