@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.
Files changed (114) hide show
  1. package/README.md +118 -112
  2. package/lib/connector.d.ts +40 -5
  3. package/lib/connector.js +93 -67
  4. package/lib/connector.js.map +1 -0
  5. package/lib/const/ForumMessagePtsUrl.const.d.ts +3 -0
  6. package/lib/const/ForumMessagePtsUrl.const.js +5 -0
  7. package/lib/const/ForumMessagePtsUrl.const.js.map +1 -0
  8. package/lib/const/ForumMessageUrl.const.d.ts +3 -0
  9. package/lib/const/ForumMessageUrl.const.js +5 -0
  10. package/lib/const/ForumMessageUrl.const.js.map +1 -0
  11. package/lib/formatter/date.formatter.js +10 -7
  12. package/lib/formatter/date.formatter.js.map +1 -0
  13. package/lib/identifier/slug.identifier.js +28 -48
  14. package/lib/identifier/slug.identifier.js.map +1 -0
  15. package/lib/identifier/slug.match.js.map +1 -0
  16. package/lib/identifier/status.identifier.js.map +1 -0
  17. package/lib/index.js +2 -2
  18. package/lib/index.js.map +1 -0
  19. package/lib/interface/esoStatusRawData.interface.d.ts +58 -0
  20. package/lib/interface/esoStatusRawData.interface.js +3 -0
  21. package/lib/interface/esoStatusRawData.interface.js.map +1 -0
  22. package/lib/pattern/content/forumMessagePtsReplace.pattern.d.ts +2 -0
  23. package/lib/pattern/content/forumMessagePtsReplace.pattern.js +7 -0
  24. package/lib/pattern/content/forumMessagePtsReplace.pattern.js.map +1 -0
  25. package/lib/pattern/content/forumMessageReplace.pattern.d.ts +2 -0
  26. package/lib/pattern/content/forumMessageReplace.pattern.js +14 -0
  27. package/lib/pattern/content/forumMessageReplace.pattern.js.map +1 -0
  28. package/lib/pattern/message/messageFilter.pattern.d.ts +2 -0
  29. package/lib/pattern/message/messageFilter.pattern.js +12 -0
  30. package/lib/pattern/message/messageFilter.pattern.js.map +1 -0
  31. package/lib/pattern/message/messageReplace.pattern.d.ts +2 -0
  32. package/lib/pattern/message/messageReplace.pattern.js +28 -0
  33. package/lib/pattern/message/messageReplace.pattern.js.map +1 -0
  34. package/lib/pattern/message/messageSanitize.pattern.d.ts +2 -0
  35. package/lib/pattern/message/messageSanitize.pattern.js +28 -0
  36. package/lib/pattern/message/messageSanitize.pattern.js.map +1 -0
  37. package/lib/pattern/slugIdentifier/serverPcEuSlugIdentifier.pattern.d.ts +6 -0
  38. package/lib/pattern/slugIdentifier/serverPcEuSlugIdentifier.pattern.js +20 -0
  39. package/lib/pattern/slugIdentifier/serverPcEuSlugIdentifier.pattern.js.map +1 -0
  40. package/lib/pattern/slugIdentifier/serverPcNaSlugIdentifier.pattern.d.ts +6 -0
  41. package/lib/pattern/slugIdentifier/serverPcNaSlugIdentifier.pattern.js +21 -0
  42. package/lib/pattern/slugIdentifier/serverPcNaSlugIdentifier.pattern.js.map +1 -0
  43. package/lib/pattern/slugIdentifier/serverPcPtsSlugIdentifier.pattern.d.ts +6 -0
  44. package/lib/pattern/slugIdentifier/serverPcPtsSlugIdentifier.pattern.js +5 -0
  45. package/lib/pattern/slugIdentifier/serverPcPtsSlugIdentifier.pattern.js.map +1 -0
  46. package/lib/pattern/slugIdentifier/serverPsEuSlugIdentifier.pattern.d.ts +6 -0
  47. package/lib/pattern/slugIdentifier/serverPsEuSlugIdentifier.pattern.js +19 -0
  48. package/lib/pattern/slugIdentifier/serverPsEuSlugIdentifier.pattern.js.map +1 -0
  49. package/lib/pattern/slugIdentifier/serverPsNaSlugIdentifier.pattern.d.ts +6 -0
  50. package/lib/pattern/slugIdentifier/serverPsNaSlugIdentifier.pattern.js +23 -0
  51. package/lib/pattern/slugIdentifier/serverPsNaSlugIdentifier.pattern.js.map +1 -0
  52. package/lib/pattern/slugIdentifier/serverXboxEuSlugIdentifier.pattern.d.ts +6 -0
  53. package/lib/pattern/slugIdentifier/serverXboxEuSlugIdentifier.pattern.js +17 -0
  54. package/lib/pattern/slugIdentifier/serverXboxEuSlugIdentifier.pattern.js.map +1 -0
  55. package/lib/pattern/slugIdentifier/serverXboxNaSlugIdentifier.pattern.d.ts +6 -0
  56. package/lib/pattern/slugIdentifier/serverXboxNaSlugIdentifier.pattern.js +16 -0
  57. package/lib/pattern/slugIdentifier/serverXboxNaSlugIdentifier.pattern.js.map +1 -0
  58. package/lib/pattern/slugIdentifier/serviceStoreEsoSlugIdentifier.pattern.d.ts +6 -0
  59. package/lib/pattern/slugIdentifier/serviceStoreEsoSlugIdentifier.pattern.js +5 -0
  60. package/lib/pattern/slugIdentifier/serviceStoreEsoSlugIdentifier.pattern.js.map +1 -0
  61. package/lib/pattern/slugIdentifier/serviceSystemAccountSlugIdentifier.pattern.d.ts +6 -0
  62. package/lib/pattern/slugIdentifier/serviceSystemAccountSlugIdentifier.pattern.js +5 -0
  63. package/lib/pattern/slugIdentifier/serviceSystemAccountSlugIdentifier.pattern.js.map +1 -0
  64. package/lib/pattern/slugIdentifier/serviceWebSiteSlugIdentifier.pattern.d.ts +6 -0
  65. package/lib/pattern/slugIdentifier/serviceWebSiteSlugIdentifier.pattern.js +5 -0
  66. package/lib/pattern/slugIdentifier/serviceWebSiteSlugIdentifier.pattern.js.map +1 -0
  67. package/lib/raw.d.ts +10 -0
  68. package/lib/raw.js +18 -0
  69. package/lib/raw.js.map +1 -0
  70. package/lib/tsconfig.build.tsbuildinfo +1 -0
  71. package/lib/type/matchesList.type.d.ts +4 -0
  72. package/lib/type/matchesList.type.js +3 -0
  73. package/lib/type/matchesList.type.js.map +1 -0
  74. package/lib/type/messagePattern.type.d.ts +1 -0
  75. package/lib/type/messagePattern.type.js +3 -0
  76. package/lib/type/messagePattern.type.js.map +1 -0
  77. package/lib/type/messageType.type.js.map +1 -0
  78. package/lib/type/remoteDownRawStatus.type.js.map +1 -0
  79. package/lib/type/remoteIssuesRawStatus.type.js.map +1 -0
  80. package/lib/type/remotePlannedRawStatus.type.js.map +1 -0
  81. package/lib/type/remoteRawSlug.type.d.ts +2 -1
  82. package/lib/type/remoteRawSlug.type.js.map +1 -0
  83. package/lib/type/remoteRawStatus.type.js.map +1 -0
  84. package/lib/type/remoteServerPcEuRawSlug.type.d.ts +1 -1
  85. package/lib/type/remoteServerPcEuRawSlug.type.js.map +1 -0
  86. package/lib/type/remoteServerPcNaRawSlug.type.d.ts +1 -1
  87. package/lib/type/remoteServerPcNaRawSlug.type.js.map +1 -0
  88. package/lib/type/remoteServerPcPtsRawSlug.type.js.map +1 -0
  89. package/lib/type/remoteServerPsEuRawSlug.type.d.ts +1 -1
  90. package/lib/type/remoteServerPsEuRawSlug.type.js.map +1 -0
  91. package/lib/type/remoteServerPsNaRawSlug.type.d.ts +1 -1
  92. package/lib/type/remoteServerPsNaRawSlug.type.js.map +1 -0
  93. package/lib/type/remoteServerXboxEuRawSlug.type.d.ts +1 -1
  94. package/lib/type/remoteServerXboxEuRawSlug.type.js.map +1 -0
  95. package/lib/type/remoteServerXboxNaRawSlug.type.d.ts +1 -1
  96. package/lib/type/remoteServerXboxNaRawSlug.type.js.map +1 -0
  97. package/lib/type/remoteServiceStoreEsoRawSlug.type.d.ts +1 -1
  98. package/lib/type/remoteServiceStoreEsoRawSlug.type.js.map +1 -0
  99. package/lib/type/remoteServiceSystemAccountRawSlug.type.d.ts +1 -1
  100. package/lib/type/remoteServiceSystemAccountRawSlug.type.js.map +1 -0
  101. package/lib/type/remoteServiceWebSiteRawSlug.type.d.ts +1 -1
  102. package/lib/type/remoteServiceWebSiteRawSlug.type.js.map +1 -0
  103. package/lib/type/remoteUpRawStatus.type.js.map +1 -0
  104. package/lib/type/sourceUrl.type.d.ts +3 -1
  105. package/lib/type/sourceUrl.type.js.map +1 -0
  106. package/lib/type/sourceUrlForumMessage.type.d.ts +1 -0
  107. package/lib/type/sourceUrlForumMessage.type.js +3 -0
  108. package/lib/type/sourceUrlForumMessage.type.js.map +1 -0
  109. package/lib/type/sourceUrlForumMessagePts.type.d.ts +1 -0
  110. package/lib/type/sourceUrlForumMessagePts.type.js +3 -0
  111. package/lib/type/sourceUrlForumMessagePts.type.js.map +1 -0
  112. package/package.json +15 -89
  113. package/lib/const.d.ts +0 -9
  114. package/lib/const.js +0 -12
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Different slugs of announcements concerning the website service
3
3
  */
4
- export type RemoteServiceWebSiteRawSlug = 'ESO Website for';
4
+ export type RemoteServiceWebSiteRawSlug = 'ESO Website';
@@ -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 = 'https://forums.elderscrollsonline.com' | 'https://forums.elderscrollsonline.com/en/categories/pts';
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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=sourceUrlForumMessage.type.js.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=sourceUrlForumMessagePts.type.js.map
@@ -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.23",
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/formatter/date.formatter.d.ts",
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.3",
56
+ "eslint": "10.2.0",
108
57
  "eslint-config-prettier": "10.1.8",
109
- "eslint-plugin-jest": "29.15.0",
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.6",
67
+ "ts-jest": "29.4.9",
68
+ "ts-node": "10.9.2",
119
69
  "typescript": "5.9.3",
120
- "typescript-eslint": "8.57.1"
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
@@ -1,9 +0,0 @@
1
- import { SourceUrl } from './type/sourceUrl.type';
2
- /**
3
- * Homepage URL
4
- */
5
- export declare const ForumMessageURL: SourceUrl;
6
- /**
7
- * PTS category homepage URL
8
- */
9
- export declare const ForumMessagePTSURL: SourceUrl;
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