@briza/wegood
Advanced tools
Comparing version 1.0.4 to 1.0.5
# wegood changelog | ||
## 1.0.5 | ||
* Bug fix: remove timezone dependency. | ||
## 1.0.4 | ||
@@ -4,0 +8,0 @@ |
@@ -202,3 +202,3 @@ function _typeof(obj) { | ||
isDateFilter = true; | ||
filter = new Date("".concat(filter, "T00:00:00+00:00")); | ||
filter = new Date("".concat(filter, "T00:00:00")); | ||
@@ -297,3 +297,3 @@ if (isNaN(filter.getTime())) { | ||
} else if (value.match(/^\d{4}-[0,1]\d-[0-3]\d$/)) { | ||
value = new Date("".concat(value, "T00:00:00+00:00")); // Invalid | ||
value = new Date("".concat(value, "T00:00:00")); // Invalid | ||
} else { | ||
@@ -300,0 +300,0 @@ console.warn("the date validation rule, invalid \"".concat(value, "\" date value")); |
@@ -206,3 +206,3 @@ 'use strict'; | ||
isDateFilter = true; | ||
filter = new Date("".concat(filter, "T00:00:00+00:00")); | ||
filter = new Date("".concat(filter, "T00:00:00")); | ||
@@ -301,3 +301,3 @@ if (isNaN(filter.getTime())) { | ||
} else if (value.match(/^\d{4}-[0,1]\d-[0-3]\d$/)) { | ||
value = new Date("".concat(value, "T00:00:00+00:00")); // Invalid | ||
value = new Date("".concat(value, "T00:00:00")); // Invalid | ||
} else { | ||
@@ -304,0 +304,0 @@ console.warn("the date validation rule, invalid \"".concat(value, "\" date value")); |
{ | ||
"name": "@briza/wegood", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Tiny validation library, so wegood with data.", | ||
@@ -44,3 +44,3 @@ "main": "lib/wegood.js", | ||
"@babel/preset-typescript": "^7.6.0", | ||
"@types/jest": "^24.0.19", | ||
"@types/jest": "^25.1.0", | ||
"@typescript-eslint/eslint-plugin": "^2.4.0", | ||
@@ -47,0 +47,0 @@ "@typescript-eslint/parser": "^2.4.0", |
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
66790