Comparing version 2.1.1 to 2.1.2
@@ -390,2 +390,3 @@ <!-- Generated by documentation.js. Update this documentation by updating the source code. --> | ||
- `options` **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** The options passed by the commander library | ||
- `Kes` **Class** the default kes class | ||
@@ -392,0 +393,0 @@ Returns **Class** Kes class |
@@ -67,3 +67,3 @@ 'use strict'; | ||
function buildCf(options, cmd) { | ||
const KesClass = utils.determineKesClass(options); | ||
const KesClass = utils.determineKesClass(options, Kes); | ||
const parentConfig = new Config(options); | ||
@@ -111,3 +111,3 @@ | ||
if (cmd) { | ||
const KesClass = utils.determineKesClass(options); | ||
const KesClass = utils.determineKesClass(options, Kes); | ||
const config = new Config(options); | ||
@@ -114,0 +114,0 @@ const kes = new KesClass(config); |
{ | ||
"name": "kes", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "Making deployment to AWS using CloudFormation easier and fun", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -178,7 +178,6 @@ 'use strict'; | ||
* @param {object} options The options passed by the commander library | ||
* @param {Class} Kes the default kes class | ||
* @returns {Class} Kes class | ||
*/ | ||
function determineKesClass(options) { | ||
let Kes; | ||
function determineKesClass(options, Kes) { | ||
// if there is a kes class specified use that | ||
@@ -210,3 +209,3 @@ const kesClass = get(options, 'kesClass'); | ||
catch (e) { | ||
Kes = require('./kes').Kes; | ||
// do nothing | ||
} | ||
@@ -213,0 +212,0 @@ } |
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
133551