@e-mc/types 0.12.8 → 0.12.9
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/README.md +5 -5
- package/constant.d.ts +1 -1
- package/lib/index.d.ts +6 -4
- package/lib/request.d.ts +1 -1
- package/package.json +1 -1
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.12.
|
|
12
|
+
* [View Source](https://www.unpkg.com/@e-mc/types@0.12.9/index.d.ts)
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
15
|
import type { LogArguments } from "./lib/logger";
|
|
@@ -203,10 +203,10 @@ const IMPORT_MAP: Record<string, string | undefined>;
|
|
|
203
203
|
|
|
204
204
|
## References
|
|
205
205
|
|
|
206
|
-
- https://www.unpkg.com/@e-mc/types@0.12.
|
|
207
|
-
- https://www.unpkg.com/@e-mc/types@0.12.
|
|
208
|
-
- https://www.unpkg.com/@e-mc/types@0.12.
|
|
209
|
-
- https://www.unpkg.com/@e-mc/types@0.12.
|
|
206
|
+
- https://www.unpkg.com/@e-mc/types@0.12.9/index.d.ts
|
|
207
|
+
- https://www.unpkg.com/@e-mc/types@0.12.9/lib/logger.d.ts
|
|
208
|
+
- https://www.unpkg.com/@e-mc/types@0.12.9/lib/module.d.ts
|
|
209
|
+
- https://www.unpkg.com/@e-mc/types@0.12.9/lib/node.d.ts
|
|
210
210
|
|
|
211
211
|
* https://developer.mozilla.org/en-US/docs/Web/API/DOMException
|
|
212
212
|
* https://www.npmjs.com/package/@types/bytes
|
package/constant.d.ts
CHANGED
package/lib/index.d.ts
CHANGED
|
@@ -72,7 +72,7 @@ declare namespace functions {
|
|
|
72
72
|
createGzip(file: string | Buffer, options?: CompressLevel): Gzip;
|
|
73
73
|
createBrotliCompress(file: string | Buffer, options?: BrotliCompressLevel): BrotliCompress;
|
|
74
74
|
createWriteStreamAsGzip(file: string | Buffer, output: string, options?: CompressLevel): WriteStream;
|
|
75
|
-
createWriteStreamAsBrotli(file: string | Buffer, output: string, options?:
|
|
75
|
+
createWriteStreamAsBrotli(file: string | Buffer, output: string, options?: BrotliCompressLevel): WriteStream;
|
|
76
76
|
intoGzipStream(output: string, options?: ZlibOptions): WriteStream;
|
|
77
77
|
intoBrotliStream(output: string, options?: BrotliOptions): WriteStream;
|
|
78
78
|
writeGzip(file: string | Buffer, output: string, options?: CompressLevel): Promise<void>;
|
|
@@ -349,9 +349,9 @@ declare namespace functions {
|
|
|
349
349
|
headersOn(name: string | string[], callback: HeadersOnCallback): void;
|
|
350
350
|
headersOn(name: string | string[], globUrl: string, callback: HeadersOnCallback): void;
|
|
351
351
|
headersOf(uri: string): OutgoingHttpHeaders | undefined;
|
|
352
|
-
aria2c(uri: string | URL, pathname: string): Promise<string[]>;
|
|
352
|
+
aria2c(uri: string | URL, pathname: string | URL): Promise<string[]>;
|
|
353
353
|
aria2c(uri: string | URL, options?: Aria2Options): Promise<string[]>;
|
|
354
|
-
rclone(uri: string | URL, pathname: string): Promise<string[]>;
|
|
354
|
+
rclone(uri: string | URL, pathname: string | URL): Promise<string[]>;
|
|
355
355
|
rclone(uri: string | URL, options?: RcloneOptions): Promise<string[]>;
|
|
356
356
|
json(uri: string | URL, options?: OpenOptions): Promise<object | null>;
|
|
357
357
|
pipe(uri: string | URL, to: Writable, options?: OpenOptions): Promise<null>;
|
|
@@ -687,7 +687,9 @@ declare namespace functions {
|
|
|
687
687
|
checkFail(message: unknown, options: LogFailOptions): LogArguments | false | undefined;
|
|
688
688
|
writeLog(component: LogComponent, queue?: boolean): void;
|
|
689
689
|
writeLog(type: StatusType, value: unknown, options: LogOptions): void;
|
|
690
|
-
writeLog(type: StatusType, value: unknown,
|
|
690
|
+
writeLog(type: StatusType, value: unknown, from: string, source?: string): void;
|
|
691
|
+
writeLog(type: StatusType, value: unknown, timeStamp?: LogDate, from?: string, source?: string): void;
|
|
692
|
+
writeLog(type: StatusType, value: unknown, timeStamp?: LogDate, duration?: number, from?: string, source?: string): void;
|
|
691
693
|
addLog(component: LogComponent, queue?: boolean): void;
|
|
692
694
|
addLog(type: StatusType, value: unknown, options: LogOptions): void;
|
|
693
695
|
addLog(type: StatusType, value: unknown, from: string, source?: string): void;
|
package/lib/request.d.ts
CHANGED