@86d-app/reviews 0.0.6 → 0.0.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@86d-app/reviews",
3
- "version": "0.0.6",
3
+ "version": "0.0.14",
4
4
  "description": "Product reviews and ratings module for 86d commerce platform",
5
5
  "keywords": [
6
6
  "commerce",
@@ -5,7 +5,7 @@ export const markHelpful = createStoreEndpoint(
5
5
  "/reviews/:id/helpful",
6
6
  {
7
7
  method: "POST",
8
- params: z.object({ id: z.string() }),
8
+ params: z.object({ id: z.string().max(128) }),
9
9
  },
10
10
  async (ctx) => {
11
11
  const controller = ctx.context.controllers.reviews as ReviewController;
@@ -5,7 +5,7 @@ export const reportReview = createStoreEndpoint(
5
5
  "/reviews/:id/report",
6
6
  {
7
7
  method: "POST",
8
- params: z.object({ id: z.string() }),
8
+ params: z.object({ id: z.string().max(128) }),
9
9
  body: z.object({
10
10
  reason: z.enum([
11
11
  "spam",