@epistemology-factory/crocks-web
Advanced tools
Comparing version 0.3.8 to 0.3.9
{ | ||
"name": "@epistemology-factory/crocks-web", | ||
"version": "0.3.8", | ||
"version": "0.3.9", | ||
"description": "Functions to help write web applications with crocks", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -14,2 +14,11 @@ "use strict"; | ||
const isBoolStringFailure = (path, value) => { | ||
return aValidationFailure( | ||
path, | ||
CONSTRAINTS.IS_BOOL_STRING, | ||
DEFAULT_MESSAGES[CONSTRAINTS.IS_BOOL_STRING], | ||
value | ||
); | ||
} | ||
const isDefinedFailure = (path) => { | ||
@@ -62,2 +71,3 @@ return aValidationFailure( | ||
aValidationFailure, | ||
isBoolStringFailure, | ||
isDefinedFailure, | ||
@@ -64,0 +74,0 @@ isIntStringFailure, |
"use strict"; | ||
const CONSTRAINTS = { | ||
IS_BOOL_STRING: "is-bool-string", | ||
IS_DEFINED: "is-defined", | ||
@@ -14,2 +15,3 @@ IS_INT_STRING: "is-int-string", | ||
const DEFAULT_MESSAGES = { | ||
[CONSTRAINTS.IS_BOOL_STRING]: "should be a boolean string", | ||
[CONSTRAINTS.IS_DEFINED]: "should not be null or undefined", | ||
@@ -16,0 +18,0 @@ [CONSTRAINTS.IS_INT_STRING]: "should be an integer string", |
"use strict"; | ||
module.exports = { | ||
...require("./boolean"), | ||
...require("./common"), | ||
@@ -5,0 +6,0 @@ ...require("./constraints"), |
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
35335
26
1000