@sd-jwt/crypto-nodejs 0.15.2-next.8 → 0.16.0
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/CHANGELOG.md +17 -0
- package/dist/index.js +2 -2
- package/dist/index.mjs +3 -3
- package/package.json +3 -3
- package/src/test/crypto.spec.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,23 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [0.16.0](https://github.com/openwallet-foundation/sd-jwt-js/compare/v0.15.1...v0.16.0) (2025-10-07)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* change repo url from labs to other one ([#323](https://github.com/openwallet-foundation/sd-jwt-js/issues/323)) ([f68c847](https://github.com/openwallet-foundation/sd-jwt-js/commit/f68c8476c2f04bb9d53acd4059b59caf271df015))
|
|
12
|
+
* set correct url in package json ([#321](https://github.com/openwallet-foundation/sd-jwt-js/issues/321)) ([554152c](https://github.com/openwallet-foundation/sd-jwt-js/commit/554152cc819bbc3afb504b25f4a2018a92fb72f1))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* updates all dependencies to latest versions + biome updates ([#324](https://github.com/openwallet-foundation/sd-jwt-js/issues/324)) ([75d5780](https://github.com/openwallet-foundation/sd-jwt-js/commit/75d5780fb53c5e2c886537b283503fc6fb088a4a))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
6
23
|
# [0.15.0](https://github.com/openwallet-foundation/sd-jwt-js/compare/v0.14.1...v0.15.0) (2025-08-20)
|
|
7
24
|
|
|
8
25
|
**Note:** Version bump only for package @sd-jwt/crypto-nodejs
|
package/dist/index.js
CHANGED
|
@@ -102,7 +102,7 @@ var ES256 = {
|
|
|
102
102
|
// whether the key is extractable (i.e., can be used in exportKey)
|
|
103
103
|
["sign"]
|
|
104
104
|
);
|
|
105
|
-
return (data) => __async(
|
|
105
|
+
return (data) => __async(null, null, function* () {
|
|
106
106
|
const encoder = new TextEncoder();
|
|
107
107
|
const signature = yield import_node_crypto.subtle.sign(
|
|
108
108
|
{
|
|
@@ -131,7 +131,7 @@ var ES256 = {
|
|
|
131
131
|
// whether the key is extractable (i.e., can be used in exportKey)
|
|
132
132
|
["verify"]
|
|
133
133
|
);
|
|
134
|
-
return (data, signatureBase64url) => __async(
|
|
134
|
+
return (data, signatureBase64url) => __async(null, null, function* () {
|
|
135
135
|
const encoder = new TextEncoder();
|
|
136
136
|
const signature = Uint8Array.from(
|
|
137
137
|
atob(signatureBase64url.replace(/-/g, "+").replace(/_/g, "/")),
|
package/dist/index.mjs
CHANGED
|
@@ -20,7 +20,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
// src/crypto.ts
|
|
23
|
-
import { createHash, randomBytes, subtle } from "
|
|
23
|
+
import { createHash, randomBytes, subtle } from "crypto";
|
|
24
24
|
var generateSalt = (length) => {
|
|
25
25
|
if (length <= 0) {
|
|
26
26
|
return "";
|
|
@@ -75,7 +75,7 @@ var ES256 = {
|
|
|
75
75
|
// whether the key is extractable (i.e., can be used in exportKey)
|
|
76
76
|
["sign"]
|
|
77
77
|
);
|
|
78
|
-
return (data) => __async(
|
|
78
|
+
return (data) => __async(null, null, function* () {
|
|
79
79
|
const encoder = new TextEncoder();
|
|
80
80
|
const signature = yield subtle.sign(
|
|
81
81
|
{
|
|
@@ -104,7 +104,7 @@ var ES256 = {
|
|
|
104
104
|
// whether the key is extractable (i.e., can be used in exportKey)
|
|
105
105
|
["verify"]
|
|
106
106
|
);
|
|
107
|
-
return (data, signatureBase64url) => __async(
|
|
107
|
+
return (data, signatureBase64url) => __async(null, null, function* () {
|
|
108
108
|
const encoder = new TextEncoder();
|
|
109
109
|
const signature = Uint8Array.from(
|
|
110
110
|
atob(signatureBase64url.replace(/-/g, "+").replace(/_/g, "/")),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sd-jwt/crypto-nodejs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "sd-jwt draft 7 implementation in typescript",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"sd-jwt-vc"
|
|
25
25
|
],
|
|
26
26
|
"engines": {
|
|
27
|
-
"node": ">=
|
|
27
|
+
"node": ">=20"
|
|
28
28
|
},
|
|
29
29
|
"repository": {
|
|
30
30
|
"url": "https://github.com/openwallet-foundation/sd-jwt-js"
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"esm"
|
|
52
52
|
]
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "910c79c1607e91ae61e048a0c1b81c9ba0886684"
|
|
55
55
|
}
|
package/src/test/crypto.spec.ts
CHANGED