@contrail/types
Advanced tools
Comparing version 3.0.69 to 3.0.70
@@ -9,7 +9,11 @@ "use strict"; | ||
let display = ''; | ||
if (Array.isArray(object.sizes)) { | ||
if (Array.isArray(object.sizes) && object.sizes.length > 0) { | ||
display = object.sizes?.join(' | '); | ||
} | ||
else { | ||
Object.keys(object.sizes).forEach(size2 => { | ||
const keys = Object.keys(object.sizes); | ||
if (!keys || keys.length === 0) { | ||
return display; | ||
} | ||
keys.forEach(size2 => { | ||
object.sizes[size2]?.forEach(size1 => { | ||
@@ -16,0 +20,0 @@ display += ((display !== '' ? ' | ' : '') + size2 + ' x ' + size1); |
{ | ||
"name": "@contrail/types", | ||
"version": "3.0.69", | ||
"version": "3.0.70", | ||
"description": "Types Utility module", | ||
@@ -5,0 +5,0 @@ "main": "lib/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
79611
1879