@beyonk/content-delivery
Advanced tools
Comparing version 5.0.2 to 5.0.3
@@ -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" | ||
} | ||
} |
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
Yes
10276
2
5
237