buoy-config
Advanced tools
Comparing version 4.0.18 to 4.0.19-alpha.0
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.getAbsoluteUrl = exports.check_cta_url = exports.getConfig = exports.getBaseUrl = exports.images = exports.navConfig = exports.footerConfig = exports.gdprConfig = undefined; | ||
exports.buildLegal = exports.getAbsoluteUrl = exports.check_cta_url = exports.getConfig = exports.getBaseUrl = exports.images = exports.navConfig = exports.footerConfig = exports.gdprConfig = undefined; | ||
@@ -32,2 +32,3 @@ var _gdpr = require("./configurations/gdpr.json"); | ||
exports.check_cta_url = _utils.check_cta_url; | ||
exports.getAbsoluteUrl = _utils.getAbsoluteUrl; | ||
exports.getAbsoluteUrl = _utils.getAbsoluteUrl; | ||
exports.buildLegal = _utils.buildLegal; |
@@ -216,2 +216,13 @@ 'use strict'; | ||
return link; | ||
}; | ||
var buildLegal = function buildLegal(legalItems) { | ||
var legal = []; | ||
for (var i = 0; i < legalItems.length; i++) { | ||
var link = replaceLinkReference(legalItems[i]); | ||
link.href = getAbsoluteUrl(link.href, config.baseUrl); | ||
legal.push(link); | ||
} | ||
return legal; | ||
}; |
{ | ||
"name": "buoy-config", | ||
"version": "4.0.18", | ||
"version": "4.0.19-alpha.0", | ||
"description": "Common configuration files for Buoy clients", | ||
@@ -12,3 +12,4 @@ "main": "dist/index.js", | ||
"fs": "^0.0.1-security" | ||
} | ||
}, | ||
"gitHead": "ff6b25c561f851d2ba568ceb5f15f0cffdeee8f2" | ||
} |
import gdprConfig from "./configurations/gdpr.json" | ||
import navConfig from "./configurations/nav.json" | ||
import footerConfig from "./configurations/footer.json" | ||
import { images, getBaseUrl, getConfig, check_cta_url, getAbsoluteUrl } from "./utils"; | ||
import { images, getBaseUrl, getConfig, check_cta_url, getAbsoluteUrl, buildLegal } from "./utils"; | ||
@@ -14,3 +14,4 @@ export { | ||
check_cta_url, | ||
getAbsoluteUrl | ||
getAbsoluteUrl, | ||
buildLegal | ||
} |
@@ -187,1 +187,12 @@ import navConfig from "./configurations/nav.json" | ||
} | ||
const buildLegal = (legalItems) => { | ||
let legal = [] | ||
for (let i = 0; i < legalItems.length; i++) { | ||
let link = replaceLinkReference(legalItems[i]) | ||
link.href = getAbsoluteUrl(link.href, config.baseUrl) | ||
legal.push(link) | ||
} | ||
return legal | ||
} |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
375926
41
1380
3