@dangreaves/groq-query-builder
Advanced tools
Comparing version 0.19.2 to 0.19.3
@@ -284,3 +284,3 @@ // src/schemas/Collection.ts | ||
// src/schemas/TypedUnion.ts | ||
import { Type as Type5 } from "@sinclair/typebox"; | ||
import { Type as Type5, TypeGuard as TypeGuard6 } from "@sinclair/typebox"; | ||
var DefaultProjection = Projection({ | ||
@@ -293,5 +293,6 @@ _rawType: Raw("_type", Type5.String()), | ||
(acc, schema) => { | ||
const innerSchema = TypeGuard6.IsIntersect(schema) ? schema.allOf[0] : schema; | ||
return { | ||
...acc, | ||
[`_type == "${schema.properties._type.const}"`]: schema | ||
[`_type == "${innerSchema.properties._type.const}"`]: schema | ||
}; | ||
@@ -298,0 +299,0 @@ }, |
{ | ||
"name": "@dangreaves/groq-query-builder", | ||
"version": "0.19.2", | ||
"version": "0.19.3", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "author": { |
Sorry, the diff of this file is not supported yet
49271
990