@ccci/micro-server 1.0.6 → 1.0.8
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/dist/index.js +11495 -4
- package/dist/utils/WebsocketServer.d.ts +8 -0
- package/package.json +4 -2
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { Server } from "socket.io";
|
|
3
|
+
import http from "node:http";
|
|
4
|
+
export default class WebSocketServer {
|
|
5
|
+
static io: Server;
|
|
6
|
+
constructor(app: http.Server, folderName?: string);
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=WebsocketServer.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ccci/micro-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"module": "index.ts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
"scripts": {
|
|
10
10
|
"build": "bun build --target=node ./src/index.ts --outfile=dist/index.js && bun run build:declaration",
|
|
11
11
|
"build:declaration": "tsc --emitDeclarationOnly --project tsconfig.types.json",
|
|
12
|
-
"postbuild": "rimraf tsconfig.types.tsbuildinfo"
|
|
12
|
+
"postbuild": "rimraf tsconfig.types.tsbuildinfo",
|
|
13
|
+
"release": "bun run build && git add . && git commit -m 'release' && git push && npm version patch && npm publish"
|
|
13
14
|
},
|
|
14
15
|
"devDependencies": {
|
|
15
16
|
"@types/bun": "latest",
|
|
@@ -41,6 +42,7 @@
|
|
|
41
42
|
"pg": "^8.11.5",
|
|
42
43
|
"pg-hstore": "^2.3.4",
|
|
43
44
|
"sequelize": "^6.37.3",
|
|
45
|
+
"socket.io": "^4.7.5",
|
|
44
46
|
"winston": "^3.13.0"
|
|
45
47
|
}
|
|
46
48
|
}
|