ts-serializable 2.0.46 → 2.0.52
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/LICENSE +0 -0
- package/README.md +0 -0
- package/package.json +8 -8
- package/src/classes/Serializable.ts +1 -1
- package/src/decorators/JsonIgnore.ts +0 -0
- package/src/decorators/JsonName.ts +0 -0
- package/src/decorators/JsonObject.ts +0 -0
- package/src/decorators/JsonProperty.ts +0 -0
- package/src/enums/DateFormatHandling.ts +0 -0
- package/src/enums/DefaultValueHandling.ts +0 -0
- package/src/enums/LogLevels.ts +0 -0
- package/src/enums/MissingMemberHandling.ts +0 -0
- package/src/enums/NullValueHandling.ts +0 -0
- package/src/enums/ReferenceLoopHandling.ts +0 -0
- package/src/models/AcceptedType.ts +0 -0
- package/src/models/SerializationSettings.ts +0 -0
- package/src/naming-strategies/INamingStrategy.ts +0 -0
- package/src/naming-strategies/KebabCaseNamingStrategy.ts +0 -0
- package/src/naming-strategies/PascalCaseNamingStrategy.ts +0 -0
- package/src/naming-strategies/SnakeCaseNamingStrategy.ts +0 -0
package/LICENSE
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ts-serializable",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.52",
|
|
4
4
|
"description": "Serialization and deserializtion for classes",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
7
7
|
"typings": "./dist/index.d.ts",
|
|
8
8
|
"dependencies": {},
|
|
9
9
|
"devDependencies": {
|
|
10
|
-
"@labeg/code-style": "^2.0.
|
|
11
|
-
"@types/chai": "^4.
|
|
12
|
-
"@types/mocha": "^9.
|
|
13
|
-
"chai": "^4.3.
|
|
14
|
-
"mocha": "^9.
|
|
10
|
+
"@labeg/code-style": "^2.0.31",
|
|
11
|
+
"@types/chai": "^4.3.0",
|
|
12
|
+
"@types/mocha": "^9.1.0",
|
|
13
|
+
"chai": "^4.3.6",
|
|
14
|
+
"mocha": "^9.2.2",
|
|
15
15
|
"reflect-metadata": "^0.1.13",
|
|
16
|
-
"ts-node": "^10.
|
|
17
|
-
"typescript": "^4.
|
|
16
|
+
"ts-node": "^10.7.0",
|
|
17
|
+
"typescript": "^4.6.2"
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|
|
20
20
|
"cs:eslint": "eslint --fix -c .eslintrc.js --ext .tsx,.ts,.jsx,.js ./src/ ./tests/",
|
|
@@ -236,7 +236,7 @@ export class Serializable {
|
|
|
236
236
|
const TypeConstructor: new () => Serializable = acceptedType as new () => Serializable;
|
|
237
237
|
|
|
238
238
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
239
|
-
return new TypeConstructor().fromJSON(jsonValue
|
|
239
|
+
return new TypeConstructor().fromJSON(jsonValue, settings);
|
|
240
240
|
} else if (// Instance any other class, not Serializable, for parse from other classes instance
|
|
241
241
|
acceptedType instanceof Function &&
|
|
242
242
|
jsonValue instanceof acceptedType
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/enums/LogLevels.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|