warframe-worldstate-parser 2.31.1 → 2.32.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.
@@ -55,6 +55,12 @@ class NightwaveChallenge extends WorldstateObject {
55
55
  * @type {Number}
56
56
  */
57
57
  this.reputation = repBase + (!this.isDaily ? 3500 : 0) + (this.isElite ? 2500 : 0);
58
+
59
+ /**
60
+ * Whether this challenge is permanent
61
+ * @type {Boolean}
62
+ */
63
+ this.isPermanent = !!data?.Permanent;
58
64
  }
59
65
  }
60
66
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "warframe-worldstate-parser",
3
- "version": "2.31.1",
3
+ "version": "2.32.0",
4
4
  "description": "An Open parser for Warframe's Worldstate in Javascript",
5
5
  "types": "./types/main.d.ts",
6
6
  "main": "main.js",
@@ -41,5 +41,10 @@ declare class NightwaveChallenge extends WorldstateObject {
41
41
  * @type {Number}
42
42
  */
43
43
  reputation: number;
44
+ /**
45
+ * Whether this challenge is permanent
46
+ * @type {Boolean}
47
+ */
48
+ isPermanent: boolean;
44
49
  }
45
50
  import WorldstateObject = require("./WorldstateObject");
@@ -63,11 +63,6 @@ declare class WorldstateObject {
63
63
  declare namespace WorldstateObject {
64
64
  export { Identifier, LegacyTimestamp, Timestamp, ContentTimestamp, BaseContentObject };
65
65
  }
66
- type BaseContentObject = {
67
- _id: Identifier;
68
- Activation: ContentTimestamp;
69
- Expiry: ContentTimestamp;
70
- };
71
66
  type Identifier = {
72
67
  /**
73
68
  * older identifier schema
@@ -96,3 +91,8 @@ type ContentTimestamp = {
96
91
  */
97
92
  $date: LegacyTimestamp | Timestamp;
98
93
  };
94
+ type BaseContentObject = {
95
+ _id: Identifier;
96
+ Activation: ContentTimestamp;
97
+ Expiry: ContentTimestamp;
98
+ };