buoy-config
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -48,2 +48,3 @@ 'use strict'; | ||
var baseUrl = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined; | ||
var actions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; | ||
@@ -68,3 +69,3 @@ var config = _nav2.default.brands.default; | ||
config = replaceConfigUrls(config, brand, baseUrl); | ||
config = addLinkActions(config); | ||
config = addLinkActions(config, actions); | ||
@@ -71,0 +72,0 @@ return config; |
{ | ||
"name": "buoy-config", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Common configuration files for Buoy clients", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -30,3 +30,3 @@ import navConfig from "./configurations/nav.json" | ||
export const getConfig = (brand = undefined, baseUrl = undefined) => { | ||
export const getConfig = (brand = undefined, baseUrl = undefined, actions = {}) => { | ||
let config = navConfig.brands.default | ||
@@ -58,3 +58,3 @@ console.log("getConfig: " + brand) | ||
config = replaceConfigUrls(config, brand, baseUrl) | ||
config = addLinkActions(config) | ||
config = addLinkActions(config, actions) | ||
@@ -61,0 +61,0 @@ return config |
218548
1063