@micl/constant 0.0.1 → 0.0.2

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/index.js CHANGED
@@ -1 +1 @@
1
- var e;!function(e){e[e.NotFound=0]="NotFound",e[e.Created=1]="Created",e[e.Pending=2]="Pending",e[e.Stopping=3]="Stopping",e[e.Completed=4]="Completed",e[e.Failed=5]="Failed",e[e.Pause=12]="Pause",e[e.Abort=13]="Abort",e[e.Delete=99]="Delete"}(e||(e={}));export{e as TASK_STATUS_ENUM};
1
+ var e,t;!function(e){e[e.NotFound=0]="NotFound",e[e.Created=1]="Created",e[e.Pending=2]="Pending",e[e.Stopping=3]="Stopping",e[e.Completed=4]="Completed",e[e.Failed=5]="Failed",e[e.Pause=12]="Pause",e[e.Abort=13]="Abort",e[e.Delete=99]="Delete"}(e||(e={})),function(e){e[e.GB=1073741824]="GB",e[e.MB=1048576]="MB",e[e.KB=1024]="KB",e[e.B=1]="B"}(t||(t={}));export{t as DISK_UNIT_SIZE_ENUM,e as TASK_STATUS_ENUM};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micl/constant",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "micl constant",
5
5
  "type": "module",
6
6
  "main": "index.js",
package/types/core.d.ts CHANGED
@@ -9,3 +9,9 @@ export declare enum TASK_STATUS_ENUM {
9
9
  Abort = 13,// user action
10
10
  Delete = 99
11
11
  }
12
+ export declare enum DISK_UNIT_SIZE_ENUM {
13
+ GB = 1073741824,
14
+ MB = 1048576,
15
+ KB = 1024,
16
+ B = 1
17
+ }
package/types/index.d.ts CHANGED
@@ -1 +1 @@
1
- export { TASK_STATUS_ENUM } from './core';
1
+ export { TASK_STATUS_ENUM, DISK_UNIT_SIZE_ENUM } from './core';