@timeback/powerpath 0.2.2 → 0.2.3-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
@@ -101,6 +101,13 @@ var StringTimebackGrade = z.string().transform((value, ctx) => {
101
101
  return z.NEVER;
102
102
  }
103
103
  const stripped = raw.replace(/\bgrade\b/g, "").replace(/(\d+)(st|nd|rd|th)\b/g, "$1").trim();
104
+ if (stripped === "") {
105
+ ctx.addIssue({
106
+ code: "custom",
107
+ message: "must be a valid Timeback grade"
108
+ });
109
+ return z.NEVER;
110
+ }
104
111
  if (stripped === "pre-k" || stripped === "pk") {
105
112
  return -1;
106
113
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@timeback/powerpath",
3
- "version": "0.2.2",
3
+ "version": "0.2.3-beta.20260401223329",
4
4
  "description": "PowerPath client SDK for Timeback",
5
5
  "type": "module",
6
6
  "exports": {