pure-md5 0.2.2 → 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 +2 -8
- package/package.json +7 -8
- package/pure-md5-0.2.1.tgz +0 -0
- package/test-tree-shake.mjs +0 -12
package/README.md
CHANGED
|
@@ -3,12 +3,9 @@
|
|
|
3
3
|
**A lightweight, zero-dependency JavaScript library for MD5 hashing with streaming support for large files.**
|
|
4
4
|
|
|
5
5
|
[](https://npmjs.org/package/pure-md5)
|
|
6
|
-
[](https://npmjs.org/package/pure-md5)
|
|
7
|
+
[](https://coveralls.io/github/eustatos/pure-md5?branch=main)
|
|
7
8
|
[](https://opensource.org/licenses/MIT)
|
|
8
|
-
[](https://github.com/eustatos/pure-md5/actions/workflows/npm-publish.yml)
|
|
9
|
-
[](https://codecov.io/gh/eustatos/pure-md5)
|
|
10
|
-
[](https://bundlephobia.com/result?p=pure-md5)
|
|
11
|
-
[](https://www.typescriptlang.org/)
|
|
12
9
|
|
|
13
10
|
---
|
|
14
11
|
|
|
@@ -298,6 +295,3 @@ If you find this project helpful, please consider supporting it:
|
|
|
298
295
|
- [RFC 1321 - The MD5 Message-Digest Algorithm](https://www.ietf.org/rfc/rfc1321.txt)
|
|
299
296
|
- [Node.js crypto documentation](https://nodejs.org/api/crypto.html)
|
|
300
297
|
|
|
301
|
-
---
|
|
302
|
-
|
|
303
|
-
*Made with ❤️ by [Aleksandr Astashkin](https://github.com/eustatos)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pure-md5",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "A lightweight JavaScript function for hashing messages by the MD5 algorithm",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -27,8 +27,9 @@
|
|
|
27
27
|
"build:watch": "tsup --watch",
|
|
28
28
|
"build:prod": "tsup --minify",
|
|
29
29
|
"dev": "tsup --watch",
|
|
30
|
-
"test": "
|
|
31
|
-
"
|
|
30
|
+
"test": "vitest run",
|
|
31
|
+
"test:watch": "vitest",
|
|
32
|
+
"test:coverage": "vitest run --coverage",
|
|
32
33
|
"changeset": "changeset",
|
|
33
34
|
"changeset:version": "changeset version",
|
|
34
35
|
"changeset:publish": "changeset publish"
|
|
@@ -84,12 +85,10 @@
|
|
|
84
85
|
"devDependencies": {
|
|
85
86
|
"@changesets/changelog-github": "^0.5.2",
|
|
86
87
|
"@changesets/cli": "^2.29.8",
|
|
87
|
-
"@
|
|
88
|
-
"codecov": "^3.8.3",
|
|
89
|
-
"jest": "^29.7.0",
|
|
90
|
-
"ts-jest": "^29.1.5",
|
|
88
|
+
"@vitest/coverage-v8": "^4.1.2",
|
|
91
89
|
"tsup": "^8.5.1",
|
|
92
|
-
"typescript": "^5.6.3"
|
|
90
|
+
"typescript": "^5.6.3",
|
|
91
|
+
"vitest": "^4.1.2"
|
|
93
92
|
},
|
|
94
93
|
"keywords": [
|
|
95
94
|
"md5"
|
package/pure-md5-0.2.1.tgz
DELETED
|
Binary file
|
package/test-tree-shake.mjs
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// Тестируем tree-shaking: импортируем только md5
|
|
2
|
-
// Должны увидеть только необходимые части, а не весь бандл
|
|
3
|
-
|
|
4
|
-
const code = `
|
|
5
|
-
import { md5 } from './dist/index.js';
|
|
6
|
-
|
|
7
|
-
console.log(md5('test'));
|
|
8
|
-
`;
|
|
9
|
-
|
|
10
|
-
console.log('Testing tree-shaking with current setup...');
|
|
11
|
-
console.log('If you see all module exports, tree-shaking is not working well.');
|
|
12
|
-
console.log('If you see only md5, tree-shaking is working.');
|