@tsed/socketio-testing 7.70.1 → 7.71.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.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.js.map +1 -1
- package/lib/types/index.d.ts +1 -1
- package/package.json +8 -8
- package/readme.md +4 -4
package/lib/cjs/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./services/SocketClientService"), exports);
|
|
4
|
+
tslib_1.__exportStar(require("./services/SocketClientService.js"), exports);
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
package/lib/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,4EAAkD"}
|
package/lib/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC"}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./services/SocketClientService";
|
|
1
|
+
export * from "./services/SocketClientService.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/socketio-testing",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.71.0",
|
|
4
4
|
"description": "Socket.io testing package for Ts.ED framework",
|
|
5
5
|
"source": "./src/index.ts",
|
|
6
6
|
"main": "./lib/cjs/index.js",
|
|
@@ -21,18 +21,18 @@
|
|
|
21
21
|
"tslib": "2.6.1"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@tsed/
|
|
25
|
-
"@tsed/
|
|
26
|
-
"@tsed/
|
|
27
|
-
"
|
|
24
|
+
"@tsed/barrels": "7.71.0",
|
|
25
|
+
"@tsed/common": "7.71.0",
|
|
26
|
+
"@tsed/di": "7.71.0",
|
|
27
|
+
"@tsed/typescript": "7.71.0",
|
|
28
28
|
"eslint": "^8.57.0",
|
|
29
29
|
"jest": "^29.7.0",
|
|
30
30
|
"socket.io-client": "^4.7.5"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@tsed/common": "7.
|
|
34
|
-
"@tsed/core": "7.
|
|
35
|
-
"@tsed/di": "7.
|
|
33
|
+
"@tsed/common": "7.71.0",
|
|
34
|
+
"@tsed/core": "7.71.0",
|
|
35
|
+
"@tsed/di": "7.71.0",
|
|
36
36
|
"socket.io-client": "^4.0.1"
|
|
37
37
|
},
|
|
38
38
|
"repository": "https://github.com/tsedio/tsed",
|
package/readme.md
CHANGED
|
@@ -112,7 +112,7 @@ Then, you can inject your socket service into another Service, Controller, etc..
|
|
|
112
112
|
|
|
113
113
|
```typescript
|
|
114
114
|
import {Controller, Get} from "@tsed/common";
|
|
115
|
-
import {MySocketService} from "../services/MySocketService";
|
|
115
|
+
import {MySocketService} from "../services/MySocketService.js";
|
|
116
116
|
|
|
117
117
|
@Controller("/")
|
|
118
118
|
export class MyCtrl {
|
|
@@ -204,7 +204,7 @@ Here an example of a middleware:
|
|
|
204
204
|
```typescript
|
|
205
205
|
import {deserialize} from "@tsed/json-mapper";
|
|
206
206
|
import {SocketMiddleware, Args} from "@tsed/socketio";
|
|
207
|
-
import {User} from "../models/User";
|
|
207
|
+
import {User} from "../models/User.js";
|
|
208
208
|
|
|
209
209
|
@SocketMiddleware()
|
|
210
210
|
export class UserConverterSocketMiddleware {
|
|
@@ -254,8 +254,8 @@ Middlewares chain use the `Promise` to run it. If one of this middlewares/method
|
|
|
254
254
|
|
|
255
255
|
```typescript
|
|
256
256
|
import {SocketService, SocketUseAfter, SocketUseBefore, Emit, Input, Args, SocketSession} from "@tsed/socketio";
|
|
257
|
-
import {UserConverterSocketMiddleware, ErrorHandlerSocketMiddleware} from "../middlewares";
|
|
258
|
-
import {User} from "../models/User";
|
|
257
|
+
import {UserConverterSocketMiddleware, ErrorHandlerSocketMiddleware} from "../middlewares.js";
|
|
258
|
+
import {User} from "../models/User.js";
|
|
259
259
|
|
|
260
260
|
@SocketService("/my-namespace")
|
|
261
261
|
@SocketUseBefore(UserConverterSocketMiddleware) // global version
|