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.0.2 to 5.0.3

2

lib/content-delivery.js

@@ -1,2 +0,2 @@

import { extension, getDeliveryType, types } from './mime-type'
import { extension, getDeliveryType, types } from './mime-type.js'

@@ -3,0 +3,0 @@ function buildUrl (cdnBaseUrl, environmentName, width, paths, deliveryType, extension = 'jpeg') {

@@ -1,5 +0,4 @@

'use strict'
import { expect } from '@hapi/code'
import { getCdnUrl, getAssetUrl } from './content-delivery.js'
const { expect } = require('@hapi/code')
describe('cdn-url', () => {

@@ -24,3 +23,2 @@ const cdnBaseUrl = 'https://test.adaptive.delivery/api/v2'

it(`generate url with size: ${size}`, () => {
const { getCdnUrl } = require('./content-delivery')
expect(

@@ -55,3 +53,2 @@ getCdnUrl(cdnBaseUrl, 'qa', descriptor, size)

it(`generate url for type ${type}`, () => {
const { getCdnUrl } = require('./content-delivery')
expect(

@@ -86,3 +83,2 @@ getCdnUrl(cdnBaseUrl, 'qa', descriptor, 'small')

it(`generate url for type ${type}`, () => {
const { getCdnUrl } = require('./content-delivery')
expect(

@@ -106,3 +102,2 @@ getCdnUrl(cdnBaseUrl, 'qa', descriptor, 'small', true)

it(`${descriptor} returns missing image url`, () => {
const { getCdnUrl } = require('./content-delivery')
expect(

@@ -129,3 +124,2 @@ getCdnUrl(cdnBaseUrl, 'qa', descriptor)

it(`generate url for a ${type}`, () => {
const { getCdnUrl } = require('./content-delivery')
expect(

@@ -157,3 +151,2 @@ getCdnUrl(cdnBaseUrl, 'qa', descriptor)

it(`generate url for type: ${type}`, () => {
const { getAssetUrl } = require('./content-delivery')
expect(

@@ -160,0 +153,0 @@ getAssetUrl('qa', Object.assign({ type }, descriptor))

{
"name": "@beyonk/content-delivery",
"version": "5.0.2",
"description": "Beyonk Content Delivery Utils",
"author": "Antony Jones <aj@desirableobjects.co.uk>",
"homepage": "https://github.com/beyonk-adventures/shared#readme",
"license": "MIT",
"main": "lib/content-delivery.js",
"directories": {
"lib": "lib"
},
"files": [
"lib"
],
"repository": {
"type": "git",
"url": "git+https://github.com/beyonk-adventures/shared.git"
},
"scripts": {
"test": "NODE_ENV=test mocha --require ../../node_modules/esm './!(node_modules)/**/**.+(spec).js'",
"build": "exit 0"
},
"bugs": {
"url": "https://github.com/beyonk-adventures/shared/issues"
}
}
"name": "@beyonk/content-delivery",
"version": "5.0.3",
"description": "Beyonk Content Delivery Utils",
"author": "Antony Jones <aj@desirableobjects.co.uk>",
"homepage": "https://github.com/beyonk-adventures/lander#readme",
"license": "MIT",
"main": "lib/content-delivery.js",
"directories": {
"lib": "lib"
},
"type": "module",
"files": [
"lib"
],
"repository": {
"type": "git",
"url": "git+https://github.com/beyonk-adventures/lander.git"
},
"bugs": {
"url": "https://github.com/beyonk-adventures/lander/issues"
},
"devDependencies": {
"@hapi/code": "^8.0.4",
"mocha": "^9.1.3"
},
"scripts": {
"test": "NODE_ENV=test mocha './!(node_modules)/**/**.+(spec).js'",
"build": "exit 0"
}
}
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