@e-mc/types 0.5.20 → 0.5.21
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/constant.d.ts +2 -1
- package/lib/task.d.ts +9 -9
- package/package.json +1 -1
package/constant.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export const enum INTERNAL {
|
|
2
|
-
VERSION = '0.5.
|
|
2
|
+
VERSION = '0.5.21',
|
|
3
3
|
TEMP_DIR = 'tmp',
|
|
4
4
|
CJS = '__cjs__'
|
|
5
5
|
}
|
|
@@ -51,6 +51,7 @@ export const enum ERR_MESSAGE {
|
|
|
51
51
|
UNSUPPORTED_ACCESS = 'Unsupported access',
|
|
52
52
|
UNSUPPORTED_READ = 'Not permitted to read file',
|
|
53
53
|
UNSUPPORTED_WRITE = 'Not permitted to write file',
|
|
54
|
+
UNSUPPORTED_PATH = 'Not permitted to set absolute path',
|
|
54
55
|
NOTFOUND_FILE = 'File not found',
|
|
55
56
|
NOTFOUND_BINARY = 'Binary not found',
|
|
56
57
|
NOTFOUND_PACKAGE = 'Package not found',
|
package/lib/task.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export interface Command<T = unknown> extends PlainObject {
|
|
2
|
-
task: string;
|
|
3
|
-
origDir: string;
|
|
4
|
-
data: T;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export interface SpawnResult {
|
|
8
|
-
added?: string[];
|
|
9
|
-
deleted?: string[];
|
|
1
|
+
export interface Command<T = unknown> extends PlainObject {
|
|
2
|
+
task: string;
|
|
3
|
+
origDir: string;
|
|
4
|
+
data: T;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export interface SpawnResult {
|
|
8
|
+
added?: string[];
|
|
9
|
+
deleted?: string[];
|
|
10
10
|
}
|