n4s 4.3.2 → 4.3.3
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/package.json +8 -1
- package/types/compose.d.ts +1 -1
- package/types/compounds.d.ts +1 -1
- package/types/n4s.d.ts +1 -1
- package/types/schema.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "4.3.
|
|
2
|
+
"version": "4.3.3",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"main": "./dist/cjs/n4s.js",
|
|
5
5
|
"types": "./types/n4s.d.ts",
|
|
6
6
|
"name": "n4s",
|
|
7
7
|
"author": "ealush",
|
|
8
|
+
"description": "Assertion library for form validations",
|
|
9
|
+
"keywords": [
|
|
10
|
+
"vest",
|
|
11
|
+
"enforce",
|
|
12
|
+
"n4s",
|
|
13
|
+
"validation"
|
|
14
|
+
],
|
|
8
15
|
"scripts": {
|
|
9
16
|
"test": "vx test",
|
|
10
17
|
"release": "vx release"
|
package/types/compose.d.ts
CHANGED
|
@@ -93,7 +93,7 @@ declare const baseRules: {
|
|
|
93
93
|
shorterThanOrEquals: typeof shorterThanOrEquals;
|
|
94
94
|
startsWith: typeof startsWith;
|
|
95
95
|
};
|
|
96
|
-
type Rules<E
|
|
96
|
+
type Rules<E = Record<string, unknown>> = n4s.EnforceCustomMatchers<Rules<E> & E> & Record<string, (...args: Args) => Rules<E> & E> & {
|
|
97
97
|
[P in KBaseRules]: (...args: DropFirst<Parameters<BaseRules[P]>> | Args) => Rules<E> & E;
|
|
98
98
|
};
|
|
99
99
|
/* eslint-disable @typescript-eslint/no-namespace, @typescript-eslint/no-empty-interface */
|
package/types/compounds.d.ts
CHANGED
|
@@ -94,7 +94,7 @@ declare const baseRules: {
|
|
|
94
94
|
shorterThanOrEquals: typeof shorterThanOrEquals;
|
|
95
95
|
startsWith: typeof startsWith;
|
|
96
96
|
};
|
|
97
|
-
type Rules<E
|
|
97
|
+
type Rules<E = Record<string, unknown>> = n4s.EnforceCustomMatchers<Rules<E> & E> & Record<string, (...args: Args) => Rules<E> & E> & {
|
|
98
98
|
[P in KBaseRules]: (...args: DropFirst<Parameters<BaseRules[P]>> | Args) => Rules<E> & E;
|
|
99
99
|
};
|
|
100
100
|
/* eslint-disable @typescript-eslint/no-namespace, @typescript-eslint/no-empty-interface */
|
package/types/n4s.d.ts
CHANGED
|
@@ -108,7 +108,7 @@ declare const baseRules: {
|
|
|
108
108
|
shorterThanOrEquals: typeof shorterThanOrEquals;
|
|
109
109
|
startsWith: typeof startsWith;
|
|
110
110
|
};
|
|
111
|
-
type Rules<E
|
|
111
|
+
type Rules<E = Record<string, unknown>> = n4s.EnforceCustomMatchers<Rules<E> & E> & Record<string, (...args: Args) => Rules<E> & E> & {
|
|
112
112
|
[P in KBaseRules]: (...args: DropFirst<Parameters<BaseRules[P]>> | Args) => Rules<E> & E;
|
|
113
113
|
};
|
|
114
114
|
/* eslint-disable @typescript-eslint/no-namespace, @typescript-eslint/no-empty-interface */
|
package/types/schema.d.ts
CHANGED
|
@@ -94,7 +94,7 @@ declare const baseRules: {
|
|
|
94
94
|
shorterThanOrEquals: typeof shorterThanOrEquals;
|
|
95
95
|
startsWith: typeof startsWith;
|
|
96
96
|
};
|
|
97
|
-
type Rules<E
|
|
97
|
+
type Rules<E = Record<string, unknown>> = n4s.EnforceCustomMatchers<Rules<E> & E> & Record<string, (...args: Args) => Rules<E> & E> & {
|
|
98
98
|
[P in KBaseRules]: (...args: DropFirst<Parameters<BaseRules[P]>> | Args) => Rules<E> & E;
|
|
99
99
|
};
|
|
100
100
|
/* eslint-disable @typescript-eslint/no-namespace, @typescript-eslint/no-empty-interface */
|