@e-mc/types 0.8.19 → 0.8.20

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 CHANGED
@@ -9,7 +9,7 @@
9
9
 
10
10
  ## Interface
11
11
 
12
- - https://www.unpkg.com/@e-mc/types@0.8.19/index.d.ts
12
+ - https://www.unpkg.com/@e-mc/types@0.8.20/index.d.ts
13
13
 
14
14
  ```typescript
15
15
  import type { LogArguments } from "./lib/logger";
@@ -186,8 +186,8 @@ const IMPORT_MAP: Record<string, string | undefined>;
186
186
 
187
187
  ## References
188
188
 
189
- - https://www.unpkg.com/@e-mc/types@0.8.19/lib/logger.d.ts
190
- - https://www.unpkg.com/@e-mc/types@0.8.19/lib/module.d.ts
189
+ - https://www.unpkg.com/@e-mc/types@0.8.20/lib/logger.d.ts
190
+ - https://www.unpkg.com/@e-mc/types@0.8.20/lib/module.d.ts
191
191
 
192
192
  * https://nodejs.org/api/perf_hooks.html
193
193
  * https://www.npmjs.com/package/@types/bytes
package/constant.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export const enum INTERNAL {
2
- VERSION = '0.8.19',
2
+ VERSION = '0.8.20',
3
3
  TEMP_DIR = 'tmp',
4
4
  CJS = '__cjs__'
5
5
  }
package/index.d.ts CHANGED
@@ -263,7 +263,7 @@ declare namespace types {
263
263
  function isPlainObject<T = PlainObject>(value: unknown): value is T;
264
264
  function isString(value: unknown): value is string;
265
265
  function isEmpty(value: unknown): boolean;
266
- function asFunction<U = unknown, V = unknown>(value: unknown, sync?: boolean): Null<FunctionType<Promise<U> | U, V>>;
266
+ function asFunction<U = unknown, V = unknown>(value: unknown, sync?: boolean): Null<FunctionType<U, V>>;
267
267
  function parseTime(value: NumString, start?: number): number;
268
268
  function parseExpires(value: NumString, start?: number): number;
269
269
  function formatTime(value: number, char: string): string;
package/lib/http.d.ts CHANGED
@@ -74,6 +74,11 @@ export const enum HTTP_STATUS {
74
74
  INVALID_SSL_CERTIFICATE = 526
75
75
  }
76
76
 
77
+ export interface AuthValue {
78
+ username?: string;
79
+ password?: string;
80
+ }
81
+
77
82
  export const enum QUERY_RESULT {
78
83
  FAIL,
79
84
  OK,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/types",
3
- "version": "0.8.19",
3
+ "version": "0.8.20",
4
4
  "description": "Type definitions for E-mc.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",