trucoshi 2.4.0 → 2.5.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.
Files changed (2) hide show
  1. package/dist/types.d.ts +6 -0
  2. package/package.json +2 -2
package/dist/types.d.ts CHANGED
@@ -40,6 +40,7 @@ export interface IMatchPreviousHand {
40
40
  }
41
41
  export interface IPublicMatch {
42
42
  options: ILobbyOptions;
43
+ busy: boolean;
43
44
  state: EMatchState;
44
45
  winner: ITeam | null;
45
46
  matchSessionId: string;
@@ -355,4 +356,9 @@ export interface ITeamPoints {
355
356
  malas: number;
356
357
  winner: boolean;
357
358
  }
359
+ export type IHandRoundLog = {
360
+ player: number;
361
+ card?: ICard;
362
+ command?: ECommand | number;
363
+ };
358
364
  export type IPublicUser = Pick<User, "id" | "email" | "name" | "role">;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trucoshi",
3
- "version": "2.4.0",
3
+ "version": "2.5.2",
4
4
  "description": "Lightning Truco Server",
5
5
  "main": "dist/types.js",
6
6
  "license": "GPL-3.0",
@@ -21,7 +21,7 @@
21
21
  "start": "nodemon",
22
22
  "start:e2e": "yarn build && dotenv -e .env.e2e -- node ./bin/trucoshi-server ",
23
23
  "profiler": "yarn build && node --prof ./bin/trucoshi-server",
24
- "build": " yarn run rimraf ./build && yarn run tsc --project . && yarn build:dist",
24
+ "build": "yarn prisma generate --generator distClient && yarn run rimraf ./build && yarn run tsc --project .",
25
25
  "build:dist": "yarn run rimraf ./dist && yarn prisma generate --generator distClient && yarn run tsc --project ./tsconfig.dist.json",
26
26
  "prepublishOnly": "yarn test && yarn build:dist",
27
27
  "test": "dotenv -e .env.e2e -- yarn db:e2e:push --force-reset && dotenv -e .env.e2e -- ts-mocha --exit ./test/**/*.ts -t 50000",