@learncard/helpers 1.1.19 → 1.1.20

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.
@@ -5228,8 +5228,15 @@ var RegExpTransformer = {
5228
5228
  });
5229
5229
  }
5230
5230
  };
5231
+ var isVC2Format = /* @__PURE__ */ __name((credential) => {
5232
+ if (!credential["@context"] || !Array.isArray(credential["@context"])) {
5233
+ return false;
5234
+ }
5235
+ return credential["@context"].includes("https://www.w3.org/ns/credentials/v2");
5236
+ }, "isVC2Format");
5231
5237
  export {
5232
5238
  RegExpTransformer,
5233
5239
  isEncrypted,
5234
- isHex
5240
+ isHex,
5241
+ isVC2Format
5235
5242
  };