@wfcd/profile-parser 2.0.12 → 2.0.13
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/Ability-DcXcbtcE.d.mts +19 -0
- package/dist/Ability.d.mts +1 -18
- package/dist/Ability.mjs +1 -2
- package/dist/ArchonCrystal.mjs +1 -3
- package/dist/ChallengeProgress-BrxgSqf4.d.mts +20 -0
- package/dist/ChallengeProgress.d.mts +1 -19
- package/dist/ChallengeProgress.mjs +1 -2
- package/dist/Enemy-Das_tHF5.d.mts +44 -0
- package/dist/Enemy.d.mts +1 -43
- package/dist/Enemy.mjs +1 -2
- package/dist/Intrinsics-BhwKpPoY.d.mts +67 -0
- package/dist/Intrinsics.d.mts +1 -66
- package/dist/Intrinsics.mjs +1 -2
- package/dist/ItemConfig-C81QdCpU.d.mts +51 -0
- package/dist/ItemConfig.d.mts +1 -50
- package/dist/ItemConfig.mjs +1 -3
- package/dist/LoadOutInventory-BrtoOtNr.d.mts +53 -0
- package/dist/LoadOutInventory.d.mts +1 -52
- package/dist/LoadOutInventory.mjs +1 -3
- package/dist/LoadOutItem-Cd_qovNn.d.mts +120 -0
- package/dist/LoadOutItem.d.mts +1 -119
- package/dist/LoadOutItem.mjs +1 -3
- package/dist/LoadOutPreset-CUV29lLL.d.mts +83 -0
- package/dist/LoadOutPreset.d.mts +1 -82
- package/dist/LoadOutPreset.mjs +1 -3
- package/dist/Mission-C7zlZ4eq.d.mts +53 -0
- package/dist/Mission.d.mts +1 -52
- package/dist/Mission.mjs +1 -3
- package/dist/OperatorLoadOuts-DvlpRvD1.d.mts +81 -0
- package/dist/OperatorLoadOuts.d.mts +1 -80
- package/dist/OperatorLoadOuts.mjs +1 -3
- package/dist/Polarity-BWadoIXU.d.mts +26 -0
- package/dist/Polarity.d.mts +1 -25
- package/dist/Polarity.mjs +1 -3
- package/dist/Profile.d.mts +8 -8
- package/dist/Profile.mjs +1 -3
- package/dist/ProfileParser.d.mts +1 -1
- package/dist/ProfileParser.mjs +1 -3
- package/dist/Pvp-D0lygyP6.d.mts +36 -0
- package/dist/Pvp.d.mts +1 -35
- package/dist/Pvp.mjs +1 -2
- package/dist/Race-PxkzCRsy.d.mts +32 -0
- package/dist/Race.d.mts +1 -31
- package/dist/Race.mjs +1 -2
- package/dist/Scan-Cj6jCTNg.d.mts +27 -0
- package/dist/Scan.d.mts +1 -26
- package/dist/Scan.mjs +1 -2
- package/dist/Skin-CpQ4dzEs.d.mts +28 -0
- package/dist/Skin.d.mts +1 -27
- package/dist/Skin.mjs +1 -3
- package/dist/Stats.d.mts +7 -7
- package/dist/Stats.mjs +1 -3
- package/dist/Syndicate-BwHRq-Iw.d.mts +33 -0
- package/dist/Syndicate.d.mts +1 -32
- package/dist/Syndicate.mjs +1 -3
- package/dist/Utils-xGSP1zu-.d.mts +36 -0
- package/dist/Utils.d.mts +1 -35
- package/dist/Utils.mjs +1 -3
- package/dist/Weapon-DUlgoPHD.d.mts +32 -0
- package/dist/Weapon.d.mts +1 -31
- package/dist/Weapon.mjs +1 -2
- package/dist/XpInfo-C1pzVAdK.d.mts +34 -0
- package/dist/XpInfo.d.mts +1 -33
- package/dist/XpInfo.mjs +1 -3
- package/package.json +6 -6
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { WorldStateDate } from "warframe-worldstate-data/utilities";
|
|
2
|
+
import { Item, RawColors } from "@wfcd/items";
|
|
3
|
+
|
|
4
|
+
//#region src/Utils.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* interface for DE's ID data
|
|
7
|
+
*/
|
|
8
|
+
interface RawId {
|
|
9
|
+
$oid: string;
|
|
10
|
+
}
|
|
11
|
+
type RawDate = WorldStateDate;
|
|
12
|
+
interface ProfileRawColors {
|
|
13
|
+
t0?: number;
|
|
14
|
+
t1?: number;
|
|
15
|
+
t2?: number;
|
|
16
|
+
t3?: number;
|
|
17
|
+
m0?: number;
|
|
18
|
+
m1?: number;
|
|
19
|
+
en?: number;
|
|
20
|
+
e1?: number;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Map base10 int colors to hex color strings
|
|
24
|
+
* @param colors color map
|
|
25
|
+
*/
|
|
26
|
+
declare const mapToHex: (colors: ProfileRawColors) => RawColors;
|
|
27
|
+
/**
|
|
28
|
+
* Find an item by Item#uniqueName
|
|
29
|
+
* @param {string} name string with which to query
|
|
30
|
+
* @param {string} locale locale to use for internationalization
|
|
31
|
+
* @returns {Item}
|
|
32
|
+
*/
|
|
33
|
+
declare const find: (name: string, locale?: string) => Item;
|
|
34
|
+
declare const numberToLetter: (num: number) => string;
|
|
35
|
+
//#endregion
|
|
36
|
+
export { mapToHex as a, find as i, RawDate as n, numberToLetter as o, RawId as r, ProfileRawColors as t };
|
package/dist/Utils.d.mts
CHANGED
|
@@ -1,36 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Item, RawColors } from "@wfcd/items";
|
|
3
|
-
|
|
4
|
-
//#region src/Utils.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* interface for DE's ID data
|
|
7
|
-
*/
|
|
8
|
-
interface RawId {
|
|
9
|
-
$oid: string;
|
|
10
|
-
}
|
|
11
|
-
type RawDate = WorldStateDate;
|
|
12
|
-
interface ProfileRawColors {
|
|
13
|
-
t0?: number;
|
|
14
|
-
t1?: number;
|
|
15
|
-
t2?: number;
|
|
16
|
-
t3?: number;
|
|
17
|
-
m0?: number;
|
|
18
|
-
m1?: number;
|
|
19
|
-
en?: number;
|
|
20
|
-
e1?: number;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Map base10 int colors to hex color strings
|
|
24
|
-
* @param colors color map
|
|
25
|
-
*/
|
|
26
|
-
declare const mapToHex: (colors: ProfileRawColors) => RawColors;
|
|
27
|
-
/**
|
|
28
|
-
* Find an item by Item#uniqueName
|
|
29
|
-
* @param {string} name string with which to query
|
|
30
|
-
* @param {string} locale locale to use for internationalization
|
|
31
|
-
* @returns {Item}
|
|
32
|
-
*/
|
|
33
|
-
declare const find: (name: string, locale?: string) => Item;
|
|
34
|
-
declare const numberToLetter: (num: number) => string;
|
|
35
|
-
//#endregion
|
|
1
|
+
import { a as mapToHex, i as find, n as RawDate, o as numberToLetter, r as RawId, t as ProfileRawColors } from "./Utils-xGSP1zu-.mjs";
|
|
36
2
|
export { ProfileRawColors, RawDate, RawId, find, mapToHex, numberToLetter };
|
package/dist/Utils.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import Items from "@wfcd/items";
|
|
2
|
-
|
|
3
2
|
//#region src/Utils.ts
|
|
4
3
|
/**
|
|
5
4
|
* Map base10 int colors to hex color strings
|
|
@@ -55,6 +54,5 @@ const find = (name, locale = "en") => {
|
|
|
55
54
|
return item;
|
|
56
55
|
};
|
|
57
56
|
const numberToLetter = (num) => String.fromCharCode(64 + (num + 1));
|
|
58
|
-
|
|
59
57
|
//#endregion
|
|
60
|
-
export { find, mapToHex, numberToLetter };
|
|
58
|
+
export { find, mapToHex, numberToLetter };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
//#region src/Weapon.d.ts
|
|
2
|
+
interface RawWeapon {
|
|
3
|
+
type: string;
|
|
4
|
+
xp: number;
|
|
5
|
+
equipTime: number;
|
|
6
|
+
headShots: number;
|
|
7
|
+
hits: number;
|
|
8
|
+
assists: number;
|
|
9
|
+
kills: number;
|
|
10
|
+
fired: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Represents a player's used weapon stats
|
|
14
|
+
* @module
|
|
15
|
+
*/
|
|
16
|
+
declare class Weapon {
|
|
17
|
+
uniqueName: string;
|
|
18
|
+
xp: number;
|
|
19
|
+
equipTime: number;
|
|
20
|
+
headShots: number;
|
|
21
|
+
hits: number;
|
|
22
|
+
assists: number;
|
|
23
|
+
kills: number;
|
|
24
|
+
fired: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @param weapon The weapon stats being parsed
|
|
28
|
+
*/
|
|
29
|
+
constructor(weapon: RawWeapon);
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
export { Weapon as n, RawWeapon as t };
|
package/dist/Weapon.d.mts
CHANGED
|
@@ -1,32 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
interface RawWeapon {
|
|
3
|
-
type: string;
|
|
4
|
-
xp: number;
|
|
5
|
-
equipTime: number;
|
|
6
|
-
headShots: number;
|
|
7
|
-
hits: number;
|
|
8
|
-
assists: number;
|
|
9
|
-
kills: number;
|
|
10
|
-
fired: number;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Represents a player's used weapon stats
|
|
14
|
-
* @module
|
|
15
|
-
*/
|
|
16
|
-
declare class Weapon {
|
|
17
|
-
uniqueName: string;
|
|
18
|
-
xp: number;
|
|
19
|
-
equipTime: number;
|
|
20
|
-
headShots: number;
|
|
21
|
-
hits: number;
|
|
22
|
-
assists: number;
|
|
23
|
-
kills: number;
|
|
24
|
-
fired: number;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @param weapon The weapon stats being parsed
|
|
28
|
-
*/
|
|
29
|
-
constructor(weapon: RawWeapon);
|
|
30
|
-
}
|
|
31
|
-
//#endregion
|
|
1
|
+
import { n as Weapon, t as RawWeapon } from "./Weapon-DUlgoPHD.mjs";
|
|
32
2
|
export { RawWeapon, Weapon as default };
|
package/dist/Weapon.mjs
CHANGED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Item } from "@wfcd/items";
|
|
2
|
+
|
|
3
|
+
//#region src/XpInfo.d.ts
|
|
4
|
+
interface RawXpItem {
|
|
5
|
+
ItemType: string;
|
|
6
|
+
XP: number;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* An item that has contributed to a player's mastery rank
|
|
10
|
+
* @module
|
|
11
|
+
*/
|
|
12
|
+
declare class XpInfo {
|
|
13
|
+
/**
|
|
14
|
+
* Unique name
|
|
15
|
+
*/
|
|
16
|
+
uniqueName: string;
|
|
17
|
+
/**
|
|
18
|
+
* XP earned
|
|
19
|
+
*/
|
|
20
|
+
xp: number;
|
|
21
|
+
/**
|
|
22
|
+
* The item corrosponding to the unique name.
|
|
23
|
+
*/
|
|
24
|
+
item?: Item;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @param info The info for a given ranked item
|
|
28
|
+
* @param locale langauge to return item in
|
|
29
|
+
* @param withItem Whether or not to include items
|
|
30
|
+
*/
|
|
31
|
+
constructor(info: RawXpItem, locale?: string, withItem?: boolean);
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
export { XpInfo as n, RawXpItem as t };
|
package/dist/XpInfo.d.mts
CHANGED
|
@@ -1,34 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/XpInfo.d.ts
|
|
4
|
-
interface RawXpItem {
|
|
5
|
-
ItemType: string;
|
|
6
|
-
XP: number;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* An item that has contributed to a player's mastery rank
|
|
10
|
-
* @module
|
|
11
|
-
*/
|
|
12
|
-
declare class XpInfo {
|
|
13
|
-
/**
|
|
14
|
-
* Unique name
|
|
15
|
-
*/
|
|
16
|
-
uniqueName: string;
|
|
17
|
-
/**
|
|
18
|
-
* XP earned
|
|
19
|
-
*/
|
|
20
|
-
xp: number;
|
|
21
|
-
/**
|
|
22
|
-
* The item corrosponding to the unique name.
|
|
23
|
-
*/
|
|
24
|
-
item?: Item;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @param info The info for a given ranked item
|
|
28
|
-
* @param locale langauge to return item in
|
|
29
|
-
* @param withItem Whether or not to include items
|
|
30
|
-
*/
|
|
31
|
-
constructor(info: RawXpItem, locale?: string, withItem?: boolean);
|
|
32
|
-
}
|
|
33
|
-
//#endregion
|
|
1
|
+
import { n as XpInfo, t as RawXpItem } from "./XpInfo-C1pzVAdK.mjs";
|
|
34
2
|
export { RawXpItem, XpInfo as default };
|
package/dist/XpInfo.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { find } from "./Utils.mjs";
|
|
2
|
-
|
|
3
2
|
//#region src/XpInfo.ts
|
|
4
3
|
/**
|
|
5
4
|
* An item that has contributed to a player's mastery rank
|
|
@@ -30,6 +29,5 @@ var XpInfo = class {
|
|
|
30
29
|
if (withItem) this.item = find(info.ItemType, locale);
|
|
31
30
|
}
|
|
32
31
|
};
|
|
33
|
-
|
|
34
32
|
//#endregion
|
|
35
|
-
export { XpInfo as default };
|
|
33
|
+
export { XpInfo as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wfcd/profile-parser",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.13",
|
|
4
4
|
"description": "Parser for Digital Extreme's profile data",
|
|
5
5
|
"repository": "https://github.com/WFCD/profile-parser",
|
|
6
6
|
"type": "module",
|
|
@@ -30,22 +30,22 @@
|
|
|
30
30
|
"types"
|
|
31
31
|
],
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@biomejs/biome": "2.4.
|
|
33
|
+
"@biomejs/biome": "2.4.16",
|
|
34
34
|
"@types/chai": "^5.2.3",
|
|
35
35
|
"@types/mocha": "^10.0.10",
|
|
36
36
|
"c8": "^11.0.0",
|
|
37
37
|
"chai": "^6.2.2",
|
|
38
38
|
"chai-json-equal": "^0.0.1",
|
|
39
39
|
"husky": "^9.1.7",
|
|
40
|
-
"lint-staged": "^
|
|
40
|
+
"lint-staged": "^17.0.2",
|
|
41
41
|
"mocha": "^11.7.5",
|
|
42
|
-
"tsdown": "^0.
|
|
42
|
+
"tsdown": "^0.22.0",
|
|
43
43
|
"tsx": "^4.21.0",
|
|
44
|
-
"typescript": "^
|
|
44
|
+
"typescript": "^6.0.2"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"build": "tsdown",
|
|
48
|
-
"build:docs": "
|
|
48
|
+
"build:docs": "typedoc",
|
|
49
49
|
"coverage": "npm test && c8 report --reporter=text-lcov | npx -y -p coveralls coveralls",
|
|
50
50
|
"lint": "biome check",
|
|
51
51
|
"lint:fix": "biome check --write",
|