alaska-field-number
Advanced tools
Comparing version 0.1.0 to 0.2.0
22
index.js
@@ -33,9 +33,19 @@ /** | ||
let options = { | ||
type: Number, | ||
min: field.min, | ||
max: field.max | ||
type: Number | ||
}; | ||
if (field.default !== undefined) { | ||
options.default = field.default; | ||
} | ||
[ | ||
'get', | ||
'set', | ||
'default', | ||
'index', | ||
'required', | ||
'select', | ||
'min', | ||
'max' | ||
].forEach(function (key) { | ||
if (field[key] !== undefined) { | ||
options[key] = field[key]; | ||
} | ||
}); | ||
schema.path(field.path, options); | ||
@@ -42,0 +52,0 @@ |
{ | ||
"name": "alaska-field-number", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "Alaska number field", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
19088
286