@micl/constant 0.0.2 → 0.0.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.
- package/dist/index.cjs.js +1 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.esm.js +1 -0
- package/package.json +20 -29
- package/index.js +0 -1
- package/types/core.d.ts +0 -17
- package/types/index.d.ts +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=1048576,t=1024*e,o={TB:1024*t,GB:t,MB:e,KB:1024,B:1};exports.DISK_UNIT_SIZE_ENUM=o,exports.TASK_STATUS_ENUM={NotFound:0,Created:1,Pending:2,Stopping:3,Completed:4,Failed:5,Pause:12,Abort:13,Delete:99};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const TASK_STATUS_ENUM: {
|
|
2
|
+
NotFound: number;
|
|
3
|
+
Created: number;
|
|
4
|
+
Pending: number;
|
|
5
|
+
Stopping: number;
|
|
6
|
+
Completed: number;
|
|
7
|
+
Failed: number;
|
|
8
|
+
Pause: number;
|
|
9
|
+
Abort: number;
|
|
10
|
+
Delete: number;
|
|
11
|
+
};
|
|
12
|
+
declare const DISK_UNIT_SIZE_ENUM: {
|
|
13
|
+
TB: number;
|
|
14
|
+
GB: number;
|
|
15
|
+
MB: number;
|
|
16
|
+
KB: number;
|
|
17
|
+
B: number;
|
|
18
|
+
};
|
|
19
|
+
export { TASK_STATUS_ENUM, DISK_UNIT_SIZE_ENUM };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={NotFound:0,Created:1,Pending:2,Stopping:3,Completed:4,Failed:5,Pause:12,Abort:13,Delete:99},t=1048576,o=1024*t,d={TB:1024*o,GB:o,MB:t,KB:1024,B:1};export{d as DISK_UNIT_SIZE_ENUM,e as TASK_STATUS_ENUM};
|
package/package.json
CHANGED
|
@@ -1,36 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micl/constant",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "micl constant",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"types": "
|
|
8
|
-
"engines": {
|
|
9
|
-
"node": ">=18.0.0"
|
|
10
|
-
},
|
|
11
|
-
"scripts": {
|
|
12
|
-
"build": "rollup -c",
|
|
13
|
-
"lint": "eslint --ext .js,.ts src",
|
|
14
|
-
"format": "eslint --ext .js,.ts src --fix"
|
|
15
|
-
},
|
|
5
|
+
"main": "dist/index.cjs.js",
|
|
6
|
+
"module": "dist/index.esm.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
16
8
|
"author": "alexgogoing",
|
|
9
|
+
"email": "alexgogoing@sina.com",
|
|
17
10
|
"license": "ISC",
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"rollup": "^4.18.1",
|
|
34
|
-
"typescript": "^5.5.3"
|
|
11
|
+
"files": [
|
|
12
|
+
"dist/**/*",
|
|
13
|
+
"README.md"
|
|
14
|
+
],
|
|
15
|
+
"scripts": {
|
|
16
|
+
"prepublishOnly": "npm run build",
|
|
17
|
+
"test": "npx jest --testPathPattern=\"$(basename $(pwd))/__tests__\" --config ../jest.config.js",
|
|
18
|
+
"build": "rollup -c",
|
|
19
|
+
"lint": "eslint src",
|
|
20
|
+
"lint:fix": "eslint src --fix",
|
|
21
|
+
"format": "prettier --write src",
|
|
22
|
+
"_publish": "npm publish --registry=https://registry.npmjs.org/ --access=public",
|
|
23
|
+
"publish:patch": "npm version patch && npm run _publish",
|
|
24
|
+
"publish:minor": "npm version minor && npm run _publish",
|
|
25
|
+
"publish:major": "npm version major && npm run _publish"
|
|
35
26
|
}
|
|
36
27
|
}
|
package/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
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/types/core.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare enum TASK_STATUS_ENUM {
|
|
2
|
-
NotFound = 0,
|
|
3
|
-
Created = 1,
|
|
4
|
-
Pending = 2,
|
|
5
|
-
Stopping = 3,
|
|
6
|
-
Completed = 4,
|
|
7
|
-
Failed = 5,
|
|
8
|
-
Pause = 12,// user action
|
|
9
|
-
Abort = 13,// user action
|
|
10
|
-
Delete = 99
|
|
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
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { TASK_STATUS_ENUM, DISK_UNIT_SIZE_ENUM } from './core';
|