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

@contrail/types

Package Overview
Dependencies
Maintainers
12
Versions
179
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contrail/types - npm Package Compare versions

Comparing version 3.0.69 to 3.0.70

8

lib/formatter/formatSizeRange.js

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

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