svelte-cartesian
Advanced tools
Comparing version
@@ -48,2 +48,3 @@ /** | ||
) { | ||
const shortValues = ['string', 'number', 'boolean'] | ||
const label = [] | ||
@@ -54,7 +55,7 @@ const shortVerbosity = verbosity === 'short' || verbosity === true | ||
for (const [key, value] of Object.entries(innerProps)) { | ||
const isShortValue = shortValues.includes(typeof value) | ||
if ( | ||
shortVerbosity | ||
&& typeof value !== 'string' | ||
&& typeof value !== 'number' | ||
&& typeof value !== 'boolean' | ||
&& !isShortValue | ||
) { | ||
@@ -70,4 +71,3 @@ // Skip symbols and objects for 'short' labels | ||
verbosity === 'long' | ||
&& typeof value !== 'string' | ||
&& typeof value !== 'number' | ||
&& !isShortValue | ||
) { | ||
@@ -74,0 +74,0 @@ refinedValue = typeof value |
{ | ||
"name": "svelte-cartesian", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A single component that helps render prop combinations (the \"Cartesian Product\") for visual regression testing.", | ||
@@ -15,3 +15,4 @@ "type": "module", | ||
"check": "svelte-check", | ||
"test": "vitest" | ||
"test": "vitest", | ||
"start-4": "cd e2e/svelte-4 && npm i && npm run dev" | ||
}, | ||
@@ -18,0 +19,0 @@ "author": "Enrico Sacchetti <enrico@theetrain.ca>", |
24727
0.17%139
-0.71%