worldstate-emitter 2.1.2 → 2.1.3
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/handlers/Worldstate.js +3 -3
- package/package.json +7 -2
package/handlers/Worldstate.js
CHANGED
|
@@ -30,7 +30,7 @@ export default class Worldstate {
|
|
|
30
30
|
constructor(eventEmitter, locale) {
|
|
31
31
|
this.#emitter = eventEmitter;
|
|
32
32
|
this.#locale = locale;
|
|
33
|
-
logger.
|
|
33
|
+
logger.debug('starting up worldstate listener...');
|
|
34
34
|
if (locale) {
|
|
35
35
|
logger.debug(`only listening for ${locale}...`);
|
|
36
36
|
}
|
|
@@ -134,7 +134,7 @@ export default class Worldstate {
|
|
|
134
134
|
emit(id, packet) {
|
|
135
135
|
if (debugEvents.includes(packet.key)) logger.warn(packet.key);
|
|
136
136
|
|
|
137
|
-
logger.
|
|
137
|
+
logger.debug(`ws:update:event - emitting ${packet.id}`);
|
|
138
138
|
delete packet.cycleStart;
|
|
139
139
|
this.#emitter.emit(id, packet);
|
|
140
140
|
}
|
|
@@ -146,7 +146,7 @@ export default class Worldstate {
|
|
|
146
146
|
* @throws {Error} when the platform or locale aren't tracked and aren't updated
|
|
147
147
|
*/
|
|
148
148
|
get(language = 'en') {
|
|
149
|
-
logger.
|
|
149
|
+
logger.debug(`getting worldstate ${language}...`);
|
|
150
150
|
if (this.#worldStates?.[language]) {
|
|
151
151
|
return this.#worldStates?.[language]?.data;
|
|
152
152
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "worldstate-emitter",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.3",
|
|
4
4
|
"description": "Event emitter for worldstate & other warframe events",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"warframe",
|
|
@@ -42,7 +42,12 @@
|
|
|
42
42
|
"commitlint": {
|
|
43
43
|
"extends": [
|
|
44
44
|
"@commitlint/config-conventional"
|
|
45
|
-
]
|
|
45
|
+
],
|
|
46
|
+
"rules": {
|
|
47
|
+
"body-max-line-length": [
|
|
48
|
+
0
|
|
49
|
+
]
|
|
50
|
+
}
|
|
46
51
|
},
|
|
47
52
|
"lint-staged": {
|
|
48
53
|
"*.js": [
|