File tree Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 1
1
import type { BinaryToTextEncoding } from "crypto" ;
2
2
3
- export const baseEncodeTables = {
3
+ const baseEncodeTables = {
4
4
26 : "abcdefghijklmnopqrstuvwxyz" ,
5
5
32 : "123456789abcdefghjkmnpqrstuvwxyz" , // no 0lio
6
6
36 : "0123456789abcdefghijklmnopqrstuvwxyz" ,
@@ -11,13 +11,17 @@ export const baseEncodeTables = {
11
11
64 : "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_" ,
12
12
} ;
13
13
14
- export type BaseEncoding = keyof typeof baseEncodeTables ;
14
+ type BaseEncoding = keyof typeof baseEncodeTables ;
15
+
16
+ /**
17
+ * @public
18
+ */
15
19
export type DigestType = `base${BaseEncoding } `;
16
20
17
21
/**
18
- * @param uint32Array - Treated as a long base-0x100000000 number, little endian
19
- * @param divisor - The divisor
20
- * @return Modulo (remainder) of the division
22
+ * @param { Uint32Array } uint32Array Treated as a long base-0x100000000 number, little endian
23
+ * @param { number } divisor The divisor
24
+ * @return { number } Modulo (remainder) of the division
21
25
*/
22
26
function divmod32 ( uint32Array : Uint32Array , divisor : number ) : number {
23
27
let carry = 0 ;
Original file line number Diff line number Diff line change @@ -4,4 +4,4 @@ export { default as getHashDigest } from "./getHashDigest";
4
4
export { default as interpolateName } from "./interpolateName" ;
5
5
6
6
export type { IInterpolateNameOptions } from "./interpolateName" ;
7
- export type { DigestType , BaseEncoding , baseEncodeTables } from "./getHashDigest" ;
7
+ export type { DigestType } from "./getHashDigest" ;
Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ import type { LoaderContext } from "webpack";
2
2
import path from "path" ;
3
3
import getHashDigest from "./getHashDigest" ;
4
4
5
+ /**
6
+ * @public
7
+ */
5
8
export interface IInterpolateNameOptions {
6
9
content ?: Buffer ;
7
10
context ?: string ;
You can’t perform that action at this time.
0 commit comments