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 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.46",
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.26",
11
- "@types/chai": "^4.2.22",
12
- "@types/mocha": "^9.0.0",
13
- "chai": "^4.3.4",
14
- "mocha": "^9.1.3",
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.4.0",
17
- "typescript": "^4.4.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!, settings);
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
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