xshell 1.2.83 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xshell",
3
- "version": "1.2.83",
3
+ "version": "1.2.84",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "bin": {
@@ -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",
@@ -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);