@learncard/network-brain-client 2.5.60 → 2.5.62
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/brain-client.cjs.development.cjs +183 -172
- package/dist/brain-client.cjs.development.cjs.map +2 -2
- package/dist/brain-client.cjs.production.min.cjs +4 -4
- package/dist/brain-client.cjs.production.min.cjs.map +2 -2
- package/dist/brain-client.esm.js +12 -1
- package/dist/brain-client.esm.js.map +2 -2
- package/package.json +4 -4
package/dist/brain-client.esm.js
CHANGED
|
@@ -32237,7 +32237,18 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
32237
32237
|
verificationMethod: external_exports2.string(),
|
|
32238
32238
|
jws: external_exports2.string().optional()
|
|
32239
32239
|
}).catchall(external_exports2.any()).superRefine((proof, ctx) => {
|
|
32240
|
-
if (proof.created === void 0 &&
|
|
32240
|
+
if (proof.created === void 0 && // These standardized Data Integrity suites make created optional.
|
|
32241
|
+
// Keep the prior requirement for legacy and unknown proof suites.
|
|
32242
|
+
// https://www.w3.org/TR/vc-di-eddsa/#proof-configuration-eddsa-jcs-2022
|
|
32243
|
+
// https://www.w3.org/TR/vc-di-bbs/#proof-configuration
|
|
32244
|
+
(proof.type !== "DataIntegrityProof" || ![
|
|
32245
|
+
"ecdsa-rdfc-2019",
|
|
32246
|
+
"ecdsa-jcs-2019",
|
|
32247
|
+
"ecdsa-sd-2023",
|
|
32248
|
+
"eddsa-rdfc-2022",
|
|
32249
|
+
"eddsa-jcs-2022",
|
|
32250
|
+
"bbs-2023"
|
|
32251
|
+
].includes(proof.cryptosuite))) {
|
|
32241
32252
|
ctx.addIssue({
|
|
32242
32253
|
code: "custom",
|
|
32243
32254
|
path: ["created"],
|