@briza/wegood
Advanced tools
Comparing version 1.0.1 to 1.0.2
# wegood changelog | ||
## 1.0.2 | ||
* Add support for isolated start and end dates. | ||
## 1.0.1 | ||
@@ -4,0 +8,0 @@ |
@@ -182,3 +182,3 @@ function _typeof(obj) { | ||
return function () { | ||
return false; | ||
return true; | ||
}; | ||
@@ -216,3 +216,8 @@ } // Boundary offset in days | ||
} else if (['-1', '1'].includes(filter)) { | ||
offset = Infinity * parseInt(filter); // Illegal offset | ||
offset = Infinity * parseInt(filter); // Flip of the offset for flipped boundaries | ||
if (dir === BoundaryType.Start && offset > 0 || dir === BoundaryType.End && offset < 0) { | ||
offset *= -1; | ||
} // Illegal offset | ||
} else if (filter !== '0') { | ||
@@ -219,0 +224,0 @@ throw new Error("illegal \"".concat(filter, "\" date boundary")); |
@@ -186,3 +186,3 @@ 'use strict'; | ||
return function () { | ||
return false; | ||
return true; | ||
}; | ||
@@ -220,3 +220,8 @@ } // Boundary offset in days | ||
} else if (['-1', '1'].includes(filter)) { | ||
offset = Infinity * parseInt(filter); // Illegal offset | ||
offset = Infinity * parseInt(filter); // Flip of the offset for flipped boundaries | ||
if (dir === BoundaryType.Start && offset > 0 || dir === BoundaryType.End && offset < 0) { | ||
offset *= -1; | ||
} // Illegal offset | ||
} else if (filter !== '0') { | ||
@@ -223,0 +228,0 @@ throw new Error("illegal \"".concat(filter, "\" date boundary")); |
{ | ||
"name": "@briza/wegood", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Tiny validation library, so wegood with data.", | ||
@@ -5,0 +5,0 @@ "main": "lib/wegood.js", |
# wegood | ||
Tiny validation library, so wegood with data. | ||
> Revision: October 25, 2019. | ||
> Revision: January 16, 2020. | ||
@@ -6,0 +6,0 @@ ## About |
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
65950
1489