@timeback/caliper 0.2.1 → 0.2.2-beta.20260401223329

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -337,6 +337,13 @@ var StringTimebackGrade = z.string().transform((value, ctx) => {
337
337
  return z.NEVER;
338
338
  }
339
339
  const stripped = raw.replace(/\bgrade\b/g, "").replace(/(\d+)(st|nd|rd|th)\b/g, "$1").trim();
340
+ if (stripped === "") {
341
+ ctx.addIssue({
342
+ code: "custom",
343
+ message: "must be a valid Timeback grade"
344
+ });
345
+ return z.NEVER;
346
+ }
340
347
  if (stripped === "pre-k" || stripped === "pk") {
341
348
  return -1;
342
349
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@timeback/caliper",
3
- "version": "0.2.1",
3
+ "version": "0.2.2-beta.20260401223329",
4
4
  "description": "Caliper Analytics client SDK for Timeback",
5
5
  "type": "module",
6
6
  "exports": {