botium-core 1.13.6 → 1.13.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/botium-es.js CHANGED
@@ -37,7 +37,7 @@ import express from 'express';
37
37
  import bodyParser from 'body-parser';
38
38
 
39
39
  var name = "botium-core";
40
- var version$1 = "1.13.6";
40
+ var version$1 = "1.13.7";
41
41
  var description = "The Selenium for Chatbots";
42
42
  var main = "index.js";
43
43
  var module = "dist/botium-es.js";
@@ -1323,7 +1323,7 @@ var LogicHookUtils_1 = class LogicHookUtils {
1323
1323
 
1324
1324
 
1325
1325
  if (hookType === 'asserter') {
1326
- const asserter = DEFAULT_ASSERTERS.find(asserter => src === asserter.className);
1326
+ const asserter = DEFAULT_ASSERTERS.find(asserter => src === asserter.className || src === asserter.name);
1327
1327
 
1328
1328
  if (asserter) {
1329
1329
  return new asserter.Class({
@@ -1334,7 +1334,7 @@ var LogicHookUtils_1 = class LogicHookUtils {
1334
1334
  }
1335
1335
 
1336
1336
  if (hookType === 'logichook') {
1337
- const lh = DEFAULT_LOGIC_HOOKS.find(lh => src === lh.className);
1337
+ const lh = DEFAULT_LOGIC_HOOKS.find(lh => src === lh.className || src === lh.name);
1338
1338
 
1339
1339
  if (lh) {
1340
1340
  return new lh.Class({
@@ -1345,7 +1345,7 @@ var LogicHookUtils_1 = class LogicHookUtils {
1345
1345
  }
1346
1346
 
1347
1347
  if (hookType === 'userinput') {
1348
- const ui = DEFAULT_USER_INPUTS.find(ui => src === ui.className);
1348
+ const ui = DEFAULT_USER_INPUTS.find(ui => src === ui.className || src === ui.name);
1349
1349
 
1350
1350
  if (ui) {
1351
1351
  return new ui.Class({