trucoshi 0.2.12 → 0.2.13
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.
- package/README.md +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/types.d.ts +1 -1
- package/package.json +12 -5
package/README.md
CHANGED
|
@@ -40,12 +40,12 @@ Right now there's only a local CLI way of playing as there is no socket server i
|
|
|
40
40
|
|
|
41
41
|
[x] Logica de turnos, rondas y battalla de cartas
|
|
42
42
|
[x] Irse al mazo
|
|
43
|
-
[] Cantar truco
|
|
43
|
+
[x] Cantar truco
|
|
44
44
|
[] Cantar envido
|
|
45
45
|
[] Cantar flor
|
|
46
46
|
[x] Socket server
|
|
47
|
+
[-] Unit tests
|
|
47
48
|
[] Bitcoin Lightning integration
|
|
48
|
-
[] Unit tests
|
|
49
49
|
|
|
50
50
|
# Donations
|
|
51
51
|
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./lib"), exports);
|
|
18
|
+
__exportStar(require("./server"), exports);
|
|
18
19
|
__exportStar(require("./types"), exports);
|
package/dist/types.d.ts
CHANGED
|
@@ -133,7 +133,7 @@ export interface ClientToServerEvents {
|
|
|
133
133
|
[EClientEvent.SET_PLAYER_READY]: (matchSessionId: string, ready: boolean, callback: IEventCallback<{
|
|
134
134
|
match?: IPublicMatch;
|
|
135
135
|
}>) => void;
|
|
136
|
-
[EClientEvent.SET_SESSION]: (
|
|
136
|
+
[EClientEvent.SET_SESSION]: (id: string | null, session: string | null, callback?: IEventCallback<{
|
|
137
137
|
session?: string;
|
|
138
138
|
activeMatches: Array<IPublicMatchInfo>;
|
|
139
139
|
}>) => void;
|
package/package.json
CHANGED
|
@@ -1,20 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "trucoshi",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.13",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"license": "GPL-3.0",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"start": "node ./dist/
|
|
8
|
-
"prepublishOnly": "yarn build",
|
|
7
|
+
"start": "node ./dist/trucoshi.js",
|
|
8
|
+
"prepublishOnly": "yarn test && yarn build",
|
|
9
9
|
"dev": "nodemon",
|
|
10
10
|
"test:autoplay": "yarn run ts-node src/test/autoplay",
|
|
11
11
|
"test:play": "yarn run ts-node src/test/play",
|
|
12
|
-
"test
|
|
12
|
+
"test": "yarn run ts-mocha --exit ./test/**/*.ts",
|
|
13
13
|
"build": "yarn run rimraf ./dist && yarn run tsc --project ."
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
+
"@types/chai": "^4.3.4",
|
|
17
|
+
"@types/expect": "^24.3.0",
|
|
18
|
+
"@types/mocha": "^10.0.1",
|
|
16
19
|
"@types/node": "^18.11.18",
|
|
17
|
-
"
|
|
20
|
+
"chai": "^4.3.7",
|
|
21
|
+
"mocha": "^10.2.0",
|
|
22
|
+
"nodemon": "^2.0.20",
|
|
23
|
+
"socket.io-client": "^4.5.4",
|
|
24
|
+
"ts-mocha": "^10.0.0"
|
|
18
25
|
},
|
|
19
26
|
"files": [
|
|
20
27
|
"dist/index.js",
|