@sphereon/oid4vci-common 0.19.1-feature.DIIPv4.100 → 0.19.1-feature.DIIPv4.102
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 +0 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -4
- package/dist/index.d.ts +1 -4
- package/dist/index.js +0 -30
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -178,7 +178,6 @@ __export(index_exports, {
|
|
|
178
178
|
getSupportedCredential: () => getSupportedCredential,
|
|
179
179
|
getSupportedCredentials: () => getSupportedCredentials,
|
|
180
180
|
getTypesFromAuthorizationDetails: () => getTypesFromAuthorizationDetails,
|
|
181
|
-
getTypesFromCredentialOffer: () => getTypesFromCredentialOffer,
|
|
182
181
|
getTypesFromCredentialSupported: () => getTypesFromCredentialSupported,
|
|
183
182
|
getTypesFromObject: () => getTypesFromObject,
|
|
184
183
|
getURIComponentsAsArray: () => getURIComponentsAsArray,
|
|
@@ -1178,35 +1177,6 @@ function getTypesFromObject(subject) {
|
|
|
1178
1177
|
return void 0;
|
|
1179
1178
|
}
|
|
1180
1179
|
__name(getTypesFromObject, "getTypesFromObject");
|
|
1181
|
-
function getTypesFromCredentialOffer(offer, opts) {
|
|
1182
|
-
const { configIdAsType = false } = {
|
|
1183
|
-
...opts
|
|
1184
|
-
};
|
|
1185
|
-
if ("credentials" in offer && Array.isArray(offer.credentials)) {
|
|
1186
|
-
return offer.credentials.map((cred) => getTypesFromObject(cred)).filter((cred) => cred !== void 0);
|
|
1187
|
-
} else if (configIdAsType && "credential_configuration_ids" in offer && Array.isArray(offer.credential_configuration_ids)) {
|
|
1188
|
-
return offer.credential_configuration_ids.map((id) => [
|
|
1189
|
-
id
|
|
1190
|
-
]);
|
|
1191
|
-
} else if ("credential_offer" in offer && offer.credential_offer) {
|
|
1192
|
-
return getTypesFromCredentialOffer(offer.credential_offer, opts);
|
|
1193
|
-
} else if ("credential_type" in offer && offer.credential_type) {
|
|
1194
|
-
if (typeof offer.credential_type === "string") {
|
|
1195
|
-
return [
|
|
1196
|
-
[
|
|
1197
|
-
offer.credential_type
|
|
1198
|
-
]
|
|
1199
|
-
];
|
|
1200
|
-
} else if (Array.isArray(offer.credential_type)) {
|
|
1201
|
-
return [
|
|
1202
|
-
offer.credential_type
|
|
1203
|
-
];
|
|
1204
|
-
}
|
|
1205
|
-
}
|
|
1206
|
-
VCI_LOG_COMMON.warning("Could not deduce credential types from offer. Probably a failure down the line will happen!");
|
|
1207
|
-
return void 0;
|
|
1208
|
-
}
|
|
1209
|
-
__name(getTypesFromCredentialOffer, "getTypesFromCredentialOffer");
|
|
1210
1180
|
function getTypesFromAuthorizationDetails(authDetails, opts) {
|
|
1211
1181
|
const { configIdAsType = false } = {
|
|
1212
1182
|
...opts
|