@dev-crew-berlin/enter-js-utils 0.81.0 → 0.81.1

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.
@@ -57,10 +57,10 @@ export class Attendee {
57
57
  // so we implement it here again by hand
58
58
 
59
59
  // convert each checkin to its json representation
60
- const checkin = Object.fromEntries(this.checkin.entries().map(([checkinTag, checkin]) => [checkinTag, checkin.toJSON()]));
60
+ const checkin = Object.fromEntries(Array.from(this.checkin).map(([checkinTag, checkin]) => [checkinTag, checkin.toJSON()]));
61
61
 
62
62
  // convert each rsvp to its json representation
63
- const rsvp = Object.fromEntries(this.rsvp.entries().map(([checkinTag, rsvp]) => [checkinTag, rsvp ? rsvp.toJSON() : null]));
63
+ const rsvp = Object.fromEntries(Array.from(this.rsvp).map(([checkinTag, rsvp]) => [checkinTag, rsvp ? rsvp.toJSON() : null]));
64
64
  return {
65
65
  ...this,
66
66
  time: this.time?.toISOString(),
@@ -20,7 +20,7 @@ export class Instance {
20
20
  }
21
21
  toJSON() {
22
22
  // convert each branch to its json representation
23
- const branches = Object.fromEntries(this.branches.entries().map(([branchName, branch]) => [branchName, branch.toJSON()]));
23
+ const branches = Object.fromEntries(Array.from(this.branches).map(([branchName, branch]) => [branchName, branch.toJSON()]));
24
24
  return {
25
25
  name: this.name,
26
26
  title: this.title,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev-crew-berlin/enter-js-utils",
3
- "version": "0.81.0",
3
+ "version": "0.81.1",
4
4
  "description": "utils such as vaildation and other helpers to work with data from the enter app",
5
5
  "files": [
6
6
  "dist",
@@ -67,7 +67,7 @@
67
67
  "prettier": "^2.6.2",
68
68
  "react": "^18.3.1",
69
69
  "react-dom": "^18.3.1",
70
- "typescript": "^5.6.3"
70
+ "typescript": "^5.7.2"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "react": "^18.1.0",