@learncard/network-brain-client 2.3.8 → 2.3.10
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/CHANGELOG.md +14 -0
- package/dist/brain-client.cjs.development.js +8 -1
- package/dist/brain-client.cjs.development.js.map +2 -2
- package/dist/brain-client.cjs.production.min.js +1 -1
- package/dist/brain-client.cjs.production.min.js.map +3 -3
- package/dist/brain-client.esm.js +8 -1
- package/dist/brain-client.esm.js.map +2 -2
- package/package.json +4 -4
package/dist/brain-client.esm.js
CHANGED
|
@@ -5252,7 +5252,8 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
5252
5252
|
__export(src_exports, {
|
|
5253
5253
|
RegExpTransformer: () => RegExpTransformer2,
|
|
5254
5254
|
isEncrypted: () => isEncrypted,
|
|
5255
|
-
isHex: () => isHex
|
|
5255
|
+
isHex: () => isHex,
|
|
5256
|
+
isVC2Format: () => isVC2Format
|
|
5256
5257
|
});
|
|
5257
5258
|
module.exports = __toCommonJS(src_exports);
|
|
5258
5259
|
var import_types = __toESM2(require_dist2());
|
|
@@ -5287,6 +5288,12 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
5287
5288
|
});
|
|
5288
5289
|
}
|
|
5289
5290
|
};
|
|
5291
|
+
var isVC2Format = /* @__PURE__ */ __name2((credential) => {
|
|
5292
|
+
if (!credential["@context"] || !Array.isArray(credential["@context"])) {
|
|
5293
|
+
return false;
|
|
5294
|
+
}
|
|
5295
|
+
return credential["@context"].includes("https://www.w3.org/ns/credentials/v2");
|
|
5296
|
+
}, "isVC2Format");
|
|
5290
5297
|
}
|
|
5291
5298
|
});
|
|
5292
5299
|
|