@gamelobby/common 1.0.329 → 1.0.331

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.
@@ -2,5 +2,5 @@ import moment from 'moment-timezone';
2
2
  import { Team } from '../interfaces';
3
3
  export declare const mergeDateHours: (dateString: string, hoursMinutes: string, timezone: string) => moment.Moment;
4
4
  export declare const getDiff: (date: string, hoursMinutes: string, timezone: string) => number;
5
- export declare const formatUsername: (username: string) => string;
5
+ export declare const formatUsername: (username: string | number) => string;
6
6
  export declare const getTeamName: (team: Team) => string | undefined;
@@ -18,7 +18,7 @@ var getDiff = function (date, hoursMinutes, timezone) {
18
18
  };
19
19
  exports.getDiff = getDiff;
20
20
  var formatUsername = function (username) {
21
- return username.trim().toLowerCase();
21
+ return String(username || '').trim().toLowerCase();
22
22
  };
23
23
  exports.formatUsername = formatUsername;
24
24
  var getTeamName = function (team) {
@@ -2,6 +2,8 @@ import { Operation } from "./operation.interface";
2
2
  export interface Condition {
3
3
  _id?: string;
4
4
  name: string;
5
+ field?: string;
5
6
  operation?: Operation | string;
7
+ operator?: string;
6
8
  value: string;
7
9
  }
@@ -1,10 +1,12 @@
1
1
  import { User } from "./user.interface";
2
2
  export interface Trophy {
3
3
  _id?: string;
4
+ id?: number;
4
5
  name: string;
5
6
  link: string;
6
7
  userId?: number;
7
8
  owner?: User[] | [];
9
+ isGlobal?: boolean;
8
10
  createdAt?: string;
9
11
  updatedAt?: string;
10
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gamelobby/common",
3
- "version": "1.0.329",
3
+ "version": "1.0.331",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",