@wfcd/profile-parser 1.1.1 → 1.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wfcd/profile-parser",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "description": "Parser for Digital Extreme's profile data",
5
5
  "type": "module",
6
6
  "main": "src/ProfileParser.js",
@@ -8,6 +8,18 @@
8
8
  ".": {
9
9
  "import": "./src/ProfileParser.js",
10
10
  "types": "./types/index.d.ts"
11
+ },
12
+ "./XpInfo": {
13
+ "import": "./src/XpInfo.js",
14
+ "types": "./types/index.d.ts"
15
+ },
16
+ "./Stats": {
17
+ "import": "./src/Stats.js",
18
+ "types": "./types/index.d.ts"
19
+ },
20
+ "./Profile": {
21
+ "import": "./src/Profile.js",
22
+ "types": "./types/index.d.ts"
11
23
  }
12
24
  },
13
25
  "public": true,
package/src/ItemConfig.js CHANGED
@@ -15,9 +15,9 @@ export default class ItemConfig {
15
15
  constructor(config) {
16
16
  /**
17
17
  * Array of unique names for the skins applied to item
18
- * @type {Array<String>}
18
+ * @type {Array<String> | undefined}
19
19
  */
20
- this.skins = config.Skins.filter(Boolean).map((s) => new Skin({ ItemType: s }));
20
+ this.skins = config.Skins?.filter(Boolean).map((s) => new Skin({ ItemType: s }));
21
21
 
22
22
  /**
23
23
  * Array of PVP unique name upgrades applied
@@ -33,7 +33,7 @@ export default class ItemConfig {
33
33
 
34
34
  /**
35
35
  * Sigil colors applied to item if they exist
36
- * @type {module:("warframe-items").ColorMap | undefined}
36
+ * @type {module:"warframe-items".ColorMap | undefined}
37
37
  */
38
38
  if (config.sigcol) this.sigilColor = colors.mapColors(mapToHex(config.sigcol));
39
39
 
@@ -10,9 +10,9 @@ export default class ItemConfig {
10
10
  constructor(config: any);
11
11
  /**
12
12
  * Array of unique names for the skins applied to item
13
- * @type {Array<String>}
13
+ * @type {Array<String> | undefined}
14
14
  */
15
- skins: Array<string>;
15
+ skins: Array<string> | undefined;
16
16
  conclaveUpgrades: any;
17
17
  primaryColor: any;
18
18
  sigilColor: any;