@e-mc/types 0.10.11 → 0.10.13
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 +3 -7
- package/README.md +6 -6
- package/constant.d.ts +2 -1
- package/lib/document.d.ts +4 -4
- package/lib/index.d.ts +1 -1
- package/lib/task.d.ts +9 -9
- package/package.json +2 -2
package/LICENSE
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
Copyright 2024 An Pham
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
6
|
|
|
7
|
-
|
|
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
|
-
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.
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
## Interface
|
|
11
11
|
|
|
12
|
-
* [View Source](https://www.unpkg.com/@e-mc/types@0.10.
|
|
12
|
+
* [View Source](https://www.unpkg.com/@e-mc/types@0.10.13/index.d.ts)
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
15
|
import type { LogArguments } from "./lib/logger";
|
|
@@ -197,14 +197,14 @@ const IMPORT_MAP: Record<string, string | undefined>;
|
|
|
197
197
|
|
|
198
198
|
## References
|
|
199
199
|
|
|
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
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
200
|
+
- https://www.unpkg.com/@e-mc/types@0.10.13/index.d.ts
|
|
201
|
+
- https://www.unpkg.com/@e-mc/types@0.10.13/lib/logger.d.ts
|
|
202
|
+
- https://www.unpkg.com/@e-mc/types@0.10.13/lib/module.d.ts
|
|
203
|
+
- https://www.unpkg.com/@e-mc/types@0.10.13/lib/object.d.ts
|
|
204
204
|
|
|
205
205
|
* https://developer.mozilla.org/en-US/docs/Web/API/DOMException
|
|
206
206
|
* https://www.npmjs.com/package/@types/bytes
|
|
207
207
|
|
|
208
208
|
## LICENSE
|
|
209
209
|
|
|
210
|
-
|
|
210
|
+
MIT
|
package/constant.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export const enum INTERNAL {
|
|
2
|
-
VERSION = '0.10.
|
|
2
|
+
VERSION = '0.10.13',
|
|
3
3
|
TEMP_DIR = 'tmp',
|
|
4
4
|
CJS = '__cjs__'
|
|
5
5
|
}
|
|
@@ -73,6 +73,7 @@ export const enum ERR_MESSAGE {
|
|
|
73
73
|
UNSUPPORTED_MIME = 'Unsupported MIME',
|
|
74
74
|
UNSUPPORTED_READ = 'Not permitted to read file',
|
|
75
75
|
UNSUPPORTED_WRITE = 'Not permitted to write file',
|
|
76
|
+
UNSUPPORTED_PATH = 'Not permitted to set absolute path',
|
|
76
77
|
NOTFOUND_PATH = 'Path not found',
|
|
77
78
|
NOTFOUND_FILE = 'File not found',
|
|
78
79
|
NOTFOUND_BINARY = 'Binary not found',
|
package/lib/document.d.ts
CHANGED
|
@@ -81,7 +81,7 @@ export interface TransformOptions<T = AnyObject, U = T> extends TransformOutput
|
|
|
81
81
|
supplementChunks: ChunkData[];
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
export interface ITransformSeries<T = AnyObject, U = T> extends IModule, TransformOptions<T, U> {
|
|
84
|
+
export interface ITransformSeries<T = AnyObject, U = T, V = object> extends IModule, TransformOptions<T, U> {
|
|
85
85
|
readonly type: string;
|
|
86
86
|
init(instance: IModule, dirname?: string): this;
|
|
87
87
|
close(instance: IModule): void;
|
|
@@ -89,12 +89,12 @@ export interface ITransformSeries<T = AnyObject, U = T> extends IModule, Transfo
|
|
|
89
89
|
getMainFile(code?: string, imports?: StringMap): Undef<SourceInput<string>>;
|
|
90
90
|
getSourceFiles(imports?: StringMap): Undef<SourceInput>;
|
|
91
91
|
toBaseConfig(all?: boolean): T;
|
|
92
|
-
upgrade<
|
|
93
|
-
upgradeESM<
|
|
92
|
+
upgrade<W = unknown>(context: W, dirname?: string, pkgname?: string): W;
|
|
93
|
+
upgradeESM<W = unknown>(context: W, dirname?: string, pkgname?: string): Promise<W>;
|
|
94
94
|
set code(value);
|
|
95
95
|
get code(): string;
|
|
96
96
|
get out(): IOut;
|
|
97
|
-
get metadata():
|
|
97
|
+
get metadata(): V;
|
|
98
98
|
get options(): TransformOutput;
|
|
99
99
|
get productionRelease(): boolean;
|
|
100
100
|
get imported(): boolean;
|
package/lib/index.d.ts
CHANGED
|
@@ -144,7 +144,7 @@ declare namespace functions {
|
|
|
144
144
|
executeBatchQuery(batch: V[], sessionKey: string, outResult?: BatchQueryResult): Promise<BatchQueryResult>;
|
|
145
145
|
executeBatchQuery(batch: V[], options?: ExecuteBatchQueryOptions | string, outResult?: BatchQueryResult): Promise<BatchQueryResult>;
|
|
146
146
|
processRows(batch: V[], tasks: Promise<Null<QueryResult>>[], parallel: boolean): Promise<BatchQueryResult>;
|
|
147
|
-
processRows(batch: V[], tasks: Promise<Null<QueryResult>>[], options?: ProcessRowsOptions, outResult?: BatchQueryResult): Promise<BatchQueryResult>;
|
|
147
|
+
processRows(batch: V[], tasks: Promise<Null<QueryResult>>[], options?: ProcessRowsOptions | boolean, outResult?: BatchQueryResult): Promise<BatchQueryResult>;
|
|
148
148
|
handleFail(err: unknown, item: V, options?: HandleFailOptions): boolean;
|
|
149
149
|
readTLSCert(value: unknown, cache?: boolean): string;
|
|
150
150
|
readTLSConfig(options: SecureContextOptions, cache?: boolean): void;
|
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
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-mc/types",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.13",
|
|
4
4
|
"description": "Type definitions for E-mc.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"squared-functions"
|
|
18
18
|
],
|
|
19
19
|
"author": "An Pham <anpham6@gmail.com>",
|
|
20
|
-
"license": "
|
|
20
|
+
"license": "MIT",
|
|
21
21
|
"homepage": "https://github.com/anpham6/e-mc#readme",
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"bytes": "^3.1.2",
|