@tsed/common 8.0.0-beta.4 → 8.0.0-beta.6

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 CHANGED
@@ -4,8 +4,10 @@ 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";
10
11
  export * from "@tsed/platform-router";
12
+ export { AcceptMime, All, Delete, Get, Head, Location, Options, Patch, Post, Put, Redirect, View } from "@tsed/schema";
11
13
  //# sourceMappingURL=index.js.map
@@ -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;AACtC,OAAO,EAAC,UAAU,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC"}
@@ -4,7 +4,9 @@ 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";
10
11
  export * from "@tsed/platform-router";
12
+ export { AcceptMime, All, Delete, Get, Head, Location, Options, Patch, Post, Put, Redirect, View } from "@tsed/schema";
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.4",
5
+ "version": "8.0.0-beta.6",
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.4",
63
+ "@tsed/platform-http": "8.0.0-beta.6",
64
64
  "tslib": "2.7.0"
65
65
  },
66
66
  "devDependencies": {
67
- "@tsed/barrels": "8.0.0-beta.4",
68
- "@tsed/engines": "8.0.0-beta.4",
69
- "@tsed/typescript": "8.0.0-beta.4",
67
+ "@tsed/barrels": "8.0.0-beta.6",
68
+ "@tsed/engines": "8.0.0-beta.6",
69
+ "@tsed/typescript": "8.0.0-beta.6",
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/common";
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/common";
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/common";
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";