@wfcd/profile-parser 1.1.2 → 1.2.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.1.2",
3
+ "version": "1.2.0",
4
4
  "description": "Parser for Digital Extreme's profile data",
5
5
  "type": "module",
6
6
  "main": "src/ProfileParser.js",
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
package/src/Mission.js CHANGED
@@ -19,6 +19,12 @@ export default class Mission {
19
19
  */
20
20
  this.node = node(uniqueName, locale);
21
21
 
22
+ /**
23
+ * Node unique name
24
+ * @type {String}
25
+ */
26
+ this.nodeKey = uniqueName;
27
+
22
28
  /**
23
29
  * Node mission type
24
30
  * @type {String}
@@ -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;
@@ -14,6 +14,11 @@ export default class Mission {
14
14
  * @type {String}
15
15
  */
16
16
  node: string;
17
+ /**
18
+ * Node unique name
19
+ * @type {String}
20
+ */
21
+ nodeKey: string;
17
22
  /**
18
23
  * Node mission type
19
24
  * @type {String}