@mastra/schema-compat 1.3.7-alpha.0 → 1.3.8-alpha.0

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/index.js CHANGED
@@ -279,7 +279,7 @@ let customAlphabet = (alphabet, defaultSize = 21) => {
279
279
  return (size = defaultSize) => {
280
280
  let id = "";
281
281
  let i = size | 0;
282
- while (i--) id += alphabet[Math.random() * alphabet.length | 0];
282
+ while (i-- > 0) id += alphabet[Math.random() * alphabet.length | 0];
283
283
  return id;
284
284
  };
285
285
  };