cms-client-dane
Advanced tools
Comparing version 0.0.16 to 0.0.17
@@ -177,3 +177,5 @@ "use strict"; | ||
return; | ||
schema2.parse(event.data); | ||
const { success } = schema2.safeParse(event.data); | ||
if (!success) | ||
return; | ||
return func2(event); | ||
@@ -193,8 +195,19 @@ } | ||
getMessage, | ||
import_zod.z.object({ | ||
_action: import_zod.z.enum(["DRAGGING", "DROPPED"]), | ||
x: import_zod.z.number(), | ||
y: import_zod.z.number(), | ||
component: import_zod.z.any() | ||
}) | ||
import_zod.z.union([ | ||
import_zod.z.object({ | ||
_action: import_zod.z.literal("DRAGGING"), | ||
x: import_zod.z.number(), | ||
y: import_zod.z.number() | ||
}), | ||
import_zod.z.object({ | ||
_action: import_zod.z.literal("DROPPED"), | ||
x: import_zod.z.number(), | ||
y: import_zod.z.number(), | ||
component: import_zod.z.object({ | ||
id: import_zod.z.string().cuid(), | ||
component: import_zod.z.string(), | ||
data: import_zod.z.any() | ||
}) | ||
}) | ||
]) | ||
); | ||
@@ -201,0 +214,0 @@ function getMessage(event) { |
{ | ||
"name": "cms-client-dane", | ||
"version": "0.0.16", | ||
"version": "0.0.17", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "private": false, |
Sorry, the diff of this file is not supported yet
50854
1444