schemaglobin
Advanced tools
Comparing version 4.0.3 to 4.0.4
@@ -121,3 +121,3 @@ "use strict"; | ||
exports.number = Object.assign((options = {}) => new NumberSchema(options), { | ||
required: new NumberSchema({ required: true }), | ||
required: new NumberSchema({ required: true, value: 0 }), | ||
optional: new NumberSchema({ required: false }), | ||
@@ -124,0 +124,0 @@ // Note: Timestamp is limited to four-digit years: 0000–9999 |
{ | ||
"name": "schemaglobin", | ||
"description": "Validate user-entered data.", | ||
"version": "4.0.3", | ||
"version": "4.0.4", | ||
"repository": "https://github.com/dhoulb/schemaglobin", | ||
@@ -6,0 +6,0 @@ "author": "Dave Houlbrooke <dave@shax.com>", |
@@ -166,3 +166,3 @@ import type { Schema, SchemaOptions } from "../Schema"; | ||
} = Object.assign(<T extends number, R extends boolean = false>(options: NumberOptions<T, R> = {}): NumberSchema<T, R> => new NumberSchema(options), { | ||
required: new NumberSchema({ required: true }), | ||
required: new NumberSchema({ required: true, value: 0 }), | ||
optional: new NumberSchema({ required: false }), | ||
@@ -169,0 +169,0 @@ // Note: Timestamp is limited to four-digit years: 0000–9999 |
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
230082