xshell 1.0.166 → 1.0.168

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/apps.d.ts CHANGED
@@ -3,7 +3,7 @@ import type OSS from 'ali-oss';
3
3
  import { type CallOptions } from './process.js';
4
4
  export declare let npm: {
5
5
  bin: string;
6
- call(cwd: string, bin: string, args: string[], options?: CallOptions): Promise<import("./process.js").CallResult<string>>;
6
+ call(cwd: string, bin: string, args: string[], options?: CallOptions): Promise<import("./process.ts").CallResult<string>>;
7
7
  /** node.exe E:/sdk/nodejs/node_modules/corepack/dist/pnpm.js install
8
8
  - cwd
9
9
  - pkgs?: `[ ]` */
@@ -25,7 +25,7 @@ export declare let npm: {
25
25
  export declare function tsc(fpd: string, { tsconfig, typecheck, }?: {
26
26
  tsconfig?: string;
27
27
  typecheck?: boolean;
28
- }): Promise<import("./process.js").CallResult<string>>;
28
+ }): Promise<import("./process.ts").CallResult<string>>;
29
29
  export declare let oss: {
30
30
  client: OSS;
31
31
  bucket: string;
package/git.d.ts CHANGED
@@ -9,7 +9,7 @@ export declare class Git {
9
9
  color?: boolean;
10
10
  print?: CallOptions['print'];
11
11
  printers?: CallOptions['printers'];
12
- }): Promise<import("./process.js").CallResult<string>>;
12
+ }): Promise<import("./process.ts").CallResult<string>>;
13
13
  get_branch(): Promise<string>;
14
14
  /** - print: `true` */
15
15
  get_branches(print?: boolean): Promise<string[]>;
@@ -19,7 +19,7 @@ export declare class Git {
19
19
  n?: number;
20
20
  graph?: boolean;
21
21
  format?: string;
22
- }): Promise<import("./process.js").CallResult<string>>;
22
+ }): Promise<import("./process.ts").CallResult<string>>;
23
23
  get_last_commits(n?: number): Promise<{
24
24
  time: Date;
25
25
  commiter: string;
@@ -1,9 +1,9 @@
1
1
  import { I18N } from './index.js';
2
2
  export declare let i18n: I18N;
3
3
  declare const t: (text: string, options?: {
4
- language?: import("./index.js").Language;
4
+ language?: import("./index.ts").Language;
5
5
  context?: string;
6
6
  count?: number;
7
7
  [key: string]: any;
8
- }) => string, language: import("./index.js").Language;
8
+ }) => string, language: import("./index.ts").Language;
9
9
  export { t, language };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xshell",
3
- "version": "1.0.166",
3
+ "version": "1.0.168",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "bin": {
@@ -53,13 +53,13 @@
53
53
  "@babel/parser": "^7.25.6",
54
54
  "@babel/traverse": "^7.25.6",
55
55
  "@koa/cors": "^5.0.0",
56
- "@stylistic/eslint-plugin": "^2.7.2",
56
+ "@stylistic/eslint-plugin": "^2.8.0",
57
57
  "@svgr/webpack": "^8.1.0",
58
58
  "@types/sass-loader": "^8.0.9",
59
59
  "@types/ws": "^8.5.12",
60
- "@typescript-eslint/eslint-plugin": "^8.3.0",
61
- "@typescript-eslint/parser": "^8.3.0",
62
- "@typescript-eslint/utils": "^8.3.0",
60
+ "@typescript-eslint/eslint-plugin": "^8.5.0",
61
+ "@typescript-eslint/parser": "^8.5.0",
62
+ "@typescript-eslint/utils": "^8.5.0",
63
63
  "@xterm/addon-fit": "^0.10.0",
64
64
  "@xterm/addon-web-links": "^0.11.0",
65
65
  "@xterm/addon-webgl": "^0.18.0",
@@ -75,13 +75,13 @@
75
75
  "commander": "^12.1.0",
76
76
  "css-loader": "^7.1.2",
77
77
  "emoji-regex": "^10.4.0",
78
- "eslint": "^9.9.1",
79
- "eslint-plugin-import": "^2.29.1",
80
- "eslint-plugin-react": "^7.35.0",
78
+ "eslint": "^9.10.0",
79
+ "eslint-plugin-import": "^2.30.0",
80
+ "eslint-plugin-react": "^7.35.2",
81
81
  "gulp-sort": "^2.0.0",
82
82
  "hash-string": "^1.0.0",
83
83
  "https-proxy-agent": "^7.0.5",
84
- "i18next": "^23.14.0",
84
+ "i18next": "^23.15.1",
85
85
  "i18next-scanner": "^4.5.0",
86
86
  "koa": "^2.15.3",
87
87
  "koa-compress": "^5.1.1",
@@ -94,7 +94,7 @@
94
94
  "react-i18next": "^15.0.1",
95
95
  "react-object-model": "^1.2.13",
96
96
  "resolve-path": "^1.4.0",
97
- "sass": "^1.77.8",
97
+ "sass": "^1.78.0",
98
98
  "sass-loader": "^16.0.1",
99
99
  "source-map-loader": "^5.0.0",
100
100
  "strip-ansi": "^7.1.0",
@@ -103,7 +103,7 @@
103
103
  "tough-cookie": "^5.0.0-rc.4",
104
104
  "ts-loader": "^9.5.1",
105
105
  "tslib": "^2.7.0",
106
- "typescript": "^5.5.4",
106
+ "typescript": "^5.6.2",
107
107
  "ua-parser-js": "^2.0.0-beta.3",
108
108
  "undici": "^6.19.8",
109
109
  "vinyl": "^3.0.0",
@@ -126,13 +126,13 @@
126
126
  "@types/koa-compress": "^4.0.6",
127
127
  "@types/lodash": "^4.17.7",
128
128
  "@types/mime-types": "^2.1.4",
129
- "@types/node": "^22.5.2",
129
+ "@types/node": "^22.5.4",
130
130
  "@types/react": "^18.3.5",
131
131
  "@types/through2": "^2.0.41",
132
132
  "@types/tough-cookie": "^4.0.5",
133
133
  "@types/ua-parser-js": "^0.7.39",
134
134
  "@types/vinyl-fs": "^3.0.5",
135
- "@types/vscode": "^1.92.0",
135
+ "@types/vscode": "^1.93.0",
136
136
  "@types/webpack-bundle-analyzer": "^4.7.0"
137
137
  },
138
138
  "pnpm": {
@@ -137,7 +137,7 @@ declare global {
137
137
  interface Array<T> {
138
138
  /** 等价于 .at(-1) */
139
139
  last: T;
140
- indent(this: string[], width: number, c?: string): string[];
140
+ indent(this: string[], width?: number, c?: string): string[];
141
141
  /**
142
142
  - trim_line?: `true`
143
143
  - rm_empty_lines?: `true`
@@ -449,8 +449,9 @@ Object.defineProperties(Array.prototype, {
449
449
  }
450
450
  return lines;
451
451
  },
452
- indent(width, character = ' ') {
453
- return this.map(line => character.repeat(width) + line);
452
+ indent(width = 4, character = ' ') {
453
+ const indent = character.repeat(width);
454
+ return this.map(line => indent + line);
454
455
  },
455
456
  join_lines(append = true) {
456
457
  return `${this.join('\n')}${append ? '\n' : ''}`;
package/prototype.d.ts CHANGED
@@ -161,7 +161,7 @@ declare global {
161
161
  /** 等价于 .at(-1) */
162
162
  last: T;
163
163
  log(this: string[], limit?: number): void;
164
- indent(this: string[], width: number, c?: string): string[];
164
+ indent(this: string[], width?: number, c?: string): string[];
165
165
  indent2to4(this: string[]): string[];
166
166
  /**
167
167
  - trim_line?: `true`
package/prototype.js CHANGED
@@ -498,8 +498,9 @@ if (!globalThis.my_prototype_defined) {
498
498
  split_indents() {
499
499
  return this.map(line => line.split_indent());
500
500
  },
501
- indent(width, character = ' ') {
502
- return this.map(line => character.repeat(width) + line);
501
+ indent(width = 4, character = ' ') {
502
+ const indent = character.repeat(width);
503
+ return this.map(line => indent + line);
503
504
  },
504
505
  indent2to4() {
505
506
  return this.split_indents()
@@ -70,7 +70,7 @@ export declare function encode(str: string): Uint8Array;
70
70
  在流式处理 (buffer 可能不完整) 时,应使用独立的 TextDecoder 实例调用 decode(buffer, { stream: true }) */
71
71
  export declare function decode(buffer: Uint8Array): string;
72
72
  /** 字符串字典序比较 */
73
- export declare function strcmp(l: string, r: string): 0 | 1 | -1;
73
+ export declare function strcmp(l: string, r: string): 1 | 0 | -1;
74
74
  /** 比较 1.10.02 这种版本号
75
75
  - l, r: 两个版本号字符串
76
76
  - loose?: 宽松模式,允许两个版本号格式(位数)不一致 */
package/utils.d.ts CHANGED
@@ -37,7 +37,7 @@ export declare function filter_values<TObj extends Record<string, any>>(obj: TOb
37
37
  /** 忽略对象中的 keys, 返回新对象 */
38
38
  export declare function omit<TObj>(obj: TObj, omit_keys: string[]): TObj;
39
39
  /** 字符串字典序比较 */
40
- export declare function strcmp(l: string, r: string): 0 | 1 | -1;
40
+ export declare function strcmp(l: string, r: string): 1 | 0 | -1;
41
41
  /** 比较 1.10.02 这种版本号
42
42
  - l, r: 两个版本号字符串
43
43
  - loose?: 宽松模式,允许两个版本号格式(位数)不一致 */