Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

idea-toolbox

Package Overview
Dependencies
Maintainers
2
Versions
377
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

idea-toolbox - npm Package Compare versions

Comparing version 6.5.11 to 6.5.12

14

dist/src/address.model.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc