xshell 1.2.82 → 1.2.84

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 CHANGED
@@ -278,5 +278,5 @@ export declare class RemoteClient {
278
278
  [inspect.custom](): {
279
279
  remote: string;
280
280
  websocket: string;
281
- } & Omit<this, typeof import("util").inspect.custom | "websocket" | "remote" | "call" | "send">;
281
+ } & Omit<this, typeof import("util").inspect.custom | "call" | "websocket" | "remote" | "send">;
282
282
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xshell",
3
- "version": "1.2.82",
3
+ "version": "1.2.84",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "bin": {
@@ -57,11 +57,11 @@
57
57
  "@svgr/webpack": "^8.1.0",
58
58
  "@types/sass-loader": "^8.0.9",
59
59
  "@types/ws": "^8.18.1",
60
- "@typescript-eslint/eslint-plugin": "^8.39.1",
61
- "@typescript-eslint/parser": "^8.39.1",
62
- "@typescript-eslint/utils": "^8.39.1",
60
+ "@typescript-eslint/eslint-plugin": "^8.40.0",
61
+ "@typescript-eslint/parser": "^8.40.0",
62
+ "@typescript-eslint/utils": "^8.40.0",
63
63
  "archiver": "^7.0.1",
64
- "chalk": "^5.5.0",
64
+ "chalk": "^5.6.0",
65
65
  "commander": "^14.0.0",
66
66
  "css-loader": "^7.1.2",
67
67
  "emoji-regex": "^10.4.0",
@@ -69,7 +69,7 @@
69
69
  "eslint-plugin-import": "^2.32.0",
70
70
  "eslint-plugin-react": "^7.37.5",
71
71
  "https-proxy-agent": "^7.0.6",
72
- "i18next": "^25.3.6",
72
+ "i18next": "^25.4.0",
73
73
  "i18next-scanner": "^4.6.0",
74
74
  "koa": "^3.0.1",
75
75
  "koa-compress": "^5.1.1",
@@ -78,7 +78,7 @@
78
78
  "mime-types": "^3.0.1",
79
79
  "p-map": "^7.0.3",
80
80
  "react": "^19.1.1",
81
- "react-i18next": "^15.6.1",
81
+ "react-i18next": "^15.7.1",
82
82
  "resolve-path": "^1.4.0",
83
83
  "sass": "^1.90.0",
84
84
  "sass-loader": "^16.0.5",
@@ -90,8 +90,8 @@
90
90
  "tslib": "^2.8.1",
91
91
  "typescript": "^5.9.2",
92
92
  "ua-parser-js": "^2.0.4",
93
- "undici": "^7.13.0",
94
- "webpack": "^5.101.2",
93
+ "undici": "^7.14.0",
94
+ "webpack": "^5.101.3",
95
95
  "webpack-bundle-analyzer": "^4.10.2",
96
96
  "ws": "^8.18.3"
97
97
  },
@@ -104,11 +104,11 @@
104
104
  "@types/koa": "^3.0.0",
105
105
  "@types/koa-compress": "^4.0.6",
106
106
  "@types/mime-types": "^3.0.1",
107
- "@types/node": "^24.2.1",
107
+ "@types/node": "^24.3.0",
108
108
  "@types/react": "^19.1.10",
109
109
  "@types/tough-cookie": "^4.0.5",
110
110
  "@types/ua-parser-js": "^0.7.39",
111
- "@types/vscode": "^1.102.0",
111
+ "@types/vscode": "^1.103.0",
112
112
  "@types/webpack-bundle-analyzer": "^4.7.0"
113
113
  }
114
114
  }
@@ -138,7 +138,7 @@ declare global {
138
138
  - 'D:/'.fname === 'D:/' */
139
139
  fname: string;
140
140
  /** 文件后缀名,不带点,如: txt, zip,没有后缀时返回空字符串
141
- 特殊情况: .aaa 的 fext 为 '' */
141
+ 特殊情况: .aaa, aa.bb/ 的 fext 为 '' */
142
142
  fext: string;
143
143
  }
144
144
  interface Date {
@@ -113,6 +113,8 @@ if (!globalThis.my_prototype_defined) {
113
113
  return fp.slice(ilast + 1);
114
114
  },
115
115
  fext() {
116
+ if (this.endsWith('/'))
117
+ return '';
116
118
  const { fname } = this;
117
119
  const index = fname.lastIndexOf('.');
118
120
  return index <= 0 ? '' : fname.slice(index + 1);