@volvo-cars/ced-os-react-components
Advanced tools
Comparing version 0.1.9 to 0.1.10
@@ -89,7 +89,2 @@ var __create = Object.create; | ||
}; | ||
var cdnImageUrl = (str) => { | ||
if (!str) | ||
return str; | ||
return str.replace(/{{\|DCSBlobStorageUrl\|}}\\/g, `${process.env.AKAMAI_ASSETS_ROOT || "https://assets.volvocars.com"}/images/support/`).replace(/vccdcsassets\.blob\.core\.windows\.net\/images\//g, "assets.volvocars.com/dcs/"); | ||
}; | ||
@@ -127,3 +122,2 @@ // src/render/createRenderer.js | ||
var getComponentConfig = (componentMappings, data) => { | ||
var _a, _b; | ||
if (!data) | ||
@@ -144,8 +138,2 @@ return null; | ||
const props2 = {...config.props, ...dataAttrs}; | ||
if ((_a = config == null ? void 0 : config.props) == null ? void 0 : _a.src) { | ||
props2.src = cdnImageUrl(config.props.src); | ||
} | ||
if ((_b = config == null ? void 0 : config.props) == null ? void 0 : _b.poster) { | ||
props2.poster = cdnImageUrl(config.props.poster); | ||
} | ||
return { | ||
@@ -152,0 +140,0 @@ type, |
@@ -13,7 +13,2 @@ // src/render/createRenderer.js | ||
}; | ||
var cdnImageUrl = (str) => { | ||
if (!str) | ||
return str; | ||
return str.replace(/{{\|DCSBlobStorageUrl\|}}\\/g, `${process.env.AKAMAI_ASSETS_ROOT || "https://assets.volvocars.com"}/images/support/`).replace(/vccdcsassets\.blob\.core\.windows\.net\/images\//g, "assets.volvocars.com/dcs/"); | ||
}; | ||
@@ -51,3 +46,2 @@ // src/render/createRenderer.js | ||
var getComponentConfig = (componentMappings, data) => { | ||
var _a, _b; | ||
if (!data) | ||
@@ -68,8 +62,2 @@ return null; | ||
const props2 = {...config.props, ...dataAttrs}; | ||
if ((_a = config == null ? void 0 : config.props) == null ? void 0 : _a.src) { | ||
props2.src = cdnImageUrl(config.props.src); | ||
} | ||
if ((_b = config == null ? void 0 : config.props) == null ? void 0 : _b.poster) { | ||
props2.poster = cdnImageUrl(config.props.poster); | ||
} | ||
return { | ||
@@ -76,0 +64,0 @@ type, |
{ | ||
"name": "@volvo-cars/ced-os-react-components", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"description": "Set of components for developing UIs in the onboarding and support apps", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
0
85001
2506