@tsed/common 8.0.0-alpha.8 → 8.0.0-beta.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.
- package/lib/esm/decorators/multer/multerFileSize.js +2 -2
- package/lib/esm/decorators/multer/multerOptions.js +2 -1
- package/lib/esm/decorators/multer/multerOptions.js.map +1 -1
- package/lib/esm/decorators/multer/multipartFile.js +2 -2
- package/lib/esm/exports.js +0 -1
- package/lib/esm/exports.js.map +1 -1
- package/lib/types/decorators/multer/multerFileSize.d.ts +2 -2
- package/lib/types/decorators/multer/multerOptions.d.ts +2 -1
- package/lib/types/decorators/multer/multipartFile.d.ts +2 -2
- package/lib/types/exports.d.ts +0 -1
- package/lib/types/services/PlatformResponse.d.ts +1 -0
- package/package.json +24 -24
|
@@ -3,8 +3,8 @@ import { MulterOptions } from "./multerOptions.js";
|
|
|
3
3
|
* Define file size limit.
|
|
4
4
|
*
|
|
5
5
|
* ```typescript
|
|
6
|
-
* import {
|
|
7
|
-
* import {MulterOptions, MultipartFile} from "@tsed/common";
|
|
6
|
+
* import {Post} from "@tsed/schema";
|
|
7
|
+
* import {Controller, MulterOptions, MultipartFile} from "@tsed/common";
|
|
8
8
|
* import {Multer} from "@types/multer";
|
|
9
9
|
*
|
|
10
10
|
* type MulterFile = Express.Multer.File;
|
|
@@ -4,7 +4,8 @@ import { PlatformMulterMiddleware } from "../../middlewares/PlatformMulterMiddle
|
|
|
4
4
|
* Define multer option for all MultipartFile
|
|
5
5
|
*
|
|
6
6
|
* ```typescript
|
|
7
|
-
* import {Controller,
|
|
7
|
+
* import {Controller, PlatformMulterFile, MultipartFile, MulterOptions} from "@tsed/common";
|
|
8
|
+
* import {Post} from "@tsed/schema";
|
|
8
9
|
*
|
|
9
10
|
* @Controller('/')
|
|
10
11
|
* class MyCtrl {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multerOptions.js","sourceRoot":"","sources":["../../../../src/decorators/multer/multerOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,YAAY,CAAC;AAGtC,OAAO,EAAC,wBAAwB,EAAC,MAAM,+CAA+C,CAAC;AAEvF
|
|
1
|
+
{"version":3,"file":"multerOptions.js","sourceRoot":"","sources":["../../../../src/decorators/multer/multerOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,YAAY,CAAC;AAGtC,OAAO,EAAC,wBAAwB,EAAC,MAAM,+CAA+C,CAAC;AAEvF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAM,UAAU,aAAa,CAAC,OAA+B;IAC3D,OAAO,CAAC,MAAW,EAAE,WAAmB,EAAE,UAA8B,EAAE,EAAE;QAC1E,UAAU,CAAC,wBAAwB,EAAE,EAAC,OAAO,EAAC,CAAC,CAAC,MAAM,EAAE,WAAW,EAAE,UAAU,CAAC,CAAC;QAEjF,OAAO,UAAU,CAAC;IACpB,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -16,8 +16,8 @@ function mapOptions(name, maxCount) {
|
|
|
16
16
|
* Define a parameter as Multipart file.
|
|
17
17
|
*
|
|
18
18
|
* ```typescript
|
|
19
|
-
* import {
|
|
20
|
-
* import {MulterOptions, MultipartFile} from "@tsed/common";
|
|
19
|
+
* import {Post} from "@tsed/schema";
|
|
20
|
+
* import {Controller, MulterOptions, MultipartFile} from "@tsed/common";
|
|
21
21
|
* import {Multer} from "@types/multer";
|
|
22
22
|
*
|
|
23
23
|
* type MulterFile = Express.Multer.File;
|
package/lib/esm/exports.js
CHANGED
|
@@ -7,5 +7,4 @@ export * from "@tsed/platform-middlewares";
|
|
|
7
7
|
export * from "@tsed/platform-params";
|
|
8
8
|
export * from "@tsed/platform-response-filter";
|
|
9
9
|
export * from "@tsed/platform-router";
|
|
10
|
-
export { AcceptMime, All, Delete, Get, Head, Location, Options, Patch, Post, Put, Redirect, View } from "@tsed/schema";
|
|
11
10
|
//# sourceMappingURL=exports.js.map
|
package/lib/esm/exports.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exports.js","sourceRoot":"","sources":["../../src/exports.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,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC
|
|
1
|
+
{"version":3,"file":"exports.js","sourceRoot":"","sources":["../../src/exports.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,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Define file size limit.
|
|
3
3
|
*
|
|
4
4
|
* ```typescript
|
|
5
|
-
* import {
|
|
6
|
-
* import {MulterOptions, MultipartFile} from "@tsed/common";
|
|
5
|
+
* import {Post} from "@tsed/schema";
|
|
6
|
+
* import {Controller, MulterOptions, MultipartFile} from "@tsed/common";
|
|
7
7
|
* import {Multer} from "@types/multer";
|
|
8
8
|
*
|
|
9
9
|
* type MulterFile = Express.Multer.File;
|
|
@@ -3,7 +3,8 @@ import { PlatformMulterSettings } from "../../config/interfaces/PlatformMulterSe
|
|
|
3
3
|
* Define multer option for all MultipartFile
|
|
4
4
|
*
|
|
5
5
|
* ```typescript
|
|
6
|
-
* import {Controller,
|
|
6
|
+
* import {Controller, PlatformMulterFile, MultipartFile, MulterOptions} from "@tsed/common";
|
|
7
|
+
* import {Post} from "@tsed/schema";
|
|
7
8
|
*
|
|
8
9
|
* @Controller('/')
|
|
9
10
|
* class MyCtrl {
|
|
@@ -3,8 +3,8 @@ import { PlatformMulterFile } from "../../config/interfaces/PlatformMulterSettin
|
|
|
3
3
|
* Define a parameter as Multipart file.
|
|
4
4
|
*
|
|
5
5
|
* ```typescript
|
|
6
|
-
* import {
|
|
7
|
-
* import {MulterOptions, MultipartFile} from "@tsed/common";
|
|
6
|
+
* import {Post} from "@tsed/schema";
|
|
7
|
+
* import {Controller, MulterOptions, MultipartFile} from "@tsed/common";
|
|
8
8
|
* import {Multer} from "@types/multer";
|
|
9
9
|
*
|
|
10
10
|
* type MulterFile = Express.Multer.File;
|
package/lib/types/exports.d.ts
CHANGED
|
@@ -7,4 +7,3 @@ export * from "@tsed/platform-middlewares";
|
|
|
7
7
|
export * from "@tsed/platform-params";
|
|
8
8
|
export * from "@tsed/platform-response-filter";
|
|
9
9
|
export * from "@tsed/platform-router";
|
|
10
|
-
export { AcceptMime, All, Delete, Get, Head, Location, Options, Patch, Post, Put, Redirect, View } from "@tsed/schema";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" resolution-mode="require"/>
|
|
2
2
|
/// <reference types="node" resolution-mode="require"/>
|
|
3
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
3
4
|
import { OutgoingHttpHeaders, ServerResponse } from "http";
|
|
4
5
|
import type { PlatformContext } from "../domain/PlatformContext.js";
|
|
5
6
|
import type { PlatformRequest } from "./PlatformRequest.js";
|
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-
|
|
5
|
+
"version": "8.0.0-beta.1",
|
|
6
6
|
"source": "./src/index.ts",
|
|
7
7
|
"main": "./lib/esm/index.js",
|
|
8
8
|
"module": "./lib/esm/index.js",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
".": {
|
|
12
12
|
"types": "./lib/types/index.d.ts",
|
|
13
13
|
"import": "./lib/esm/index.js",
|
|
14
|
-
"default": "./lib/
|
|
14
|
+
"default": "./lib/esm/index.js"
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
"scripts": {
|
|
@@ -63,34 +63,34 @@
|
|
|
63
63
|
}
|
|
64
64
|
],
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@tsed/core": "8.0.0-
|
|
67
|
-
"@tsed/di": "8.0.0-
|
|
68
|
-
"@tsed/exceptions": "8.0.0-
|
|
69
|
-
"@tsed/json-mapper": "8.0.0-
|
|
70
|
-
"@tsed/logger": "
|
|
71
|
-
"@tsed/logger-file": "
|
|
72
|
-
"@tsed/platform-exceptions": "8.0.0-
|
|
73
|
-
"@tsed/platform-log-middleware": "8.0.0-
|
|
74
|
-
"@tsed/platform-middlewares": "8.0.0-
|
|
75
|
-
"@tsed/platform-params": "8.0.0-
|
|
76
|
-
"@tsed/platform-response-filter": "8.0.0-
|
|
77
|
-
"@tsed/platform-router": "8.0.0-
|
|
78
|
-
"@tsed/platform-views": "8.0.0-
|
|
79
|
-
"@tsed/schema": "8.0.0-
|
|
66
|
+
"@tsed/core": "8.0.0-beta.1",
|
|
67
|
+
"@tsed/di": "8.0.0-beta.1",
|
|
68
|
+
"@tsed/exceptions": "8.0.0-beta.1",
|
|
69
|
+
"@tsed/json-mapper": "8.0.0-beta.1",
|
|
70
|
+
"@tsed/logger": "^6.7.8",
|
|
71
|
+
"@tsed/logger-file": "^6.7.8",
|
|
72
|
+
"@tsed/platform-exceptions": "8.0.0-beta.1",
|
|
73
|
+
"@tsed/platform-log-middleware": "8.0.0-beta.1",
|
|
74
|
+
"@tsed/platform-middlewares": "8.0.0-beta.1",
|
|
75
|
+
"@tsed/platform-params": "8.0.0-beta.1",
|
|
76
|
+
"@tsed/platform-response-filter": "8.0.0-beta.1",
|
|
77
|
+
"@tsed/platform-router": "8.0.0-beta.1",
|
|
78
|
+
"@tsed/platform-views": "8.0.0-beta.1",
|
|
79
|
+
"@tsed/schema": "8.0.0-beta.1",
|
|
80
80
|
"@types/json-schema": "7.0.15",
|
|
81
81
|
"accepts": "^1.3.8",
|
|
82
82
|
"tslib": "2.7.0",
|
|
83
|
-
"uuid": "
|
|
83
|
+
"uuid": "10.0.0"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
|
-
"@tsed/barrels": "8.0.0-
|
|
87
|
-
"@tsed/components-scan": "8.0.0-
|
|
88
|
-
"@tsed/engines": "8.0.0-
|
|
89
|
-
"@tsed/typescript": "8.0.0-
|
|
86
|
+
"@tsed/barrels": "8.0.0-beta.1",
|
|
87
|
+
"@tsed/components-scan": "8.0.0-beta.1",
|
|
88
|
+
"@tsed/engines": "8.0.0-beta.1",
|
|
89
|
+
"@tsed/typescript": "8.0.0-beta.1",
|
|
90
90
|
"cross-env": "7.0.3",
|
|
91
|
-
"eslint": "9.
|
|
91
|
+
"eslint": "9.12.0",
|
|
92
92
|
"typescript": "5.4.5",
|
|
93
|
-
"vitest": "2.
|
|
93
|
+
"vitest": "2.1.2"
|
|
94
94
|
},
|
|
95
95
|
"peerDependencies": {
|
|
96
96
|
"@tsed/logger": ">=6.7.5",
|
|
@@ -105,6 +105,6 @@
|
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
107
|
"publishConfig": {
|
|
108
|
-
"tag": "
|
|
108
|
+
"tag": "beta"
|
|
109
109
|
}
|
|
110
110
|
}
|