@prismicio/types-internal
Advanced tools
Comparing version 2.1.0-alpha.0 to 2.1.0-alpha.1
@@ -65,3 +65,8 @@ "use strict"; | ||
const slugs = data["slugs_INTERNAL"] || []; | ||
const uid = data["uid"]; | ||
const uid = (() => { | ||
const rawUID = data["uid"]; | ||
if ((0, fields_1.isUIDContent)(rawUID)) | ||
return rawUID.value; | ||
return; | ||
})(); | ||
return { | ||
@@ -68,0 +73,0 @@ widgets, |
{ | ||
"name": "@prismicio/types-internal", | ||
"version": "2.1.0-alpha.0", | ||
"version": "2.1.0-alpha.1", | ||
"description": "Prismic types for Custom Types and Prismic Data", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -7,3 +7,3 @@ import { either } from "fp-ts" | ||
import { WidgetKey } from "../common" | ||
import { WidgetContent, WidgetLegacy } from "./fields" | ||
import { isUIDContent, WidgetContent, WidgetLegacy } from "./fields" | ||
import { | ||
@@ -101,3 +101,7 @@ defaultCtx, | ||
const slugs = (data["slugs_INTERNAL"] as string[]) || [] | ||
const uid = data["uid"] as string | undefined | ||
const uid = (() => { | ||
const rawUID = data["uid"] | ||
if (isUIDContent(rawUID)) return rawUID.value | ||
return | ||
})() | ||
@@ -104,0 +108,0 @@ return { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2404743
290
57547