@e-mc/types 0.9.1 → 0.9.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/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.9.1/index.d.ts)
12
+ * [View Source](https://www.unpkg.com/@e-mc/types@0.9.3/index.d.ts)
13
13
 
14
14
  ```typescript
15
15
  import type { LogArguments } from "./lib/logger";
@@ -194,8 +194,8 @@ const IMPORT_MAP: Record<string, string | undefined>;
194
194
 
195
195
  ## References
196
196
 
197
- - https://www.unpkg.com/@e-mc/types@0.9.1/lib/logger.d.ts
198
- - https://www.unpkg.com/@e-mc/types@0.9.1/lib/module.d.ts
197
+ - https://www.unpkg.com/@e-mc/types@0.9.3/lib/logger.d.ts
198
+ - https://www.unpkg.com/@e-mc/types@0.9.3/lib/module.d.ts
199
199
 
200
200
  * https://nodejs.org/api/perf_hooks.html
201
201
  * 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.9.1',
2
+ VERSION = '0.9.3',
3
3
  TEMP_DIR = 'tmp',
4
4
  CJS = '__cjs__'
5
5
  }
package/index.d.ts CHANGED
@@ -311,6 +311,7 @@ declare namespace types {
311
311
  function getEncoding(value: unknown, fallback?: BufferEncoding): BufferEncoding;
312
312
  function encryptUTF8(algorithm: CipherGCMTypes, key: BinaryLike, iv: BinaryLike, data: string, encoding?: Encoding): Undef<string>;
313
313
  function decryptUTF8(algorithm: CipherGCMTypes, key: BinaryLike, iv: BinaryLike, data: string, encoding?: Encoding): Undef<string>;
314
+ /* @deprecated - crypto.randomUUID */
314
315
  function generateUUID(): string;
315
316
  function incrementUUID(restart?: boolean): string;
316
317
  function validateUUID(value: unknown): boolean;
package/lib/core.d.ts CHANGED
@@ -61,7 +61,7 @@ export interface ClientDbConstructor<T extends IHost = IHost, U extends ClientMo
61
61
  readonly TRANSACTION_TERMINATE: number;
62
62
  readonly TRANSACTION_ABORT: number;
63
63
  readonly TRANSACTION_FAIL: number;
64
- loadSettings(settings: Pick<Settings, "process" | "memory">, password?: string) : boolean;
64
+ loadSettings(settings: Pick<Settings, "process" | "memory">, password?: string): boolean;
65
65
  getTimeout(value: Undef<NumString | TimeoutAction>): number;
66
66
  convertTime(value: NumString): number;
67
67
  findResult(source: string, credential: unknown, queryString: string, timeout: number, sessionKey?: string | boolean, renewCache?: boolean): Undef<QueryResult>;
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/index.d.ts CHANGED
@@ -255,7 +255,9 @@ declare namespace functions {
255
255
 
256
256
  interface DocumentConstructor<T extends IFileManager<U>, U extends ExternalAsset = ExternalAsset, V extends ClientModule = DocumentModule, W extends DocumentComponent = DocumentComponent, X extends DocumentComponentOption = DocumentComponentOption, Y extends ICloud = ICloud<T>> extends ModuleConstructor {
257
257
  finalize(this: T, instance: IDocument<T, U, V, W, X, Y>): Promise<unknown>;
258
+ /* @deprecated */
258
259
  createSourceMap(code: string, remove: boolean): SourceMap;
260
+ /* @deprecated */
259
261
  createSourceMap(code: string, uri?: string, remove?: boolean): SourceMap;
260
262
  writeSourceMap(uri: string, data: SourceCode, options?: SourceMapOptions): Undef<string>;
261
263
  updateGradle(source: string, namespaces: string[], value: string, upgrade: boolean): string;
@@ -577,6 +579,7 @@ declare namespace functions {
577
579
  interface IModule<T extends IHost = IHost> extends EventEmitter, IAbortComponent {
578
580
  readonly status: LogStatus<StatusType>[];
579
581
  readonly errors: unknown[];
582
+ /* @deprecated */
580
583
  supported(major: number, minor?: number, patch?: number, lts?: boolean): boolean;
581
584
  supports(name: string, value?: boolean): boolean;
582
585
  getTempDir(options: GetTempDirOptions): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/types",
3
- "version": "0.9.1",
3
+ "version": "0.9.3",
4
4
  "description": "Type definitions for E-mc.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",