@tsed/json-mapper 7.80.1 → 7.80.3
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/cjs/package.json +3 -0
- package/lib/esm/package.json +3 -0
- package/lib/esm/utils/deserialize.js +3 -3
- package/lib/esm/utils/serialize.js +3 -3
- package/lib/types/domain/JsonDeserializerOptions.d.ts +5 -1
- package/lib/types-esm/domain/JsonDeserializerOptions.d.ts +5 -1
- package/package.json +8 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../components/DateMapper";
|
|
2
|
-
import "../components/PrimitiveMapper";
|
|
3
|
-
import "../components/SymbolMapper";
|
|
1
|
+
import "../components/DateMapper.js";
|
|
2
|
+
import "../components/PrimitiveMapper.js";
|
|
3
|
+
import "../components/SymbolMapper.js";
|
|
4
4
|
import { JsonDeserializer } from "../domain/JsonDeserializer.js";
|
|
5
5
|
const deserializer = new JsonDeserializer();
|
|
6
6
|
export function deserialize(input, options) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../components/DateMapper";
|
|
2
|
-
import "../components/PrimitiveMapper";
|
|
3
|
-
import "../components/SymbolMapper";
|
|
1
|
+
import "../components/DateMapper.js";
|
|
2
|
+
import "../components/PrimitiveMapper.js";
|
|
3
|
+
import "../components/SymbolMapper.js";
|
|
4
4
|
import { JsonSerializer } from "../domain/JsonSerializer.js";
|
|
5
5
|
const serializer = new JsonSerializer();
|
|
6
6
|
export function serialize(input, options) {
|
|
@@ -6,7 +6,7 @@ export interface JsonDeserializerOptions<T = any, C = any> extends MetadataTypes
|
|
|
6
6
|
/**
|
|
7
7
|
* Types used to map complex types (Symbol, Array, Set, Map)
|
|
8
8
|
*/
|
|
9
|
-
types?: Map<Type
|
|
9
|
+
types?: Map<Type | Symbol | string, JsonMapperMethods>;
|
|
10
10
|
/**
|
|
11
11
|
* useAlias mapping
|
|
12
12
|
*/
|
|
@@ -20,5 +20,9 @@ export interface JsonDeserializerOptions<T = any, C = any> extends MetadataTypes
|
|
|
20
20
|
*
|
|
21
21
|
*/
|
|
22
22
|
groups?: string[] | false;
|
|
23
|
+
/**
|
|
24
|
+
* Add types to deserialize a module using generics feature.
|
|
25
|
+
*/
|
|
26
|
+
generics?: Type[][];
|
|
23
27
|
[key: string]: any;
|
|
24
28
|
}
|
|
@@ -6,7 +6,7 @@ export interface JsonDeserializerOptions<T = any, C = any> extends MetadataTypes
|
|
|
6
6
|
/**
|
|
7
7
|
* Types used to map complex types (Symbol, Array, Set, Map)
|
|
8
8
|
*/
|
|
9
|
-
types?: Map<Type
|
|
9
|
+
types?: Map<Type | Symbol | string, JsonMapperMethods>;
|
|
10
10
|
/**
|
|
11
11
|
* useAlias mapping
|
|
12
12
|
*/
|
|
@@ -20,5 +20,9 @@ export interface JsonDeserializerOptions<T = any, C = any> extends MetadataTypes
|
|
|
20
20
|
*
|
|
21
21
|
*/
|
|
22
22
|
groups?: string[] | false;
|
|
23
|
+
/**
|
|
24
|
+
* Add types to deserialize a module using generics feature.
|
|
25
|
+
*/
|
|
26
|
+
generics?: Type[][];
|
|
23
27
|
[key: string]: any;
|
|
24
28
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@tsed/json-mapper",
|
|
3
3
|
"description": "Json mapper module for Ts.ED Framework",
|
|
4
4
|
"type": "commonjs",
|
|
5
|
-
"version": "7.80.
|
|
5
|
+
"version": "7.80.3",
|
|
6
6
|
"source": "./src/index.ts",
|
|
7
7
|
"main": "./lib/cjs/index.js",
|
|
8
8
|
"module": "./lib/esm/index.js",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"types": "./lib/types/index.d.ts",
|
|
14
14
|
"browser": "./lib/browser/json-mapper.umd.min.js",
|
|
15
15
|
"import": "./lib/esm/index.js",
|
|
16
|
+
"require": "./lib/cjs/index.js",
|
|
16
17
|
"default": "./lib/cjs/index.js"
|
|
17
18
|
}
|
|
18
19
|
},
|
|
@@ -41,17 +42,17 @@
|
|
|
41
42
|
"tslib": "2.6.1"
|
|
42
43
|
},
|
|
43
44
|
"devDependencies": {
|
|
44
|
-
"@tsed/barrels": "7.80.
|
|
45
|
-
"@tsed/core": "7.80.
|
|
46
|
-
"@tsed/schema": "7.80.
|
|
47
|
-
"@tsed/typescript": "7.80.
|
|
45
|
+
"@tsed/barrels": "7.80.3",
|
|
46
|
+
"@tsed/core": "7.80.3",
|
|
47
|
+
"@tsed/schema": "7.80.3",
|
|
48
|
+
"@tsed/typescript": "7.80.3",
|
|
48
49
|
"eslint": "^8.57.0",
|
|
49
50
|
"typescript": "4.9.5",
|
|
50
51
|
"vitest": "2.0.4"
|
|
51
52
|
},
|
|
52
53
|
"peerDependencies": {
|
|
53
|
-
"@tsed/core": "7.80.
|
|
54
|
-
"@tsed/schema": "7.80.
|
|
54
|
+
"@tsed/core": "7.80.3",
|
|
55
|
+
"@tsed/schema": "7.80.3"
|
|
55
56
|
},
|
|
56
57
|
"peerDependenciesMeta": {
|
|
57
58
|
"@tsed/core": {
|