raml-sanitize
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "raml-sanitize", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Sanitization of RAML parameters into strict values", | ||
@@ -5,0 +5,0 @@ "main": "raml-sanitize.js", |
@@ -8,3 +8,3 @@ /** | ||
var toBoolean = function (value) { | ||
return value !== false && value !== '' && value !== 'false' && value !== '0'; | ||
return [0, false, '', '0', 'false'].indexOf(value) === -1; | ||
}; | ||
@@ -11,0 +11,0 @@ |
@@ -67,3 +67,3 @@ # RAML Sanitize | ||
Only `false`, `"false"`, `"0"` and `""` will return `false`. Everything else is considered `true`. | ||
Only `false`, `0`, `"false"`, `"0"` and `""` will return `false`. Everything else is considered `true`. | ||
@@ -70,0 +70,0 @@ #### Dates |
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
16090