xshell 1.0.158 → 1.0.160

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xshell",
3
- "version": "1.0.158",
3
+ "version": "1.0.160",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "bin": {
@@ -53,18 +53,18 @@
53
53
  "@babel/parser": "^7.25.3",
54
54
  "@babel/traverse": "^7.25.3",
55
55
  "@koa/cors": "^5.0.0",
56
- "@stylistic/eslint-plugin": "^2.6.0",
56
+ "@stylistic/eslint-plugin": "^2.6.4",
57
57
  "@svgr/webpack": "^8.1.0",
58
- "@types/sass-loader": "^8.0.8",
58
+ "@types/sass-loader": "^8.0.9",
59
59
  "@types/ws": "^8.5.12",
60
- "@typescript-eslint/eslint-plugin": "^8.0.0",
61
- "@typescript-eslint/parser": "^8.0.0",
62
- "@typescript-eslint/utils": "^8.0.0",
60
+ "@typescript-eslint/eslint-plugin": "^8.2.0",
61
+ "@typescript-eslint/parser": "^8.2.0",
62
+ "@typescript-eslint/utils": "^8.2.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",
66
66
  "@xterm/xterm": "^5.5.0",
67
- "ali-oss": "^6.20.0",
67
+ "ali-oss": "^6.21.0",
68
68
  "archiver": "^7.0.1",
69
69
  "byte-size": "^9.0.0",
70
70
  "chalk": "^5.3.0",
@@ -75,13 +75,13 @@
75
75
  "commander": "^12.1.0",
76
76
  "css-loader": "^7.1.2",
77
77
  "emoji-regex": "^10.3.0",
78
- "eslint": "^9.8.0",
78
+ "eslint": "^9.9.0",
79
79
  "eslint-plugin-import": "^2.29.1",
80
80
  "eslint-plugin-react": "^7.35.0",
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.12.2",
84
+ "i18next": "^23.14.0",
85
85
  "i18next-scanner": "^4.5.0",
86
86
  "koa": "^2.15.3",
87
87
  "koa-compress": "^5.1.1",
@@ -91,11 +91,11 @@
91
91
  "mime-types": "^2.1.35",
92
92
  "ora": "^8.0.1",
93
93
  "react": "^18.3.1",
94
- "react-i18next": "^15.0.0",
95
- "react-object-model": "^1.2.8",
94
+ "react-i18next": "^15.0.1",
95
+ "react-object-model": "^1.2.11",
96
96
  "resolve-path": "^1.4.0",
97
97
  "sass": "^1.77.8",
98
- "sass-loader": "^16.0.0",
98
+ "sass-loader": "^16.0.1",
99
99
  "source-map-loader": "^5.0.0",
100
100
  "strip-ansi": "^7.1.0",
101
101
  "style-loader": "^4.0.0",
@@ -105,7 +105,7 @@
105
105
  "tslib": "^2.6.3",
106
106
  "typescript": "^5.5.4",
107
107
  "ua-parser-js": "^2.0.0-beta.3",
108
- "undici": "^6.19.5",
108
+ "undici": "^6.19.8",
109
109
  "vinyl": "^3.0.0",
110
110
  "vinyl-fs": "^4.0.0",
111
111
  "webpack": "^5.93.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.0.2",
129
+ "@types/node": "^22.4.1",
130
130
  "@types/react": "^18.3.3",
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.91.0",
135
+ "@types/vscode": "^1.92.0",
136
136
  "@types/webpack-bundle-analyzer": "^4.7.0"
137
137
  },
138
138
  "pnpm": {
@@ -1,40 +1,33 @@
1
+ function define(proto, key, func) {
2
+ Object.defineProperty(proto, key, {
3
+ configurable: true,
4
+ writable: true,
5
+ enumerable: false,
6
+ value: func
7
+ });
8
+ }
1
9
  if (!Promise.withResolvers)
2
- Promise.withResolvers = function PromiseWithResolvers() {
10
+ define(Promise, 'withResolvers', function PromiseWithResolvers() {
3
11
  let resolve, reject;
4
12
  let promise = new Promise((_resolve, _reject) => {
5
13
  resolve = _resolve;
6
14
  reject = _reject;
7
15
  });
8
16
  return { promise, resolve, reject };
9
- };
17
+ });
10
18
  if (!Array.prototype.toReversed)
11
- Object.defineProperty(Array.prototype, 'toReversed', {
12
- configurable: true,
13
- writable: true,
14
- enumerable: false,
15
- value: function toReversed() {
16
- return [...this].reverse();
17
- }
19
+ define(Array.prototype, 'toReversed', function toReversed() {
20
+ return [...this].reverse();
18
21
  });
19
22
  if (!Array.prototype.toSpliced)
20
- Object.defineProperty(Array.prototype, 'toSpliced', {
21
- configurable: true,
22
- writable: true,
23
- enumerable: false,
24
- value: function toSpliced(...args) {
25
- const copy = [...this];
26
- copy.splice(...args);
27
- return copy;
28
- }
23
+ define(Array.prototype, 'toSpliced', function toSpliced(...args) {
24
+ const copy = [...this];
25
+ copy.splice(...args);
26
+ return copy;
29
27
  });
30
28
  if (!Array.prototype.at)
31
- Object.defineProperty(Array.prototype, 'at', {
32
- configurable: true,
33
- writable: true,
34
- enumerable: false,
35
- value: function at(index) {
36
- return index >= 0 ? this[index] : this[index + this.length];
37
- }
29
+ define(Array.prototype, 'at', function at(index) {
30
+ return index >= 0 ? this[index] : this[index + this.length];
38
31
  });
39
32
  export {};
40
33
  //# sourceMappingURL=polyfill.browser.js.map
package/process.d.ts CHANGED
@@ -55,7 +55,7 @@ interface StartOptions {
55
55
  - args: `[]` 参数列表 arguments list
56
56
  - options
57
57
  - cwd?: `继承当前工作目录 process.cwd()` 子进程的工作目录 `inherit the cwd` cwd of the child process.
58
- - envs?: `process.env` 覆盖/添加到 process.env 的环境变量
58
+ - envs?: `process.env` 覆盖/添加到 process.env 的环境变量,传 null 时可以取消设置该变量
59
59
  - encoding?: `'utf-8'` 子进程输出编码 child output encoding
60
60
  - print?: `true` print 选项,支持设置细项 print option (with details)
61
61
  - stdio?: `'pipe'` 设置为 'ignore' 时忽略 stdio 处理 when 'ignore' then ignore stdio processing
@@ -94,7 +94,7 @@ export interface CallError {
94
94
  - args: `[]` 参数列表 arguments list
95
95
  - options?:
96
96
  - cwd?: `process.cwd()`
97
- - envs?: `process.env` 覆盖/添加到 process.env 的环境变量 overwrite/add to process.env
97
+ - envs?: `process.env` 覆盖/添加到 process.env 的环境变量,传 null 时可以取消设置该变量
98
98
  - encoding?: `'utf-8'` 子进程输出编码, 设置为 binary 时返回 stdout, stderr 类型为 Buffer; 否则是 string
99
99
  child output encoding. When set to binary, return stdout, stderr is of type Buffer; otherwise it is string
100
100
  - print?: `true` print 选项,支持设置细项 print option (with details)
package/process.js CHANGED
@@ -2,7 +2,7 @@ import { spawn } from 'child_process';
2
2
  import os from 'os';
3
3
  import { t } from './i18n/instance.js';
4
4
  import './prototype.js';
5
- import { inspect, DecoderStream } from './utils.js';
5
+ import { inspect, DecoderStream, filter_values } from './utils.js';
6
6
  export const exe_nodejs = process.execPath.fp;
7
7
  export const platform = os.platform();
8
8
  export const username = os.userInfo().username;
@@ -13,7 +13,7 @@ export const print_no_command = { print: { command: false, code: false, stdout:
13
13
  - args: `[]` 参数列表 arguments list
14
14
  - options
15
15
  - cwd?: `继承当前工作目录 process.cwd()` 子进程的工作目录 `inherit the cwd` cwd of the child process.
16
- - envs?: `process.env` 覆盖/添加到 process.env 的环境变量
16
+ - envs?: `process.env` 覆盖/添加到 process.env 的环境变量,传 null 时可以取消设置该变量
17
17
  - encoding?: `'utf-8'` 子进程输出编码 child output encoding
18
18
  - print?: `true` print 选项,支持设置细项 print option (with details)
19
19
  - stdio?: `'pipe'` 设置为 'ignore' 时忽略 stdio 处理 when 'ignore' then ignore stdio processing
@@ -29,7 +29,7 @@ export async function start(exe, args = [], { cwd, encoding = 'utf-8', print = t
29
29
  windowsHide: !_window,
30
30
  stdio,
31
31
  ...envs || proxy ? {
32
- env: {
32
+ env: filter_values({
33
33
  ...process.env,
34
34
  ...proxy ? {
35
35
  http_proxy: proxy,
@@ -37,7 +37,7 @@ export async function start(exe, args = [], { cwd, encoding = 'utf-8', print = t
37
37
  no_proxy: '127.0.0.1,::1,localhost,192.168.0.0/20,192.168.100.0/24'
38
38
  } : {},
39
39
  ...envs
40
- }
40
+ })
41
41
  } : {},
42
42
  };
43
43
  if (typeof print === 'boolean')