warframe-worldstate-parser 4.5.0 → 4.5.2
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/lib/models/Kuva.js +2 -1
- package/lib/models/News.js +1 -1
- package/package.json +1 -1
package/lib/models/Kuva.js
CHANGED
|
@@ -61,7 +61,8 @@ const hash = (str) => createHash('sha256').update(str, 'utf8').digest('hex');
|
|
|
61
61
|
const parse = (data, locale) => {
|
|
62
62
|
const parsed = { kuva: [], arbitration: {} };
|
|
63
63
|
const now = new Date();
|
|
64
|
-
data
|
|
64
|
+
if (!data) return undefined;
|
|
65
|
+
data?.forEach?.((mission) => {
|
|
65
66
|
const p = {
|
|
66
67
|
activation: new Date(mission.start),
|
|
67
68
|
expiry: new Date(mission.end),
|
package/lib/models/News.js
CHANGED
|
@@ -5,7 +5,7 @@ import mdConfig from '../supporting/MarkdownSettings.js';
|
|
|
5
5
|
|
|
6
6
|
import WorldstateObject from './WorldstateObject.js';
|
|
7
7
|
|
|
8
|
-
const updateReg = /(update|hotfix)/i;
|
|
8
|
+
const updateReg = /(update|hotfix|patch-notes)/i;
|
|
9
9
|
const primeAccessReg = /(access)/i;
|
|
10
10
|
const streamReg = /(devstream|prime-time|warframeinternational|stream)/i;
|
|
11
11
|
const langString = /(\/Lotus\/Language\/)/i;
|