@sphereon/ssi-types 0.34.1-feature.SSISDK.17.bitstring.sl.9 → 0.34.1-feature.SSISDK.26.48
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/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/mapper/credential-mapper.ts +31 -31
- package/src/types/sd-jwt-vc.ts +2 -2
- package/src/types/vc.ts +2 -1
package/dist/index.cjs
CHANGED
|
@@ -1136,7 +1136,7 @@ var CredentialMapper = class _CredentialMapper {
|
|
|
1136
1136
|
}
|
|
1137
1137
|
return {
|
|
1138
1138
|
type: _CredentialMapper.isSdJwtDecodedCredential(originalPresentation) ? "sd-jwt-vc-decoded" : "sd-jwt-vc-encoded",
|
|
1139
|
-
format: "
|
|
1139
|
+
format: "dc+sd-jwt",
|
|
1140
1140
|
original: originalPresentation,
|
|
1141
1141
|
presentation: decodedPresentation,
|
|
1142
1142
|
decoded: decodedPresentation.decodedPayload,
|
|
@@ -1230,7 +1230,7 @@ var CredentialMapper = class _CredentialMapper {
|
|
|
1230
1230
|
}
|
|
1231
1231
|
return {
|
|
1232
1232
|
type: _CredentialMapper.isSdJwtDecodedCredential(verifiableCredential) ? "sd-jwt-vc-decoded" : "sd-jwt-vc-encoded",
|
|
1233
|
-
format: "
|
|
1233
|
+
format: "dc+sd-jwt",
|
|
1234
1234
|
original: verifiableCredential,
|
|
1235
1235
|
credential: decodedCredential,
|
|
1236
1236
|
decoded: decodedCredential.decodedPayload
|
|
@@ -1675,11 +1675,11 @@ var CredentialMapper = class _CredentialMapper {
|
|
|
1675
1675
|
}
|
|
1676
1676
|
};
|
|
1677
1677
|
function isWrappedSdJwtVerifiableCredential(vc) {
|
|
1678
|
-
return vc.format === "
|
|
1678
|
+
return vc.format === "dc+sd-jwt";
|
|
1679
1679
|
}
|
|
1680
1680
|
__name(isWrappedSdJwtVerifiableCredential, "isWrappedSdJwtVerifiableCredential");
|
|
1681
1681
|
function isWrappedSdJwtVerifiablePresentation(vp) {
|
|
1682
|
-
return vp.format === "
|
|
1682
|
+
return vp.format === "dc+sd-jwt";
|
|
1683
1683
|
}
|
|
1684
1684
|
__name(isWrappedSdJwtVerifiablePresentation, "isWrappedSdJwtVerifiablePresentation");
|
|
1685
1685
|
var OriginalType = /* @__PURE__ */ function(OriginalType2) {
|