@tsed/common 6.75.4 → 6.75.8
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/config/services/PlatformConfiguration.d.ts +5 -0
- package/lib/index.js +41 -95
- package/lib/index.js.map +1 -1
- package/lib/index.modern.js +44 -99
- package/lib/index.modern.js.map +1 -1
- package/lib/services/PlatformHandler.d.ts +0 -7
- package/lib/services/index.d.ts +0 -1
- package/package.json +15 -15
- package/lib/services/ConverterService.d.ts +0 -30
|
@@ -64,13 +64,6 @@ export declare class PlatformHandler {
|
|
|
64
64
|
* @protected
|
|
65
65
|
*/
|
|
66
66
|
protected callReturnedMiddleware(middleware: any, ctx: PlatformContext, next: any): any;
|
|
67
|
-
/**
|
|
68
|
-
* Render the view if the endpoint has a configured view.
|
|
69
|
-
* @param data
|
|
70
|
-
* @param ctx
|
|
71
|
-
* @protected
|
|
72
|
-
*/
|
|
73
|
-
protected render(data: any, ctx: PlatformContext): Promise<any>;
|
|
74
67
|
/**
|
|
75
68
|
* create Raw handler
|
|
76
69
|
* @param metadata
|
package/lib/services/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/common",
|
|
3
|
-
"version": "6.75.
|
|
3
|
+
"version": "6.75.8",
|
|
4
4
|
"description": "A TypeScript Framework on top of Express",
|
|
5
5
|
"private": false,
|
|
6
6
|
"source": "./src/index.ts",
|
|
@@ -55,21 +55,21 @@
|
|
|
55
55
|
"build": "microbundle --target node --no-compress --format modern,cjs --tsconfig ./tsconfig.compile.json"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@tsed/components-scan": "6.75.
|
|
59
|
-
"@tsed/core": "6.75.
|
|
60
|
-
"@tsed/di": "6.75.
|
|
61
|
-
"@tsed/exceptions": "6.75.
|
|
62
|
-
"@tsed/json-mapper": "6.75.
|
|
58
|
+
"@tsed/components-scan": "6.75.8",
|
|
59
|
+
"@tsed/core": "6.75.8",
|
|
60
|
+
"@tsed/di": "6.75.8",
|
|
61
|
+
"@tsed/exceptions": "6.75.8",
|
|
62
|
+
"@tsed/json-mapper": "6.75.8",
|
|
63
63
|
"@tsed/logger": "^5.16.0",
|
|
64
|
-
"@tsed/perf": "6.75.
|
|
65
|
-
"@tsed/platform-cache": "6.75.
|
|
66
|
-
"@tsed/platform-exceptions": "6.75.
|
|
67
|
-
"@tsed/platform-log-middleware": "6.75.
|
|
68
|
-
"@tsed/platform-middlewares": "6.75.
|
|
69
|
-
"@tsed/platform-params": "6.75.
|
|
70
|
-
"@tsed/platform-response-filter": "6.75.
|
|
71
|
-
"@tsed/platform-views": "6.75.
|
|
72
|
-
"@tsed/schema": "6.75.
|
|
64
|
+
"@tsed/perf": "6.75.8",
|
|
65
|
+
"@tsed/platform-cache": "6.75.8",
|
|
66
|
+
"@tsed/platform-exceptions": "6.75.8",
|
|
67
|
+
"@tsed/platform-log-middleware": "6.75.8",
|
|
68
|
+
"@tsed/platform-middlewares": "6.75.8",
|
|
69
|
+
"@tsed/platform-params": "6.75.8",
|
|
70
|
+
"@tsed/platform-response-filter": "6.75.8",
|
|
71
|
+
"@tsed/platform-views": "6.75.8",
|
|
72
|
+
"@tsed/schema": "6.75.8",
|
|
73
73
|
"@types/json-schema": "7.0.7",
|
|
74
74
|
"json-schema": "^0.2.3",
|
|
75
75
|
"on-finished": "2.3.0",
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Configuration, InjectorService } from "@tsed/di";
|
|
2
|
-
import { JsonDeserializerOptions, JsonSerializerOptions } from "@tsed/json-mapper";
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated Since 2021-10-03. Use serialize/deserialize functions from @tsed/json-mapper instead
|
|
5
|
-
*/
|
|
6
|
-
export declare class ConverterService {
|
|
7
|
-
#private;
|
|
8
|
-
private injectorService;
|
|
9
|
-
constructor(injectorService: InjectorService, configuration: Configuration);
|
|
10
|
-
/**
|
|
11
|
-
* Convert instance to plainObject.
|
|
12
|
-
*
|
|
13
|
-
* @param obj
|
|
14
|
-
* @param options
|
|
15
|
-
*/
|
|
16
|
-
serialize(obj: any, options?: JsonSerializerOptions): any;
|
|
17
|
-
/**
|
|
18
|
-
* Convert a plainObject to targetType.
|
|
19
|
-
*
|
|
20
|
-
* ### Options
|
|
21
|
-
*
|
|
22
|
-
* - `ignoreCallback`: callback called for each object which will be deserialized. The callback can return a boolean to avoid the default converter behavior.
|
|
23
|
-
* - `checkRequiredValue`: Disable the required check condition.
|
|
24
|
-
*
|
|
25
|
-
* @param obj Object source that will be deserialized
|
|
26
|
-
* @param options Mapping options
|
|
27
|
-
* @returns {any}
|
|
28
|
-
*/
|
|
29
|
-
deserialize(obj: any, options?: JsonDeserializerOptions): any;
|
|
30
|
-
}
|