@learncard/learn-cloud-plugin 2.3.45 → 2.3.47
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 +24 -1
- package/dist/learn-cloud-plugin.cjs.development.cjs.map +2 -2
- package/dist/learn-cloud-plugin.cjs.production.min.cjs +9 -9
- package/dist/learn-cloud-plugin.cjs.production.min.cjs.map +3 -3
- package/dist/learn-cloud-plugin.esm.js +24 -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"],
|
|
@@ -21504,6 +21515,7 @@ var AchievementSubjectValidator = external_exports.object({
|
|
|
21504
21515
|
term: external_exports.string().optional()
|
|
21505
21516
|
}).catchall(external_exports.any());
|
|
21506
21517
|
var UnsignedAchievementCredentialValidator = UnsignedVCValidator.extend({
|
|
21518
|
+
awardedDate: external_exports.string().optional(),
|
|
21507
21519
|
name: external_exports.string().optional(),
|
|
21508
21520
|
description: external_exports.string().optional(),
|
|
21509
21521
|
image: ImageValidator.optional(),
|
|
@@ -24338,6 +24350,17 @@ var ShareLinkPublicContentViewValidator = external_exports.object({
|
|
|
24338
24350
|
contentUrl: external_exports.string(),
|
|
24339
24351
|
receipt: external_exports.string().min(22).max(128).regex(/^[A-Za-z0-9_-]+$/)
|
|
24340
24352
|
}).strict();
|
|
24353
|
+
var SKILL_ICON_MAX_NAMES_PER_REQUEST = 100;
|
|
24354
|
+
var SKILL_ICON_MAX_CHARACTERS_PER_REQUEST = 2500;
|
|
24355
|
+
var SkillIconNamesValidator = external_exports.array(external_exports.string().nonempty()).min(1).max(SKILL_ICON_MAX_NAMES_PER_REQUEST, {
|
|
24356
|
+
message: `A maximum of ${SKILL_ICON_MAX_NAMES_PER_REQUEST} skill names can be sent per request`
|
|
24357
|
+
}).refine(
|
|
24358
|
+
(names) => names.reduce((total, name) => total + name.length, 0) <= SKILL_ICON_MAX_CHARACTERS_PER_REQUEST,
|
|
24359
|
+
{
|
|
24360
|
+
message: `Skill names may total at most ${SKILL_ICON_MAX_CHARACTERS_PER_REQUEST} characters per request`
|
|
24361
|
+
}
|
|
24362
|
+
);
|
|
24363
|
+
var GenerateSkillIconsInputValidator = external_exports.object({ names: SkillIconNamesValidator });
|
|
24341
24364
|
|
|
24342
24365
|
// src/helpers.ts
|
|
24343
24366
|
var import_json_stringify_deterministic = __toESM(require_lib(), 1);
|