@learncard/helpers 1.6.2 → 1.6.3
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/helpers.cjs.development.cjs +173 -162
- package/dist/helpers.cjs.development.cjs.map +2 -2
- package/dist/helpers.cjs.production.min.cjs +4 -4
- package/dist/helpers.cjs.production.min.cjs.map +3 -3
- package/dist/helpers.esm.js +12 -1
- package/dist/helpers.esm.js.map +2 -2
- package/package.json +2 -2
package/dist/helpers.esm.js
CHANGED
|
@@ -15884,7 +15884,18 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15884
15884
|
verificationMethod: external_exports.string(),
|
|
15885
15885
|
jws: external_exports.string().optional()
|
|
15886
15886
|
}).catchall(external_exports.any()).superRefine((proof, ctx) => {
|
|
15887
|
-
if (proof.created === void 0 &&
|
|
15887
|
+
if (proof.created === void 0 && // These standardized Data Integrity suites make created optional.
|
|
15888
|
+
// Keep the prior requirement for legacy and unknown proof suites.
|
|
15889
|
+
// https://www.w3.org/TR/vc-di-eddsa/#proof-configuration-eddsa-jcs-2022
|
|
15890
|
+
// https://www.w3.org/TR/vc-di-bbs/#proof-configuration
|
|
15891
|
+
(proof.type !== "DataIntegrityProof" || ![
|
|
15892
|
+
"ecdsa-rdfc-2019",
|
|
15893
|
+
"ecdsa-jcs-2019",
|
|
15894
|
+
"ecdsa-sd-2023",
|
|
15895
|
+
"eddsa-rdfc-2022",
|
|
15896
|
+
"eddsa-jcs-2022",
|
|
15897
|
+
"bbs-2023"
|
|
15898
|
+
].includes(proof.cryptosuite))) {
|
|
15888
15899
|
ctx.addIssue({
|
|
15889
15900
|
code: "custom",
|
|
15890
15901
|
path: ["created"],
|