idea-toolbox
Advanced tools
Comparing version 6.5.11 to 6.5.12
@@ -52,5 +52,5 @@ "use strict"; | ||
let res = ''; | ||
if (this.address?.trim() && display.address) | ||
if (this.address && this.address.trim() && display.address) | ||
res = res.concat(this.address.trim()); | ||
if (this.address2?.trim() && display.address2) { | ||
if (this.address2 && this.address2.trim() && display.address2) { | ||
if (res.length) | ||
@@ -61,3 +61,3 @@ res = res.concat(` (${this.address2.trim()})`); | ||
} | ||
if (this.city?.trim() && display.city) { | ||
if (this.city && this.city.trim() && display.city) { | ||
if (res.length) | ||
@@ -68,4 +68,4 @@ res = res.concat(`, ${this.city.trim()}`); | ||
} | ||
if (this.postcode?.trim() && display.postcode) { | ||
if (this.city?.trim() && display.city) | ||
if (this.postcode && this.postcode.trim() && display.postcode) { | ||
if (this.city && this.city.trim() && display.city) | ||
res = res.concat(` ${this.postcode.trim()}`); | ||
@@ -77,3 +77,3 @@ else if (res.length) | ||
} | ||
if (this.province?.trim() && display.province) { | ||
if (this.province && this.province.trim() && display.province) { | ||
if (res.length) | ||
@@ -84,3 +84,3 @@ res = res.concat(` (${this.province.trim()})`); | ||
} | ||
if (this.country?.trim() && display.country) { | ||
if (this.country && this.country.trim() && display.country) { | ||
if (res.length) | ||
@@ -87,0 +87,0 @@ res = res.concat(` - ${this.country.trim()}`); |
@@ -116,3 +116,3 @@ "use strict"; | ||
case 'date': | ||
return !(0, isDate_1.default)(new Date(field)?.toISOString().slice(0, 10)); | ||
return !(0, isDate_1.default)(new Date(field).toISOString().slice(0, 10)); | ||
case 'email': | ||
@@ -119,0 +119,0 @@ return !(0, isEmail_1.default)(field); |
{ | ||
"name": "idea-toolbox", | ||
"version": "6.5.11", | ||
"version": "6.5.12", | ||
"description": "IDEA's utility functions", | ||
@@ -5,0 +5,0 @@ "main": "dist/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
240677