@prismicio/types-internal
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -29,3 +29,3 @@ "use strict"; | ||
const widgetKeyRegex = new RegExp("^[^<>]+$"); | ||
exports.WidgetKey = (0, function_1.refineType)(t.string, "WidgetKey", (s) => widgetKeyRegex.test(s)); | ||
exports.WidgetKey = (0, function_1.refineType)(t.string, "WidgetKey", (s) => s.length === 0 || widgetKeyRegex.test(s)); | ||
exports.Widget = { | ||
@@ -32,0 +32,0 @@ fromJson(widgetKey, widgetValue, widgetTypes, widgetPositions) { |
{ | ||
"name": "@prismicio/types-internal", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Prismic types for Custom Types and Prismic Data", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -35,3 +35,3 @@ import * as t from "io-ts" | ||
export const WidgetKey = refineType(t.string, "WidgetKey", (s: string) => | ||
widgetKeyRegex.test(s), | ||
s.length === 0 || widgetKeyRegex.test(s), | ||
) | ||
@@ -38,0 +38,0 @@ |
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
823170