@tsed/common 8.0.0-beta.4 → 8.0.0-beta.5
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/esm/index.js +1 -0
- package/lib/esm/index.js.map +1 -1
- package/lib/types/index.d.ts +1 -0
- package/package.json +5 -5
- package/readme.md +3 -3
package/lib/esm/index.js
CHANGED
|
@@ -4,6 +4,7 @@ export * from "@tsed/di";
|
|
|
4
4
|
export { $log, Logger } from "@tsed/logger";
|
|
5
5
|
export * from "@tsed/platform-exceptions";
|
|
6
6
|
export * from "@tsed/platform-http";
|
|
7
|
+
export * from "@tsed/platform-http/testing";
|
|
7
8
|
export * from "@tsed/platform-middlewares";
|
|
8
9
|
export * from "@tsed/platform-params";
|
|
9
10
|
export * from "@tsed/platform-response-filter";
|
package/lib/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AACtB,OAAO,mBAAmB,CAAC;AAE3B,cAAc,UAAU,CAAC;AACzB,OAAO,EAAC,IAAI,EAAE,MAAM,EAAC,MAAM,cAAc,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AACtB,OAAO,mBAAmB,CAAC;AAE3B,cAAc,UAAU,CAAC;AACzB,OAAO,EAAC,IAAI,EAAE,MAAM,EAAC,MAAM,cAAc,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC"}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from "@tsed/di";
|
|
|
4
4
|
export { $log, Logger } from "@tsed/logger";
|
|
5
5
|
export * from "@tsed/platform-exceptions";
|
|
6
6
|
export * from "@tsed/platform-http";
|
|
7
|
+
export * from "@tsed/platform-http/testing";
|
|
7
8
|
export * from "@tsed/platform-middlewares";
|
|
8
9
|
export * from "@tsed/platform-params";
|
|
9
10
|
export * from "@tsed/platform-response-filter";
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@tsed/common",
|
|
3
3
|
"description": "A TypeScript Framework on top of Express",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "8.0.0-beta.
|
|
5
|
+
"version": "8.0.0-beta.5",
|
|
6
6
|
"source": "./src/index.ts",
|
|
7
7
|
"main": "../common/lib/esm/index.js",
|
|
8
8
|
"module": "../common/lib/esm/index.js",
|
|
@@ -60,13 +60,13 @@
|
|
|
60
60
|
}
|
|
61
61
|
],
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@tsed/platform-http": "8.0.0-beta.
|
|
63
|
+
"@tsed/platform-http": "8.0.0-beta.5",
|
|
64
64
|
"tslib": "2.7.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@tsed/barrels": "8.0.0-beta.
|
|
68
|
-
"@tsed/engines": "8.0.0-beta.
|
|
69
|
-
"@tsed/typescript": "8.0.0-beta.
|
|
67
|
+
"@tsed/barrels": "8.0.0-beta.5",
|
|
68
|
+
"@tsed/engines": "8.0.0-beta.5",
|
|
69
|
+
"@tsed/typescript": "8.0.0-beta.5",
|
|
70
70
|
"cross-env": "7.0.3",
|
|
71
71
|
"eslint": "9.12.0",
|
|
72
72
|
"typescript": "5.4.5"
|
package/readme.md
CHANGED
|
@@ -75,7 +75,7 @@ Here an example to create a Server with Ts.ED:
|
|
|
75
75
|
|
|
76
76
|
```typescript
|
|
77
77
|
import {Configuration, Inject} from "@tsed/di";
|
|
78
|
-
import {PlatformApplication} from "@tsed/
|
|
78
|
+
import {PlatformApplication} from "@tsed/platform-http";
|
|
79
79
|
import "@tsed/platform-express";
|
|
80
80
|
import Path from "path";
|
|
81
81
|
import cookieParser from "cookie-parser";
|
|
@@ -93,7 +93,7 @@ To run your server, you have to use Platform API to bootstrap your application w
|
|
|
93
93
|
platform like Express.
|
|
94
94
|
|
|
95
95
|
```typescript
|
|
96
|
-
import {$log} from "@tsed/
|
|
96
|
+
import {$log} from "@tsed/logger";
|
|
97
97
|
import {PlatformExpress} from "@tsed/platform-express";
|
|
98
98
|
import {Server} from "./Server.js";
|
|
99
99
|
|
|
@@ -134,7 +134,7 @@ import {
|
|
|
134
134
|
BodyParams,
|
|
135
135
|
Status,
|
|
136
136
|
Put
|
|
137
|
-
} from "@tsed/
|
|
137
|
+
} from "@tsed/schema";
|
|
138
138
|
import {BadRequest} from "@tsed/exceptions";
|
|
139
139
|
import {UsersService} from "../services/UsersService.js";
|
|
140
140
|
import {User} from "../models/User.js";
|