@sphereon/ssi-sdk.oid4vci-holder 0.34.1-fix.117 → 0.34.1-fix.141

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.js CHANGED
@@ -61,8 +61,8 @@ import { SupportedDidMethodEnum as SupportedDidMethodEnum2 } from "@sphereon/ssi
61
61
  import { isManagedIdentifierDidOpts, isManagedIdentifierDidResult as isManagedIdentifierDidResult2, isManagedIdentifierJwkResult, isManagedIdentifierKidResult, isManagedIdentifierResult as isManagedIdentifierResult2, isManagedIdentifierX5cOpts, isManagedIdentifierX5cResult } from "@sphereon/ssi-sdk-ext.identifier-resolution";
62
62
  import { signatureAlgorithmFromKey } from "@sphereon/ssi-sdk-ext.key-utils";
63
63
  import { defaultHasher as defaultHasher2 } from "@sphereon/ssi-sdk.core";
64
- import { ConnectionType, CorrelationIdentifierType, CredentialCorrelationType, CredentialRole, ensureRawDocument, IdentityOrigin } from "@sphereon/ssi-sdk.data-store";
65
- import { CredentialMapper as CredentialMapper2, JoseSignatureAlgorithm as JoseSignatureAlgorithm2, Loggers, parseDid } from "@sphereon/ssi-types";
64
+ import { ConnectionType, CorrelationIdentifierType, CredentialCorrelationType, ensureRawDocument, IdentityOrigin } from "@sphereon/ssi-sdk.data-store";
65
+ import { CredentialMapper as CredentialMapper2, JoseSignatureAlgorithm as JoseSignatureAlgorithm2, Loggers, parseDid, CredentialRole } from "@sphereon/ssi-types";
66
66
  import { asArray as asArray2, computeEntryHash } from "@veramo/utils";
67
67
  import { decodeJWT } from "did-jwt";
68
68
  import { v4 as uuidv42 } from "uuid";
@@ -1810,6 +1810,9 @@ var getCredentialConfigsSupportedBySingleTypeOrId = /* @__PURE__ */ __name(async
1810
1810
  }
1811
1811
  __name(createIdFromTypes, "createIdFromTypes");
1812
1812
  if (configurationId) {
1813
+ if (!format) {
1814
+ return Promise.reject(Error("format parameter missing from input"));
1815
+ }
1813
1816
  const allSupported2 = client.getCredentialsSupported(format);
1814
1817
  return Object.fromEntries(Object.entries(allSupported2).filter(([id, supported]) => id === configurationId || supported.id === configurationId || createIdFromTypes(supported) === configurationId));
1815
1818
  }
@@ -1997,7 +2000,7 @@ var getIssuanceCryptoSuite = /* @__PURE__ */ __name(async (opts) => {
1997
2000
  case "jwt":
1998
2001
  case "jwt_vc_json":
1999
2002
  case "jwt_vc":
2000
- //case 'vc+sd-jwt': FIXME re-enable for vcdm2
2003
+ //case 'vc+sd-jwt': // TODO see SSISDK-52 concerning vc+sd-jwt
2001
2004
  case "dc+sd-jwt":
2002
2005
  case "mso_mdoc": {
2003
2006
  const supportedPreferences = jwtCryptographicSuitePreferences.filter((suite) => signing_algs_supported.includes(suite));