@sd-jwt/hash 0.9.2-next.1 → 0.9.2-next.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/package.json +4 -4
- package/src/test/sha256.spec.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sd-jwt/hash",
|
|
3
|
-
"version": "0.9.2-next.
|
|
3
|
+
"version": "0.9.2-next.3+06e3319",
|
|
4
4
|
"description": "sd-jwt draft 7 implementation in typescript",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
},
|
|
39
39
|
"license": "Apache-2.0",
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@sd-jwt/crypto-nodejs": "0.9.2-next.
|
|
41
|
+
"@sd-jwt/crypto-nodejs": "0.9.2-next.3+06e3319"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@noble/hashes": "1.0.0",
|
|
45
|
-
"@sd-jwt/utils": "0.9.2-next.
|
|
45
|
+
"@sd-jwt/utils": "0.9.2-next.3+06e3319"
|
|
46
46
|
},
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"esm"
|
|
61
61
|
]
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "06e3319e4293845cd830fbe41d3607fee4e493f8"
|
|
64
64
|
}
|
package/src/test/sha256.spec.ts
CHANGED
|
@@ -106,7 +106,7 @@ describe('SHA-256 tests', () => {
|
|
|
106
106
|
|
|
107
107
|
test('Hasher', async () => {
|
|
108
108
|
const s1 = bytesToHex(await digest('test'));
|
|
109
|
-
const s2 = bytesToHex(hasher('test', '
|
|
109
|
+
const s2 = bytesToHex(hasher('test', 'sha-256'));
|
|
110
110
|
const s3 = bytesToHex(hasher('test', 'SHA256'));
|
|
111
111
|
const s4 = bytesToHex(hasher('test', 'sha256'));
|
|
112
112
|
const s5 = bytesToHex(hasher('test', 'sha-256'));
|