@e-mc/types 0.9.10 → 0.9.11

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.10/index.d.ts)
12
+ * [View Source](https://www.unpkg.com/@e-mc/types@0.9.11/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.10/lib/logger.d.ts
198
- - https://www.unpkg.com/@e-mc/types@0.9.10/lib/module.d.ts
197
+ - https://www.unpkg.com/@e-mc/types@0.9.11/lib/logger.d.ts
198
+ - https://www.unpkg.com/@e-mc/types@0.9.11/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.10',
2
+ VERSION = '0.9.11',
3
3
  TEMP_DIR = 'tmp',
4
4
  CJS = '__cjs__'
5
5
  }
@@ -281,6 +281,7 @@ export const enum SETTINGS_KEY_NAME {
281
281
  NODE_REQUIRE_EXT = "node.require.ext",
282
282
  NODE_REQUIRE_NPM = "node.require.npm",
283
283
  NODE_REQUIRE_INLINE = "node.require.inline",
284
+ NODE_PACKAGE_MANAGER = "node.settings.package_manager",
284
285
  TEMP_DIR = "temp.dir",
285
286
  TEMP_WRITE = "temp.write",
286
287
  PROCESS_PASSWORD = "process.password",
package/index.d.ts CHANGED
@@ -288,7 +288,7 @@ declare namespace types {
288
288
  function isPlainObject<T = PlainObject>(value: unknown): value is T;
289
289
  function isString(value: unknown): value is string;
290
290
  function isEmpty(value: unknown): boolean;
291
- function asFunction<T = unknown, U = FunctionType<Promise<T> | T>>(value: unknown, sync?: boolean): Null<U>;
291
+ function asFunction<U = unknown, V = unknown>(value: unknown, sync?: boolean): Null<FunctionType<Promise<U> | U, V>>;
292
292
  function parseTime(value: NumString, start?: number): number;
293
293
  function parseExpires(value: NumString, start?: number): number;
294
294
  function formatTime(value: number, char: string): string;
package/lib/index.d.ts CHANGED
@@ -720,8 +720,8 @@ declare namespace functions {
720
720
  formatMessage(type: LogType, title: string, value: LogValue, message?: unknown, options?: LogMessageOptions): void;
721
721
  writeFail(value: LogValue, message?: unknown, options?: LogFailOptions | LogType): void;
722
722
  enabled(key: string, username?: string): boolean;
723
- parseFunction<U = unknown>(value: unknown, options?: ParseFunctionOptions): Null<FunctionType<Promise<U> | U>>;
724
- parseFunction<U = unknown>(value: unknown, absolute: boolean, sync?: boolean): Null<FunctionType<Promise<U> | U>>;
723
+ parseFunction<U = unknown, V = unknown>(value: unknown, options?: ParseFunctionOptions): Null<FunctionType<Promise<U> | U, V>>;
724
+ parseFunction<U = unknown, V = unknown>(value: unknown, absolute: boolean, sync?: boolean): Null<FunctionType<Promise<U> | U, V>>;
725
725
  asString(value: unknown, cacheKey?: boolean | "throws"): string;
726
726
  asHash(data: BinaryLike, options: AsHashOptions): string;
727
727
  asHash(data: BinaryLike, algorithm?: unknown, digest?: unknown): string;
package/lib/settings.d.ts CHANGED
@@ -38,7 +38,7 @@ export interface ClientSettings<T = PlainObject> extends PlainObject {
38
38
  cache_dir?: string;
39
39
  }
40
40
 
41
- export interface NodeModule<T = PlainObject> extends HandlerSettings<T> {
41
+ export interface NodeModule<T = NodeSettings> extends HandlerSettings<T> {
42
42
  process?: {
43
43
  cpu_usage?: boolean;
44
44
  memory_usage?: boolean;
@@ -51,6 +51,10 @@ export interface NodeModule<T = PlainObject> extends HandlerSettings<T> {
51
51
  };
52
52
  }
53
53
 
54
+ export interface NodeSettings extends PlainObject {
55
+ package_manager?: "npm" | "yarn" | "pnpm";
56
+ }
57
+
54
58
  export interface ProcessModule<T = PlainObject> extends HandlerSettings<T> {
55
59
  env?: ProcessEnvConfig;
56
60
  thread?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/types",
3
- "version": "0.9.10",
3
+ "version": "0.9.11",
4
4
  "description": "Type definitions for E-mc.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
package/lib/dom.d.ts DELETED
@@ -1,9 +0,0 @@
1
- interface EventListenerOptions {
2
- capture?: boolean;
3
- }
4
-
5
- export interface AddEventListenerOptions extends EventListenerOptions {
6
- once?: boolean;
7
- passive?: boolean;
8
- signal?: AbortSignal;
9
- }