@tsed/common 6.102.8-rc.3 → 6.103.1

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.
Files changed (2) hide show
  1. package/package.json +17 -20
  2. package/readme.md +5 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsed/common",
3
- "version": "6.102.8-rc.3",
3
+ "version": "6.103.1",
4
4
  "description": "A TypeScript Framework on top of Express",
5
5
  "private": false,
6
6
  "source": "./src/index.ts",
@@ -48,7 +48,7 @@
48
48
  "bugs": {
49
49
  "url": "https://github.com/tsedio/tsed/issues"
50
50
  },
51
- "homepage": "https://github.com/tsedio/tsed/tree/rc/packages/platform/common",
51
+ "homepage": "https://github.com/tsedio/tsed/tree/production/packages/platform/common",
52
52
  "repository": "https://github.com/tsedio/tsed",
53
53
  "funding": [
54
54
  {
@@ -61,21 +61,21 @@
61
61
  }
62
62
  ],
63
63
  "dependencies": {
64
- "@tsed/components-scan": "6.102.8-rc.3",
65
- "@tsed/core": "6.102.8-rc.3",
66
- "@tsed/exceptions": "6.102.8-rc.3",
67
- "@tsed/json-mapper": "6.102.8-rc.3",
64
+ "@tsed/components-scan": "6.103.1",
65
+ "@tsed/core": "6.103.1",
66
+ "@tsed/exceptions": "6.103.1",
67
+ "@tsed/json-mapper": "6.103.1",
68
68
  "@tsed/logger": ">=6.1.0",
69
69
  "@tsed/logger-file": ">=6.1.0",
70
- "@tsed/perf": "6.102.8-rc.3",
71
- "@tsed/platform-cache": "6.102.8-rc.3",
72
- "@tsed/platform-exceptions": "6.102.8-rc.3",
73
- "@tsed/platform-log-middleware": "6.102.8-rc.3",
74
- "@tsed/platform-middlewares": "6.102.8-rc.3",
75
- "@tsed/platform-params": "6.102.8-rc.3",
76
- "@tsed/platform-response-filter": "6.102.8-rc.3",
77
- "@tsed/platform-views": "6.102.8-rc.3",
78
- "@tsed/schema": "6.102.8-rc.3",
70
+ "@tsed/perf": "6.103.1",
71
+ "@tsed/platform-cache": "6.103.1",
72
+ "@tsed/platform-exceptions": "6.103.1",
73
+ "@tsed/platform-log-middleware": "6.103.1",
74
+ "@tsed/platform-middlewares": "6.103.1",
75
+ "@tsed/platform-params": "6.103.1",
76
+ "@tsed/platform-response-filter": "6.103.1",
77
+ "@tsed/platform-views": "6.103.1",
78
+ "@tsed/schema": "6.103.1",
79
79
  "@types/json-schema": "7.0.7",
80
80
  "@types/on-finished": "2.3.1",
81
81
  "on-finished": "2.3.0",
@@ -83,14 +83,11 @@
83
83
  "uuid": "8.3.2"
84
84
  },
85
85
  "devDependencies": {
86
- "@tsed/core": "6.102.8-rc.3"
86
+ "@tsed/core": "6.103.1"
87
87
  },
88
88
  "peerDependencies": {
89
- "@tsed/di": "^6.102.8-rc.3",
89
+ "@tsed/di": "^6.103.1",
90
90
  "@tsed/logger": ">=6.1.0",
91
91
  "@tsed/logger-file": ">=6.1.0"
92
- },
93
- "publishConfig": {
94
- "tag": "rc"
95
92
  }
96
93
  }
package/readme.md CHANGED
@@ -75,12 +75,13 @@ Here an example to create a Server with Ts.ED:
75
75
  import {Configuration, Inject} from "@tsed/di";
76
76
  import {PlatformApplication} from "@tsed/common";
77
77
  import "@tsed/platform-express";
78
- import * as Path from "path";
79
-
80
- export const rootDir = Path.resolve(__dirname);
78
+ import Path from "path";
79
+ import cookieParser from "cookie-parser";
80
+ import bodyParser from "body-parser";
81
+ import compress from "compression";
82
+ import methodOverride from "method-override";
81
83
 
82
84
  @Configuration({
83
- rootDir,
84
85
  port: 3000
85
86
  })
86
87
  export class Server {
@@ -88,11 +89,6 @@ export class Server {
88
89
  app: PlatformApplication;
89
90
 
90
91
  public $beforeRoutesInit() {
91
- const cookieParser = require("cookie-parser"),
92
- bodyParser = require("body-parser"),
93
- compress = require("compression"),
94
- methodOverride = require("method-override");
95
-
96
92
  this.app
97
93
  .use(cookieParser())
98
94
  .use(compress({}))