xjs-node 3.0.0-alpha.2 → 3.0.0-alpha.3

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,13 +1,5 @@
1
+ import * as fs from "fs";
1
2
  import { MaybeArray } from "xjs-common";
2
- interface FileStatus {
3
- isFile(): boolean;
4
- isDirectory(): boolean;
5
- isBlockDevice(): boolean;
6
- isCharacterDevice(): boolean;
7
- isSymbolicLink(): boolean;
8
- isFIFO(): boolean;
9
- isSocket(): boolean;
10
- }
11
3
  export declare namespace UFile {
12
4
  function mkdir(p: MaybeArray<string>): boolean;
13
5
  function write(p: MaybeArray<string>, c: string): Promise<void>;
@@ -21,7 +13,7 @@ export declare namespace UFile {
21
13
  /**
22
14
  * return a file status. if the file of the status doesn't exist, this returns `null`.
23
15
  */
24
- function status(p: MaybeArray<string>): FileStatus;
16
+ function status(p: MaybeArray<string>): fs.Stats;
25
17
  function read(p: MaybeArray<string>): Promise<Buffer>;
26
18
  function read(p: MaybeArray<string>, encoding: BufferEncoding): Promise<string>;
27
19
  /**
@@ -49,4 +41,3 @@ export declare namespace UFile {
49
41
  */
50
42
  function unzip(zipPath: MaybeArray<string>, destDir?: MaybeArray<string>): void;
51
43
  }
52
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xjs-node",
3
- "version": "3.0.0-alpha.2",
3
+ "version": "3.0.0-alpha.3",
4
4
  "description": "library modules for nodejs + typescript that bundled general-purpose implementations.",
5
5
  "repository": {
6
6
  "type": "git",