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

@beyonk/content-delivery

Package Overview
Dependencies
Maintainers
5
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@beyonk/content-delivery - npm Package Compare versions

Comparing version 5.1.1 to 5.2.0

22

lib/generate-social-image.js

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

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