@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.
Files changed (65) hide show
  1. package/dist/Ability-DcXcbtcE.d.mts +19 -0
  2. package/dist/Ability.d.mts +1 -18
  3. package/dist/Ability.mjs +1 -2
  4. package/dist/ArchonCrystal.mjs +1 -3
  5. package/dist/ChallengeProgress-BrxgSqf4.d.mts +20 -0
  6. package/dist/ChallengeProgress.d.mts +1 -19
  7. package/dist/ChallengeProgress.mjs +1 -2
  8. package/dist/Enemy-Das_tHF5.d.mts +44 -0
  9. package/dist/Enemy.d.mts +1 -43
  10. package/dist/Enemy.mjs +1 -2
  11. package/dist/Intrinsics-BhwKpPoY.d.mts +67 -0
  12. package/dist/Intrinsics.d.mts +1 -66
  13. package/dist/Intrinsics.mjs +1 -2
  14. package/dist/ItemConfig-C81QdCpU.d.mts +51 -0
  15. package/dist/ItemConfig.d.mts +1 -50
  16. package/dist/ItemConfig.mjs +1 -3
  17. package/dist/LoadOutInventory-BrtoOtNr.d.mts +53 -0
  18. package/dist/LoadOutInventory.d.mts +1 -52
  19. package/dist/LoadOutInventory.mjs +1 -3
  20. package/dist/LoadOutItem-Cd_qovNn.d.mts +120 -0
  21. package/dist/LoadOutItem.d.mts +1 -119
  22. package/dist/LoadOutItem.mjs +1 -3
  23. package/dist/LoadOutPreset-CUV29lLL.d.mts +83 -0
  24. package/dist/LoadOutPreset.d.mts +1 -82
  25. package/dist/LoadOutPreset.mjs +1 -3
  26. package/dist/Mission-C7zlZ4eq.d.mts +53 -0
  27. package/dist/Mission.d.mts +1 -52
  28. package/dist/Mission.mjs +1 -3
  29. package/dist/OperatorLoadOuts-DvlpRvD1.d.mts +81 -0
  30. package/dist/OperatorLoadOuts.d.mts +1 -80
  31. package/dist/OperatorLoadOuts.mjs +1 -3
  32. package/dist/Polarity-BWadoIXU.d.mts +26 -0
  33. package/dist/Polarity.d.mts +1 -25
  34. package/dist/Polarity.mjs +1 -3
  35. package/dist/Profile.d.mts +8 -8
  36. package/dist/Profile.mjs +1 -3
  37. package/dist/ProfileParser.d.mts +1 -1
  38. package/dist/ProfileParser.mjs +1 -3
  39. package/dist/Pvp-D0lygyP6.d.mts +36 -0
  40. package/dist/Pvp.d.mts +1 -35
  41. package/dist/Pvp.mjs +1 -2
  42. package/dist/Race-PxkzCRsy.d.mts +32 -0
  43. package/dist/Race.d.mts +1 -31
  44. package/dist/Race.mjs +1 -2
  45. package/dist/Scan-Cj6jCTNg.d.mts +27 -0
  46. package/dist/Scan.d.mts +1 -26
  47. package/dist/Scan.mjs +1 -2
  48. package/dist/Skin-CpQ4dzEs.d.mts +28 -0
  49. package/dist/Skin.d.mts +1 -27
  50. package/dist/Skin.mjs +1 -3
  51. package/dist/Stats.d.mts +7 -7
  52. package/dist/Stats.mjs +1 -3
  53. package/dist/Syndicate-BwHRq-Iw.d.mts +33 -0
  54. package/dist/Syndicate.d.mts +1 -32
  55. package/dist/Syndicate.mjs +1 -3
  56. package/dist/Utils-xGSP1zu-.d.mts +36 -0
  57. package/dist/Utils.d.mts +1 -35
  58. package/dist/Utils.mjs +1 -3
  59. package/dist/Weapon-DUlgoPHD.d.mts +32 -0
  60. package/dist/Weapon.d.mts +1 -31
  61. package/dist/Weapon.mjs +1 -2
  62. package/dist/XpInfo-C1pzVAdK.d.mts +34 -0
  63. package/dist/XpInfo.d.mts +1 -33
  64. package/dist/XpInfo.mjs +1 -3
  65. 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 { 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
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
- //#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
1
+ import { n as Weapon, t as RawWeapon } from "./Weapon-DUlgoPHD.mjs";
32
2
  export { RawWeapon, Weapon as default };
package/dist/Weapon.mjs CHANGED
@@ -59,6 +59,5 @@ var Weapon = class {
59
59
  this.fired = weapon.fired;
60
60
  }
61
61
  };
62
-
63
62
  //#endregion
64
- export { Weapon as default };
63
+ export { Weapon as default };
@@ -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 { 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
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.12",
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.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": "^16.2.7",
40
+ "lint-staged": "^17.0.2",
41
41
  "mocha": "^11.7.5",
42
- "tsdown": "^0.20.1",
42
+ "tsdown": "^0.22.0",
43
43
  "tsx": "^4.21.0",
44
- "typescript": "^5.9.3"
44
+ "typescript": "^6.0.2"
45
45
  },
46
46
  "scripts": {
47
47
  "build": "tsdown",
48
- "build:docs": "tsdown && jsdoc -c .github/docs/conf.json -d 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",