@e-mc/types 0.7.10 → 0.7.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/constant.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export const enum INTERNAL {
2
- VERSION = '0.7.10',
2
+ VERSION = '0.7.11',
3
3
  TEMP_DIR = 'tmp',
4
4
  CJS = '__cjs__'
5
5
  }
package/lib/index.d.ts CHANGED
@@ -688,8 +688,8 @@ declare namespace functions {
688
688
  parseFunction<U = unknown>(value: unknown, absolute: boolean, sync?: boolean): Null<FunctionType<Promise<U> | U>>;
689
689
  asString(value: unknown, cacheKey?: boolean | "throws"): string;
690
690
  asHash(data: BinaryLike, options: AsHashOptions): string;
691
- asHash(data: BinaryLike, minLength: number): string;
692
- asHash(data: BinaryLike, algorithm?: NumString | AsHashOptions, minLength?: number | AsHashOptions): string;
691
+ asHash(data: BinaryLike, digest: unknown): string;
692
+ asHash(data: BinaryLike, algorithm?: NumString | AsHashOptions, digest?: unknown): string;
693
693
  readHash(value: string | URL, options?: ReadHashOptions): Promise<string>;
694
694
  toPosix(value: unknown, normalize: boolean): string;
695
695
  toPosix(value: unknown, filename?: string, normalize?: boolean): string;
package/lib/module.d.ts CHANGED
@@ -103,6 +103,7 @@ export interface ReadHashOptions extends ChecksumBase {
103
103
  }
104
104
 
105
105
  export interface AsHashOptions extends HashOptions, ChecksumBase {
106
+ /** @deprecated */
106
107
  minLength?: number;
107
108
  }
108
109
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/types",
3
- "version": "0.7.10",
3
+ "version": "0.7.11",
4
4
  "description": "Type definitions for E-mc.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",