af-consul
Advanced tools
Comparing version 2.0.16 to 2.0.17
@@ -60,4 +60,3 @@ "use strict"; | ||
const getConfigHash = (options) => { | ||
const opt = _.pick(options, ['config', 'projectId']); | ||
opt.config = _.pick(opt.config, ['consul', 'webServer']); | ||
const opt = _.pick(options.config, ['consul', 'webServer']); | ||
const hash = getHash(opt); | ||
@@ -64,0 +63,0 @@ options.hash = hash; |
@@ -57,4 +57,3 @@ import * as _ from 'lodash'; | ||
export const getConfigHash = (options) => { | ||
const opt = _.pick(options, ['config', 'projectId']); | ||
opt.config = _.pick(opt.config, ['consul', 'webServer']); | ||
const opt = _.pick(options.config, ['consul', 'webServer']); | ||
const hash = getHash(opt); | ||
@@ -61,0 +60,0 @@ options.hash = hash; |
{ | ||
"name": "af-consul", | ||
"version": "2.0.16", | ||
"version": "2.0.17", | ||
"description": "A highly specialized function library", | ||
@@ -5,0 +5,0 @@ "main": "./dist/cjs/src/index.js", |
@@ -50,4 +50,3 @@ import * as _ from 'lodash'; | ||
export const getConfigHash = (options: ICLOptions): string => { | ||
const opt = _.pick(options, ['config', 'projectId']); | ||
opt.config = _.pick(opt.config, ['consul', 'webServer']) as IAFConsulConfig; | ||
const opt = _.pick(options.config, ['consul', 'webServer']) as IAFConsulConfig; | ||
const hash = getHash(opt); | ||
@@ -54,0 +53,0 @@ options.hash = hash; |
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
279352
4133