@tsed/json-mapper 8.0.0-alpha.5 → 8.0.0-alpha.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/browser/json-mapper.umd.min.js.map +1 -1
- package/lib/esm/utils/deserialize.js.map +1 -1
- package/lib/esm/utils/serialize.js.map +1 -1
- package/lib/types/utils/deserialize.d.ts +3 -3
- package/lib/types/utils/serialize.d.ts +3 -3
- package/package.json +11 -11
- package/lib/cjs/components/DateMapper.js +0 -30
- package/lib/cjs/components/DateMapper.js.map +0 -1
- package/lib/cjs/components/PrimitiveMapper.js +0 -64
- package/lib/cjs/components/PrimitiveMapper.js.map +0 -1
- package/lib/cjs/components/SymbolMapper.js +0 -24
- package/lib/cjs/components/SymbolMapper.js.map +0 -1
- package/lib/cjs/decorators/afterDeserialize.js +0 -39
- package/lib/cjs/decorators/afterDeserialize.js.map +0 -1
- package/lib/cjs/decorators/beforeDeserialize.js +0 -39
- package/lib/cjs/decorators/beforeDeserialize.js.map +0 -1
- package/lib/cjs/decorators/jsonMapper.js +0 -18
- package/lib/cjs/decorators/jsonMapper.js.map +0 -1
- package/lib/cjs/decorators/onDeserialize.js +0 -29
- package/lib/cjs/decorators/onDeserialize.js.map +0 -1
- package/lib/cjs/decorators/onSerialize.js +0 -29
- package/lib/cjs/decorators/onSerialize.js.map +0 -1
- package/lib/cjs/domain/JsonDeserializer.js +0 -295
- package/lib/cjs/domain/JsonDeserializer.js.map +0 -1
- package/lib/cjs/domain/JsonDeserializerOptions.js +0 -3
- package/lib/cjs/domain/JsonDeserializerOptions.js.map +0 -1
- package/lib/cjs/domain/JsonMapperCompiler.js +0 -167
- package/lib/cjs/domain/JsonMapperCompiler.js.map +0 -1
- package/lib/cjs/domain/JsonMapperGlobalOptions.js +0 -3
- package/lib/cjs/domain/JsonMapperGlobalOptions.js.map +0 -1
- package/lib/cjs/domain/JsonMapperSettings.js +0 -9
- package/lib/cjs/domain/JsonMapperSettings.js.map +0 -1
- package/lib/cjs/domain/JsonMapperTypesContainer.js +0 -23
- package/lib/cjs/domain/JsonMapperTypesContainer.js.map +0 -1
- package/lib/cjs/domain/JsonSerializer.js +0 -273
- package/lib/cjs/domain/JsonSerializer.js.map +0 -1
- package/lib/cjs/domain/JsonSerializerOptions.js +0 -3
- package/lib/cjs/domain/JsonSerializerOptions.js.map +0 -1
- package/lib/cjs/domain/Writer.js +0 -137
- package/lib/cjs/domain/Writer.js.map +0 -1
- package/lib/cjs/hooks/alterAfterDeserialize.js +0 -8
- package/lib/cjs/hooks/alterAfterDeserialize.js.map +0 -1
- package/lib/cjs/hooks/alterBeforeDeserialize.js +0 -8
- package/lib/cjs/hooks/alterBeforeDeserialize.js.map +0 -1
- package/lib/cjs/hooks/alterOnDeserialize.js +0 -8
- package/lib/cjs/hooks/alterOnDeserialize.js.map +0 -1
- package/lib/cjs/hooks/alterOnSerialize.js +0 -8
- package/lib/cjs/hooks/alterOnSerialize.js.map +0 -1
- package/lib/cjs/index.js +0 -32
- package/lib/cjs/index.js.map +0 -1
- package/lib/cjs/interfaces/JsonMapperMethods.js +0 -3
- package/lib/cjs/interfaces/JsonMapperMethods.js.map +0 -1
- package/lib/cjs/package.json +0 -3
- package/lib/cjs/utils/deserialize.js +0 -13
- package/lib/cjs/utils/deserialize.js.map +0 -1
- package/lib/cjs/utils/getObjectProperties.js +0 -9
- package/lib/cjs/utils/getObjectProperties.js.map +0 -1
- package/lib/cjs/utils/serialize.js +0 -13
- package/lib/cjs/utils/serialize.js.map +0 -1
- package/lib/esm/package.json +0 -3
- package/lib/types-esm/components/DateMapper.d.ts +0 -11
- package/lib/types-esm/components/PrimitiveMapper.d.ts +0 -18
- package/lib/types-esm/components/SymbolMapper.d.ts +0 -11
- package/lib/types-esm/decorators/afterDeserialize.d.ts +0 -33
- package/lib/types-esm/decorators/beforeDeserialize.d.ts +0 -33
- package/lib/types-esm/decorators/jsonMapper.d.ts +0 -7
- package/lib/types-esm/decorators/onDeserialize.d.ts +0 -23
- package/lib/types-esm/decorators/onSerialize.d.ts +0 -23
- package/lib/types-esm/domain/JsonDeserializer.d.ts +0 -33
- package/lib/types-esm/domain/JsonDeserializerOptions.d.ts +0 -28
- package/lib/types-esm/domain/JsonMapperCompiler.d.ts +0 -60
- package/lib/types-esm/domain/JsonMapperGlobalOptions.d.ts +0 -14
- package/lib/types-esm/domain/JsonMapperSettings.d.ts +0 -2
- package/lib/types-esm/domain/JsonMapperTypesContainer.d.ts +0 -10
- package/lib/types-esm/domain/JsonSerializer.d.ts +0 -22
- package/lib/types-esm/domain/JsonSerializerOptions.d.ts +0 -14
- package/lib/types-esm/domain/Writer.d.ts +0 -43
- package/lib/types-esm/hooks/alterAfterDeserialize.d.ts +0 -4
- package/lib/types-esm/hooks/alterBeforeDeserialize.d.ts +0 -4
- package/lib/types-esm/hooks/alterOnDeserialize.d.ts +0 -2
- package/lib/types-esm/hooks/alterOnSerialize.d.ts +0 -2
- package/lib/types-esm/index.d.ts +0 -28
- package/lib/types-esm/interfaces/JsonMapperMethods.d.ts +0 -28
- package/lib/types-esm/utils/deserialize.d.ts +0 -5
- package/lib/types-esm/utils/getObjectProperties.d.ts +0 -1
- package/lib/types-esm/utils/serialize.d.ts +0 -5
- /package/{webpack.config.js → webpack.config.cjs} +0 -0
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Type } from "@tsed/core";
|
|
2
|
-
export interface JsonMapperCtx<T = any, C = any> {
|
|
3
|
-
collectionType: Type<C> | undefined;
|
|
4
|
-
type: Type<T> | T;
|
|
5
|
-
next: JsonMapperNext;
|
|
6
|
-
options: {
|
|
7
|
-
format?: string;
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
export interface JsonMapperNext {
|
|
11
|
-
(obj: any): any;
|
|
12
|
-
}
|
|
13
|
-
export interface JsonMapperMethods {
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @param obj
|
|
17
|
-
* @param {JsonMapperNext} ctx
|
|
18
|
-
* @returns {any}
|
|
19
|
-
*/
|
|
20
|
-
deserialize<T = any, C = any>(obj: any, ctx: JsonMapperCtx<T, C>): any;
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @param obj
|
|
24
|
-
* @param ctx
|
|
25
|
-
* @returns {any}
|
|
26
|
-
*/
|
|
27
|
-
serialize(obj: any, ctx: JsonMapperCtx<any>): any;
|
|
28
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import "../components/DateMapper";
|
|
2
|
-
import "../components/PrimitiveMapper";
|
|
3
|
-
import "../components/SymbolMapper";
|
|
4
|
-
import { JsonDeserializerOptions } from "../domain/JsonDeserializerOptions.js";
|
|
5
|
-
export declare function deserialize<Model = any>(input: any, options?: JsonDeserializerOptions): Model;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getObjectProperties(obj: any): [string, any][];
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import "../components/DateMapper";
|
|
2
|
-
import "../components/PrimitiveMapper";
|
|
3
|
-
import "../components/SymbolMapper";
|
|
4
|
-
import { JsonSerializerOptions } from "../domain/JsonSerializerOptions.js";
|
|
5
|
-
export declare function serialize(input: any, options?: JsonSerializerOptions): any;
|
|
File without changes
|