@learncard/learn-card-plugin 1.2.28 → 1.2.30
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/learn-card-plugin.cjs.development.cjs +2 -0
- package/dist/learn-card-plugin.cjs.development.cjs.map +2 -2
- package/dist/learn-card-plugin.cjs.production.min.cjs +1 -1
- package/dist/learn-card-plugin.cjs.production.min.cjs.map +3 -3
- package/dist/learn-card-plugin.esm.js +2 -0
- package/dist/learn-card-plugin.esm.js.map +2 -2
- package/dist/verify.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/test/verify.test.ts +21 -0
- package/src/verify.ts +5 -0
|
@@ -1785,7 +1785,9 @@ var transformErrorMessage = /* @__PURE__ */ __name((error, credential, verificat
|
|
|
1785
1785
|
}
|
|
1786
1786
|
return error;
|
|
1787
1787
|
}, "transformErrorMessage");
|
|
1788
|
+
var NON_DID_ISSUER_WARNING = "Issuer authorization was not checked because the credential issuer is not a DID";
|
|
1788
1789
|
var transformWarningCheck = /* @__PURE__ */ __name((warning, _credential) => {
|
|
1790
|
+
if (warning === NON_DID_ISSUER_WARNING) return "Issuer Authorization";
|
|
1789
1791
|
if (warning.includes("Boost Authenticity")) return "Boost Authenticity";
|
|
1790
1792
|
const prefix = warning.split(" warning")[0];
|
|
1791
1793
|
return prefix || warning;
|