validator-fns 2.0.0 → 2.0.2
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.cjs.map +1 -1
- package/dist/index.d.cts +409 -0
- package/dist/index.d.ts +409 -0
- package/dist/index.js.map +1 -1
- package/package.json +36 -17
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "validator-fns",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "Small asynchronous validation library",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -29,46 +29,65 @@
|
|
|
29
29
|
"validator"
|
|
30
30
|
],
|
|
31
31
|
"type": "module",
|
|
32
|
-
"main": "dist/index.cjs",
|
|
32
|
+
"main": "./dist/index.cjs",
|
|
33
33
|
"module": "./dist/index.js",
|
|
34
34
|
"exports": {
|
|
35
|
-
"
|
|
36
|
-
|
|
35
|
+
".": {
|
|
36
|
+
"import": {
|
|
37
|
+
"types": "./dist/index.d.ts",
|
|
38
|
+
"default": "./dist/index.js"
|
|
39
|
+
},
|
|
40
|
+
"require": {
|
|
41
|
+
"types": "./dist/index.d.cts",
|
|
42
|
+
"default": "./dist/index.cjs"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
37
45
|
},
|
|
38
|
-
"typings": "dist/index.d.ts",
|
|
46
|
+
"typings": "./dist/index.d.ts",
|
|
39
47
|
"sideEffects": false,
|
|
40
48
|
"engines": {
|
|
41
49
|
"node": ">=18",
|
|
42
50
|
"pnpm": ">=9"
|
|
43
51
|
},
|
|
44
52
|
"devDependencies": {
|
|
45
|
-
"@
|
|
53
|
+
"@arethetypeswrong/cli": "0.18.5",
|
|
46
54
|
"@types/node": "20.12.12",
|
|
47
55
|
"@vitest/coverage-v8": "1.6.0",
|
|
48
|
-
"
|
|
49
|
-
"eslint-config-prettier": "9.1.0",
|
|
50
|
-
"eslint-plugin-unicorn": "53.0.0",
|
|
56
|
+
"fta-cli": "3.0.1",
|
|
51
57
|
"husky": "9.0.11",
|
|
52
58
|
"lint-staged": "15.2.2",
|
|
53
59
|
"npm-run-all": "4.1.5",
|
|
54
|
-
"
|
|
55
|
-
"
|
|
60
|
+
"oxfmt": "0.70.0",
|
|
61
|
+
"oxlint": "1.85.0",
|
|
62
|
+
"oxlint-tsgolint": "7.0.2003",
|
|
63
|
+
"publint": "0.3.25",
|
|
64
|
+
"rev-dep": "3.1.0",
|
|
56
65
|
"tsup": "8.0.2",
|
|
57
66
|
"typescript": "5.4.5",
|
|
58
|
-
"typescript-eslint": "7.9.0",
|
|
59
67
|
"vitest": "1.6.0"
|
|
60
68
|
},
|
|
61
|
-
"repository":
|
|
69
|
+
"repository": {
|
|
70
|
+
"type": "git",
|
|
71
|
+
"url": "github:smonn/validator-fns"
|
|
72
|
+
},
|
|
62
73
|
"homepage": "https://validator-fns.smonn.se/",
|
|
63
74
|
"runkitExampleFilename": "runkit.js",
|
|
64
75
|
"lint-staged": {
|
|
65
|
-
"*.ts": "
|
|
66
|
-
"*.{ts,js,
|
|
76
|
+
"*.ts": "oxlint --fix --deny-warnings",
|
|
77
|
+
"*.{ts,js,json,jsonc,md,yml,yaml}": "oxfmt --no-error-on-unmatched-pattern"
|
|
67
78
|
},
|
|
68
79
|
"scripts": {
|
|
69
80
|
"build": "tsup",
|
|
70
|
-
"
|
|
71
|
-
"format": "
|
|
81
|
+
"check": "run-s format:check lint typecheck deps fta coverage build publint attw smoke",
|
|
82
|
+
"format": "oxfmt",
|
|
83
|
+
"format:check": "oxfmt --check",
|
|
84
|
+
"lint": "oxlint --deny-warnings",
|
|
85
|
+
"typecheck": "tsc --noEmit",
|
|
86
|
+
"deps": "rev-dep config run",
|
|
87
|
+
"fta": "fta src --score-cap 62",
|
|
88
|
+
"publint": "publint --strict",
|
|
89
|
+
"attw": "attw --pack .",
|
|
90
|
+
"smoke": "node scripts/smoke-test.mjs",
|
|
72
91
|
"test": "vitest",
|
|
73
92
|
"coverage": "vitest run --coverage"
|
|
74
93
|
}
|