@jdlien/validator-utils 1.1.6 → 1.2.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.
|
@@ -27,10 +27,13 @@ export declare function parseTime(value: string): {
|
|
|
27
27
|
second: number;
|
|
28
28
|
} | null;
|
|
29
29
|
export declare function parseTimeToString(value: string, format?: string): string;
|
|
30
|
+
/** Parses a string and returns a date object with the most plausible date and time. */
|
|
31
|
+
export declare function parseDateTime(value: string): Date | null;
|
|
30
32
|
export declare function formatDateTime(date: Date | string, format?: string): string;
|
|
31
33
|
export declare function parseDateToString(value: string | Date, format?: string): string;
|
|
32
34
|
export declare function isDate(value: string | Date): boolean;
|
|
33
35
|
export declare function isDateInRange(date: Date, range: string): boolean;
|
|
36
|
+
export declare function isMeridiem(token: string): boolean;
|
|
34
37
|
export declare function isTime(value: string): boolean;
|
|
35
38
|
export declare function isEmail(value: string): boolean;
|
|
36
39
|
export declare function parseNANPTel(value: string): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jdlien/validator-utils",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"module": "dist/validator-utils.js",
|
|
6
6
|
"main": "dist/validator-utils.js",
|
|
@@ -39,14 +39,15 @@
|
|
|
39
39
|
"homepage": "https://github.com/jdlien/validator-utils#readme",
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/jsdom": "^21.1.0",
|
|
42
|
-
"@vitest/coverage-c8": "^0.
|
|
42
|
+
"@vitest/coverage-c8": "^0.33.0",
|
|
43
|
+
"@vitest/coverage-v8": "^0.34.1",
|
|
43
44
|
"canvas": "^2.11.0",
|
|
44
|
-
"jsdom": "^
|
|
45
|
+
"jsdom": "^22.1.0",
|
|
45
46
|
"jsdom-global": "^3.0.2",
|
|
46
|
-
"prettier": "^
|
|
47
|
-
"typescript": "^
|
|
47
|
+
"prettier": "^3.0.1",
|
|
48
|
+
"typescript": "^5.1.6",
|
|
48
49
|
"vite": "^4.1.0",
|
|
49
|
-
"vitest": "^0.
|
|
50
|
+
"vitest": "^0.34.1"
|
|
50
51
|
},
|
|
51
52
|
"sideEffects": false
|
|
52
53
|
}
|