xshell 1.2.26 → 1.2.28
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/file.d.ts +6 -5
- package/net.d.ts +1 -1
- package/package.json +19 -19
- package/path.d.ts +2 -2
- /package/patches/{koa@2.16.0.patch → koa.patch} +0 -0
package/file.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ export declare function fparse<TReturn>(fp: string, options?: {
|
|
|
54
54
|
export declare function fequals(fp_left: string, fp_right: string, { print }?: {
|
|
55
55
|
print?: boolean;
|
|
56
56
|
}): Promise<boolean>;
|
|
57
|
-
interface FWriteOptions {
|
|
57
|
+
export interface FWriteOptions {
|
|
58
58
|
print?: boolean;
|
|
59
59
|
}
|
|
60
60
|
/** 写入 data 到 fp 路径所指的文件
|
|
@@ -141,6 +141,10 @@ export interface FCopyOptions {
|
|
|
141
141
|
@example
|
|
142
142
|
fcopy('D:/temp/camera/', 'D:/camera/') */
|
|
143
143
|
export declare function fcopy(fp_src: string, fp_dst: string, { print, overwrite, filter, }?: FCopyOptions): Promise<void>;
|
|
144
|
+
export interface FMoveOptions {
|
|
145
|
+
overwrite?: boolean;
|
|
146
|
+
print?: boolean;
|
|
147
|
+
}
|
|
144
148
|
/** 移动文件或文件夹
|
|
145
149
|
相同分区 / 文件系统下使用 rename, 否则 fallback 到复制后删除源文件
|
|
146
150
|
- src: 源 文件/文件夹 完整路径
|
|
@@ -151,10 +155,7 @@ export declare function fcopy(fp_src: string, fp_dst: string, { print, overwrite
|
|
|
151
155
|
|
|
152
156
|
@example
|
|
153
157
|
fmove('D:/temp/camera/', 'D:/camera/') */
|
|
154
|
-
export declare function fmove(fp_src: string, fp_dst: string, { overwrite, print }?:
|
|
155
|
-
overwrite?: boolean;
|
|
156
|
-
print?: boolean;
|
|
157
|
-
}): Promise<void>;
|
|
158
|
+
export declare function fmove(fp_src: string, fp_dst: string, { overwrite, print }?: FMoveOptions): Promise<void>;
|
|
158
159
|
/** 重命名文件 rename file
|
|
159
160
|
- fp: 当前文件名/路径 current filename/path
|
|
160
161
|
- fp_: 新的文件名/路径 new filename/path
|
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, "websocket" | typeof import("util").inspect.custom | "
|
|
288
|
+
} & Omit<this, "call" | "websocket" | typeof import("util").inspect.custom | "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.28",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"bin": {
|
|
@@ -49,17 +49,17 @@
|
|
|
49
49
|
]
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@babel/core": "^7.26.
|
|
53
|
-
"@babel/parser": "^7.
|
|
54
|
-
"@babel/traverse": "^7.
|
|
52
|
+
"@babel/core": "^7.26.10",
|
|
53
|
+
"@babel/parser": "^7.27.0",
|
|
54
|
+
"@babel/traverse": "^7.27.0",
|
|
55
55
|
"@koa/cors": "^5.0.0",
|
|
56
56
|
"@stylistic/eslint-plugin": "^4.2.0",
|
|
57
57
|
"@svgr/webpack": "^8.1.0",
|
|
58
58
|
"@types/sass-loader": "^8.0.9",
|
|
59
59
|
"@types/ws": "^8.18.0",
|
|
60
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
61
|
-
"@typescript-eslint/parser": "^8.
|
|
62
|
-
"@typescript-eslint/utils": "^8.
|
|
60
|
+
"@typescript-eslint/eslint-plugin": "^8.28.0",
|
|
61
|
+
"@typescript-eslint/parser": "^8.28.0",
|
|
62
|
+
"@typescript-eslint/utils": "^8.28.0",
|
|
63
63
|
"archiver": "^7.0.1",
|
|
64
64
|
"chalk": "^5.4.1",
|
|
65
65
|
"cli-table3": "^0.6.5",
|
|
@@ -67,24 +67,24 @@
|
|
|
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.23.0",
|
|
71
71
|
"eslint-plugin-import": "^2.31.0",
|
|
72
72
|
"eslint-plugin-react": "^7.37.4",
|
|
73
73
|
"gulp-sort": "^2.0.0",
|
|
74
74
|
"https-proxy-agent": "^7.0.6",
|
|
75
|
-
"i18next": "^24.2.
|
|
75
|
+
"i18next": "^24.2.3",
|
|
76
76
|
"i18next-scanner": "^4.6.0",
|
|
77
77
|
"koa": "^2.16.0",
|
|
78
78
|
"koa-compress": "^5.1.1",
|
|
79
79
|
"license-webpack-plugin": "^4.0.2",
|
|
80
80
|
"map-stream": "^0.0.7",
|
|
81
|
-
"mime-types": "^
|
|
81
|
+
"mime-types": "^3.0.1",
|
|
82
82
|
"ora": "^8.2.0",
|
|
83
83
|
"react": "^19.0.0",
|
|
84
84
|
"react-i18next": "^15.4.1",
|
|
85
85
|
"react-object-model": "^1.2.23",
|
|
86
86
|
"resolve-path": "^1.4.0",
|
|
87
|
-
"sass": "^1.
|
|
87
|
+
"sass": "^1.86.0",
|
|
88
88
|
"sass-loader": "^16.0.5",
|
|
89
89
|
"source-map-loader": "^5.0.0",
|
|
90
90
|
"strip-ansi": "^7.1.0",
|
|
@@ -94,8 +94,8 @@
|
|
|
94
94
|
"ts-loader": "^9.5.2",
|
|
95
95
|
"tslib": "^2.8.1",
|
|
96
96
|
"typescript": "^5.8.2",
|
|
97
|
-
"ua-parser-js": "^2.0.
|
|
98
|
-
"undici": "^7.
|
|
97
|
+
"ua-parser-js": "^2.0.3",
|
|
98
|
+
"undici": "^7.5.0",
|
|
99
99
|
"vinyl": "^3.0.0",
|
|
100
100
|
"vinyl-fs": "^4.0.0",
|
|
101
101
|
"webpack": "^5.98.0",
|
|
@@ -103,17 +103,17 @@
|
|
|
103
103
|
"ws": "^8.18.1"
|
|
104
104
|
},
|
|
105
105
|
"devDependencies": {
|
|
106
|
-
"@babel/types": "^7.
|
|
106
|
+
"@babel/types": "^7.27.0",
|
|
107
107
|
"@types/archiver": "^6.0.3",
|
|
108
|
-
"@types/babel__traverse": "^7.20.
|
|
108
|
+
"@types/babel__traverse": "^7.20.7",
|
|
109
109
|
"@types/eslint": "^9.6.1",
|
|
110
|
-
"@types/estree": "^1.0.
|
|
110
|
+
"@types/estree": "^1.0.7",
|
|
111
111
|
"@types/gulp-sort": "^2.0.4",
|
|
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.
|
|
116
|
-
"@types/react": "^19.0.
|
|
115
|
+
"@types/node": "^22.13.14",
|
|
116
|
+
"@types/react": "^19.0.12",
|
|
117
117
|
"@types/through2": "^2.0.41",
|
|
118
118
|
"@types/tough-cookie": "^4.0.5",
|
|
119
119
|
"@types/ua-parser-js": "^0.7.39",
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
},
|
|
124
124
|
"pnpm": {
|
|
125
125
|
"patchedDependencies": {
|
|
126
|
-
"koa
|
|
126
|
+
"koa": "patches/koa.patch"
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
}
|
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;
|
|
File without changes
|