@e-mc/types 0.6.7 → 0.6.8

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.6.7',
2
+ VERSION = '0.6.8',
3
3
  TEMP_DIR = 'tmp',
4
4
  CJS = '__cjs__'
5
5
  }
package/lib/index.d.ts CHANGED
@@ -682,8 +682,8 @@ declare namespace functions {
682
682
  parseFunction<U = unknown>(value: unknown, absolute: boolean, sync?: boolean): Null<FunctionType<Promise<U> | U>>;
683
683
  asString(value: unknown, cacheKey?: boolean | "throws"): string;
684
684
  asHash(data: BinaryLike, options: AsHashOptions): string;
685
- asHash(data: BinaryLike, minLength: number): string;
686
- asHash(data: BinaryLike, algorithm?: NumString | AsHashOptions, minLength?: number | AsHashOptions): string;
685
+ asHash(data: BinaryLike, digest: unknown): string;
686
+ asHash(data: BinaryLike, algorithm?: NumString | AsHashOptions, digest?: unknown): string;
687
687
  toPosix(value: unknown, normalize: boolean): string;
688
688
  toPosix(value: unknown, filename?: string, normalize?: boolean): string;
689
689
  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.6.7",
3
+ "version": "0.6.8",
4
4
  "description": "Type definitions for E-mc.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",