Comparing version 1.0.7 to 1.0.8
@@ -1,1 +0,1 @@ | ||
export { default } from './jetPaths'; | ||
export { default } from './setupPaths'; |
@@ -1,1 +0,1 @@ | ||
export { default } from './jetPaths'; | ||
export { default } from './setupPaths'; |
const DEFAULT_BASE_KEY = 'Base'; | ||
function jetPaths(pathObj, baseKey) { | ||
return jetPathsHelper(pathObj, (baseKey !== null && baseKey !== void 0 ? baseKey : DEFAULT_BASE_KEY), ''); | ||
function setupPaths(pathObj, baseKey) { | ||
return setupPathsHelper(pathObj, (baseKey !== null && baseKey !== void 0 ? baseKey : DEFAULT_BASE_KEY), ''); | ||
} | ||
function jetPathsHelper(parentObj, baseKey, baseUrl) { | ||
function setupPathsHelper(parentObj, baseKey, baseUrl) { | ||
const url = (baseUrl + parentObj[baseKey]), keys = Object.keys(parentObj), retVal = { [baseKey]: url }; | ||
@@ -13,3 +13,3 @@ for (const key of keys) { | ||
else if (typeof pval === 'object') { | ||
retVal[key] = jetPathsHelper(pval, baseKey, url); | ||
retVal[key] = setupPathsHelper(pval, baseKey, url); | ||
} | ||
@@ -20,3 +20,3 @@ } | ||
export { jetPaths as default }; | ||
export { setupPaths as default }; | ||
//# sourceMappingURL=index.js.map |
@@ -1,1 +0,1 @@ | ||
export { default } from './jetPaths'; | ||
export { default } from './setupPaths'; |
{ | ||
"name": "jet-paths", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Preprend strings in an object with the value from a base-key.", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
10266