xshell 1.2.25 → 1.2.27

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 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 路径所指的文件
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xshell",
3
- "version": "1.2.25",
3
+ "version": "1.2.27",
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.9",
53
- "@babel/parser": "^7.26.9",
54
- "@babel/traverse": "^7.26.9",
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.26.0",
61
- "@typescript-eslint/parser": "^8.26.0",
62
- "@typescript-eslint/utils": "^8.26.0",
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.21.0",
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.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": "^2.1.35",
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.85.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.2",
98
- "undici": "^7.4.0",
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.26.9",
106
+ "@babel/types": "^7.27.0",
107
107
  "@types/archiver": "^6.0.3",
108
- "@types/babel__traverse": "^7.20.6",
108
+ "@types/babel__traverse": "^7.20.7",
109
109
  "@types/eslint": "^9.6.1",
110
- "@types/estree": "^1.0.6",
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.9",
116
- "@types/react": "^19.0.10",
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@2.16.0": "patches/koa@2.16.0.patch"
126
+ "koa": "patches/koa.patch"
127
127
  }
128
128
  }
129
129
  }
package/prototype.js CHANGED
@@ -379,10 +379,19 @@ if (!globalThis.my_prototype_defined) {
379
379
  const style = color.endsWith('_') ? `${color.slice(0, -1)}Bright` : color;
380
380
  return [color, {
381
381
  configurable: true,
382
- get() {
383
- // @ts-ignore
384
- return util.styleText(style, this, { validateStream: false });
385
- }
382
+ ...util.styleText ?
383
+ {
384
+ get() {
385
+ // @ts-ignore
386
+ return util.styleText(style, this, { validateStream: false });
387
+ }
388
+ }
389
+ :
390
+ {
391
+ get() {
392
+ return this;
393
+ }
394
+ }
386
395
  }];
387
396
  })),
388
397
  // ------------ 文件路径操作
File without changes