form-father 0.2.10 → 0.2.12
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/dist/index.d.ts +1 -3
- package/dist/types/helpers.d.ts +1 -3
- package/package.json +19 -42
package/dist/index.d.ts
CHANGED
|
@@ -82,9 +82,7 @@ declare function parseCommonResponseProperties(responseBody: any): void;
|
|
|
82
82
|
*
|
|
83
83
|
* @returns {Object} Сериализованные данные формы.
|
|
84
84
|
*/
|
|
85
|
-
declare function serializeFormToJSON(form: HTMLFormElement):
|
|
86
|
-
[key: string]: any;
|
|
87
|
-
};
|
|
85
|
+
declare function serializeFormToJSON<T extends Record<string, any> = Record<string, any>>(form: HTMLFormElement): T;
|
|
88
86
|
|
|
89
87
|
type ValidationRule = string | {
|
|
90
88
|
rule: string;
|
package/dist/types/helpers.d.ts
CHANGED
|
@@ -56,6 +56,4 @@ export declare function parseCommonResponseProperties(responseBody: any): void;
|
|
|
56
56
|
*
|
|
57
57
|
* @returns {Object} Сериализованные данные формы.
|
|
58
58
|
*/
|
|
59
|
-
export declare function serializeFormToJSON(form: HTMLFormElement):
|
|
60
|
-
[key: string]: any;
|
|
61
|
-
};
|
|
59
|
+
export declare function serializeFormToJSON<T extends Record<string, any> = Record<string, any>>(form: HTMLFormElement): T;
|
package/package.json
CHANGED
|
@@ -1,27 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "form-father",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.12",
|
|
4
4
|
"description": "Form Father: Библиотека для обработки форм",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"files": [
|
|
6
|
+
"files": [
|
|
7
|
+
"dist",
|
|
8
|
+
"README.md",
|
|
9
|
+
"LICENSE",
|
|
10
|
+
"RESPONSE_API.md"
|
|
11
|
+
],
|
|
7
12
|
"exports": {
|
|
8
13
|
".": {
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
9
15
|
"import": "./dist/index.js",
|
|
10
|
-
"
|
|
11
|
-
}
|
|
16
|
+
"default": "./dist/index.js"
|
|
17
|
+
},
|
|
18
|
+
"./FormFather.min.js": "./dist/FormFather.min.js"
|
|
12
19
|
},
|
|
13
20
|
"scripts": {
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"release": "node scripts/release.js",
|
|
17
|
-
"test": "jest --coverage",
|
|
18
|
-
"prepublishOnly": "npm test -- --runInBand --watchman=false && npm run build",
|
|
19
|
-
"versions:sync": "node scripts/sync-version.js",
|
|
20
|
-
"demos": "BUILD_TARGET=demos npm run build && concurrently --kill-others \"vite\" \"npm run watch\""
|
|
21
|
+
"pack:dry-run": "npm_config_cache=/tmp/form-father-npm-cache npm pack --dry-run",
|
|
22
|
+
"smoke:types": "node scripts/smoke-types.mjs"
|
|
21
23
|
},
|
|
22
24
|
"repository": {
|
|
23
25
|
"type": "git",
|
|
24
|
-
"url": "
|
|
26
|
+
"url": "https://github.com/Poliklot/form-father"
|
|
25
27
|
},
|
|
26
28
|
"keywords": [
|
|
27
29
|
"form",
|
|
@@ -37,34 +39,9 @@
|
|
|
37
39
|
"url": "https://github.com/poliklot/form-father/issues"
|
|
38
40
|
},
|
|
39
41
|
"sideEffects": false,
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"@rollup/plugin-node-resolve": "^15.3.0",
|
|
46
|
-
"@rollup/plugin-terser": "^0.4.4",
|
|
47
|
-
"@types/jest": "^30.0.0",
|
|
48
|
-
"@types/jsdom": "^21.1.7",
|
|
49
|
-
"chalk": "^5.3.0",
|
|
50
|
-
"concurrently": "^9.0.1",
|
|
51
|
-
"fs-extra": "^11.2.0",
|
|
52
|
-
"inquirer": "^12.1.0",
|
|
53
|
-
"jest": "^30.0.5",
|
|
54
|
-
"jest-environment-jsdom": "^30.0.5",
|
|
55
|
-
"jsdom": "^26.1.0",
|
|
56
|
-
"ora": "^8.1.1",
|
|
57
|
-
"postcss-preset-env": "^10.0.8",
|
|
58
|
-
"prettier-plugin-jsdoc": "^1.3.0",
|
|
59
|
-
"rollup": "^4.24.3",
|
|
60
|
-
"rollup-plugin-copy": "^3.5.0",
|
|
61
|
-
"rollup-plugin-delete": "^2.1.0",
|
|
62
|
-
"rollup-plugin-dts": "^6.1.1",
|
|
63
|
-
"rollup-plugin-typescript2": "^0.36.0",
|
|
64
|
-
"sass-embedded": "^1.80.5",
|
|
65
|
-
"ts-jest": "^29.4.0",
|
|
66
|
-
"ts-node": "^10.9.2",
|
|
67
|
-
"typescript": "^5.6.3",
|
|
68
|
-
"vite": "^5.4.10"
|
|
69
|
-
}
|
|
42
|
+
"main": "./dist/index.js",
|
|
43
|
+
"module": "./dist/index.js",
|
|
44
|
+
"types": "./dist/index.d.ts",
|
|
45
|
+
"unpkg": "./dist/FormFather.min.js",
|
|
46
|
+
"jsdelivr": "./dist/FormFather.min.js"
|
|
70
47
|
}
|