xshell 1.3.63 → 1.3.65

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/apps.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { type CallOptions } from './process.ts';
2
2
  export declare let npm: {
3
3
  bin: string;
4
- call(cwd: string, bin: string, args: string[], options?: CallOptions): Promise<import("./process.ts").CallResult<string>>;
4
+ call(cwd: string | undefined, bin: string, args: string[], options?: CallOptions): Promise<import("./process.ts").CallResult<string>>;
5
5
  /** node.exe E:/sdk/nodejs/node_modules/corepack/dist/pnpm.js install
6
6
  - cwd
7
7
  - pkgs?: `[ ]` */
package/file.d.ts CHANGED
@@ -174,7 +174,7 @@ export interface FCopyOptions {
174
174
 
175
175
  @example
176
176
  fcopy('D:/temp/camera/', 'D:/camera/') */
177
- export declare function fcopy(fp_src: string, fp_dst: string, { print, overwrite, filter }?: FCopyOptions): Promise<string>;
177
+ export declare function fcopy(fp_src: string, fp_dst: string, { print, overwrite, filter, }?: FCopyOptions): Promise<string>;
178
178
  export interface FMoveOptions {
179
179
  overwrite?: boolean;
180
180
  print?: boolean;
package/file.js CHANGED
@@ -482,10 +482,21 @@ export async function flink(fp_link, fp_real, { skip_existing = false, print = t
482
482
  }
483
483
  if (print)
484
484
  log_action('创建链接', fp_link, fp_real);
485
- if (junction)
486
- await fsp.symlink(fp_real, fp_link, 'junction');
487
- else
488
- await fsp.symlink(fp_real, fp_link, is_fpd_real ? 'dir' : 'file');
485
+ async function symlink() {
486
+ if (junction)
487
+ await fsp.symlink(fp_real, fp_link, 'junction');
488
+ else
489
+ await fsp.symlink(fp_real, fp_link, is_fpd_real ? 'dir' : 'file');
490
+ }
491
+ try {
492
+ await symlink();
493
+ }
494
+ catch (error) {
495
+ if (error.code !== 'ENOENT')
496
+ throw error;
497
+ await fmkdir(fp_link.fdir);
498
+ await symlink();
499
+ }
489
500
  }
490
501
  /** 解压 zip 包至文件夹,返回 fpd_out
491
502
  - zip:
package/git.d.ts CHANGED
@@ -5,7 +5,7 @@ export declare class Git {
5
5
  constructor(cwd: string);
6
6
  static init(cwd: string, print?: boolean): Promise<Git>;
7
7
  static clone(repo: string, fpd: string, shallow?: boolean | string): Promise<Git>;
8
- call(args?: any[], { color, print, on_stderr, throw_code }?: {
8
+ call(args?: any[], { color, print, on_stderr, throw_code, }?: {
9
9
  color?: boolean;
10
10
  print?: CallOptions['print'];
11
11
  on_stderr?: CallOptions['on_stderr'];
@@ -16,7 +16,7 @@ export declare class Git {
16
16
  get_branches(print?: boolean): Promise<string[]>;
17
17
  has_branch(branch: string): Promise<boolean>;
18
18
  /** - last?: `4` */
19
- log({ n, graph, format }?: {
19
+ log({ n, graph, format, }?: {
20
20
  n?: number;
21
21
  graph?: boolean;
22
22
  format?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xshell",
3
- "version": "1.3.63",
3
+ "version": "1.3.65",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "bin": {
@@ -58,7 +58,7 @@
58
58
  "@typescript-eslint/eslint-plugin": "^8.59.2",
59
59
  "@typescript-eslint/parser": "^8.59.2",
60
60
  "@typescript-eslint/utils": "^8.59.2",
61
- "archiver": "^7.0.1",
61
+ "archiver": "^8.0.0",
62
62
  "chalk": "^5.6.2",
63
63
  "commander": "^14.0.3",
64
64
  "css-loader": "^7.1.4",
@@ -74,10 +74,10 @@
74
74
  "mime-types": "^3.0.2",
75
75
  "p-map": "^7.0.4",
76
76
  "react": "^19.2.6",
77
- "react-i18next": "^17.0.6",
77
+ "react-i18next": "^17.0.7",
78
78
  "resolve-path": "^1.4.0",
79
79
  "sass": "^1.99.0",
80
- "sass-loader": "^16.0.7",
80
+ "sass-loader": "^16.0.8",
81
81
  "source-map-loader": "^5.0.0",
82
82
  "strip-ansi": "^7.2.0",
83
83
  "style-loader": "^4.0.0",
@@ -99,7 +99,7 @@
99
99
  "@types/koa": "^3.0.2",
100
100
  "@types/koa-compress": "^4.0.7",
101
101
  "@types/mime-types": "^3.0.1",
102
- "@types/node": "^25.6.0",
102
+ "@types/node": "^25.6.2",
103
103
  "@types/react": "^19.2.14",
104
104
  "@types/tough-cookie": "^4.0.5",
105
105
  "@types/vscode": "^1.118.0",
@@ -39,4 +39,27 @@ if (!Object.groupBy)
39
39
  return result;
40
40
  }, {});
41
41
  });
42
+ if (!Uint8Array.prototype.toBase64)
43
+ define(Uint8Array.prototype, 'toBase64', function toBase64(options) {
44
+ let binary = '';
45
+ for (let i = 0; i < this.length; i++)
46
+ Array.from(this)
47
+ .map(c => String.fromCharCode(c))
48
+ .join('');
49
+ let base64 = btoa(binary);
50
+ if (options?.alphabet === 'base64url')
51
+ base64 = base64.replaceAll('+', '-').replaceAll('/', '_').replace(/=+$/, '');
52
+ return base64;
53
+ });
54
+ if (!Uint8Array.fromBase64)
55
+ define(Uint8Array, 'fromBase64', function fromBase64(base64, options) {
56
+ let str = base64;
57
+ if (options?.alphabet === 'base64url')
58
+ str = str.replaceAll('-', '+').replaceAll('_', '/');
59
+ const binary = atob(str); // 如果非法输入,让 DOMException 直接抛出(可用于 "strict" 模式)
60
+ const bytes = new Uint8Array(binary.length);
61
+ for (let i = 0; i < binary.length; i++)
62
+ bytes[i] = binary.charCodeAt(i);
63
+ return bytes;
64
+ });
42
65
  //# sourceMappingURL=polyfill.browser.js.map
@@ -2,7 +2,7 @@
2
2
  /******/ "use strict";
3
3
  /******/ var __webpack_modules__ = ({
4
4
 
5
- /***/ 940
5
+ /***/ 793
6
6
  /*!********************************************************************************************************************!*\
7
7
  !*** ./node_modules/.pnpm/react-dom@19.2.6_react@19.2.6/node_modules/react-dom/cjs/react-dom-client.production.js ***!
8
8
  \********************************************************************************************************************/
@@ -22,9 +22,9 @@
22
22
  Modernizr 3.0.0pre (Custom Build) | MIT
23
23
  */
24
24
 
25
- var Scheduler = __webpack_require__(/*! scheduler */ 163),
26
- React = __webpack_require__(/*! react */ 220),
27
- ReactDOM = __webpack_require__(/*! react-dom */ 566);
25
+ var Scheduler = __webpack_require__(/*! scheduler */ 388),
26
+ React = __webpack_require__(/*! react */ 395),
27
+ ReactDOM = __webpack_require__(/*! react-dom */ 523);
28
28
  function formatProdErrorMessage(code) {
29
29
  var url = "https://react.dev/errors/" + code;
30
30
  if (1 < arguments.length) {
@@ -16061,7 +16061,7 @@ exports.version = "19.2.6";
16061
16061
 
16062
16062
  /***/ },
16063
16063
 
16064
- /***/ 160
16064
+ /***/ 579
16065
16065
  /*!*************************************************************************************************************!*\
16066
16066
  !*** ./node_modules/.pnpm/react-dom@19.2.6_react@19.2.6/node_modules/react-dom/cjs/react-dom.production.js ***!
16067
16067
  \*************************************************************************************************************/
@@ -16078,7 +16078,7 @@ exports.version = "19.2.6";
16078
16078
  */
16079
16079
 
16080
16080
 
16081
- var React = __webpack_require__(/*! react */ 220);
16081
+ var React = __webpack_require__(/*! react */ 395);
16082
16082
  function formatProdErrorMessage(code) {
16083
16083
  var url = "https://react.dev/errors/" + code;
16084
16084
  if (1 < arguments.length) {
@@ -16281,7 +16281,7 @@ exports.version = "19.2.6";
16281
16281
 
16282
16282
  /***/ },
16283
16283
 
16284
- /***/ 319
16284
+ /***/ 212
16285
16285
  /*!*******************************************************************************************!*\
16286
16286
  !*** ./node_modules/.pnpm/react-dom@19.2.6_react@19.2.6/node_modules/react-dom/client.js ***!
16287
16287
  \*******************************************************************************************/
@@ -16313,14 +16313,14 @@ if (true) {
16313
16313
  // DCE check should happen before ReactDOM bundle executes so that
16314
16314
  // DevTools can report bad minification during injection.
16315
16315
  checkDCE();
16316
- module.exports = __webpack_require__(/*! ./cjs/react-dom-client.production.js */ 940);
16316
+ module.exports = __webpack_require__(/*! ./cjs/react-dom-client.production.js */ 793);
16317
16317
  } else // removed by dead control flow
16318
16318
  {}
16319
16319
 
16320
16320
 
16321
16321
  /***/ },
16322
16322
 
16323
- /***/ 566
16323
+ /***/ 523
16324
16324
  /*!******************************************************************************************!*\
16325
16325
  !*** ./node_modules/.pnpm/react-dom@19.2.6_react@19.2.6/node_modules/react-dom/index.js ***!
16326
16326
  \******************************************************************************************/
@@ -16352,14 +16352,14 @@ if (true) {
16352
16352
  // DCE check should happen before ReactDOM bundle executes so that
16353
16353
  // DevTools can report bad minification during injection.
16354
16354
  checkDCE();
16355
- module.exports = __webpack_require__(/*! ./cjs/react-dom.production.js */ 160);
16355
+ module.exports = __webpack_require__(/*! ./cjs/react-dom.production.js */ 579);
16356
16356
  } else // removed by dead control flow
16357
16357
  {}
16358
16358
 
16359
16359
 
16360
16360
  /***/ },
16361
16361
 
16362
- /***/ 74
16362
+ /***/ 943
16363
16363
  /*!************************************************************************************************!*\
16364
16364
  !*** ./node_modules/.pnpm/react@19.2.6/node_modules/react/cjs/react-jsx-runtime.production.js ***!
16365
16365
  \************************************************************************************************/
@@ -16403,7 +16403,7 @@ exports.jsxs = jsxProd;
16403
16403
 
16404
16404
  /***/ },
16405
16405
 
16406
- /***/ 21
16406
+ /***/ 192
16407
16407
  /*!************************************************************************************!*\
16408
16408
  !*** ./node_modules/.pnpm/react@19.2.6/node_modules/react/cjs/react.production.js ***!
16409
16409
  \************************************************************************************/
@@ -16955,7 +16955,7 @@ exports.version = "19.2.6";
16955
16955
 
16956
16956
  /***/ },
16957
16957
 
16958
- /***/ 220
16958
+ /***/ 395
16959
16959
  /*!*********************************************************************!*\
16960
16960
  !*** ./node_modules/.pnpm/react@19.2.6/node_modules/react/index.js ***!
16961
16961
  \*********************************************************************/
@@ -16964,14 +16964,14 @@ exports.version = "19.2.6";
16964
16964
 
16965
16965
 
16966
16966
  if (true) {
16967
- module.exports = __webpack_require__(/*! ./cjs/react.production.js */ 21);
16967
+ module.exports = __webpack_require__(/*! ./cjs/react.production.js */ 192);
16968
16968
  } else // removed by dead control flow
16969
16969
  {}
16970
16970
 
16971
16971
 
16972
16972
  /***/ },
16973
16973
 
16974
- /***/ 944
16974
+ /***/ 203
16975
16975
  /*!***************************************************************************!*\
16976
16976
  !*** ./node_modules/.pnpm/react@19.2.6/node_modules/react/jsx-runtime.js ***!
16977
16977
  \***************************************************************************/
@@ -16980,14 +16980,14 @@ if (true) {
16980
16980
 
16981
16981
 
16982
16982
  if (true) {
16983
- module.exports = __webpack_require__(/*! ./cjs/react-jsx-runtime.production.js */ 74);
16983
+ module.exports = __webpack_require__(/*! ./cjs/react-jsx-runtime.production.js */ 943);
16984
16984
  } else // removed by dead control flow
16985
16985
  {}
16986
16986
 
16987
16987
 
16988
16988
  /***/ },
16989
16989
 
16990
- /***/ 762
16990
+ /***/ 727
16991
16991
  /*!************************************************************************************************!*\
16992
16992
  !*** ./node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.production.js ***!
16993
16993
  \************************************************************************************************/
@@ -17337,7 +17337,7 @@ exports.unstable_wrapCallback = function (callback) {
17337
17337
 
17338
17338
  /***/ },
17339
17339
 
17340
- /***/ 163
17340
+ /***/ 388
17341
17341
  /*!*****************************************************************************!*\
17342
17342
  !*** ./node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/index.js ***!
17343
17343
  \*****************************************************************************/
@@ -17346,7 +17346,7 @@ exports.unstable_wrapCallback = function (callback) {
17346
17346
 
17347
17347
 
17348
17348
  if (true) {
17349
- module.exports = __webpack_require__(/*! ./cjs/scheduler.production.js */ 762);
17349
+ module.exports = __webpack_require__(/*! ./cjs/scheduler.production.js */ 727);
17350
17350
  } else // removed by dead control flow
17351
17351
  {}
17352
17352
 
@@ -17459,10 +17459,10 @@ __webpack_require__.r(__webpack_exports__);
17459
17459
  /* harmony export */ ReactDOMClient: () => (/* reexport fake namespace object from non-harmony */ react_dom_client__WEBPACK_IMPORTED_MODULE_3___namespace_cache || (react_dom_client__WEBPACK_IMPORTED_MODULE_3___namespace_cache = __webpack_require__.t(react_dom_client__WEBPACK_IMPORTED_MODULE_3__, 2))),
17460
17460
  /* harmony export */ ReactJSX: () => (/* reexport fake namespace object from non-harmony */ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___namespace_cache || (react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___namespace_cache = __webpack_require__.t(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__, 2)))
17461
17461
  /* harmony export */ });
17462
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 220);
17463
- /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ 944);
17464
- /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom */ 566);
17465
- /* harmony import */ var react_dom_client__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-dom/client */ 319);
17462
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 395);
17463
+ /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ 203);
17464
+ /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom */ 523);
17465
+ /* harmony import */ var react_dom_client__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-dom/client */ 212);
17466
17466
 
17467
17467
 
17468
17468