@e-mc/types 0.10.1 → 0.10.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/LICENSE +10 -10
- package/README.md +208 -208
- package/constant.d.ts +338 -338
- package/index.d.ts +336 -336
- package/index.js +4 -4
- package/lib/asset.d.ts +76 -76
- package/lib/cloud.d.ts +106 -106
- package/lib/compat-v4.d.ts +120 -120
- package/lib/compress.d.ts +25 -25
- package/lib/core.d.ts +195 -195
- package/lib/db.d.ts +107 -109
- package/lib/document.d.ts +199 -199
- package/lib/filemanager.d.ts +122 -122
- package/lib/http.d.ts +115 -115
- package/lib/index.d.ts +796 -790
- package/lib/logger.d.ts +113 -113
- package/lib/module.d.ts +137 -127
- package/lib/node.d.ts +21 -21
- package/lib/object.d.ts +29 -29
- package/lib/request.d.ts +146 -138
- package/lib/settings.d.ts +490 -490
- package/lib/squared.d.ts +339 -339
- package/lib/type.d.ts +34 -33
- package/lib/watch.d.ts +77 -77
- package/package.json +28 -28
- package/lib/dom.d.ts +0 -9
package/LICENSE
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
Copyright 2024 An Pham
|
|
2
|
-
|
|
3
|
-
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
4
|
-
|
|
5
|
-
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
6
|
-
|
|
7
|
-
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
8
|
-
|
|
9
|
-
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
10
|
-
|
|
1
|
+
Copyright 2024 An Pham
|
|
2
|
+
|
|
3
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
4
|
+
|
|
5
|
+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
6
|
+
|
|
7
|
+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
8
|
+
|
|
9
|
+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
10
|
+
|
|
11
11
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
package/README.md
CHANGED
|
@@ -1,209 +1,209 @@
|
|
|
1
|
-
# @e-mc/types
|
|
2
|
-
|
|
3
|
-
* NodeJS 16
|
|
4
|
-
* ES2020
|
|
5
|
-
|
|
6
|
-
## General Usage
|
|
7
|
-
|
|
8
|
-
* [Read the Docs](https://e-mc.readthedocs.io)
|
|
9
|
-
|
|
10
|
-
## Interface
|
|
11
|
-
|
|
12
|
-
* [View Source](https://www.unpkg.com/@e-mc/types@0.10.
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import type { LogArguments } from "./lib/logger";
|
|
16
|
-
|
|
17
|
-
import type { BytesOptions } from "bytes";
|
|
18
|
-
import type { BinaryLike, CipherGCMTypes, Encoding, RandomUUIDOptions } from "crypto";
|
|
19
|
-
|
|
20
|
-
function createAbortError(reject: true): Promise<never>;
|
|
21
|
-
function createAbortError(): DOMException;
|
|
22
|
-
function hasBit(value: unknown, flags: number): boolean;
|
|
23
|
-
function ignoreFlag(value: unknown): boolean;
|
|
24
|
-
function cloneFlag(value: unknown): boolean;
|
|
25
|
-
function usingFlag(value: unknown): boolean;
|
|
26
|
-
function watchFlag(value: unknown): boolean;
|
|
27
|
-
function modifiedFlag(value: unknown): boolean;
|
|
28
|
-
function processFlag(value: unknown): boolean;
|
|
29
|
-
function mainFlag(value: unknown): boolean;
|
|
30
|
-
function existsFlag(value: unknown): boolean;
|
|
31
|
-
function getLogCurrent(): LogArguments | null;
|
|
32
|
-
function setLogCurrent(value: LogArguments): void;
|
|
33
|
-
function setTempDir(value: string): boolean;
|
|
34
|
-
function getTempDir(): string;
|
|
35
|
-
function isArray(value: unknown): value is unknown[];
|
|
36
|
-
function isObject(value: unknown): value is object;
|
|
37
|
-
function isPlainObject(value: unknown): value is Record<string | number | symbol, unknown>;
|
|
38
|
-
function isString(value: unknown): value is string;
|
|
39
|
-
function isEmpty(value: unknown): boolean;
|
|
40
|
-
function asFunction(value: unknown, sync?: boolean): ((...args: unknown[]) =>
|
|
41
|
-
function parseTime(value: number | string, start?: number): number;
|
|
42
|
-
function parseExpires(value: number | string, start?: number): number;
|
|
43
|
-
function formatTime(value: number, char: string): string;
|
|
44
|
-
function formatTime(value: number, elapsed?: boolean, char?: string): string;
|
|
45
|
-
function convertTime(value: number | string): number;
|
|
46
|
-
function convertTime(value: HighResolutionTime, format: true): string;
|
|
47
|
-
function convertTime(value: HighResolutionTime, format?: boolean): number;
|
|
48
|
-
function hasGlob(value: string): boolean;
|
|
49
|
-
function escapePattern(value: unknown, lookBehind?: boolean): string;
|
|
50
|
-
function renameExt(value: string, ext: string, when?: string): string;
|
|
51
|
-
function formatSize(value: string): number;
|
|
52
|
-
function formatSize(value: number, options?: BytesOptions): string;
|
|
53
|
-
function alignSize(value: unknown, kb?: number, factor?: number): number;
|
|
54
|
-
function cascadeObject(data: object, query: string, fallback?: unknown): unknown;
|
|
55
|
-
function cloneObject(data: unknown, deep: boolean): unknown;
|
|
56
|
-
function cloneObject(data: unknown, deepIgnore: WeakSet<object>): unknown;
|
|
57
|
-
function cloneObject(data: unknown, options?: CloneObjectOptions<unknown>): unknown;
|
|
58
|
-
function coerceObject(data: unknown, cache: boolean): unknown;
|
|
59
|
-
function coerceObject(data: unknown, parseString?: (...args: [string]) => unknown, cache?: boolean): unknown;
|
|
60
|
-
function getEncoding(value: unknown, fallback?: BufferEncoding): BufferEncoding;
|
|
61
|
-
function encryptUTF8(algorithm: CipherGCMTypes, key: BinaryLike, iv: BinaryLike, data: string, encoding?: Encoding): string | undefined;
|
|
62
|
-
function decryptUTF8(algorithm: CipherGCMTypes, key: BinaryLike, iv: BinaryLike, data: string, encoding?: Encoding): string | undefined;
|
|
63
|
-
function hashKey(data: BinaryLike, algorithm?: string, encoding?: BinaryToTextEncoding): string;
|
|
64
|
-
/** @deprecated - crypto.randomUUID */
|
|
65
|
-
function generateUUID(options?: RandomUUIDOptions): string;
|
|
66
|
-
function incrementUUID(restart?: boolean): string;
|
|
67
|
-
function validateUUID(value: unknown): boolean;
|
|
68
|
-
function randomString(format: string, dictionary?: string): string;
|
|
69
|
-
function errorValue(value: string, hint?: string): Error;
|
|
70
|
-
function errorMessage(title: number | string, value: string, hint?: string): Error;
|
|
71
|
-
function supported(major: number, minor?: number, patch?: number, lts?: boolean): boolean;
|
|
72
|
-
function importESM<T = unknown>(name: string, isDefault?: boolean, fromPath?: boolean): Promise<T>;
|
|
73
|
-
function purgeMemory(percent?: number): number;
|
|
74
|
-
|
|
75
|
-
interface LOG_TYPE {
|
|
76
|
-
UNKNOWN: 0;
|
|
77
|
-
SYSTEM: 1;
|
|
78
|
-
NODE: 2;
|
|
79
|
-
PROCESS: 4;
|
|
80
|
-
COMPRESS: 8;
|
|
81
|
-
WATCH: 16;
|
|
82
|
-
FILE: 32;
|
|
83
|
-
CLOUD: 64;
|
|
84
|
-
TIME_ELAPSED: 128;
|
|
85
|
-
TIME_PROCESS: 256;
|
|
86
|
-
FAIL: 512;
|
|
87
|
-
HTTP: 1024;
|
|
88
|
-
IMAGE: 2048;
|
|
89
|
-
EXEC: 4096;
|
|
90
|
-
PERMISSION: 8192;
|
|
91
|
-
TIMEOUT: 16384;
|
|
92
|
-
STDOUT: 32768;
|
|
93
|
-
DB: 65536;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
interface STATUS_TYPE {
|
|
97
|
-
UNKNOWN: 0;
|
|
98
|
-
FATAL: 1;
|
|
99
|
-
ERROR: 2;
|
|
100
|
-
WARN: 3;
|
|
101
|
-
INFO: 4;
|
|
102
|
-
DEBUG: 5;
|
|
103
|
-
ASSERT: 6;
|
|
104
|
-
TRACE: 7;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
interface ASSET_FLAG {
|
|
108
|
-
NONE: 0;
|
|
109
|
-
IGNORE: 1;
|
|
110
|
-
CLONE: 2;
|
|
111
|
-
USING: 4;
|
|
112
|
-
WATCH: 8;
|
|
113
|
-
MODIFIED: 16;
|
|
114
|
-
PROCESS: 32;
|
|
115
|
-
MAIN: 64;
|
|
116
|
-
EXISTS: 128;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
interface FILE_TYPE {
|
|
120
|
-
UNKNOWN: 0;
|
|
121
|
-
ASSET: 1;
|
|
122
|
-
TRANSFORM: 2;
|
|
123
|
-
COMPRESSED: 4;
|
|
124
|
-
SOURCEMAP: 8;
|
|
125
|
-
TORRENT: 16;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
interface ACTION_FLAG {
|
|
129
|
-
NONE: 0;
|
|
130
|
-
IGNORE: 1;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
interface ERR_CODE {
|
|
134
|
-
MODULE_NOT_FOUND: "MODULE_NOT_FOUND";
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
interface DOWNLOAD_TYPE {
|
|
138
|
-
HTTP: 0;
|
|
139
|
-
DISK: 1;
|
|
140
|
-
CACHE: 2;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
interface FETCH_TYPE {
|
|
144
|
-
UNKNOWN: 0;
|
|
145
|
-
HTTP: 1;
|
|
146
|
-
TORRENT: 2;
|
|
147
|
-
FTP: 3;
|
|
148
|
-
UNIX_SOCKET: 4;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
interface DB_TYPE {
|
|
152
|
-
SQL: 1;
|
|
153
|
-
NOSQL: 2;
|
|
154
|
-
DOCUMENT: 4;
|
|
155
|
-
KEYVALUE: 8;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
interface DB_TRANSACTION {
|
|
159
|
-
ACTIVE: 1;
|
|
160
|
-
PARTIAL: 2;
|
|
161
|
-
COMMIT: 4;
|
|
162
|
-
TERMINATE: 8;
|
|
163
|
-
ABORT: 16;
|
|
164
|
-
FAIL: 32;
|
|
165
|
-
AUTH: 64;
|
|
166
|
-
CACHE: 128;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
interface TRANSFER_TYPE {
|
|
170
|
-
DISK: 1;
|
|
171
|
-
STREAM: 2;
|
|
172
|
-
CHUNK: 4;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
interface WATCH_EVENT {
|
|
176
|
-
MODIFIED: "modified";
|
|
177
|
-
BROADCAST: "broadcast";
|
|
178
|
-
CLOSE: "close";
|
|
179
|
-
ERROR: "error";
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
interface READDIR_SORT {
|
|
183
|
-
FILE: number;
|
|
184
|
-
DIRECTORY: number;
|
|
185
|
-
DESCENDING: number;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
interface THRESHOLD {
|
|
189
|
-
FILEMANAGER_INTERVAL: number;
|
|
190
|
-
WATCH_INTERVAL: number;
|
|
191
|
-
WATCH_CHANGE: number;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
const IMPORT_MAP: Record<string, string | undefined>;
|
|
195
|
-
```
|
|
196
|
-
|
|
197
|
-
## References
|
|
198
|
-
|
|
199
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
200
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
201
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
202
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
203
|
-
|
|
204
|
-
* https://developer.mozilla.org/en-US/docs/Web/API/DOMException
|
|
205
|
-
* https://www.npmjs.com/package/@types/bytes
|
|
206
|
-
|
|
207
|
-
## LICENSE
|
|
208
|
-
|
|
1
|
+
# @e-mc/types
|
|
2
|
+
|
|
3
|
+
* NodeJS 16
|
|
4
|
+
* ES2020
|
|
5
|
+
|
|
6
|
+
## General Usage
|
|
7
|
+
|
|
8
|
+
* [Read the Docs](https://e-mc.readthedocs.io)
|
|
9
|
+
|
|
10
|
+
## Interface
|
|
11
|
+
|
|
12
|
+
* [View Source](https://www.unpkg.com/@e-mc/types@0.10.3/index.d.ts)
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { LogArguments } from "./lib/logger";
|
|
16
|
+
|
|
17
|
+
import type { BytesOptions } from "bytes";
|
|
18
|
+
import type { BinaryLike, CipherGCMTypes, Encoding, RandomUUIDOptions } from "crypto";
|
|
19
|
+
|
|
20
|
+
function createAbortError(reject: true): Promise<never>;
|
|
21
|
+
function createAbortError(): DOMException;
|
|
22
|
+
function hasBit(value: unknown, flags: number): boolean;
|
|
23
|
+
function ignoreFlag(value: unknown): boolean;
|
|
24
|
+
function cloneFlag(value: unknown): boolean;
|
|
25
|
+
function usingFlag(value: unknown): boolean;
|
|
26
|
+
function watchFlag(value: unknown): boolean;
|
|
27
|
+
function modifiedFlag(value: unknown): boolean;
|
|
28
|
+
function processFlag(value: unknown): boolean;
|
|
29
|
+
function mainFlag(value: unknown): boolean;
|
|
30
|
+
function existsFlag(value: unknown): boolean;
|
|
31
|
+
function getLogCurrent(): LogArguments | null;
|
|
32
|
+
function setLogCurrent(value: LogArguments): void;
|
|
33
|
+
function setTempDir(value: string): boolean;
|
|
34
|
+
function getTempDir(): string;
|
|
35
|
+
function isArray(value: unknown): value is unknown[];
|
|
36
|
+
function isObject(value: unknown): value is object;
|
|
37
|
+
function isPlainObject(value: unknown): value is Record<string | number | symbol, unknown>;
|
|
38
|
+
function isString(value: unknown): value is string;
|
|
39
|
+
function isEmpty(value: unknown): boolean;
|
|
40
|
+
function asFunction(value: unknown, sync?: boolean): ((...args: unknown[]) => unknown) | null;
|
|
41
|
+
function parseTime(value: number | string, start?: number): number;
|
|
42
|
+
function parseExpires(value: number | string, start?: number): number;
|
|
43
|
+
function formatTime(value: number, char: string): string;
|
|
44
|
+
function formatTime(value: number, elapsed?: boolean, char?: string): string;
|
|
45
|
+
function convertTime(value: number | string): number;
|
|
46
|
+
function convertTime(value: HighResolutionTime, format: true): string;
|
|
47
|
+
function convertTime(value: HighResolutionTime, format?: boolean): number;
|
|
48
|
+
function hasGlob(value: string): boolean;
|
|
49
|
+
function escapePattern(value: unknown, lookBehind?: boolean): string;
|
|
50
|
+
function renameExt(value: string, ext: string, when?: string): string;
|
|
51
|
+
function formatSize(value: string): number;
|
|
52
|
+
function formatSize(value: number, options?: BytesOptions): string;
|
|
53
|
+
function alignSize(value: unknown, kb?: number, factor?: number): number;
|
|
54
|
+
function cascadeObject(data: object, query: string, fallback?: unknown): unknown;
|
|
55
|
+
function cloneObject(data: unknown, deep: boolean): unknown;
|
|
56
|
+
function cloneObject(data: unknown, deepIgnore: WeakSet<object>): unknown;
|
|
57
|
+
function cloneObject(data: unknown, options?: CloneObjectOptions<unknown>): unknown;
|
|
58
|
+
function coerceObject(data: unknown, cache: boolean): unknown;
|
|
59
|
+
function coerceObject(data: unknown, parseString?: (...args: [string]) => unknown, cache?: boolean): unknown;
|
|
60
|
+
function getEncoding(value: unknown, fallback?: BufferEncoding): BufferEncoding;
|
|
61
|
+
function encryptUTF8(algorithm: CipherGCMTypes, key: BinaryLike, iv: BinaryLike, data: string, encoding?: Encoding): string | undefined;
|
|
62
|
+
function decryptUTF8(algorithm: CipherGCMTypes, key: BinaryLike, iv: BinaryLike, data: string, encoding?: Encoding): string | undefined;
|
|
63
|
+
function hashKey(data: BinaryLike, algorithm?: string, encoding?: BinaryToTextEncoding): string;
|
|
64
|
+
/** @deprecated - crypto.randomUUID */
|
|
65
|
+
function generateUUID(options?: RandomUUIDOptions): string;
|
|
66
|
+
function incrementUUID(restart?: boolean): string;
|
|
67
|
+
function validateUUID(value: unknown): boolean;
|
|
68
|
+
function randomString(format: string, dictionary?: string): string;
|
|
69
|
+
function errorValue(value: string, hint?: string): Error;
|
|
70
|
+
function errorMessage(title: number | string, value: string, hint?: string): Error;
|
|
71
|
+
function supported(major: number, minor?: number, patch?: number, lts?: boolean): boolean;
|
|
72
|
+
function importESM<T = unknown>(name: string, isDefault?: boolean, fromPath?: boolean): Promise<T>;
|
|
73
|
+
function purgeMemory(percent?: number): number;
|
|
74
|
+
|
|
75
|
+
interface LOG_TYPE {
|
|
76
|
+
UNKNOWN: 0;
|
|
77
|
+
SYSTEM: 1;
|
|
78
|
+
NODE: 2;
|
|
79
|
+
PROCESS: 4;
|
|
80
|
+
COMPRESS: 8;
|
|
81
|
+
WATCH: 16;
|
|
82
|
+
FILE: 32;
|
|
83
|
+
CLOUD: 64;
|
|
84
|
+
TIME_ELAPSED: 128;
|
|
85
|
+
TIME_PROCESS: 256;
|
|
86
|
+
FAIL: 512;
|
|
87
|
+
HTTP: 1024;
|
|
88
|
+
IMAGE: 2048;
|
|
89
|
+
EXEC: 4096;
|
|
90
|
+
PERMISSION: 8192;
|
|
91
|
+
TIMEOUT: 16384;
|
|
92
|
+
STDOUT: 32768;
|
|
93
|
+
DB: 65536;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
interface STATUS_TYPE {
|
|
97
|
+
UNKNOWN: 0;
|
|
98
|
+
FATAL: 1;
|
|
99
|
+
ERROR: 2;
|
|
100
|
+
WARN: 3;
|
|
101
|
+
INFO: 4;
|
|
102
|
+
DEBUG: 5;
|
|
103
|
+
ASSERT: 6;
|
|
104
|
+
TRACE: 7;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
interface ASSET_FLAG {
|
|
108
|
+
NONE: 0;
|
|
109
|
+
IGNORE: 1;
|
|
110
|
+
CLONE: 2;
|
|
111
|
+
USING: 4;
|
|
112
|
+
WATCH: 8;
|
|
113
|
+
MODIFIED: 16;
|
|
114
|
+
PROCESS: 32;
|
|
115
|
+
MAIN: 64;
|
|
116
|
+
EXISTS: 128;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
interface FILE_TYPE {
|
|
120
|
+
UNKNOWN: 0;
|
|
121
|
+
ASSET: 1;
|
|
122
|
+
TRANSFORM: 2;
|
|
123
|
+
COMPRESSED: 4;
|
|
124
|
+
SOURCEMAP: 8;
|
|
125
|
+
TORRENT: 16;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
interface ACTION_FLAG {
|
|
129
|
+
NONE: 0;
|
|
130
|
+
IGNORE: 1;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
interface ERR_CODE {
|
|
134
|
+
MODULE_NOT_FOUND: "MODULE_NOT_FOUND";
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
interface DOWNLOAD_TYPE {
|
|
138
|
+
HTTP: 0;
|
|
139
|
+
DISK: 1;
|
|
140
|
+
CACHE: 2;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
interface FETCH_TYPE {
|
|
144
|
+
UNKNOWN: 0;
|
|
145
|
+
HTTP: 1;
|
|
146
|
+
TORRENT: 2;
|
|
147
|
+
FTP: 3;
|
|
148
|
+
UNIX_SOCKET: 4;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
interface DB_TYPE {
|
|
152
|
+
SQL: 1;
|
|
153
|
+
NOSQL: 2;
|
|
154
|
+
DOCUMENT: 4;
|
|
155
|
+
KEYVALUE: 8;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
interface DB_TRANSACTION {
|
|
159
|
+
ACTIVE: 1;
|
|
160
|
+
PARTIAL: 2;
|
|
161
|
+
COMMIT: 4;
|
|
162
|
+
TERMINATE: 8;
|
|
163
|
+
ABORT: 16;
|
|
164
|
+
FAIL: 32;
|
|
165
|
+
AUTH: 64;
|
|
166
|
+
CACHE: 128;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
interface TRANSFER_TYPE {
|
|
170
|
+
DISK: 1;
|
|
171
|
+
STREAM: 2;
|
|
172
|
+
CHUNK: 4;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
interface WATCH_EVENT {
|
|
176
|
+
MODIFIED: "modified";
|
|
177
|
+
BROADCAST: "broadcast";
|
|
178
|
+
CLOSE: "close";
|
|
179
|
+
ERROR: "error";
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
interface READDIR_SORT {
|
|
183
|
+
FILE: number;
|
|
184
|
+
DIRECTORY: number;
|
|
185
|
+
DESCENDING: number;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
interface THRESHOLD {
|
|
189
|
+
FILEMANAGER_INTERVAL: number;
|
|
190
|
+
WATCH_INTERVAL: number;
|
|
191
|
+
WATCH_CHANGE: number;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
const IMPORT_MAP: Record<string, string | undefined>;
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
## References
|
|
198
|
+
|
|
199
|
+
- https://www.unpkg.com/@e-mc/types@0.10.3/index.d.ts
|
|
200
|
+
- https://www.unpkg.com/@e-mc/types@0.10.3/lib/logger.d.ts
|
|
201
|
+
- https://www.unpkg.com/@e-mc/types@0.10.3/lib/module.d.ts
|
|
202
|
+
- https://www.unpkg.com/@e-mc/types@0.10.3/lib/object.d.ts
|
|
203
|
+
|
|
204
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/DOMException
|
|
205
|
+
* https://www.npmjs.com/package/@types/bytes
|
|
206
|
+
|
|
207
|
+
## LICENSE
|
|
208
|
+
|
|
209
209
|
BSD 3-Clause
|