xshell 1.2.16 → 1.2.17
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/net.d.ts +1 -1
- package/package.json +4 -4
- package/process.d.ts +1 -2
- package/process.js +1 -2
package/net.d.ts
CHANGED
|
@@ -285,5 +285,5 @@ export declare class RemoteClient {
|
|
|
285
285
|
[inspect.custom](): {
|
|
286
286
|
remote: string;
|
|
287
287
|
websocket: string;
|
|
288
|
-
} & Omit<this, typeof import("util").inspect.custom | "
|
|
288
|
+
} & Omit<this, "websocket" | typeof import("util").inspect.custom | "call" | "remote" | "send">;
|
|
289
289
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xshell",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.17",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"bin": {
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"commander": "^13.1.0",
|
|
68
68
|
"css-loader": "^7.1.2",
|
|
69
69
|
"emoji-regex": "^10.4.0",
|
|
70
|
-
"eslint": "^9.
|
|
70
|
+
"eslint": "^9.21.0",
|
|
71
71
|
"eslint-plugin-import": "^2.31.0",
|
|
72
72
|
"eslint-plugin-react": "^7.37.4",
|
|
73
73
|
"gulp-sort": "^2.0.0",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"vinyl-fs": "^4.0.0",
|
|
101
101
|
"webpack": "^5.98.0",
|
|
102
102
|
"webpack-bundle-analyzer": "^4.10.2",
|
|
103
|
-
"ws": "^8.18.
|
|
103
|
+
"ws": "^8.18.1"
|
|
104
104
|
},
|
|
105
105
|
"devDependencies": {
|
|
106
106
|
"@babel/types": "^7.26.9",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"@types/koa": "^2.15.0",
|
|
113
113
|
"@types/koa-compress": "^4.0.6",
|
|
114
114
|
"@types/mime-types": "^2.1.4",
|
|
115
|
-
"@types/node": "^22.13.
|
|
115
|
+
"@types/node": "^22.13.5",
|
|
116
116
|
"@types/react": "^19.0.10",
|
|
117
117
|
"@types/through2": "^2.0.41",
|
|
118
118
|
"@types/tough-cookie": "^4.0.5",
|
package/process.d.ts
CHANGED
|
@@ -136,12 +136,11 @@ export interface CallError<TOutput extends string | Buffer = string> extends Err
|
|
|
136
136
|
code: number;
|
|
137
137
|
signal: NodeJS.Signals;
|
|
138
138
|
command: string;
|
|
139
|
-
child: SubProcess<TOutput>;
|
|
140
139
|
print: FullPrintOptions;
|
|
141
140
|
}
|
|
142
141
|
export declare class CallError<TOutput extends string | Buffer = string> extends Error {
|
|
143
142
|
name: "CallError";
|
|
144
|
-
constructor({ message, pid, stdout, stderr, code, signal, command,
|
|
143
|
+
constructor({ message, pid, stdout, stderr, code, signal, command, print }: CallResult<TOutput>);
|
|
145
144
|
[inspect.custom](depth: number, options: InspectOptions, inspect: Function): string;
|
|
146
145
|
}
|
|
147
146
|
/** 调用 exe 启动子进程,等待并获取返回结果,错误时抛出 CallError
|
package/process.js
CHANGED
|
@@ -167,7 +167,7 @@ export async function start(exe, args = [], options = {}) {
|
|
|
167
167
|
}
|
|
168
168
|
export class CallError extends Error {
|
|
169
169
|
name = 'CallError';
|
|
170
|
-
constructor({ message, pid, stdout, stderr, code, signal, command,
|
|
170
|
+
constructor({ message, pid, stdout, stderr, code, signal, command, print }) {
|
|
171
171
|
super(message);
|
|
172
172
|
// defineProperty 默认 enumerable: false,不会在 inspect 中显示
|
|
173
173
|
Object.defineProperties(this, {
|
|
@@ -177,7 +177,6 @@ export class CallError extends Error {
|
|
|
177
177
|
code: { value: code },
|
|
178
178
|
signal: { value: signal },
|
|
179
179
|
command: { value: command },
|
|
180
|
-
child: { value: child },
|
|
181
180
|
print: { value: print }
|
|
182
181
|
});
|
|
183
182
|
}
|