@axiapps/gw2-data 0.1.2 → 0.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/package.json +2 -1
- package/src/index.js +5 -0
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axiapps/gw2-data",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "GW2 data library — wiki-sourced facts, GW2 API structural data, and stat computation",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": "./src/index.js",
|
|
8
8
|
"./wiki": "./src/wiki/client.js",
|
|
9
|
+
"./wiki/resolver": "./src/wiki/resolver.js",
|
|
9
10
|
"./api": "./src/api/client.js",
|
|
10
11
|
"./facts": "./src/facts/merge.js",
|
|
11
12
|
"./engine": "./src/engine/index.js"
|
package/src/index.js
CHANGED
|
@@ -9,6 +9,7 @@ const {
|
|
|
9
9
|
mapWikiFactToApiFact,
|
|
10
10
|
parseInfoboxParams,
|
|
11
11
|
} = require("./wiki/parser");
|
|
12
|
+
const { parseFactsByMode, groupFactsByMode } = require("./wiki/resolver");
|
|
12
13
|
const { parseRelatedItems, parseRelatedGroups } = require("./wiki/relations");
|
|
13
14
|
const { mergeFacts } = require("./facts/merge");
|
|
14
15
|
const { buildMatchTables, valueChanged, VALUE_KEYS } = require("./facts/match");
|
|
@@ -34,6 +35,10 @@ module.exports = {
|
|
|
34
35
|
mapWikiFactToApiFact,
|
|
35
36
|
parseInfoboxParams,
|
|
36
37
|
|
|
38
|
+
// Resolver (mode-split: PvE/WvW/PvP facts the GW2 API lacks)
|
|
39
|
+
parseFactsByMode,
|
|
40
|
+
groupFactsByMode,
|
|
41
|
+
|
|
37
42
|
// Relations
|
|
38
43
|
parseRelatedItems,
|
|
39
44
|
parseRelatedGroups,
|