@eso-status/forum-message 1.0.0 → 1.0.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.
|
@@ -101,7 +101,8 @@ var ForumMessageElement = /** @class */ (function () {
|
|
|
101
101
|
if (type === 'service') {
|
|
102
102
|
return rawData.includes('ESO Store')
|
|
103
103
|
|| rawData.includes('Account System')
|
|
104
|
-
|| rawData.includes('account system')
|
|
104
|
+
|| rawData.includes('account system')
|
|
105
|
+
|| rawData.includes('ESO Website');
|
|
105
106
|
}
|
|
106
107
|
return false;
|
|
107
108
|
};
|
|
@@ -130,7 +131,7 @@ var ForumMessageElement = /** @class */ (function () {
|
|
|
130
131
|
|| rawData.includes('the megaservers');
|
|
131
132
|
}
|
|
132
133
|
if (support === 'web') {
|
|
133
|
-
return
|
|
134
|
+
return rawData.includes('ESO Website');
|
|
134
135
|
}
|
|
135
136
|
if (support === 'store') { // OK
|
|
136
137
|
return rawData.includes('Crown Store')
|
|
@@ -172,7 +173,7 @@ var ForumMessageElement = /** @class */ (function () {
|
|
|
172
173
|
return rawData.includes('PTS');
|
|
173
174
|
}
|
|
174
175
|
if (zone === 'site') {
|
|
175
|
-
return
|
|
176
|
+
return rawData.includes('ESO Website');
|
|
176
177
|
}
|
|
177
178
|
if (zone === 'forum') {
|
|
178
179
|
return false;
|
|
@@ -261,7 +262,7 @@ var ForumMessageElement = /** @class */ (function () {
|
|
|
261
262
|
.utcOffset(0));
|
|
262
263
|
}
|
|
263
264
|
else {
|
|
264
|
-
var dateTime = /([a-zA-Z]{3,9}) ([0-9]{1,2}), [0-9]{1,2}:[0-9]{1,2}[a-zA-Z]{1,2}
|
|
265
|
+
var dateTime = /([a-zA-Z]{3,9}) ([0-9]{1,2}), [0-9]{1,2}:[0-9]{1,2}[a-zA-Z]{1,2} E[D|S]T \(([0-9]{1,2}):([0-9]{1,2}) UTC\) [–|-] [0-9]{1,2}:[0-9]{1,2}[a-zA-Z]{1,2} E[D|S]T \(([0-9]{1,2}):([0-9]{1,2}) UTC\)/.exec(rawDate);
|
|
265
266
|
var month = Number(moment().month(dateTime && dateTime.length >= 1 ? String(dateTime[1]) : '').format('M')) - 1;
|
|
266
267
|
var day = dateTime && dateTime.length >= 1 ? Number(dateTime[2]) : 0;
|
|
267
268
|
// getDateWithDayNumber
|
|
@@ -334,7 +335,7 @@ var ForumMessageElement = /** @class */ (function () {
|
|
|
334
335
|
* @return Status Status of raw data
|
|
335
336
|
*/
|
|
336
337
|
ForumMessageElement.getStatus = function (rawData) {
|
|
337
|
-
if (rawData.includes('unavailable') || rawData.includes('[IN PROGRESS]')) {
|
|
338
|
+
if (rawData.includes('unavailable') || rawData.includes('[IN PROGRESS]') || rawData.includes('[EXTENDED]')) {
|
|
338
339
|
return 'down';
|
|
339
340
|
}
|
|
340
341
|
if (rawData.includes('[COMPLETE]') || rawData.includes('is now available') || rawData.includes('are now available') || rawData.includes('maintenance is complete') || rawData.includes('resolved at this time') || rawData.includes('has been resolved') || rawData.includes('currently available.')) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eso-status/forum-message",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Library used to get servers status of The elders scrolls Online game with https://forums.elderscrollsonline.com/ and https://forums.elderscrollsonline.com/en/categories/pts",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|