xshell 1.3.50 → 1.3.51
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/antd.development.js +3634 -5053
- package/antd.development.js.map +1 -1
- package/antd.production.js +748 -1915
- package/antd.production.js.map +1 -1
- package/file.d.ts +1 -1
- package/package.json +1 -1
- package/path.d.ts +2 -2
- package/prototype.common.d.ts +2 -0
- package/prototype.common.js +12 -3
- package/utils.common.d.ts +1 -1
package/file.d.ts
CHANGED
package/package.json
CHANGED
package/path.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ export declare function extname(path: string): string;
|
|
|
54
54
|
/** `/` */
|
|
55
55
|
export declare const sep = "/";
|
|
56
56
|
/** The platform-specific file delimiter. ';' or ':'. */
|
|
57
|
-
export declare const delimiter: "
|
|
57
|
+
export declare const delimiter: ":" | ";";
|
|
58
58
|
/** Returns an object from a path string - the opposite of format().
|
|
59
59
|
@param path path to evaluate.
|
|
60
60
|
@throws {TypeError} if `path` is not a string. */
|
|
@@ -81,7 +81,7 @@ export declare let path: {
|
|
|
81
81
|
basename: typeof basename;
|
|
82
82
|
extname: typeof extname;
|
|
83
83
|
sep: string;
|
|
84
|
-
delimiter: "
|
|
84
|
+
delimiter: ":" | ";";
|
|
85
85
|
parse: typeof parse;
|
|
86
86
|
format: typeof format;
|
|
87
87
|
toNamespacedPath: typeof toNamespacedPath;
|
package/prototype.common.d.ts
CHANGED
|
@@ -238,6 +238,8 @@ export type Less = Greater;
|
|
|
238
238
|
export declare const less: Less;
|
|
239
239
|
export type ValueOf<T> = T[keyof T];
|
|
240
240
|
export declare function to_snake_case(str: string): string;
|
|
241
|
+
export declare function to_lower_camel_case(str: string): string;
|
|
242
|
+
export declare function to_upper_camel_case(str: string): string;
|
|
241
243
|
export declare function to_space_case(str: string): string;
|
|
242
244
|
/** 在常量对象上添加反向映射(value -> key)
|
|
243
245
|
```ts
|
package/prototype.common.js
CHANGED
|
@@ -17,13 +17,22 @@ export function rethrow(error) {
|
|
|
17
17
|
export const greater = (a, b) => a > b;
|
|
18
18
|
export const less = (a, b) => a < b;
|
|
19
19
|
export function to_snake_case(str) {
|
|
20
|
-
return str.
|
|
20
|
+
return str.replaceAll(/([A-Z])/g, '_$1')
|
|
21
21
|
.toLowerCase()
|
|
22
|
-
.
|
|
22
|
+
.replaceAll('-', '_')
|
|
23
23
|
.strip_if_start('_');
|
|
24
24
|
}
|
|
25
|
+
export function to_lower_camel_case(str) {
|
|
26
|
+
return str.replaceAll(/_([a-z])/g, match => match[1].toUpperCase());
|
|
27
|
+
}
|
|
28
|
+
export function to_upper_camel_case(str) {
|
|
29
|
+
if (!str)
|
|
30
|
+
return str;
|
|
31
|
+
const s = to_lower_camel_case(str);
|
|
32
|
+
return s[0].toUpperCase() + s.slice(1);
|
|
33
|
+
}
|
|
25
34
|
export function to_space_case(str) {
|
|
26
|
-
return str.
|
|
35
|
+
return str.replaceAll(/([A-Z])/g, ' $1')
|
|
27
36
|
.toLowerCase()
|
|
28
37
|
.replaceAll('_', ' ')
|
|
29
38
|
.strip_if_start(' ');
|
package/utils.common.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export declare function seq<T = number>(n: number, generator?: (index: number) =
|
|
|
21
21
|
- mapper?: 可以是 key (string, number, symbol) 或 (obj: any) => any */
|
|
22
22
|
export declare function unique<TObj>(iterable: TObj[] | Iterable<TObj>, mapper?: keyof TObj | Mapper<TObj>): TObj[];
|
|
23
23
|
/** 字符串字典序比较 */
|
|
24
|
-
export declare function strcmp(l: string, r: string):
|
|
24
|
+
export declare function strcmp(l: string, r: string): 1 | 0 | -1;
|
|
25
25
|
/** 排序对象中 keys 的顺序,返回新的对象 */
|
|
26
26
|
export declare function sort_keys<TObj>(obj: TObj): TObj;
|
|
27
27
|
/** 比较 1.10.02 这种版本号
|