@e-mc/types 0.9.6 → 0.9.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/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.6/index.d.ts)
12
+ * [View Source](https://www.unpkg.com/@e-mc/types@0.9.8/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.6/lib/logger.d.ts
198
- - https://www.unpkg.com/@e-mc/types@0.9.6/lib/module.d.ts
197
+ - https://www.unpkg.com/@e-mc/types@0.9.8/lib/logger.d.ts
198
+ - https://www.unpkg.com/@e-mc/types@0.9.8/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.6',
2
+ VERSION = '0.9.8',
3
3
  TEMP_DIR = 'tmp',
4
4
  CJS = '__cjs__'
5
5
  }
package/lib/index.d.ts CHANGED
@@ -723,9 +723,8 @@ declare namespace functions {
723
723
  parseFunction<U = unknown>(value: unknown, options?: ParseFunctionOptions): Null<FunctionType<Promise<U> | U>>;
724
724
  parseFunction<U = unknown>(value: unknown, absolute: boolean, sync?: boolean): Null<FunctionType<Promise<U> | U>>;
725
725
  asString(value: unknown, cacheKey?: boolean | "throws"): string;
726
- asHash(data: BinaryLike, algorithm: string, minLength?: number): string;
727
- asHash(data: BinaryLike, algorithm?: string, options?: AsHashOptions): string;
728
- asHash(data: BinaryLike, options?: AsHashOptions): string;
726
+ asHash(data: BinaryLike, options: AsHashOptions): string;
727
+ asHash(data: BinaryLike, algorithm?: unknown, digest?: unknown): string;
729
728
  readHash(value: string | URL, options?: ReadHashOptions): Promise<string>;
730
729
  toPosix(value: unknown, normalize: boolean): string;
731
730
  toPosix(value: unknown, filename?: string, normalize?: boolean): string;
package/lib/module.d.ts CHANGED
@@ -115,6 +115,7 @@ export interface ReadBufferOptions extends StreamBase {
115
115
  }
116
116
 
117
117
  export interface AsHashOptions extends HashOptions, ChecksumBase {
118
+ /** @deprecated */
118
119
  minLength?: number;
119
120
  }
120
121
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/types",
3
- "version": "0.9.6",
3
+ "version": "0.9.8",
4
4
  "description": "Type definitions for E-mc.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",