@sphereon/oid4vci-client 0.19.1-feature.SSISDK.73.well.known.draftv1.208 → 0.19.1-feature.SSISDK.78.code.auth.flow.220

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 CHANGED
@@ -1099,6 +1099,12 @@ function filterSupportedCredentials(credentialOffer, credentialsSupported) {
1099
1099
  __name(filterSupportedCredentials, "filterSupportedCredentials");
1100
1100
  var createAuthorizationRequestUrl = /* @__PURE__ */ __name(async ({ pkce, endpointMetadata, authorizationRequest, credentialOffer, credentialConfigurationSupported, clientId, version }) => {
1101
1101
  function removeDisplayAndValueTypes(obj) {
1102
+ if (Array.isArray(obj)) {
1103
+ return obj.map((item) => removeDisplayAndValueTypes(item));
1104
+ }
1105
+ if (typeof obj !== "object" || obj === null) {
1106
+ return obj;
1107
+ }
1102
1108
  const newObj = {
1103
1109
  ...obj
1104
1110
  };
@@ -1108,7 +1114,7 @@ var createAuthorizationRequestUrl = /* @__PURE__ */ __name(async ({ pkce, endpoi
1108
1114
  "value_type"
1109
1115
  ].includes(prop)) {
1110
1116
  delete newObj[prop];
1111
- } else if (typeof newObj[prop] === "object") {
1117
+ } else if (typeof newObj[prop] === "object" && newObj[prop] !== null) {
1112
1118
  newObj[prop] = removeDisplayAndValueTypes(newObj[prop]);
1113
1119
  }
1114
1120
  }