@beyonk/content-delivery
Advanced tools
Comparing version 5.1.1 to 5.2.0
@@ -1,8 +0,16 @@ | ||
function generateSocialImageUrl (cdnBaseUrl, source, id) { | ||
return [ | ||
cdnBaseUrl, | ||
'beyonk', | ||
source, | ||
id | ||
].join('/') | ||
function generateSocialImageUrl (cdnBaseUrl, environmentName, type, id, isPortal = false) { | ||
const base = [ cdnBaseUrl, 's', 'beyonk' ] | ||
const env = environmentName === 'prod' ? 'p' : 'q' | ||
base.push(env) | ||
base.push(type) | ||
base.push(id) | ||
if (isPortal) { | ||
base.push('?portal=true') | ||
} | ||
const url = base.join('/') | ||
return url | ||
} | ||
@@ -9,0 +17,0 @@ |
{ | ||
"name": "@beyonk/content-delivery", | ||
"version": "5.1.1", | ||
"version": "5.2.0", | ||
"description": "Beyonk Content Delivery Utils", | ||
@@ -5,0 +5,0 @@ "author": "Antony Jones <aj@desirableobjects.co.uk>", |
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
11203
263