@wfcd/profile-parser 1.4.1 → 1.5.0

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wfcd/profile-parser",
3
- "version": "1.4.1",
3
+ "version": "1.5.0",
4
4
  "description": "Parser for Digital Extreme's profile data",
5
5
  "type": "module",
6
6
  "main": "src/ProfileParser.js",
@@ -57,59 +57,8 @@
57
57
  "engines": {
58
58
  "node": ">=20.0.0"
59
59
  },
60
- "eslintConfig": {
61
- "extends": "@wfcd/eslint-config/esm",
62
- "parser": "@babel/eslint-parser",
63
- "parserOptions": {
64
- "sourceType": "module",
65
- "ecmaVersion": 6,
66
- "ecmaFeatures": {
67
- "modules": true
68
- },
69
- "babelOptions": {
70
- "plugins": [
71
- "@babel/plugin-transform-class-properties",
72
- "@babel/plugin-transform-private-methods"
73
- ]
74
- }
75
- }
76
- },
77
- "babel": {
78
- "presets": [
79
- "@babel/preset-env"
80
- ],
81
- "plugins": [
82
- "@babel/plugin-transform-class-properties",
83
- "@babel/plugin-transform-private-methods"
84
- ]
85
- },
86
- "prettier": "@wfcd/eslint-config/prettier",
87
- "mocha": {
88
- "exit": true,
89
- "spec": "test/**/*.spec.js"
90
- },
91
- "c8": {
92
- "reporter": [
93
- "lcov",
94
- "text"
95
- ],
96
- "skip-full": true
97
- },
98
60
  "peerDependencies": {
99
- "warframe-items": "^1.1262.30",
61
+ "@wfcd/items": "^1.1270.0",
100
62
  "warframe-worldstate-data": "^2.5.0"
101
- },
102
- "lint-staged": {
103
- "*.js": [
104
- "eslint --cache --fix",
105
- "npm test"
106
- ],
107
- "package*.json": [
108
- "prettier --write",
109
- "npm -q --no-progress dedupe"
110
- ],
111
- "*.{json,md,yaml},!test/data/*.json": [
112
- "prettier --write"
113
- ]
114
63
  }
115
64
  }
package/src/ItemConfig.js CHANGED
@@ -1,4 +1,4 @@
1
- import { colors } from 'warframe-items/utilities';
1
+ import { colors } from '@wfcd/items/utilities';
2
2
 
3
3
  import Skin from './Skin.js';
4
4
  import { mapToHex } from './Utils.js';
@@ -27,25 +27,25 @@ export default class ItemConfig {
27
27
 
28
28
  /**
29
29
  * Primary colors applied to item if they exist
30
- * @type {module:"warframe-items".ColorMap | undefined}
30
+ * @type {module:"@wfcd/items".ColorMap | undefined}
31
31
  */
32
32
  if (config.pricol) this.primaryColor = colors.mapColors(mapToHex(config.pricol));
33
33
 
34
34
  /**
35
35
  * Sigil colors applied to item if they exist
36
- * @type {module:"warframe-items".ColorMap | undefined}
36
+ * @type {module:"@wfcd/items".ColorMap | undefined}
37
37
  */
38
38
  if (config.sigcol) this.sigilColor = colors.mapColors(mapToHex(config.sigcol));
39
39
 
40
40
  /**
41
41
  * Attachment colors applied to item if they exist
42
- * @type {module:"warframe-items".ColorMap | undefined}
42
+ * @type {module:"@wfcd/items".ColorMap | undefined}
43
43
  */
44
44
  if (config.attcol) this.attachmentsColor = colors.mapColors(mapToHex(config.attcol));
45
45
 
46
46
  /**
47
47
  * Syandana colors applied to item if they exist
48
- * @type {module:"warframe-items".ColorMap | undefined}
48
+ * @type {module:"@wfcd/items".ColorMap | undefined}
49
49
  */
50
50
  if (config.syancol) this.syandanaColor = colors.mapColors(mapToHex(config.syancol));
51
51
  }
@@ -1,4 +1,4 @@
1
- import { colors } from 'warframe-items/utilities';
1
+ import { colors } from '@wfcd/items/utilities';
2
2
  import { parseDate, toTitleCase } from 'warframe-worldstate-data/utilities';
3
3
 
4
4
  import ItemConfig from './ItemConfig.js';
@@ -37,8 +37,8 @@ export default class LoadOutItem {
37
37
  this.name = item.name;
38
38
 
39
39
  /**
40
- * Complete item from Warframe-items
41
- * @type {module:"warframe-items".Item}
40
+ * Complete item from @wfcd/items
41
+ * @type {module:"@wfcd/items".Item}
42
42
  */
43
43
  this.item = item;
44
44
  }
@@ -118,13 +118,13 @@ export default class LoadOutItem {
118
118
 
119
119
  /**
120
120
  * Primary colors applied to item if they exist
121
- * @type {module:"warframe-items".ColorMap | undefined}
121
+ * @type {module:"@wfcd/items".ColorMap | undefined}
122
122
  */
123
123
  if (weapon.pricol) this.primaryColor = colors.mapColors(weapon.pricol);
124
124
 
125
125
  /**
126
126
  * Sigil colors applied to item if they exist
127
- * @type {module:"warframe-items".ColorMap | undefined}
127
+ * @type {module:"@wfcd/items".ColorMap | undefined}
128
128
  */
129
129
  if (weapon.sigcol) this.sigilColor = colors.mapColors(weapon.sigcol.toString(16));
130
130
 
@@ -136,19 +136,19 @@ export default class LoadOutItem {
136
136
 
137
137
  /**
138
138
  * Attachment colors applied to item if they exist
139
- * @type {module:"warframe-items".ColorMap | undefined}
139
+ * @type {module:"@wfcd/items".ColorMap | undefined}
140
140
  */
141
141
  if (weapon.attcol) this.attachmentsColor = colors.mapColors(weapon.attcol.toString(16));
142
142
 
143
143
  /**
144
144
  * Syandana colors applied to item if they exist
145
- * @type {module:"warframe-items".ColorMap | undefined}
145
+ * @type {module:"@wfcd/items".ColorMap | undefined}
146
146
  */
147
147
  if (weapon.syancol) this.syandanaColor = colors.mapColors(weapon.syancol.toString(16));
148
148
 
149
149
  /**
150
150
  * If set will show when the player's warframe was infested.
151
- * @type {module:"warframe-items".ColorMap | undefined}
151
+ * @type {module:"@wfcd/items".ColorMap | undefined}
152
152
  */
153
153
  if (weapon.InfestationDate) this.infestationDate = parseDate(weapon.InfestationDate);
154
154
  }
@@ -1,4 +1,4 @@
1
- import { colors } from 'warframe-items/utilities';
1
+ import { colors } from '@wfcd/items/utilities';
2
2
 
3
3
  import Skin from './Skin.js';
4
4
  import { mapToHex } from './Utils.js';
@@ -34,43 +34,43 @@ export default class OperatorLoadOuts {
34
34
 
35
35
  /**
36
36
  * Operator primary colors
37
- * @type {module:"warframe-items".ColorMap | undefined}
37
+ * @type {module:"@wfcd/items".ColorMap | undefined}
38
38
  */
39
39
  if (loadout.pricol) this.primaryColor = colors.mapColors(mapToHex(loadout.pricol));
40
40
 
41
41
  /**
42
42
  * Operator sigil colors
43
- * @type {module:"warframe-items".ColorMap | undefined}
43
+ * @type {module:"@wfcd/items".ColorMap | undefined}
44
44
  */
45
45
  if (loadout.sigcol) this.sigilColor = colors.mapColors(mapToHex(loadout.sigcol));
46
46
 
47
47
  /**
48
48
  * Operator attachment colors
49
- * @type {module:"warframe-items".ColorMap | undefined}
49
+ * @type {module:"@wfcd/items".ColorMap | undefined}
50
50
  */
51
51
  if (loadout.attcol) this.attachmentsColor = colors.mapColors(mapToHex(loadout.attcol));
52
52
 
53
53
  /**
54
54
  * Operator syandana colors
55
- * @type {module:"warframe-items".ColorMap | undefined}
55
+ * @type {module:"@wfcd/items".ColorMap | undefined}
56
56
  */
57
57
  if (loadout.syancol) this.syandanaColor = colors.mapColors(mapToHex(loadout.syancol));
58
58
 
59
59
  /**
60
60
  * Operator eye colors
61
- * @type {module:"warframe-items".ColorMap | undefined}
61
+ * @type {module:"@wfcd/items".ColorMap | undefined}
62
62
  */
63
63
  if (loadout.eyecol) this.eyeColor = colors.mapColors(mapToHex(loadout.eyecol));
64
64
 
65
65
  /**
66
66
  * Operator facial colors
67
- * @type {module:"warframe-items".ColorMap | undefined}
67
+ * @type {module:"@wfcd/items".ColorMap | undefined}
68
68
  */
69
69
  if (loadout.facial) this.facial = colors.mapColors(mapToHex(loadout.facial));
70
70
 
71
71
  /**
72
72
  * Operator cloth colors
73
- * @type {module:"warframe-items".ColorMap | undefined}
73
+ * @type {module:"@wfcd/items".ColorMap | undefined}
74
74
  */
75
75
  if (loadout.cloth) this.cloth = colors.mapColors(mapToHex(loadout.cloth));
76
76
  }
package/src/Utils.js CHANGED
@@ -1,4 +1,4 @@
1
- import Items from 'warframe-items';
1
+ import Items from '@wfcd/items';
2
2
 
3
3
  /** @module */
4
4
 
package/src/XpInfo.js CHANGED
@@ -27,7 +27,7 @@ export default class XpInfo {
27
27
  if (withItem) {
28
28
  /**
29
29
  * The item corrosponding to the unique name.
30
- * @type {module:"warframe-items".Item | undefined}
30
+ * @type {module:"@wfcd/items".Item | undefined}
31
31
  */
32
32
  this.item = find(info.ItemType, locale);
33
33
  }
@@ -14,8 +14,8 @@ export default class ItemConfig {
14
14
  */
15
15
  skins: Array<string> | undefined;
16
16
  conclaveUpgrades: any;
17
- primaryColor: any;
18
- sigilColor: any;
19
- attachmentsColor: any;
20
- syandanaColor: any;
17
+ primaryColor: import("@wfcd/items").ColorMap;
18
+ sigilColor: import("@wfcd/items").ColorMap;
19
+ attachmentsColor: import("@wfcd/items").ColorMap;
20
+ syandanaColor: import("@wfcd/items").ColorMap;
21
21
  }
@@ -25,8 +25,8 @@ export default class LoadOutItem {
25
25
  */
26
26
  name: string;
27
27
  /**
28
- * Complete item from Warframe-items
29
- * @type {module:"warframe-items".Item}
28
+ * Complete item from @wfcd/items
29
+ * @type {module:"@wfcd/items".Item}
30
30
  */
31
31
  item: any;
32
32
  /**
@@ -77,15 +77,15 @@ export default class LoadOutItem {
77
77
  * @type {number}
78
78
  */
79
79
  customizationSlotPurchases: number;
80
- primaryColor: any;
81
- sigilColor: any;
80
+ primaryColor: import("@wfcd/items").ColorMap;
81
+ sigilColor: import("@wfcd/items").ColorMap;
82
82
  /**
83
83
  * Whether prime details are enabled or not
84
84
  * @type {boolean}
85
85
  */
86
86
  enablePrime: boolean;
87
- attachmentsColor: any;
88
- syandanaColor: any;
87
+ attachmentsColor: import("@wfcd/items").ColorMap;
88
+ syandanaColor: import("@wfcd/items").ColorMap;
89
89
  infestationDate: any;
90
90
  }
91
91
  import ItemConfig from './ItemConfig.js';
@@ -24,12 +24,12 @@ export default class OperatorLoadOuts {
24
24
  */
25
25
  upgrades: Array<string>;
26
26
  abilityOverride: any;
27
- primaryColor: any;
28
- sigilColor: any;
29
- attachmentsColor: any;
30
- syandanaColor: any;
31
- eyeColor: any;
32
- facial: any;
33
- cloth: any;
27
+ primaryColor: import("@wfcd/items").ColorMap;
28
+ sigilColor: import("@wfcd/items").ColorMap;
29
+ attachmentsColor: import("@wfcd/items").ColorMap;
30
+ syandanaColor: import("@wfcd/items").ColorMap;
31
+ eyeColor: import("@wfcd/items").ColorMap;
32
+ facial: import("@wfcd/items").ColorMap;
33
+ cloth: import("@wfcd/items").ColorMap;
34
34
  }
35
35
  import Skin from './Skin.js';
package/types/XpInfo.d.ts CHANGED
@@ -22,7 +22,7 @@ export default class XpInfo {
22
22
  xp: number;
23
23
  /**
24
24
  * The item corrosponding to the unique name.
25
- * @type {module:"warframe-items".Item | undefined}
25
+ * @type {module:"@wfcd/items".Item | undefined}
26
26
  */
27
27
  item: any;
28
28
  }