ts-serializable 3.2.3 → 3.4.0
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.
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export type AcceptedType = BooleanConstructor | DateConstructor | NumberConstructor | ObjectConstructor | StringConstructor | SymbolConstructor | (new (...args: unknown[]) => object) | null | void;
|
|
2
|
-
|
|
3
|
-
}
|
|
2
|
+
type IRecursiveArray<T> = (IRecursiveArray<T> | T)[];
|
|
4
3
|
export type AcceptedTypes = AcceptedType | IRecursiveArray<AcceptedType>;
|
|
5
4
|
export {};
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ts-serializable",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"author": "Eugene Labutin",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/LabEG/Serializable#readme",
|
|
7
|
-
"description": "Serialization and
|
|
7
|
+
"description": "Serialization and deserialization for classes",
|
|
8
8
|
"main": "./dist/index.js",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"typings": "./dist/index.d.ts",
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
},
|
|
18
18
|
"lint-staged": {
|
|
19
19
|
"./(src|tests)/**/*.(ts|tsx|js|jsx)": [
|
|
20
|
-
"eslint --fix
|
|
20
|
+
"eslint --fix"
|
|
21
21
|
]
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|
|
24
|
-
"lint": "eslint --fix
|
|
24
|
+
"lint": "eslint --fix ./src/ ./tests/",
|
|
25
25
|
"test": "mocha",
|
|
26
26
|
"build": "tsc --project tsconfig.build.json && node ./dist/index.js",
|
|
27
27
|
"prepublishOnly": "npm run lint && npm run build && npm run test",
|
|
@@ -32,20 +32,20 @@
|
|
|
32
32
|
"reflect-metadata": ">=0.1.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@commitlint/cli": "^19.
|
|
36
|
-
"@commitlint/config-conventional": "^19.
|
|
37
|
-
"@favware/cliff-jumper": "^
|
|
38
|
-
"@labeg/code-style": "^
|
|
39
|
-
"@types/chai": "^
|
|
40
|
-
"@types/mocha": "^10.0.
|
|
41
|
-
"chai": "^5.1.
|
|
42
|
-
"husky": "^9.
|
|
43
|
-
"lint-staged": "^15.2.
|
|
44
|
-
"mocha": "^
|
|
35
|
+
"@commitlint/cli": "^19.6.1",
|
|
36
|
+
"@commitlint/config-conventional": "^19.6.0",
|
|
37
|
+
"@favware/cliff-jumper": "^5.0.0",
|
|
38
|
+
"@labeg/code-style": "^5.3.2",
|
|
39
|
+
"@types/chai": "^5.0.1",
|
|
40
|
+
"@types/mocha": "^10.0.10",
|
|
41
|
+
"chai": "^5.1.2",
|
|
42
|
+
"husky": "^9.1.7",
|
|
43
|
+
"lint-staged": "^15.2.11",
|
|
44
|
+
"mocha": "^11.0.1",
|
|
45
45
|
"reflect-metadata": "^0.2.2",
|
|
46
46
|
"ts-node": "^10.9.2",
|
|
47
|
-
"tsx": "^4.
|
|
48
|
-
"typescript": "^5.
|
|
47
|
+
"tsx": "^4.19.2",
|
|
48
|
+
"typescript": "^5.7.2"
|
|
49
49
|
},
|
|
50
50
|
"keywords": [
|
|
51
51
|
"serialization",
|