### Added

- TypeScript base64 interfaces.
- Disable webpack polyfill.
This commit is contained in:
Yi-Cyuan Chen
2023-10-09 23:46:20 +08:00
parent a9de3df8c6
commit daf1188dc6
5 changed files with 34 additions and 4 deletions
+5
View File
@@ -1,5 +1,10 @@
# Change Log
## v0.8.1 / 2023-10-
### Added
- TypeScript base64 interfaces.
- Disable webpack polyfill.
## v0.8.0 / 2023-09-27
### Added
- TypeScript interfaces.
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "js-md5",
"version": "0.8.0",
"version": "0.8.1",
"main": ["src/md5.js"],
"ignore": [
"tests"
Vendored
+20
View File
@@ -32,6 +32,11 @@ interface Hasher {
* Return hash in integer array.
*/
array(): number[];
/**
* Return hash in base64 string.
*/
base64(): string;
}
interface Hmac {
@@ -89,6 +94,14 @@ interface Hmac {
* @param message The message you want to hash.
*/
array(secretKey: Message, message: Message): number[];
/**
* Return hash in base64 string.
*
* @param secretKey The Secret Key
* @param message The message you want to hash.
*/
base64(secretKey: Message, message: Message): string;
}
interface Hash {
@@ -139,6 +152,13 @@ interface Hash {
*/
array(message: Message): number[];
/**
* Return hash in base64 string.
*
* @param message The message you want to hash.
*/
base64(message: Message): string;
/**
* HMAC interface
*/
+7 -2
View File
@@ -1,8 +1,9 @@
{
"name": "js-md5",
"version": "0.8.0",
"version": "0.8.1",
"description": "A simple MD5 hash function for JavaScript supports UTF-8 encoding.",
"main": "src/md5.js",
"main": "build/md5.min.js",
"module": "src/md5.js",
"devDependencies": {
"expect.js": "~0.3.1",
"jsdoc": "~4.0.2",
@@ -41,5 +42,9 @@
"exclude": [
"tests"
]
},
"browser": {
"crypto": false,
"buffer": false
}
}
+1 -1
View File
@@ -2,7 +2,7 @@
* [js-md5]{@link https://github.com/emn178/js-md5}
*
* @namespace md5
* @version 0.8.0
* @version 0.8.1
* @author Chen, Yi-Cyuan [emn178@gmail.com]
* @copyright Chen, Yi-Cyuan 2014-2023
* @license MIT