@effect/schema
Advanced tools
Comparing version 0.29.0 to 0.29.1
{ | ||
"name": "@effect/schema", | ||
"version": "0.29.0", | ||
"version": "0.29.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -1704,4 +1704,2 @@ "use strict"; | ||
const TrimmedTypeId = "@effect/schema/TrimmedTypeId"; | ||
exports.TrimmedTypeId = TrimmedTypeId; | ||
const trimmedRegex = /^\S.*\S$|^\S$|^$/; | ||
/** | ||
@@ -1716,9 +1714,6 @@ * Verifies that a string contains no leading or trailing whitespaces. | ||
*/ | ||
const trimmed = options => self => self.pipe(filter(a => trimmedRegex.test(a), { | ||
exports.TrimmedTypeId = TrimmedTypeId; | ||
const trimmed = options => self => self.pipe(filter(a => a === a.trim(), { | ||
typeId: TrimmedTypeId, | ||
description: "a string with no leading or trailing whitespace", | ||
jsonSchema: { | ||
type: "string", | ||
pattern: trimmedRegex.source | ||
}, | ||
...options | ||
@@ -1725,0 +1720,0 @@ })); |
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
918588
17438