sm-crypto-v2 0.3.12 → 0.3.13
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/.github/workflows/test.yml +17 -0
- package/CHANGELOG.md +26 -0
- package/README.md +5 -1
- package/package.json +4 -2
- package/pnpm-lock.yaml +6 -0
- package/vitest.config.ts +5 -0
@@ -0,0 +1,17 @@
|
|
1
|
+
# .github/workflows/test.yml
|
2
|
+
name: Test
|
3
|
+
on: [push, pull_request, workflow_dispatch]
|
4
|
+
jobs:
|
5
|
+
test:
|
6
|
+
runs-on: ubuntu-latest
|
7
|
+
steps:
|
8
|
+
# Your original steps
|
9
|
+
- uses: actions/checkout@v3
|
10
|
+
- uses: actions/setup-node@v3
|
11
|
+
- name: Install
|
12
|
+
run: npm install
|
13
|
+
- name: Test and Coverage
|
14
|
+
run: npm run coverage # or npm run coverage
|
15
|
+
# Add this
|
16
|
+
- name: Update Coverage Badge
|
17
|
+
uses: we-cli/coverage-badge-action@main
|
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,29 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
4
|
+
|
5
|
+
### 0.3.13 (2023-06-06)
|
6
|
+
|
7
|
+
|
8
|
+
### Features
|
9
|
+
|
10
|
+
* add asn1 test and coverage ([da9a6f7](https://github.com/Cubelrti/sm-crypto-v2/commit/da9a6f7e06f5e93b0849f80d0efc9131d151fdab))
|
11
|
+
* add dev deps ([5e2b3f3](https://github.com/Cubelrti/sm-crypto-v2/commit/5e2b3f33811d8d927da7954a3f4c0ecb87dec354))
|
12
|
+
* add test ([e97ce86](https://github.com/Cubelrti/sm-crypto-v2/commit/e97ce869f5f186cef3b02beeeb0607786823f612))
|
13
|
+
* sm2 support binary array ([db4c6c7](https://github.com/Cubelrti/sm-crypto-v2/commit/db4c6c7f5b2abd7926f9fc4118190cea3d527331))
|
14
|
+
* **sm2:** add shortcut for sm2 verify, better typing ([84f7f87](https://github.com/Cubelrti/sm-crypto-v2/commit/84f7f87672cb26fd5a5ec1b98be2765e07e2825b))
|
15
|
+
|
16
|
+
|
17
|
+
### Bug Fixes
|
18
|
+
|
19
|
+
* invalid padding check ([89189e3](https://github.com/Cubelrti/sm-crypto-v2/commit/89189e30f4f1083d973e7f57ae3e0e0f220f0efe))
|
20
|
+
* remove debug log ([b0f5f2a](https://github.com/Cubelrti/sm-crypto-v2/commit/b0f5f2a9808ff707d874e96c47556e55e26b4929))
|
21
|
+
* **sm2:** correct entl impl ([3d7d40d](https://github.com/Cubelrti/sm-crypto-v2/commit/3d7d40db162e76bc052771e7b9c26debdaa832a8))
|
22
|
+
* **test:** output reporter ([252ffdd](https://github.com/Cubelrti/sm-crypto-v2/commit/252ffdd289f6325d5e780e01de8137d8e3fe3453))
|
23
|
+
* **test:** summary ([73b83fa](https://github.com/Cubelrti/sm-crypto-v2/commit/73b83fa2b30db8311365841c603589f525c2d116))
|
24
|
+
* use pkcs[#7](https://github.com/Cubelrti/sm-crypto-v2/issues/7) instead of pkcs[#5](https://github.com/Cubelrti/sm-crypto-v2/issues/5) ([3f24a2a](https://github.com/Cubelrti/sm-crypto-v2/commit/3f24a2a45f09eaffc14271126b848115edf75fb7))
|
25
|
+
* use Uint8Array whenever possible ([d98cfcc](https://github.com/Cubelrti/sm-crypto-v2/commit/d98cfcc2d9b14040873b1efeda4e817ab12128d1))
|
26
|
+
|
1
27
|
## 0.3.12
|
2
28
|
|
3
29
|
* 优化 sm3 运行性能
|
package/README.md
CHANGED
@@ -1,4 +1,8 @@
|
|
1
|
-
# sm-crypto
|
1
|
+
# sm-crypto-v2
|
2
|
+
|
3
|
+
[](https://github.com/cubelrti/sm-crypto-v2/actions)
|
4
|
+
[](https://github.com/cubelrti/sm-crypto-v2/actions)
|
5
|
+
|
2
6
|
|
3
7
|
国密算法 sm2、sm3 和 sm4 的 TypeScript 实现。参数支持 TypedArray,导出 esm/cjs。
|
4
8
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "sm-crypto-v2",
|
3
|
-
"version": "0.3.
|
3
|
+
"version": "0.3.13",
|
4
4
|
"description": "sm-crypto-v2",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"module": "dist/index.mjs",
|
@@ -16,7 +16,7 @@
|
|
16
16
|
},
|
17
17
|
"repository": {
|
18
18
|
"type": "git",
|
19
|
-
"url": "git+https://github.com/
|
19
|
+
"url": "git+https://github.com/Cubelrti/sm-crypto-v2"
|
20
20
|
},
|
21
21
|
"keywords": [
|
22
22
|
"sm",
|
@@ -40,6 +40,7 @@
|
|
40
40
|
"@typescript-eslint/parser": "^5.23.0",
|
41
41
|
"@vitest/coverage-c8": "^0.31.0",
|
42
42
|
"@vitest/coverage-istanbul": "^0.31.0",
|
43
|
+
"@vitest/expect": "^0.31.4",
|
43
44
|
"@vitest/ui": "^0.31.0",
|
44
45
|
"conventional-changelog-cli": "^2.2.2",
|
45
46
|
"eslint": "^8.15.0",
|
@@ -49,6 +50,7 @@
|
|
49
50
|
"standard-version": "^9.5.0",
|
50
51
|
"tsup": "^5.12.7",
|
51
52
|
"typescript": "^4.7.2",
|
53
|
+
"vite": "^4.3.9",
|
52
54
|
"vitest": "^0.31.0"
|
53
55
|
}
|
54
56
|
}
|
package/pnpm-lock.yaml
CHANGED
@@ -27,6 +27,9 @@ devDependencies:
|
|
27
27
|
'@vitest/coverage-istanbul':
|
28
28
|
specifier: ^0.31.0
|
29
29
|
version: 0.31.4(vitest@0.31.4)
|
30
|
+
'@vitest/expect':
|
31
|
+
specifier: ^0.31.4
|
32
|
+
version: 0.31.4
|
30
33
|
'@vitest/ui':
|
31
34
|
specifier: ^0.31.0
|
32
35
|
version: 0.31.4(vitest@0.31.4)
|
@@ -54,6 +57,9 @@ devDependencies:
|
|
54
57
|
typescript:
|
55
58
|
specifier: ^4.7.2
|
56
59
|
version: 4.9.5
|
60
|
+
vite:
|
61
|
+
specifier: ^4.3.9
|
62
|
+
version: 4.3.9(@types/node@16.18.34)
|
57
63
|
vitest:
|
58
64
|
specifier: ^0.31.0
|
59
65
|
version: 0.31.4(@vitest/ui@0.31.4)
|