@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,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PrimitiveMapper = exports.CastError = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const core_1 = require("@tsed/core");
|
|
6
|
-
const jsonMapper_js_1 = require("../decorators/jsonMapper.js");
|
|
7
|
-
function isNullish(data) {
|
|
8
|
-
return [null, "null"].includes(data);
|
|
9
|
-
}
|
|
10
|
-
class CastError extends Error {
|
|
11
|
-
constructor(message) {
|
|
12
|
-
super(`Cast error. ${message}`);
|
|
13
|
-
this.name = "CAST_ERROR";
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
exports.CastError = CastError;
|
|
17
|
-
/**
|
|
18
|
-
* Mapper for the `String`, `Number`, `BigInt` and `Boolean` types.
|
|
19
|
-
* @jsonmapper
|
|
20
|
-
* @component
|
|
21
|
-
*/
|
|
22
|
-
let PrimitiveMapper = class PrimitiveMapper {
|
|
23
|
-
deserialize(data, ctx) {
|
|
24
|
-
return this[(0, core_1.nameOf)(ctx.type)] ? this[(0, core_1.nameOf)(ctx.type)](data, ctx) : undefined;
|
|
25
|
-
}
|
|
26
|
-
serialize(object, ctx) {
|
|
27
|
-
return this[(0, core_1.nameOf)(ctx?.type)] && typeof object !== "object" ? this[(0, core_1.nameOf)(ctx.type)](object, ctx) : object;
|
|
28
|
-
}
|
|
29
|
-
String(data) {
|
|
30
|
-
return data === null ? null : "" + data;
|
|
31
|
-
}
|
|
32
|
-
Boolean(data) {
|
|
33
|
-
if (["true", "1", true].includes(data))
|
|
34
|
-
return true;
|
|
35
|
-
if (["false", "0", false].includes(data))
|
|
36
|
-
return false;
|
|
37
|
-
if (isNullish(data))
|
|
38
|
-
return null;
|
|
39
|
-
if (data === undefined)
|
|
40
|
-
return undefined;
|
|
41
|
-
return !!data;
|
|
42
|
-
}
|
|
43
|
-
Number(data) {
|
|
44
|
-
if (isNullish(data))
|
|
45
|
-
return null;
|
|
46
|
-
if (data === undefined)
|
|
47
|
-
return data;
|
|
48
|
-
const n = +data;
|
|
49
|
-
if (isNaN(n)) {
|
|
50
|
-
throw new CastError("Expression value is not a number.");
|
|
51
|
-
}
|
|
52
|
-
return n;
|
|
53
|
-
}
|
|
54
|
-
BigInt(data) {
|
|
55
|
-
if (isNullish(data))
|
|
56
|
-
return null;
|
|
57
|
-
return BigInt(data);
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
PrimitiveMapper = tslib_1.__decorate([
|
|
61
|
-
(0, jsonMapper_js_1.JsonMapper)(String, Number, Boolean, BigInt)
|
|
62
|
-
], PrimitiveMapper);
|
|
63
|
-
exports.PrimitiveMapper = PrimitiveMapper;
|
|
64
|
-
//# sourceMappingURL=PrimitiveMapper.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PrimitiveMapper.js","sourceRoot":"","sources":["../../../src/components/PrimitiveMapper.ts"],"names":[],"mappings":";;;;AAAA,qCAAkC;AAClC,+DAAuD;AAGvD,SAAS,SAAS,CAAC,IAAS;IAC1B,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AACvC,CAAC;AAED,MAAa,SAAU,SAAQ,KAAK;IAGlC,YAAY,OAAe;QACzB,KAAK,CAAC,eAAe,OAAO,EAAE,CAAC,CAAC;QAHlC,SAAI,GAAG,YAAY,CAAC;IAIpB,CAAC;CACF;AAND,8BAMC;AAED;;;;GAIG;AAEI,IAAM,eAAe,GAArB,MAAM,eAAe;IAC1B,WAAW,CAAI,IAAS,EAAE,GAAkB;QAC1C,OAAQ,IAAY,CAAC,IAAA,aAAM,EAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAE,IAAY,CAAC,IAAA,aAAM,EAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAClG,CAAC;IAED,SAAS,CAAC,MAA0C,EAAE,GAAkB;QACtE,OAAQ,IAAY,CAAC,IAAA,aAAM,EAAC,GAAG,EAAE,IAAI,CAAC,CAAC,IAAI,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAE,IAAY,CAAC,IAAA,aAAM,EAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;IAChI,CAAC;IAES,MAAM,CAAC,IAAS;QACxB,OAAO,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,CAAC;IAC1C,CAAC;IAES,OAAO,CAAC,IAAS;QACzB,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;YAAE,OAAO,IAAI,CAAC;QACpD,IAAI,CAAC,OAAO,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;YAAE,OAAO,KAAK,CAAC;QACvD,IAAI,SAAS,CAAC,IAAI,CAAC;YAAE,OAAO,IAAI,CAAC;QACjC,IAAI,IAAI,KAAK,SAAS;YAAE,OAAO,SAAS,CAAC;QAEzC,OAAO,CAAC,CAAC,IAAI,CAAC;IAChB,CAAC;IAES,MAAM,CAAC,IAAS;QACxB,IAAI,SAAS,CAAC,IAAI,CAAC;YAAE,OAAO,IAAI,CAAC;QACjC,IAAI,IAAI,KAAK,SAAS;YAAE,OAAO,IAAI,CAAC;QAEpC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC;QAEhB,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE;YACZ,MAAM,IAAI,SAAS,CAAC,mCAAmC,CAAC,CAAC;SAC1D;QAED,OAAO,CAAC,CAAC;IACX,CAAC;IAES,MAAM,CAAC,IAAS;QACxB,IAAI,SAAS,CAAC,IAAI,CAAC;YAAE,OAAO,IAAI,CAAC;QAEjC,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CACF,CAAA;AAxCY,eAAe;IAD3B,IAAA,0BAAU,EAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC;GAC/B,eAAe,CAwC3B;AAxCY,0CAAe"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SymbolMapper = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const jsonMapper_js_1 = require("../decorators/jsonMapper.js");
|
|
6
|
-
/**
|
|
7
|
-
* Mapper for the `Symbol` type.
|
|
8
|
-
*
|
|
9
|
-
* @jsonmapper
|
|
10
|
-
* @component
|
|
11
|
-
*/
|
|
12
|
-
let SymbolMapper = class SymbolMapper {
|
|
13
|
-
deserialize(data) {
|
|
14
|
-
return Symbol.for(data);
|
|
15
|
-
}
|
|
16
|
-
serialize(object) {
|
|
17
|
-
return object.toString().replace("Symbol(", "").replace(")", "");
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
SymbolMapper = tslib_1.__decorate([
|
|
21
|
-
(0, jsonMapper_js_1.JsonMapper)(Symbol)
|
|
22
|
-
], SymbolMapper);
|
|
23
|
-
exports.SymbolMapper = SymbolMapper;
|
|
24
|
-
//# sourceMappingURL=SymbolMapper.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SymbolMapper.js","sourceRoot":"","sources":["../../../src/components/SymbolMapper.ts"],"names":[],"mappings":";;;;AAAA,+DAAuD;AAGvD;;;;;GAKG;AAEI,IAAM,YAAY,GAAlB,MAAM,YAAY;IACvB,WAAW,CAAC,IAAY;QACtB,OAAO,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IAED,SAAS,CAAC,MAAc;QACtB,OAAO,MAAM,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;IACnE,CAAC;CACF,CAAA;AARY,YAAY;IADxB,IAAA,0BAAU,EAAC,MAAM,CAAC;GACN,YAAY,CAQxB;AARY,oCAAY"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AfterDeserialize = void 0;
|
|
4
|
-
const schema_1 = require("@tsed/schema");
|
|
5
|
-
/**
|
|
6
|
-
* Call the function after JsonMapper.
|
|
7
|
-
*
|
|
8
|
-
* ## Example
|
|
9
|
-
*
|
|
10
|
-
* ```typescript
|
|
11
|
-
* @AfterDeserialize((data: Model) => { // After deserialize get the instance class
|
|
12
|
-
* if (data.prop1 === 'VALUE' && data.prop2 !== 'VALUE2') {
|
|
13
|
-
* throw BadRequest('MyMessage'); // or throw a ValidationError
|
|
14
|
-
* } else {
|
|
15
|
-
* data.prop2 = 'VALUE2';
|
|
16
|
-
* return data;
|
|
17
|
-
* }
|
|
18
|
-
* })
|
|
19
|
-
* class Model {
|
|
20
|
-
* @Property()
|
|
21
|
-
* prop1: string;
|
|
22
|
-
* @Property()
|
|
23
|
-
* prop2: string;
|
|
24
|
-
* }
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
|
-
* @returns {Function}
|
|
28
|
-
* @decorator
|
|
29
|
-
* @schema
|
|
30
|
-
* @property
|
|
31
|
-
* @param cb
|
|
32
|
-
*/
|
|
33
|
-
function AfterDeserialize(cb) {
|
|
34
|
-
return (0, schema_1.JsonEntityFn)((storedJson) => {
|
|
35
|
-
storedJson.schema.$hooks.on("afterDeserialize", cb);
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
exports.AfterDeserialize = AfterDeserialize;
|
|
39
|
-
//# sourceMappingURL=afterDeserialize.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"afterDeserialize.js","sourceRoot":"","sources":["../../../src/decorators/afterDeserialize.ts"],"names":[],"mappings":";;;AAAA,yCAA2D;AAM3D;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,SAAgB,gBAAgB,CAAC,EAA4B;IAC3D,OAAO,IAAA,qBAAY,EAAC,CAAC,UAAU,EAAE,EAAE;QACjC,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC;IACtD,CAAC,CAAC,CAAC;AACL,CAAC;AAJD,4CAIC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BeforeDeserialize = void 0;
|
|
4
|
-
const schema_1 = require("@tsed/schema");
|
|
5
|
-
/**
|
|
6
|
-
* Call the function before JsonMapper.
|
|
7
|
-
*
|
|
8
|
-
* ## Example
|
|
9
|
-
*
|
|
10
|
-
* ```typescript
|
|
11
|
-
* @BeforeDeserialize((data: Record<string, unknown>) => { // Before deserialize get the data
|
|
12
|
-
* if (data.prop1 === 'VALUE' && data.prop2 !== 'VALUE2') {
|
|
13
|
-
* throw BadRequest('MyMessage'); // or throw a ValidationError
|
|
14
|
-
* } else {
|
|
15
|
-
* data.prop2 = 'VALUE2';
|
|
16
|
-
* return data;
|
|
17
|
-
* }
|
|
18
|
-
* })
|
|
19
|
-
* class Model {
|
|
20
|
-
* @Property()
|
|
21
|
-
* prop1: string;
|
|
22
|
-
* @Property()
|
|
23
|
-
* prop2: string;
|
|
24
|
-
* }
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
|
-
* @returns {Function}
|
|
28
|
-
* @decorator
|
|
29
|
-
* @schema
|
|
30
|
-
* @property
|
|
31
|
-
* @param cb
|
|
32
|
-
*/
|
|
33
|
-
function BeforeDeserialize(cb) {
|
|
34
|
-
return (0, schema_1.JsonEntityFn)((storedJson) => {
|
|
35
|
-
storedJson.schema.$hooks.on("beforeDeserialize", cb);
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
exports.BeforeDeserialize = BeforeDeserialize;
|
|
39
|
-
//# sourceMappingURL=beforeDeserialize.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"beforeDeserialize.js","sourceRoot":"","sources":["../../../src/decorators/beforeDeserialize.ts"],"names":[],"mappings":";;;AAAA,yCAA2D;AAM3D;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,SAAgB,iBAAiB,CAAC,EAA6B;IAC7D,OAAO,IAAA,qBAAY,EAAC,CAAC,UAAU,EAAE,EAAE;QACjC,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,mBAAmB,EAAE,EAAE,CAAC,CAAC;IACvD,CAAC,CAAC,CAAC;AACL,CAAC;AAJD,8CAIC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.JsonMapper = void 0;
|
|
4
|
-
const JsonMapperTypesContainer_js_1 = require("../domain/JsonMapperTypesContainer.js");
|
|
5
|
-
/**
|
|
6
|
-
* Register a new JsonMapper Type
|
|
7
|
-
* @param types
|
|
8
|
-
* @constructor
|
|
9
|
-
*/
|
|
10
|
-
function JsonMapper(...types) {
|
|
11
|
-
return (target) => {
|
|
12
|
-
types.forEach((type) => {
|
|
13
|
-
(0, JsonMapperTypesContainer_js_1.registerJsonTypeMapper)(type, target);
|
|
14
|
-
});
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
exports.JsonMapper = JsonMapper;
|
|
18
|
-
//# sourceMappingURL=jsonMapper.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jsonMapper.js","sourceRoot":"","sources":["../../../src/decorators/jsonMapper.ts"],"names":[],"mappings":";;;AACA,uFAA6E;AAE7E;;;;GAIG;AACH,SAAgB,UAAU,CAAC,GAAG,KAAqB;IACjD,OAAO,CAAC,MAAM,EAAE,EAAE;QAChB,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;YACrB,IAAA,oDAAsB,EAAC,IAAI,EAAE,MAAa,CAAC,CAAC;QAC9C,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAND,gCAMC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OnDeserialize = void 0;
|
|
4
|
-
const schema_1 = require("@tsed/schema");
|
|
5
|
-
/**
|
|
6
|
-
* Call the function before property deserialization.
|
|
7
|
-
*
|
|
8
|
-
* ## Example
|
|
9
|
-
*
|
|
10
|
-
* ```typescript
|
|
11
|
-
* class Model {
|
|
12
|
-
* @OnDeserialize(v => v + 1)
|
|
13
|
-
* property: string;
|
|
14
|
-
* }
|
|
15
|
-
* ```
|
|
16
|
-
*
|
|
17
|
-
* @returns {Function}
|
|
18
|
-
* @decorator
|
|
19
|
-
* @schema
|
|
20
|
-
* @property
|
|
21
|
-
* @param cb
|
|
22
|
-
*/
|
|
23
|
-
function OnDeserialize(cb) {
|
|
24
|
-
return (0, schema_1.JsonEntityFn)((storedJson) => {
|
|
25
|
-
storedJson.schema.$hooks.on("onDeserialize", cb);
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
exports.OnDeserialize = OnDeserialize;
|
|
29
|
-
//# sourceMappingURL=onDeserialize.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"onDeserialize.js","sourceRoot":"","sources":["../../../src/decorators/onDeserialize.ts"],"names":[],"mappings":";;;AAAA,yCAA2D;AAM3D;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,aAAa,CAAC,EAAyB;IACrD,OAAO,IAAA,qBAAY,EAAC,CAAC,UAAU,EAAE,EAAE;QACjC,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC;IACnD,CAAC,CAAC,CAAC;AACL,CAAC;AAJD,sCAIC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OnSerialize = void 0;
|
|
4
|
-
const schema_1 = require("@tsed/schema");
|
|
5
|
-
/**
|
|
6
|
-
* Call the function before property serialization.
|
|
7
|
-
*
|
|
8
|
-
* ## Example
|
|
9
|
-
*
|
|
10
|
-
* ```typescript
|
|
11
|
-
* class Model {
|
|
12
|
-
* @OnSerialize(v => v + 1)
|
|
13
|
-
* property: string;
|
|
14
|
-
* }
|
|
15
|
-
* ```
|
|
16
|
-
*
|
|
17
|
-
* @returns {Function}
|
|
18
|
-
* @decorator
|
|
19
|
-
* @schema
|
|
20
|
-
* @property
|
|
21
|
-
* @param cb
|
|
22
|
-
*/
|
|
23
|
-
function OnSerialize(cb) {
|
|
24
|
-
return (0, schema_1.JsonEntityFn)((storedJson) => {
|
|
25
|
-
storedJson.schema.$hooks.on("onSerialize", cb);
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
exports.OnSerialize = OnSerialize;
|
|
29
|
-
//# sourceMappingURL=onSerialize.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"onSerialize.js","sourceRoot":"","sources":["../../../src/decorators/onSerialize.ts"],"names":[],"mappings":";;;AAAA,yCAA2D;AAM3D;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,WAAW,CAAC,EAAuB;IACjD,OAAO,IAAA,qBAAY,EAAC,CAAC,UAAU,EAAE,EAAE;QACjC,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC;IACjD,CAAC,CAAC,CAAC;AACL,CAAC;AAJD,kCAIC"}
|
|
@@ -1,295 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.JsonDeserializer = void 0;
|
|
4
|
-
const core_1 = require("@tsed/core");
|
|
5
|
-
const schema_1 = require("@tsed/schema");
|
|
6
|
-
const alterAfterDeserialize_js_1 = require("../hooks/alterAfterDeserialize.js");
|
|
7
|
-
const alterBeforeDeserialize_js_1 = require("../hooks/alterBeforeDeserialize.js");
|
|
8
|
-
const alterOnDeserialize_js_1 = require("../hooks/alterOnDeserialize.js");
|
|
9
|
-
const JsonMapperCompiler_js_1 = require("./JsonMapperCompiler.js");
|
|
10
|
-
const JsonMapperSettings_js_1 = require("./JsonMapperSettings.js");
|
|
11
|
-
const JsonMapperTypesContainer_js_1 = require("./JsonMapperTypesContainer.js");
|
|
12
|
-
const Writer_js_1 = require("./Writer.js");
|
|
13
|
-
function isDeserializable(obj, options) {
|
|
14
|
-
if ((!!options.collectionType && (0, core_1.isNil)(obj)) || obj === undefined) {
|
|
15
|
-
return false;
|
|
16
|
-
}
|
|
17
|
-
return !((0, core_1.isEmpty)(options.type) || (options.type === Object && !options.collectionType));
|
|
18
|
-
}
|
|
19
|
-
function varKey(k) {
|
|
20
|
-
return `__${k}`;
|
|
21
|
-
}
|
|
22
|
-
function mapParamStoreOptions(store, options) {
|
|
23
|
-
return {
|
|
24
|
-
...options,
|
|
25
|
-
store: undefined,
|
|
26
|
-
type: store.getBestType(),
|
|
27
|
-
collectionType: store.collectionType,
|
|
28
|
-
groups: store.parameter.groups,
|
|
29
|
-
// genericTypes: store.nestedGenerics[0],
|
|
30
|
-
generics: store.nestedGenerics
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
function getGenericIndex(propertyStore) {
|
|
34
|
-
return propertyStore.parent.schema.genericLabels.indexOf(propertyStore.itemSchema.genericType);
|
|
35
|
-
}
|
|
36
|
-
class JsonDeserializer extends JsonMapperCompiler_js_1.JsonMapperCompiler {
|
|
37
|
-
constructor() {
|
|
38
|
-
super();
|
|
39
|
-
/**
|
|
40
|
-
* Cached classes by his id
|
|
41
|
-
* @protected
|
|
42
|
-
*/
|
|
43
|
-
this.constructors = {};
|
|
44
|
-
this.addGlobal("newInstanceOf", this.newInstanceOf.bind(this));
|
|
45
|
-
this.addGlobal("alterBeforeDeserialize", this.alterBeforeDeserialize.bind(this));
|
|
46
|
-
this.addGlobal("alterAfterDeserialize", this.alterAfterDeserialize.bind(this));
|
|
47
|
-
this.addTypeMapper(Object, this.mapObject.bind(this));
|
|
48
|
-
this.addTypeMapper(Array, this.mapArray.bind(this));
|
|
49
|
-
this.addTypeMapper(Map, this.mapMap.bind(this));
|
|
50
|
-
this.addTypeMapper(Set, this.mapSet.bind(this));
|
|
51
|
-
this.addTypeMapper("ObjectId", (value) => String(value));
|
|
52
|
-
}
|
|
53
|
-
map(input, options = {}) {
|
|
54
|
-
options = this.mapOptions(options);
|
|
55
|
-
if (!isDeserializable(input, options)) {
|
|
56
|
-
return input;
|
|
57
|
-
}
|
|
58
|
-
if (!options.collectionType && (0, core_1.isArray)(input)) {
|
|
59
|
-
options.collectionType = Array;
|
|
60
|
-
}
|
|
61
|
-
const model = options.type || (0, core_1.classOf)(input);
|
|
62
|
-
const mapper = this.compile(model, options.groups);
|
|
63
|
-
if (options.collectionType) {
|
|
64
|
-
const collectionMapper = this.compile(options.collectionType, options.groups);
|
|
65
|
-
return collectionMapper.fn(input, { ...options, id: mapper.id });
|
|
66
|
-
}
|
|
67
|
-
return mapper.fn(input, this.createContext(options));
|
|
68
|
-
}
|
|
69
|
-
compile(model, groups) {
|
|
70
|
-
if ([WeakMap, WeakSet].includes(model)) {
|
|
71
|
-
throw new Error(`${(0, core_1.nameOf)(model)} is not supported by JsonMapper.`);
|
|
72
|
-
}
|
|
73
|
-
return super.compile(model, groups);
|
|
74
|
-
}
|
|
75
|
-
eval(mapper, { id, groupsId, model }) {
|
|
76
|
-
this.constructors[id] = model;
|
|
77
|
-
return super.eval(mapper, { id, groupsId, model });
|
|
78
|
-
}
|
|
79
|
-
newInstanceOf(id, obj, options) {
|
|
80
|
-
try {
|
|
81
|
-
return new this.constructors[id](options.disableUnsecureConstructor ? {} : obj);
|
|
82
|
-
}
|
|
83
|
-
catch (er) {
|
|
84
|
-
return obj;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
createMapper(model, id, groups) {
|
|
88
|
-
const entity = schema_1.JsonEntityStore.from(model);
|
|
89
|
-
const properties = new Set();
|
|
90
|
-
const schemaProperties = [...(0, schema_1.getPropertiesStores)(entity).values()];
|
|
91
|
-
const writer = new Writer_js_1.Writer().arrow("input", "options");
|
|
92
|
-
writer.if("isNil(input)").return("input");
|
|
93
|
-
if (entity.schema.hasDiscriminator) {
|
|
94
|
-
writer.add(this.mapDiscriminator(entity, groups));
|
|
95
|
-
}
|
|
96
|
-
// pre hook
|
|
97
|
-
if (entity.schema.$hooks?.has("beforeDeserialize")) {
|
|
98
|
-
this.schemes[id] = entity.schema;
|
|
99
|
-
writer.set("input", `alterBeforeDeserialize('${id}', input, options)`);
|
|
100
|
-
}
|
|
101
|
-
// generics and options
|
|
102
|
-
writer.const("generics", "options.generics[0]");
|
|
103
|
-
if (entity.schema.genericLabels?.length) {
|
|
104
|
-
writer.set("options", "{...options, self: input, generics: [...options.generics].slice(1)}");
|
|
105
|
-
}
|
|
106
|
-
else {
|
|
107
|
-
writer.set("options", "{...options, self: input}");
|
|
108
|
-
}
|
|
109
|
-
writer.const("obj", `newInstanceOf('${id}', input, options)`);
|
|
110
|
-
// properties
|
|
111
|
-
writer.add(...schemaProperties.flatMap((propertyStore) => {
|
|
112
|
-
const key = propertyStore.propertyName;
|
|
113
|
-
// TODO V8 add this line: properties.add(key as string);
|
|
114
|
-
properties.add(String(propertyStore.parent.schema.getAliasOf(key) || key));
|
|
115
|
-
if ((propertyStore.schema?.$ignore && (0, core_1.isBoolean)(propertyStore.schema?.$ignore)) ||
|
|
116
|
-
propertyStore.isGetterOnly() ||
|
|
117
|
-
(propertyStore.schema?.$hooks?.has("groups") && this.alterGroups(propertyStore.schema, groups))) {
|
|
118
|
-
return;
|
|
119
|
-
}
|
|
120
|
-
return this.mapProperty(propertyStore, id, groups);
|
|
121
|
-
}));
|
|
122
|
-
// additional properties
|
|
123
|
-
writer.add(this.mapAdditionalProperties(entity, properties, groups));
|
|
124
|
-
// post hook
|
|
125
|
-
if (entity.schema.$hooks?.has("afterDeserialize")) {
|
|
126
|
-
this.schemes[id] = entity.schema;
|
|
127
|
-
return writer.return(`alterAfterDeserialize('${id}', obj, options)`).root().toString();
|
|
128
|
-
}
|
|
129
|
-
return writer.return("obj").root().toString();
|
|
130
|
-
}
|
|
131
|
-
alterValue(schemaId, value, options) {
|
|
132
|
-
return (0, alterOnDeserialize_js_1.alterOnDeserialize)(this.schemes[schemaId], value, options);
|
|
133
|
-
}
|
|
134
|
-
mapDiscriminator(entity, groups) {
|
|
135
|
-
const writer = new Writer_js_1.Writer();
|
|
136
|
-
const discriminator = entity.schema.discriminator();
|
|
137
|
-
const sw = writer.switch(`input['${discriminator.propertyName}']`);
|
|
138
|
-
discriminator.values.forEach((value, kind) => {
|
|
139
|
-
const nestedMapper = this.compile(value, groups);
|
|
140
|
-
sw.case(`'${kind}'`).returnCallMapper(nestedMapper.id, "input");
|
|
141
|
-
});
|
|
142
|
-
return writer;
|
|
143
|
-
}
|
|
144
|
-
mapProperty(propertyStore, id, groups) {
|
|
145
|
-
const key = String(propertyStore.propertyKey);
|
|
146
|
-
const aliasKey = String(propertyStore.parent.schema.getAliasOf(key) || key);
|
|
147
|
-
const schemaId = this.getSchemaId(id, key);
|
|
148
|
-
const format = propertyStore.itemSchema.get("format");
|
|
149
|
-
const formatOpts = format && `options: {format: '${format}'}`;
|
|
150
|
-
let writer = new Writer_js_1.Writer().add(`// Map ${key} ${id} ${groups || ""}`);
|
|
151
|
-
const pick = key !== aliasKey ? `options.useAlias ? '${aliasKey}' : '${key}'` : `'${key}'`;
|
|
152
|
-
// ignore hook (deprecated)
|
|
153
|
-
if (propertyStore.schema?.$hooks?.has("ignore")) {
|
|
154
|
-
this.schemes[schemaId] = propertyStore.schema;
|
|
155
|
-
writer = writer.if(`!alterIgnore('${schemaId}', {...options, self: input})`);
|
|
156
|
-
}
|
|
157
|
-
// pre hook
|
|
158
|
-
const hasDeserializer = propertyStore.schema?.$hooks?.has("onDeserialize");
|
|
159
|
-
let getter = `input[${pick}]`;
|
|
160
|
-
if (hasDeserializer) {
|
|
161
|
-
this.schemes[schemaId] = propertyStore.schema;
|
|
162
|
-
const opts = Writer_js_1.Writer.options(formatOpts);
|
|
163
|
-
getter = `alterValue('${schemaId}', input[${pick}], ${opts})`;
|
|
164
|
-
}
|
|
165
|
-
const ifWriter = writer.set(`let ${varKey(key)}`, getter).if(`${varKey(key)} !== undefined`);
|
|
166
|
-
const fill = this.getPropertyFiller(propertyStore, id, groups, formatOpts);
|
|
167
|
-
if (hasDeserializer) {
|
|
168
|
-
fill(ifWriter.if(`${varKey(key)} === input.${key}`));
|
|
169
|
-
}
|
|
170
|
-
else {
|
|
171
|
-
fill(ifWriter);
|
|
172
|
-
}
|
|
173
|
-
ifWriter.set(`obj.${key}`, varKey(key));
|
|
174
|
-
if (groups && groups.includes("partial")) {
|
|
175
|
-
ifWriter.else().add(`delete obj.${key}`);
|
|
176
|
-
}
|
|
177
|
-
return writer.root();
|
|
178
|
-
}
|
|
179
|
-
getPropertyFiller(propertyStore, id, groups, formatOpts) {
|
|
180
|
-
const key = String(propertyStore.propertyKey);
|
|
181
|
-
const schemaId = this.getSchemaId(id, key);
|
|
182
|
-
const generics = propertyStore.itemSchema.nestedGenerics;
|
|
183
|
-
const isGeneric = propertyStore.itemSchema.isGeneric && !generics?.length;
|
|
184
|
-
if (isGeneric) {
|
|
185
|
-
const index = getGenericIndex(propertyStore);
|
|
186
|
-
const opts = Writer_js_1.Writer.options(formatOpts, `type: generics[${index}]`);
|
|
187
|
-
return (writer) => writer.set(varKey(key), `compileAndMap(${varKey(key)}, ${opts})`);
|
|
188
|
-
}
|
|
189
|
-
const type = propertyStore.itemSchema.hasDiscriminator ? propertyStore.itemSchema.discriminator().base : propertyStore.getBestType();
|
|
190
|
-
const nestedMapper = this.compile(type, groups);
|
|
191
|
-
if (propertyStore.isCollection) {
|
|
192
|
-
return (writer) => writer.callMapper((0, core_1.nameOf)(propertyStore.collectionType), varKey(key), `id: '${nestedMapper.id}'`, formatOpts);
|
|
193
|
-
}
|
|
194
|
-
if (generics?.length) {
|
|
195
|
-
this.schemes[schemaId] = propertyStore.schema;
|
|
196
|
-
return (writer) => writer.callMapper(nestedMapper.id, varKey(key), formatOpts, `generics: schemes['${schemaId}'].nestedGenerics`);
|
|
197
|
-
}
|
|
198
|
-
return (writer) => writer.callMapper(nestedMapper.id, varKey(key), formatOpts);
|
|
199
|
-
}
|
|
200
|
-
mapOptions({ groups, useAlias = true, types, ...options }) {
|
|
201
|
-
if (options.store instanceof schema_1.JsonParameterStore) {
|
|
202
|
-
return this.mapOptions(mapParamStoreOptions(options.store, options));
|
|
203
|
-
}
|
|
204
|
-
const customMappers = {};
|
|
205
|
-
types = types || (0, JsonMapperTypesContainer_js_1.getJsonMapperTypes)();
|
|
206
|
-
types.forEach((mapper, model) => {
|
|
207
|
-
if (![Array, Set, Map].includes(model)) {
|
|
208
|
-
const typeName = (0, core_1.nameOf)(model);
|
|
209
|
-
if ((0, core_1.nameOf)(model) in mapper) {
|
|
210
|
-
this.addTypeMapper(model, mapper[typeName].bind(mapper));
|
|
211
|
-
}
|
|
212
|
-
else {
|
|
213
|
-
this.addTypeMapper(model, (value, options) => mapper.deserialize(value, {
|
|
214
|
-
...options,
|
|
215
|
-
type: model
|
|
216
|
-
}));
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
});
|
|
220
|
-
const strictGroups = options.strictGroups ?? JsonMapperSettings_js_1.JsonMapperSettings.strictGroups;
|
|
221
|
-
return {
|
|
222
|
-
...options,
|
|
223
|
-
additionalProperties: options.additionalProperties ?? JsonMapperSettings_js_1.JsonMapperSettings.additionalProperties,
|
|
224
|
-
disableUnsecureConstructor: options.disableUnsecureConstructor ?? JsonMapperSettings_js_1.JsonMapperSettings.disableUnsecureConstructor,
|
|
225
|
-
groups: groups === undefined ? (strictGroups ? [] : false) : groups || false,
|
|
226
|
-
useAlias,
|
|
227
|
-
customMappers,
|
|
228
|
-
generics: options.generics || []
|
|
229
|
-
};
|
|
230
|
-
}
|
|
231
|
-
mapAdditionalProperties(entity, properties, groups) {
|
|
232
|
-
const additionalProperties = entity.schema.get("additionalProperties");
|
|
233
|
-
const exclude = [...properties.values()].map((key) => `'${key}'`).join(", ");
|
|
234
|
-
const writer = new Writer_js_1.Writer();
|
|
235
|
-
writer.add("// add additional properties");
|
|
236
|
-
let each = writer.each("objectKeys(input)", ["key"]);
|
|
237
|
-
if (exclude.length) {
|
|
238
|
-
each = each.if(`![${exclude}].includes(key)`);
|
|
239
|
-
}
|
|
240
|
-
if ((0, core_1.isClass)(additionalProperties)) {
|
|
241
|
-
const nestedMapper = this.compile(additionalProperties.getComputedType(), groups);
|
|
242
|
-
each.set("obj[key]", Writer_js_1.Writer.mapper(nestedMapper.id, "input[key]", "options"));
|
|
243
|
-
return writer;
|
|
244
|
-
}
|
|
245
|
-
if (additionalProperties) {
|
|
246
|
-
each.set("obj[key]", "input[key]");
|
|
247
|
-
return writer;
|
|
248
|
-
}
|
|
249
|
-
// dynamic additional properties options
|
|
250
|
-
each.if(`options.additionalProperties && obj[key] === undefined`).set("obj[key]", "input[key]");
|
|
251
|
-
return writer;
|
|
252
|
-
}
|
|
253
|
-
mapObject(input, options) {
|
|
254
|
-
return input;
|
|
255
|
-
}
|
|
256
|
-
mapSet(input, options) {
|
|
257
|
-
if ((0, core_1.isNil)(input)) {
|
|
258
|
-
return input;
|
|
259
|
-
}
|
|
260
|
-
const obj = new Set();
|
|
261
|
-
(0, core_1.objectKeys)(input).forEach((key) => {
|
|
262
|
-
obj.add(this.mapItem(input[key], options));
|
|
263
|
-
});
|
|
264
|
-
return obj;
|
|
265
|
-
}
|
|
266
|
-
mapArray(input, options) {
|
|
267
|
-
if ((0, core_1.isNil)(input)) {
|
|
268
|
-
return input;
|
|
269
|
-
}
|
|
270
|
-
return [].concat(input).map((item) => {
|
|
271
|
-
return this.mapItem(item, options);
|
|
272
|
-
});
|
|
273
|
-
}
|
|
274
|
-
mapMap(input, options) {
|
|
275
|
-
if ((0, core_1.isNil)(input)) {
|
|
276
|
-
return input;
|
|
277
|
-
}
|
|
278
|
-
const obj = new Map();
|
|
279
|
-
(0, core_1.objectKeys)(input).forEach((key) => {
|
|
280
|
-
obj.set(key, this.mapItem(input[key], options));
|
|
281
|
-
});
|
|
282
|
-
return obj;
|
|
283
|
-
}
|
|
284
|
-
mapItem(input, { id, ...options }) {
|
|
285
|
-
return this.execMapper(id, input, options);
|
|
286
|
-
}
|
|
287
|
-
alterBeforeDeserialize(schemaId, value, options) {
|
|
288
|
-
return (0, alterBeforeDeserialize_js_1.alterBeforeDeserialize)(value, this.schemes[schemaId], options);
|
|
289
|
-
}
|
|
290
|
-
alterAfterDeserialize(schemaId, value, options) {
|
|
291
|
-
return (0, alterAfterDeserialize_js_1.alterAfterDeserialize)(value, this.schemes[schemaId], options);
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
exports.JsonDeserializer = JsonDeserializer;
|
|
295
|
-
//# sourceMappingURL=JsonDeserializer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"JsonDeserializer.js","sourceRoot":"","sources":["../../../src/domain/JsonDeserializer.ts"],"names":[],"mappings":";;;AAAA,qCAA0G;AAC1G,yCAAyH;AACzH,gFAAwE;AACxE,kFAA0E;AAC1E,0EAAkE;AAElE,mEAA6E;AAC7E,mEAA2D;AAC3D,+EAAiE;AACjE,2CAAmC;AAEnC,SAAS,gBAAgB,CAAC,GAAQ,EAAE,OAAgC;IAClE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,cAAc,IAAI,IAAA,YAAK,EAAC,GAAG,CAAC,CAAC,IAAI,GAAG,KAAK,SAAS,EAAE;QACjE,OAAO,KAAK,CAAC;KACd;IAED,OAAO,CAAC,CAAC,IAAA,cAAO,EAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,KAAK,MAAM,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC;AAC1F,CAAC;AAED,SAAS,MAAM,CAAC,CAAS;IACvB,OAAO,KAAK,CAAC,EAAE,CAAC;AAClB,CAAC;AAED,SAAS,oBAAoB,CAAC,KAAyB,EAAE,OAAgC;IACvF,OAAO;QACL,GAAG,OAAO;QACV,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE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