@e-mc/types 0.8.14 → 0.8.15

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.14/index.d.ts
12
+ - https://www.unpkg.com/@e-mc/types@0.8.15/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.14/lib/logger.d.ts
190
- - https://www.unpkg.com/@e-mc/types@0.8.14/lib/module.d.ts
189
+ - https://www.unpkg.com/@e-mc/types@0.8.15/lib/logger.d.ts
190
+ - https://www.unpkg.com/@e-mc/types@0.8.15/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.14',
2
+ VERSION = '0.8.15',
3
3
  TEMP_DIR = 'tmp',
4
4
  CJS = '__cjs__'
5
5
  }
package/lib/index.d.ts CHANGED
@@ -703,8 +703,8 @@ declare namespace functions {
703
703
  parseFunction<U = unknown>(value: unknown, absolute: boolean, sync?: boolean): Null<FunctionType<Promise<U> | U>>;
704
704
  asString(value: unknown, cacheKey?: boolean | "throws"): string;
705
705
  asHash(data: BinaryLike, options: AsHashOptions): string;
706
- asHash(data: BinaryLike, minLength: number): string;
707
- asHash(data: BinaryLike, algorithm?: NumString | AsHashOptions, minLength?: number | AsHashOptions): string;
706
+ asHash(data: BinaryLike, digest: unknown): string;
707
+ asHash(data: BinaryLike, algorithm?: NumString | AsHashOptions, digest?: unknown): string;
708
708
  readHash(value: string | URL, options?: ReadHashOptions): Promise<string>;
709
709
  toPosix(value: unknown, normalize: boolean): string;
710
710
  toPosix(value: unknown, filename?: string, normalize?: boolean): string;
package/lib/module.d.ts CHANGED
@@ -113,6 +113,7 @@ export interface ReadBufferOptions extends StreamBase {
113
113
  }
114
114
 
115
115
  export interface AsHashOptions extends HashOptions, ChecksumBase {
116
+ /** @deprecated */
116
117
  minLength?: number;
117
118
  }
118
119
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/types",
3
- "version": "0.8.14",
3
+ "version": "0.8.15",
4
4
  "description": "Type definitions for E-mc.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",