@cord-sdk/components
Advanced tools
Comparing version 1.27.2 to 1.28.0
@@ -241,4 +241,4 @@ 'use strict'; | ||
number: (value) => (value ? parseInt(value) : undefined), | ||
string: (value) => value !== null && value !== void 0 ? value : undefined, | ||
array: (value) => value === null || value === void 0 ? void 0 : value.split(',').filter((x) => x.length > 0), | ||
string: (value) => value ?? undefined, | ||
array: (value) => value?.split(',').filter((x) => x.length > 0), | ||
'badge-style': enumAttributeConverter([ | ||
@@ -258,6 +258,6 @@ 'none', | ||
json: (value) => value !== undefined ? JSON.stringify(value) : undefined, | ||
boolean: (value) => value === null || value === void 0 ? void 0 : value.toString(), | ||
number: (value) => value === null || value === void 0 ? void 0 : value.toString(), | ||
boolean: (value) => value?.toString(), | ||
number: (value) => value?.toString(), | ||
string: (value) => (value === undefined ? undefined : value || ''), | ||
array: (value) => value === null || value === void 0 ? void 0 : value.join(','), | ||
array: (value) => value?.join(','), | ||
'badge-style': (value) => (value === undefined ? undefined : value || ''), | ||
@@ -264,0 +264,0 @@ orientation: (value) => (value === undefined ? undefined : value || ''), |
@@ -237,4 +237,4 @@ const componentNames = { | ||
number: (value) => (value ? parseInt(value) : undefined), | ||
string: (value) => value !== null && value !== void 0 ? value : undefined, | ||
array: (value) => value === null || value === void 0 ? void 0 : value.split(',').filter((x) => x.length > 0), | ||
string: (value) => value ?? undefined, | ||
array: (value) => value?.split(',').filter((x) => x.length > 0), | ||
'badge-style': enumAttributeConverter([ | ||
@@ -254,6 +254,6 @@ 'none', | ||
json: (value) => value !== undefined ? JSON.stringify(value) : undefined, | ||
boolean: (value) => value === null || value === void 0 ? void 0 : value.toString(), | ||
number: (value) => value === null || value === void 0 ? void 0 : value.toString(), | ||
boolean: (value) => value?.toString(), | ||
number: (value) => value?.toString(), | ||
string: (value) => (value === undefined ? undefined : value || ''), | ||
array: (value) => value === null || value === void 0 ? void 0 : value.join(','), | ||
array: (value) => value?.join(','), | ||
'badge-style': (value) => (value === undefined ? undefined : value || ''), | ||
@@ -260,0 +260,0 @@ orientation: (value) => (value === undefined ? undefined : value || ''), |
{ | ||
"name": "@cord-sdk/components", | ||
"description": "Structured information about the Cord web components", | ||
"version": "1.27.2", | ||
"version": "1.28.0", | ||
"homepage": "https://docs.cord.com/", | ||
@@ -22,3 +22,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"@cord-sdk/types": "1.27.2" | ||
"@cord-sdk/types": "1.28.0" | ||
}, | ||
@@ -25,0 +25,0 @@ "devDependencies": { |
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
30993
+ Added@cord-sdk/types@1.28.0(transitive)
- Removed@cord-sdk/types@1.27.2(transitive)
Updated@cord-sdk/types@1.28.0