xshell 1.2.24 → 1.2.26

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.
@@ -1,2 +1,7 @@
1
1
  export declare function isSea(): boolean;
2
2
  export declare function getRawAsset(fp: string): void;
3
+ declare const _default: {
4
+ isSea: typeof isSea;
5
+ getRawAsset: typeof getRawAsset;
6
+ };
7
+ export default _default;
@@ -4,4 +4,8 @@ export function isSea() {
4
4
  export function getRawAsset(fp) {
5
5
  throw new Error('node:sea getRawAsset 未实现');
6
6
  }
7
+ export default {
8
+ isSea,
9
+ getRawAsset
10
+ };
7
11
  //# sourceMappingURL=node-sea.polyfill.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xshell",
3
- "version": "1.2.24",
3
+ "version": "1.2.26",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "bin": {
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
  // ------------ 文件路径操作