@e-mc/types 0.10.0 → 0.10.1

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
- * [View Source](https://www.unpkg.com/@e-mc/types@0.10.0/index.d.ts)
12
+ * [View Source](https://www.unpkg.com/@e-mc/types@0.10.1/index.d.ts)
13
13
 
14
14
  ```typescript
15
15
  import type { LogArguments } from "./lib/logger";
@@ -196,10 +196,10 @@ const IMPORT_MAP: Record<string, string | undefined>;
196
196
 
197
197
  ## References
198
198
 
199
- - https://www.unpkg.com/@e-mc/types@0.10.0/index.d.ts
200
- - https://www.unpkg.com/@e-mc/types@0.10.0/lib/logger.d.ts
201
- - https://www.unpkg.com/@e-mc/types@0.10.0/lib/module.d.ts
202
- - https://www.unpkg.com/@e-mc/types@0.10.0/lib/object.d.ts
199
+ - https://www.unpkg.com/@e-mc/types@0.10.1/index.d.ts
200
+ - https://www.unpkg.com/@e-mc/types@0.10.1/lib/logger.d.ts
201
+ - https://www.unpkg.com/@e-mc/types@0.10.1/lib/module.d.ts
202
+ - https://www.unpkg.com/@e-mc/types@0.10.1/lib/object.d.ts
203
203
 
204
204
  * https://developer.mozilla.org/en-US/docs/Web/API/DOMException
205
205
  * 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.10.0',
2
+ VERSION = '0.10.1',
3
3
  TEMP_DIR = 'tmp',
4
4
  CJS = '__cjs__'
5
5
  }
package/lib/dom.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ interface EventListenerOptions {
2
+ capture?: boolean;
3
+ }
4
+
5
+ export interface AddEventListenerOptions extends EventListenerOptions {
6
+ once?: boolean;
7
+ passive?: boolean;
8
+ signal?: AbortSignal;
9
+ }
package/lib/settings.d.ts CHANGED
@@ -252,16 +252,19 @@ export interface RequestModule<T = RequestSettings> extends HandlerSettings<T>,
252
252
  http_version?: number | string;
253
253
  accept_encoding?: boolean;
254
254
  };
255
- proxy?: AuthValue & IncludeAction & {
256
- address?: string;
257
- port?: number | string;
258
- keep_alive?: boolean;
259
- };
255
+ proxy?: HttpProxySettings;
260
256
  headers?: HttpOutgoingHeaders;
261
257
  certs?: ObjectMap<SecureConfig<ArrayOf<string>>>;
262
258
  post_limit?: number | string;
263
259
  }
264
260
 
261
+ export interface HttpProxySettings extends AuthValue, IncludeAction {
262
+ address?: string;
263
+ port?: number | string;
264
+ origin?: string;
265
+ keep_alive?: boolean;
266
+ }
267
+
265
268
  export interface HttpHostSettings {
266
269
  localhost?: string[];
267
270
  protocol?: {
package/lib/squared.d.ts CHANGED
@@ -54,6 +54,7 @@ export interface DbDataSource<T = unknown, U = unknown, V = unknown, W = unknown
54
54
  update?: V;
55
55
  withCommand?: string | TupleOf<string>;
56
56
  parallel?: boolean;
57
+ flat?: number;
57
58
  willAbort?: boolean;
58
59
  streamRow?: Null<boolean | string | ((row: unknown) => Void<Error | false>)>;
59
60
  usePool?: boolean | X;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/types",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "Type definitions for E-mc.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",