@e-mc/types 0.5.10 → 0.5.12

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/constant.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export const enum INTERNAL {
2
- VERSION = '0.5.9',
2
+ VERSION = '0.5.12',
3
3
  TEMP_DIR = 'tmp',
4
4
  CJS = '__cjs__'
5
5
  }
package/lib/index.d.ts CHANGED
@@ -681,8 +681,8 @@ declare namespace functions {
681
681
  parseFunction<U = unknown>(value: unknown, absolute: boolean, sync?: boolean): Null<FunctionType<Promise<U> | U>>;
682
682
  asString(value: unknown, cacheKey?: boolean | "throws"): string;
683
683
  asHash(data: BinaryLike, options: AsHashOptions): string;
684
- asHash(data: BinaryLike, minLength: number): string;
685
- asHash(data: BinaryLike, algorithm?: NumString | AsHashOptions, minLength?: number | AsHashOptions): string;
684
+ asHash(data: BinaryLike, digest: unknown): string;
685
+ asHash(data: BinaryLike, algorithm?: NumString | AsHashOptions, digest?: unknown): string;
686
686
  toPosix(value: unknown, normalize: boolean): string;
687
687
  toPosix(value: unknown, filename?: string, normalize?: boolean): string;
688
688
  hasLogType(value: LogType): boolean;
package/lib/module.d.ts CHANGED
@@ -98,6 +98,7 @@ export interface CopyDirResult {
98
98
  export interface AsHashOptions extends HashOptions {
99
99
  algorithm?: string;
100
100
  digest?: BinaryToTextEncoding;
101
+ /** @deprecated */
101
102
  minLength?: number;
102
103
  }
103
104
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/types",
3
- "version": "0.5.10",
3
+ "version": "0.5.12",
4
4
  "description": "Type definitions for E-mc.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",