xshell 1.3.38 → 1.3.40
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 +3742 -3620
- package/antd.development.js.map +1 -1
- package/antd.production.js +974 -869
- package/antd.production.js.map +1 -1
- package/chalk.browser.d.ts +2 -2
- package/chalk.browser.js +2 -2
- package/net.d.ts +8 -7
- package/net.js +6 -7
- package/package.json +13 -13
- package/process.d.ts +2 -1
- package/prototype.common.d.ts +8 -0
- package/prototype.common.js +11 -0
- package/prototype.d.ts +1 -1
- package/prototype.js +1 -1
- package/react.development.js +6 -6
- package/react.development.js.map +1 -1
- package/react.production.js +4826 -4826
- package/react.production.js.map +1 -1
- package/storage.d.ts +2 -0
- package/storage.js +7 -0
- package/tsconfig.json +1 -0
- package/utils.d.ts +8 -4
- package/utils.js +2 -4
package/storage.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ export declare let storage: {
|
|
|
9
9
|
set<TValue>(key: string, value: TValue): TValue;
|
|
10
10
|
list(): string[];
|
|
11
11
|
delete(key: string): void;
|
|
12
|
+
set_bool(key: string, value: any): void;
|
|
13
|
+
get_bool(key: string): boolean | undefined;
|
|
12
14
|
};
|
|
13
15
|
export declare let db: {
|
|
14
16
|
store_name: "kv-store";
|
package/storage.js
CHANGED
|
@@ -24,6 +24,13 @@ export let storage = {
|
|
|
24
24
|
},
|
|
25
25
|
delete(key) {
|
|
26
26
|
localStorage.removeItem(key);
|
|
27
|
+
},
|
|
28
|
+
set_bool(key, value) {
|
|
29
|
+
localStorage.setItem(key, value ? '1' : '0');
|
|
30
|
+
},
|
|
31
|
+
get_bool(key) {
|
|
32
|
+
const v = localStorage.getItem(key);
|
|
33
|
+
return v === null ? undefined : (v !== '0' && v !== 'false');
|
|
27
34
|
}
|
|
28
35
|
};
|
|
29
36
|
export let db = {
|
package/tsconfig.json
CHANGED
package/utils.d.ts
CHANGED
|
@@ -21,12 +21,16 @@ export declare function inspect(obj: any, options?: util.InspectOptions & {
|
|
|
21
21
|
limit?: number;
|
|
22
22
|
omit?: string[];
|
|
23
23
|
}): string;
|
|
24
|
-
/** 根据 enabled 选项返回有 / 无颜色的字符串 (str) */
|
|
25
|
-
export declare function colored(str: string, color: string, enabled?: boolean): any;
|
|
26
24
|
export declare namespace inspect {
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
var custom: typeof util.inspect.custom;
|
|
26
|
+
var defaultOptions: util.InspectOptions;
|
|
27
|
+
}
|
|
28
|
+
export interface inspect {
|
|
29
|
+
custom: typeof util.inspect.custom;
|
|
30
|
+
defaultOptions: typeof util.inspect.defaultOptions;
|
|
29
31
|
}
|
|
32
|
+
/** 根据 enabled 选项返回有 / 无颜色的字符串 (str) */
|
|
33
|
+
export declare function colored(str: string, color: string, enabled?: boolean): any;
|
|
30
34
|
/** 消费一个可读流 */
|
|
31
35
|
export declare function consume_stream(stream: Readable, ignore_error?: boolean): Promise<void>;
|
|
32
36
|
export declare function stream_to_lines(stream: Readable): AsyncGenerator<string, void, unknown>;
|
package/utils.js
CHANGED
|
@@ -61,14 +61,12 @@ export function inspect(obj, options = {}) {
|
|
|
61
61
|
else
|
|
62
62
|
return text;
|
|
63
63
|
}
|
|
64
|
+
inspect.custom = util.inspect.custom;
|
|
65
|
+
inspect.defaultOptions = util.inspect.defaultOptions;
|
|
64
66
|
/** 根据 enabled 选项返回有 / 无颜色的字符串 (str) */
|
|
65
67
|
export function colored(str, color, enabled = inspect.defaultOptions.colors) {
|
|
66
68
|
return enabled ? str[color] : str;
|
|
67
69
|
}
|
|
68
|
-
(function (inspect) {
|
|
69
|
-
inspect.custom = util.inspect.custom;
|
|
70
|
-
inspect.defaultOptions = util.inspect.defaultOptions;
|
|
71
|
-
})(inspect || (inspect = {}));
|
|
72
70
|
// ------------------------------------ stream
|
|
73
71
|
/** 消费一个可读流 */
|
|
74
72
|
export async function consume_stream(stream, ignore_error = false) {
|