@ts-ghost/core-api
Advanced tools
Comparing version 1.1.4 to 1.1.5
@@ -23,8 +23,9 @@ 'use strict'; | ||
slug: zod.z.string().optional(), | ||
id: zod.z.string().optional() | ||
id: zod.z.string().optional(), | ||
email: zod.z.string().email().optional() | ||
}).refine( | ||
(data) => { | ||
if (data.slug === void 0 && data.id === void 0) { | ||
if (data.slug === void 0 && data.id === void 0 && data.email === void 0) { | ||
return { | ||
message: "Either slug or id must be provided", | ||
message: "Either slug, id or email must be provided", | ||
path: [] | ||
@@ -36,3 +37,3 @@ }; | ||
{ | ||
message: "Either slug or id must be provided", | ||
message: "Either slug, id or email must be provided", | ||
path: [] | ||
@@ -39,0 +40,0 @@ } |
@@ -23,8 +23,9 @@ 'use strict'; | ||
slug: zod.z.string().optional(), | ||
id: zod.z.string().optional() | ||
id: zod.z.string().optional(), | ||
email: zod.z.string().email().optional() | ||
}).refine( | ||
(data) => { | ||
if (data.slug === void 0 && data.id === void 0) { | ||
if (data.slug === void 0 && data.id === void 0 && data.email === void 0) { | ||
return { | ||
message: "Either slug or id must be provided", | ||
message: "Either slug, id or email must be provided", | ||
path: [] | ||
@@ -36,3 +37,3 @@ }; | ||
{ | ||
message: "Either slug or id must be provided", | ||
message: "Either slug, id or email must be provided", | ||
path: [] | ||
@@ -39,0 +40,0 @@ } |
@@ -19,3 +19,3 @@ { | ||
}, | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"main": "./dist/index.js", | ||
@@ -22,0 +22,0 @@ "module": "./dist/index.mjs", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
407212
6405