worldstate-emitter 2.2.4 → 2.2.6
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/.nvmrc +1 -1
- package/handlers/Worldstate.js +4 -3
- package/package.json +7 -7
- package/resources/config.js +3 -0
package/.nvmrc
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
lts/jod
|
|
1
|
+
lts/jod
|
package/handlers/Worldstate.js
CHANGED
|
@@ -3,6 +3,7 @@ import wsData from 'warframe-worldstate-data';
|
|
|
3
3
|
import WSCache from '../utilities/WSCache.js';
|
|
4
4
|
import { logger, lastUpdated } from '../utilities/index.js';
|
|
5
5
|
import Cache from '../utilities/Cache.js';
|
|
6
|
+
import { SENTIENT_URL, KUVA_URL, WORLDSTATE_URL } from '../resources/config.js';
|
|
6
7
|
|
|
7
8
|
import parseNew from './events/parse.js';
|
|
8
9
|
|
|
@@ -37,9 +38,9 @@ export default class Worldstate {
|
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
async init() {
|
|
40
|
-
this.#wsRawCache = await Cache.make(
|
|
41
|
-
this.#kuvaCache = await Cache.make(
|
|
42
|
-
this.#sentientCache = await Cache.make(
|
|
41
|
+
this.#wsRawCache = await Cache.make(WORLDSTATE_URL, '*/10 * * * * *');
|
|
42
|
+
this.#kuvaCache = await Cache.make(KUVA_URL, smCron);
|
|
43
|
+
this.#sentientCache = await Cache.make(SENTIENT_URL, smCron);
|
|
43
44
|
|
|
44
45
|
await this.setUpRawEmitters();
|
|
45
46
|
this.setupParsedEvents();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "worldstate-emitter",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.6",
|
|
4
4
|
"description": "Event emitter for worldstate & other warframe events",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"warframe",
|
|
@@ -12,10 +12,7 @@
|
|
|
12
12
|
"bugs": {
|
|
13
13
|
"url": "https://github.com/wfcd/worldstate-emitter/issues"
|
|
14
14
|
},
|
|
15
|
-
"repository":
|
|
16
|
-
"type": "git",
|
|
17
|
-
"url": "git+https://github.com/wfcd/worldstate-emitter.git"
|
|
18
|
-
},
|
|
15
|
+
"repository": "https://github.com/WFCD/worldstate-emitter",
|
|
19
16
|
"license": "Apache-2.0",
|
|
20
17
|
"author": "tobiah <tobiah@protonmail.com>",
|
|
21
18
|
"type": "module",
|
|
@@ -43,8 +40,8 @@
|
|
|
43
40
|
"twitter": "^1.7.1"
|
|
44
41
|
},
|
|
45
42
|
"devDependencies": {
|
|
46
|
-
"@commitlint/cli": "^
|
|
47
|
-
"@commitlint/config-conventional": "^
|
|
43
|
+
"@commitlint/cli": "^20.0.0",
|
|
44
|
+
"@commitlint/config-conventional": "^20.0.0",
|
|
48
45
|
"@wfcd/eslint-config": "latest",
|
|
49
46
|
"c8": "^10.1.3",
|
|
50
47
|
"chai": "^6.0.1",
|
|
@@ -64,5 +61,8 @@
|
|
|
64
61
|
},
|
|
65
62
|
"engines": {
|
|
66
63
|
"node": ">= 18.19.0"
|
|
64
|
+
},
|
|
65
|
+
"publishConfig": {
|
|
66
|
+
"provenance": true
|
|
67
67
|
}
|
|
68
68
|
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export const WORLDSTATE_URL = process.env.WORLDSTATE_URL ?? 'https://api.warframe.com/cdn/worldState.php';
|
|
2
|
+
export const KUVA_URL = process.env.KUVA_URL ?? 'https://10o.io/arbitrations.json';
|
|
3
|
+
export const SENTIENT_URL = process.env.SENTIENT_URL ?? 'https://semlar.com/anomaly.json';
|