bkper-js 1.34.1 → 1.34.2

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.
@@ -54,14 +54,14 @@ export class Conversation {
54
54
  * @returns The Date the Conversation was created
55
55
  */
56
56
  getCreatedAt() {
57
- return this.payload.createdAt ? new Date(this.payload.createdAt) : undefined;
57
+ return this.payload.createdAt ? new Date(new Number(this.payload.createdAt).valueOf()) : undefined;
58
58
  }
59
59
  /**
60
60
  *
61
61
  * @returns The Date the Conversation was last updated
62
62
  */
63
63
  getUpdatedAt() {
64
- return this.payload.updatedAt ? new Date(this.payload.updatedAt) : undefined;
64
+ return this.payload.updatedAt ? new Date(new Number(this.payload.updatedAt).valueOf()) : undefined;
65
65
  }
66
66
  /**
67
67
  * Gets the Messages that compose this Conversation
@@ -54,7 +54,7 @@ export class Message {
54
54
  * @returns The Date the Message was created
55
55
  */
56
56
  getCreatedAt() {
57
- return this.payload.createdAt ? new Date(this.payload.createdAt) : undefined;
57
+ return this.payload.createdAt ? new Date(new Number(this.payload.createdAt).valueOf()) : undefined;
58
58
  }
59
59
  /**
60
60
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkper-js",
3
- "version": "1.34.1",
3
+ "version": "1.34.2",
4
4
  "description": "Javascript client for Bkper REST API",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",