@dev-crew-berlin/enter-js-utils 0.84.0 → 0.85.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.
@@ -53,7 +53,7 @@ export declare class Attendee {
53
53
  checkinId: string;
54
54
  }): Attendee;
55
55
  withUpdates(updates: AttendeeUpdatedEvent['updates']): Attendee;
56
- getFieldString(fieldKey: string): string;
56
+ getFieldString(fieldKey: string, fallback?: string): string;
57
57
  /**
58
58
  * @deprecated Use `getFieldString` instead
59
59
  */
@@ -159,9 +159,9 @@ export class Attendee {
159
159
  }
160
160
  return newAttendee;
161
161
  }
162
- getFieldString(fieldKey) {
162
+ getFieldString(fieldKey, fallback = '') {
163
163
  const fieldValue = this.userdata.get(fieldKey);
164
- return fieldValue?.toString() ?? '';
164
+ return fieldValue?.toString() ?? fallback;
165
165
  }
166
166
 
167
167
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev-crew-berlin/enter-js-utils",
3
- "version": "0.84.0",
3
+ "version": "0.85.0",
4
4
  "description": "utils such as vaildation and other helpers to work with data from the enter app",
5
5
  "files": [
6
6
  "dist",