@sphereon/ssi-sdk.vc-status-list 0.34.1-feature.SSISDK.17.bitstring.sl.14 → 0.34.1-feature.SSISDK.17.bitstring.sl.16

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
@@ -346,6 +346,11 @@ var StatusList2021Implementation = class {
346
346
  const status = statusList.getStatus(typeof args.statusListIndex === "number" ? args.statusListIndex : parseInt(args.statusListIndex));
347
347
  return status ? Status2021.Invalid : Status2021.Valid;
348
348
  }
349
+ /**
350
+ * Performs the initial parsing of a StatusListCredential.
351
+ * This method handles expensive operations like JWT/CWT decoding once.
352
+ * It extracts all details available from the credential payload itself.
353
+ */
349
354
  async extractCredentialDetails(credential) {
350
355
  const uniform = import_ssi_types2.CredentialMapper.toUniformCredential(credential);
351
356
  const { issuer, credentialSubject } = uniform;
@@ -814,6 +819,11 @@ var OAuthStatusListImplementation = class {
814
819
  }
815
820
  return statusList.getStatus(index);
816
821
  }
822
+ /**
823
+ * Performs the initial parsing of a StatusListCredential.
824
+ * This method handles expensive operations like JWT/CWT decoding once.
825
+ * It extracts all details available from the credential payload itself.
826
+ */
817
827
  async extractCredentialDetails(credential) {
818
828
  if (typeof credential !== "string") {
819
829
  return Promise.reject("statusListCredential must be a JWT or CWT string");
@@ -1138,6 +1148,11 @@ var BitstringStatusListImplementation = class {
1138
1148
  }
1139
1149
  return statusList.getStatus(numIndex);
1140
1150
  }
1151
+ /**
1152
+ * Performs the initial parsing of a StatusListCredential.
1153
+ * This method handles expensive operations like JWT/CWT decoding once.
1154
+ * It extracts all details available from the credential payload itself.
1155
+ */
1141
1156
  async extractCredentialDetails(credential) {
1142
1157
  const uniform = import_ssi_types5.CredentialMapper.toUniformCredential(credential);
1143
1158
  const { issuer, credentialSubject } = uniform;