@bluecadet/launchpad-content
Advanced tools
Comparing version 2.0.0-next.7 to 2.0.0-next.8
@@ -19,3 +19,11 @@ import { z } from "zod"; | ||
}), | ||
]); | ||
], { | ||
errorMap: (error) => { | ||
if (error.code === "invalid_union") | ||
return { | ||
message: "You must provide either a `deliveryToken` or a `previewToken`.", | ||
}; | ||
return { message: error.message ?? "" }; | ||
}, | ||
}); | ||
const contentfulSourceSchema = z | ||
@@ -22,0 +30,0 @@ .object({ |
@@ -17,3 +17,11 @@ import ky from "ky"; | ||
}), | ||
]); | ||
], { | ||
errorMap: (error) => { | ||
if (error.code === "invalid_union") | ||
return { | ||
message: "Either `identifier` and `password` OR a `token` must be provided.", | ||
}; | ||
return { message: error.message ?? "" }; | ||
}, | ||
}); | ||
const strapiSourceSchema = z | ||
@@ -20,0 +28,0 @@ .object({ |
{ | ||
"name": "@bluecadet/launchpad-content", | ||
"version": "2.0.0-next.7", | ||
"version": "2.0.0-next.8", | ||
"description": "Content syncing pipeline for various sources", | ||
@@ -5,0 +5,0 @@ "type": "module", |
176410
3920