@eso-status/service-alerts 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,6 +31,7 @@ npm i @eso-status/service-alerts
31
31
  ### Usage
32
32
  ```javascript
33
33
  import ServiceAlerts from '@eso-status/service-alerts';
34
+ import { EsoStatusRawData } from '@eso-status/types';
34
35
 
35
36
  const esoStatusRawDataList: EsoStatusRawData[] = await ServiceAlerts.getData();
36
37
  ```
package/lib/connector.js CHANGED
@@ -55,7 +55,7 @@ class Connector {
55
55
  */
56
56
  isolate() {
57
57
  return this.remoteContent
58
- .split('<!-- ENTER ESO SERVICE ALERTS BELOW THIS LINE -->')[1]
58
+ .split('<h1>ESO Service Alerts</h1>')[1]
59
59
  .split('</div>')
60
60
  .shift();
61
61
  }
@@ -77,6 +77,7 @@ class Connector {
77
77
  clean() {
78
78
  this.raw = this.raw.map((raw) => {
79
79
  return raw
80
+ .replaceAll('<!-- ENTER ESO SERVICE ALERTS BELOW THIS LINE -->', '')
80
81
  .replaceAll(/\n/g, '')
81
82
  .replaceAll(' </p><p>', '</p><p>')
82
83
  .replaceAll(' <p>', '<p>')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eso-status/service-alerts",
3
- "version": "2.0.0-dev.0",
3
+ "version": "2.0.0-dev.1",
4
4
  "description": "Library for retrieving and formatting data, available at https://help.elderscrollsonline.com/app/answers/detail/a_id/4320.",
5
5
  "author": "@dov118 <contact@dov118.dev> (https://dov118.dev)",
6
6
  "main": "lib/index.js",