@jlandis1/guessphrase-shared 1.0.19 → 1.0.20

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.
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { username } from './auth.js';
3
- const phrase_id = z.number();
3
+ const phrase_id = z.coerce.number();
4
4
  const phrase = z.string().min(1, 'Phrase is required').max(255, 'Phrase cannot be more than 255 characters');
5
5
  const hint = z.string().max(255, 'Hint cannot be more than 255 characters').nullable();
6
6
  const date = z.string().regex(/^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jlandis1/guessphrase-shared",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "type": "module",
5
5
  "description": "Shared library between Frontend and Backend for GuessPhrase",
6
6
  "main": "dist/index.js",