xshell 1.2.11 → 1.2.12

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.11",
3
+ "version": "1.2.12",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "bin": {
@@ -49,11 +49,11 @@
49
49
  ]
50
50
  },
51
51
  "dependencies": {
52
- "@babel/core": "^7.26.0",
53
- "@babel/parser": "^7.26.5",
54
- "@babel/traverse": "^7.26.5",
52
+ "@babel/core": "^7.26.7",
53
+ "@babel/parser": "^7.26.7",
54
+ "@babel/traverse": "^7.26.7",
55
55
  "@koa/cors": "^5.0.0",
56
- "@stylistic/eslint-plugin": "^2.13.0",
56
+ "@stylistic/eslint-plugin": "^3.0.0",
57
57
  "@svgr/webpack": "^8.1.0",
58
58
  "@types/sass-loader": "^8.0.9",
59
59
  "@types/ws": "^8.5.14",
@@ -67,12 +67,12 @@
67
67
  "commander": "^13.1.0",
68
68
  "css-loader": "^7.1.2",
69
69
  "emoji-regex": "^10.4.0",
70
- "eslint": "^9.18.0",
70
+ "eslint": "^9.19.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.1",
75
+ "i18next": "^24.2.2",
76
76
  "i18next-scanner": "^4.6.0",
77
77
  "koa": "^2.15.3",
78
78
  "koa-compress": "^5.1.1",
@@ -104,7 +104,7 @@
104
104
  "ws": "^8.18.0"
105
105
  },
106
106
  "devDependencies": {
107
- "@babel/types": "^7.26.5",
107
+ "@babel/types": "^7.26.7",
108
108
  "@types/archiver": "^6.0.3",
109
109
  "@types/babel__traverse": "^7.20.6",
110
110
  "@types/eslint": "^9.6.1",
@@ -187,7 +187,7 @@ declare global {
187
187
  rm_empty_lines?: boolean;
188
188
  rm_last_empty_lines?: boolean;
189
189
  }): string[];
190
- /** - append?: `true` 是否在 join 之后增加 \n */
190
+ /** - append?: `this.length` 是否在 join 之后增加 \n */
191
191
  join_lines(append?: boolean): string;
192
192
  }
193
193
  interface BigInt {
@@ -546,7 +546,7 @@ Object.defineProperties(Array.prototype, {
546
546
  map.set(mapper(x), x);
547
547
  return [...map.values()];
548
548
  },
549
- join_lines(append = true) {
549
+ join_lines(append = Boolean(this.length)) {
550
550
  return `${this.join('\n')}${append ? '\n' : ''}`;
551
551
  }
552
552
  })
package/prototype.d.ts CHANGED
@@ -217,7 +217,7 @@ declare global {
217
217
  indent: number;
218
218
  text: string;
219
219
  }[];
220
- /** - append?: `true` 是否在 join 之后增加 \n */
220
+ /** - append?: `this.length` 是否在 join 之后增加 \n */
221
221
  join_lines(append?: boolean): string;
222
222
  }
223
223
  interface BigInt {
package/prototype.js CHANGED
@@ -610,7 +610,7 @@ if (!globalThis.my_prototype_defined) {
610
610
  map.set(mapper(x), x);
611
611
  return [...map.values()];
612
612
  },
613
- join_lines(append = true) {
613
+ join_lines(append = Boolean(this.length)) {
614
614
  return `${this.join('\n')}${append ? '\n' : ''}`;
615
615
  }
616
616
  })