worldstate-emitter 2.4.3 → 2.4.5
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/dist/{index.d.mts → index.d.cts} +1 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.js +10 -8
- package/dist/index.mjs +3 -2
- package/package.json +9 -8
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -21,17 +21,19 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
21
21
|
}) : target, mod));
|
|
22
22
|
//#endregion
|
|
23
23
|
let node_events = require("node:events");
|
|
24
|
-
node_events = __toESM(node_events);
|
|
24
|
+
node_events = __toESM(node_events, 1);
|
|
25
25
|
let rss_feed_emitter = require("rss-feed-emitter");
|
|
26
|
-
rss_feed_emitter = __toESM(rss_feed_emitter);
|
|
26
|
+
rss_feed_emitter = __toESM(rss_feed_emitter, 1);
|
|
27
27
|
let sanitize_html = require("sanitize-html");
|
|
28
|
-
sanitize_html = __toESM(sanitize_html);
|
|
28
|
+
sanitize_html = __toESM(sanitize_html, 1);
|
|
29
29
|
let winston = require("winston");
|
|
30
30
|
let twitter = require("twitter");
|
|
31
|
-
twitter = __toESM(twitter);
|
|
31
|
+
twitter = __toESM(twitter, 1);
|
|
32
32
|
let warframe_worldstate_data = require("warframe-worldstate-data");
|
|
33
|
-
warframe_worldstate_data = __toESM(warframe_worldstate_data);
|
|
33
|
+
warframe_worldstate_data = __toESM(warframe_worldstate_data, 1);
|
|
34
34
|
let cron = require("cron");
|
|
35
|
+
let warframe_worldstate_parser = require("warframe-worldstate-parser");
|
|
36
|
+
warframe_worldstate_parser = __toESM(warframe_worldstate_parser, 1);
|
|
35
37
|
//#region resources/rssFeeds.json
|
|
36
38
|
var rssFeeds_default = [
|
|
37
39
|
{
|
|
@@ -1028,8 +1030,8 @@ var WSCache = class {
|
|
|
1028
1030
|
#update = async (newData) => {
|
|
1029
1031
|
const deps = {
|
|
1030
1032
|
locale: this.#language,
|
|
1031
|
-
kuvaData:
|
|
1032
|
-
sentientData:
|
|
1033
|
+
kuvaData: [],
|
|
1034
|
+
sentientData: void 0
|
|
1033
1035
|
};
|
|
1034
1036
|
try {
|
|
1035
1037
|
const kuvaRaw = await this.#kuvaCache.get();
|
|
@@ -1045,7 +1047,7 @@ var WSCache = class {
|
|
|
1045
1047
|
}
|
|
1046
1048
|
let t;
|
|
1047
1049
|
try {
|
|
1048
|
-
t = await
|
|
1050
|
+
t = await warframe_worldstate_parser.default.build(newData, deps);
|
|
1049
1051
|
if (!t?.timestamp) return;
|
|
1050
1052
|
} catch (err) {
|
|
1051
1053
|
this.#logger.warn(`Error parsing worldstate data for ${this.#language}: ${err}`);
|
package/dist/index.mjs
CHANGED
|
@@ -5,6 +5,7 @@ import { createLogger, format, transports } from "winston";
|
|
|
5
5
|
import Twitter from "twitter";
|
|
6
6
|
import wsData from "warframe-worldstate-data";
|
|
7
7
|
import { CronJob } from "cron";
|
|
8
|
+
import WorldState from "warframe-worldstate-parser";
|
|
8
9
|
//#region resources/rssFeeds.json
|
|
9
10
|
var rssFeeds_default = [
|
|
10
11
|
{
|
|
@@ -1001,8 +1002,8 @@ var WSCache = class {
|
|
|
1001
1002
|
#update = async (newData) => {
|
|
1002
1003
|
const deps = {
|
|
1003
1004
|
locale: this.#language,
|
|
1004
|
-
kuvaData:
|
|
1005
|
-
sentientData:
|
|
1005
|
+
kuvaData: [],
|
|
1006
|
+
sentientData: void 0
|
|
1006
1007
|
};
|
|
1007
1008
|
try {
|
|
1008
1009
|
const kuvaRaw = await this.#kuvaCache.get();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "worldstate-emitter",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.5",
|
|
4
4
|
"description": "Event emitter for Warframe worldstate & other events - TypeScript support included",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"warframe",
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@biomejs/biome": "^2.3.14",
|
|
65
|
-
"@commitlint/cli": "^
|
|
66
|
-
"@commitlint/config-conventional": "^
|
|
65
|
+
"@commitlint/cli": "^21.0.0",
|
|
66
|
+
"@commitlint/config-conventional": "^21.0.0",
|
|
67
67
|
"@types/chai": "^5.2.3",
|
|
68
68
|
"@types/mocha": "^10.0.10",
|
|
69
69
|
"@types/node": "^25.2.2",
|
|
@@ -73,18 +73,19 @@
|
|
|
73
73
|
"c8": "^11.0.0",
|
|
74
74
|
"chai": "^6.2.2",
|
|
75
75
|
"husky": "^9.1.7",
|
|
76
|
-
"lint-staged": "^
|
|
76
|
+
"lint-staged": "^17.0.3",
|
|
77
77
|
"mocha": "^11.7.5",
|
|
78
78
|
"nodemon": "^3.1.11",
|
|
79
|
-
"
|
|
80
|
-
"
|
|
79
|
+
"reflect-metadata": "^0.2.2",
|
|
80
|
+
"sinon": "^22.0.0",
|
|
81
|
+
"tsdown": "^0.22.0",
|
|
81
82
|
"tsx": "^4.21.0",
|
|
82
83
|
"typedoc": "^0.28.16",
|
|
83
|
-
"typescript": "^
|
|
84
|
+
"typescript": "^6.0.2"
|
|
84
85
|
},
|
|
85
86
|
"peerDependencies": {
|
|
86
87
|
"warframe-worldstate-data": "^3.x",
|
|
87
|
-
"warframe-worldstate-parser": "^5.
|
|
88
|
+
"warframe-worldstate-parser": "^5.3.9",
|
|
88
89
|
"winston": "^3.19.0"
|
|
89
90
|
},
|
|
90
91
|
"engines": {
|