@learncard/learn-cloud-plugin 2.3.44 → 2.3.46
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-cloud-plugin.cjs.development.cjs +12 -1
- package/dist/learn-cloud-plugin.cjs.development.cjs.map +2 -2
- package/dist/learn-cloud-plugin.cjs.production.min.cjs +1 -1
- package/dist/learn-cloud-plugin.cjs.production.min.cjs.map +2 -2
- package/dist/learn-cloud-plugin.esm.js +12 -1
- package/dist/learn-cloud-plugin.esm.js.map +2 -2
- package/package.json +7 -7
|
@@ -21247,7 +21247,18 @@ var ProofValidator = external_exports.object({
|
|
|
21247
21247
|
verificationMethod: external_exports.string(),
|
|
21248
21248
|
jws: external_exports.string().optional()
|
|
21249
21249
|
}).catchall(external_exports.any()).superRefine((proof, ctx) => {
|
|
21250
|
-
if (proof.created === void 0 &&
|
|
21250
|
+
if (proof.created === void 0 && // These standardized Data Integrity suites make created optional.
|
|
21251
|
+
// Keep the prior requirement for legacy and unknown proof suites.
|
|
21252
|
+
// https://www.w3.org/TR/vc-di-eddsa/#proof-configuration-eddsa-jcs-2022
|
|
21253
|
+
// https://www.w3.org/TR/vc-di-bbs/#proof-configuration
|
|
21254
|
+
(proof.type !== "DataIntegrityProof" || ![
|
|
21255
|
+
"ecdsa-rdfc-2019",
|
|
21256
|
+
"ecdsa-jcs-2019",
|
|
21257
|
+
"ecdsa-sd-2023",
|
|
21258
|
+
"eddsa-rdfc-2022",
|
|
21259
|
+
"eddsa-jcs-2022",
|
|
21260
|
+
"bbs-2023"
|
|
21261
|
+
].includes(proof.cryptosuite))) {
|
|
21251
21262
|
ctx.addIssue({
|
|
21252
21263
|
code: "custom",
|
|
21253
21264
|
path: ["created"],
|