pure-md5 0.2.1 → 0.2.3
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 +40 -32
- package/dist/adapters/ie11.js +1 -1
- package/dist/adapters/node.js +1 -1
- package/dist/adapters/webcrypto.js +1 -1
- package/dist/index.d.ts +149 -5
- package/dist/index.js +3 -1
- package/dist/md5.cjs +1 -0
- package/dist/md5.d.ts +20 -0
- package/dist/md5.js +1 -0
- package/dist/stream/md5-stream.js +1 -1
- package/dist/stream/whatwg-stream.js +1 -1
- package/dist/utils/detect.js +3 -1
- package/package.json +16 -22
- package/dist/core/index.cjs +0 -1
- package/dist/core/index.d.cts +0 -19
- package/dist/core/index.d.ts +0 -19
- package/dist/core/index.js +0 -1
- package/dist/index.d.cts +0 -84
- package/dist/stream/adapter.cjs +0 -1
- package/dist/stream/adapter.d.cts +0 -63
- package/dist/stream/adapter.d.ts +0 -63
- package/dist/stream/adapter.js +0 -1
- package/dist/stream/fs-utils.cjs +0 -1
- package/dist/stream/fs-utils.d.cts +0 -137
- package/dist/stream/fs-utils.d.ts +0 -137
- package/dist/stream/fs-utils.js +0 -1
- package/dist/stream/index.cjs +0 -1
- package/dist/stream/index.d.cts +0 -4
- package/dist/stream/index.d.ts +0 -4
- package/dist/stream/index.js +0 -1
- package/dist/stream/light/index.cjs +0 -1
- package/dist/stream/light/index.d.cts +0 -4
- package/dist/stream/light/index.d.ts +0 -4
- package/dist/stream/light/index.js +0 -1
- package/dist/types-edGoGJ5V.d.cts +0 -42
- package/dist/types-edGoGJ5V.d.ts +0 -42
- package/pure-md5-0.2.0.tgz +0 -0
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Backend interface for MD5 operations
|
|
3
|
-
*/
|
|
4
|
-
interface MD5Backend {
|
|
5
|
-
/**
|
|
6
|
-
* Name of the backend
|
|
7
|
-
*/
|
|
8
|
-
name: string;
|
|
9
|
-
/**
|
|
10
|
-
* Version of the backend
|
|
11
|
-
*/
|
|
12
|
-
version: string;
|
|
13
|
-
/**
|
|
14
|
-
* Hash string data
|
|
15
|
-
* @param data - String to hash
|
|
16
|
-
* @returns MD5 hash as hex string
|
|
17
|
-
*/
|
|
18
|
-
hash(data: string): string | Promise<string>;
|
|
19
|
-
/**
|
|
20
|
-
* Hash binary data (ArrayBuffer, Uint8Array)
|
|
21
|
-
* @param data - Binary data to hash
|
|
22
|
-
* @returns MD5 hash as hex string
|
|
23
|
-
*/
|
|
24
|
-
hashBinary(data: ArrayBuffer | Uint8Array): string | Promise<string>;
|
|
25
|
-
/**
|
|
26
|
-
* Update hash with additional data (for streaming)
|
|
27
|
-
* @param data - Data to add to hash
|
|
28
|
-
*/
|
|
29
|
-
update(data: string | ArrayBuffer | Uint8Array): void | Promise<void>;
|
|
30
|
-
/**
|
|
31
|
-
* Get final hash digest
|
|
32
|
-
* @param encoding - Output encoding ('hex' or 'buffer')
|
|
33
|
-
* @returns Hash digest
|
|
34
|
-
*/
|
|
35
|
-
digest(encoding?: 'hex' | 'buffer'): string | Uint8Array | Promise<string | Uint8Array>;
|
|
36
|
-
/**
|
|
37
|
-
* Reset the hash state
|
|
38
|
-
*/
|
|
39
|
-
reset(): void | Promise<void>;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export type { MD5Backend as M };
|
package/dist/types-edGoGJ5V.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Backend interface for MD5 operations
|
|
3
|
-
*/
|
|
4
|
-
interface MD5Backend {
|
|
5
|
-
/**
|
|
6
|
-
* Name of the backend
|
|
7
|
-
*/
|
|
8
|
-
name: string;
|
|
9
|
-
/**
|
|
10
|
-
* Version of the backend
|
|
11
|
-
*/
|
|
12
|
-
version: string;
|
|
13
|
-
/**
|
|
14
|
-
* Hash string data
|
|
15
|
-
* @param data - String to hash
|
|
16
|
-
* @returns MD5 hash as hex string
|
|
17
|
-
*/
|
|
18
|
-
hash(data: string): string | Promise<string>;
|
|
19
|
-
/**
|
|
20
|
-
* Hash binary data (ArrayBuffer, Uint8Array)
|
|
21
|
-
* @param data - Binary data to hash
|
|
22
|
-
* @returns MD5 hash as hex string
|
|
23
|
-
*/
|
|
24
|
-
hashBinary(data: ArrayBuffer | Uint8Array): string | Promise<string>;
|
|
25
|
-
/**
|
|
26
|
-
* Update hash with additional data (for streaming)
|
|
27
|
-
* @param data - Data to add to hash
|
|
28
|
-
*/
|
|
29
|
-
update(data: string | ArrayBuffer | Uint8Array): void | Promise<void>;
|
|
30
|
-
/**
|
|
31
|
-
* Get final hash digest
|
|
32
|
-
* @param encoding - Output encoding ('hex' or 'buffer')
|
|
33
|
-
* @returns Hash digest
|
|
34
|
-
*/
|
|
35
|
-
digest(encoding?: 'hex' | 'buffer'): string | Uint8Array | Promise<string | Uint8Array>;
|
|
36
|
-
/**
|
|
37
|
-
* Reset the hash state
|
|
38
|
-
*/
|
|
39
|
-
reset(): void | Promise<void>;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export type { MD5Backend as M };
|
package/pure-md5-0.2.0.tgz
DELETED
|
Binary file
|