xshell 1.0.185 → 1.0.187

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/builder.d.ts CHANGED
@@ -75,9 +75,7 @@ export interface BundlerOptions {
75
75
  assets?: Assets;
76
76
  assets_root?: string;
77
77
  template?: boolean;
78
- license?: {
79
- ignores?: string[];
80
- };
78
+ license?: boolean;
81
79
  htmls?: Record<string, HtmlOptions>;
82
80
  }
83
81
  export declare class Bundler {
@@ -96,9 +94,7 @@ export declare class Bundler {
96
94
  template: boolean;
97
95
  globals?: BundlerOptions['globals'];
98
96
  exclude_modules?: BundlerOptions['exclude_modules'];
99
- license?: {
100
- ignores?: string[];
101
- };
97
+ license?: boolean;
102
98
  lcompiler: Lock<Webpack.Compiler>;
103
99
  /** 通过 webpack 从入口文件打包所有依赖生成单个 index.{mjs,cjs} 文件
104
100
  - name: 项目名称
package/builder.js CHANGED
@@ -353,6 +353,7 @@ export class Bundler {
353
353
  },
354
354
  ignoreWarnings: [
355
355
  /Failed to parse source map/,
356
+ /could not find any license file for .*. Use the licenseTextOverrides option to add the license/,
356
357
  ...target === 'nodejs' ? [
357
358
  /Can't resolve '(bufferutil|utf-8-validate)'/
358
359
  ] : [],
@@ -414,32 +415,10 @@ export class Bundler {
414
415
  })() : [],
415
416
  ...this.license ? await (async () => {
416
417
  const { LicenseWebpackPlugin } = await import('license-webpack-plugin');
417
- const ignores = new Set([
418
- 'xshell',
419
- 'react-object-model',
420
- '@ant-design/icons-svg',
421
- '@ant-design/pro-layout',
422
- '@ant-design/pro-provider',
423
- '@ant-design/pro-table',
424
- '@ant-design/pro-utils',
425
- '@ant-design/pro-form',
426
- '@ant-design/pro-card',
427
- '@ant-design/pro-field',
428
- 'toggle-selection',
429
- 'ahooks',
430
- 'size-sensor',
431
- 'client-only',
432
- 'only',
433
- 'koa-compose',
434
- 'cache-content-type',
435
- 'isarray',
436
- ...this.license.ignores || []
437
- ]);
438
418
  return [
439
419
  new LicenseWebpackPlugin({
440
420
  perChunkOutput: false,
441
421
  outputFilename: 'ThirdPartyNotice.txt',
442
- excludedPackageTest: pkgname => ignores.has(pkgname),
443
422
  })
444
423
  ];
445
424
  })() : [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xshell",
3
- "version": "1.0.185",
3
+ "version": "1.0.187",
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.25.8",
53
- "@babel/parser": "^7.25.8",
54
- "@babel/traverse": "^7.25.7",
52
+ "@babel/core": "^7.25.9",
53
+ "@babel/parser": "^7.25.9",
54
+ "@babel/traverse": "^7.25.9",
55
55
  "@koa/cors": "^5.0.0",
56
56
  "@stylistic/eslint-plugin": "^2.9.0",
57
57
  "@svgr/webpack": "^8.1.0",
58
58
  "@types/sass-loader": "^8.0.9",
59
59
  "@types/ws": "^8.5.12",
60
- "@typescript-eslint/eslint-plugin": "^8.9.0",
61
- "@typescript-eslint/parser": "^8.9.0",
62
- "@typescript-eslint/utils": "^8.9.0",
60
+ "@typescript-eslint/eslint-plugin": "^8.11.0",
61
+ "@typescript-eslint/parser": "^8.11.0",
62
+ "@typescript-eslint/utils": "^8.11.0",
63
63
  "@xterm/addon-fit": "^0.10.0",
64
64
  "@xterm/addon-web-links": "^0.11.0",
65
65
  "@xterm/addon-webgl": "^0.18.0",
@@ -75,13 +75,13 @@
75
75
  "commander": "^12.1.0",
76
76
  "css-loader": "^7.1.2",
77
77
  "emoji-regex": "^10.4.0",
78
- "eslint": "^9.12.0",
78
+ "eslint": "^9.13.0",
79
79
  "eslint-plugin-import": "^2.31.0",
80
- "eslint-plugin-react": "^7.37.1",
80
+ "eslint-plugin-react": "^7.37.2",
81
81
  "gulp-sort": "^2.0.0",
82
82
  "hash-string": "^1.0.0",
83
83
  "https-proxy-agent": "^7.0.5",
84
- "i18next": "^23.16.0",
84
+ "i18next": "^23.16.2",
85
85
  "i18next-scanner": "^4.6.0",
86
86
  "koa": "^2.15.3",
87
87
  "koa-compress": "^5.1.1",
@@ -91,10 +91,10 @@
91
91
  "mime-types": "^2.1.35",
92
92
  "ora": "^8.1.0",
93
93
  "react": "^18.3.1",
94
- "react-i18next": "^15.0.3",
95
- "react-object-model": "^1.2.13",
94
+ "react-i18next": "^15.1.0",
95
+ "react-object-model": "^1.2.14",
96
96
  "resolve-path": "^1.4.0",
97
- "sass": "^1.80.1",
97
+ "sass": "^1.80.3",
98
98
  "sass-loader": "^16.0.2",
99
99
  "source-map-loader": "^5.0.0",
100
100
  "strip-ansi": "^7.1.0",
@@ -113,7 +113,7 @@
113
113
  "ws": "^8.18.0"
114
114
  },
115
115
  "devDependencies": {
116
- "@babel/types": "^7.25.8",
116
+ "@babel/types": "^7.25.9",
117
117
  "@types/ali-oss": "^6.16.11",
118
118
  "@types/archiver": "^6.0.2",
119
119
  "@types/babel__traverse": "^7.20.6",
@@ -124,9 +124,9 @@
124
124
  "@types/gulp-sort": "^2.0.4",
125
125
  "@types/koa": "^2.15.0",
126
126
  "@types/koa-compress": "^4.0.6",
127
- "@types/lodash": "^4.17.10",
127
+ "@types/lodash": "^4.17.12",
128
128
  "@types/mime-types": "^2.1.4",
129
- "@types/node": "^22.7.6",
129
+ "@types/node": "^22.7.8",
130
130
  "@types/react": "^18.3.11",
131
131
  "@types/through2": "^2.0.41",
132
132
  "@types/tough-cookie": "^4.0.5",
@@ -75,7 +75,7 @@ export declare function encode(str: string): Uint8Array;
75
75
  在流式处理 (buffer 可能不完整) 时,应使用独立的 TextDecoder 实例调用 decode(buffer, { stream: true }) */
76
76
  export declare function decode(buffer: Uint8Array): string;
77
77
  /** 字符串字典序比较 */
78
- export declare function strcmp(l: string, r: string): 1 | 0 | -1;
78
+ export declare function strcmp(l: string, r: string): 0 | 1 | -1;
79
79
  /** 比较 1.10.02 这种版本号
80
80
  - l, r: 两个版本号字符串
81
81
  - loose?: 宽松模式,允许两个版本号格式(位数)不一致 */
package/utils.d.ts CHANGED
@@ -42,7 +42,7 @@ export declare function filter_values<TObj extends Record<string, any>>(obj: TOb
42
42
  /** 忽略对象中的 keys, 返回新对象 */
43
43
  export declare function omit<TObj>(obj: TObj, omit_keys: string[]): TObj;
44
44
  /** 字符串字典序比较 */
45
- export declare function strcmp(l: string, r: string): 1 | 0 | -1;
45
+ export declare function strcmp(l: string, r: string): 0 | 1 | -1;
46
46
  /** 比较 1.10.02 这种版本号
47
47
  - l, r: 两个版本号字符串
48
48
  - loose?: 宽松模式,允许两个版本号格式(位数)不一致 */