parrot-core
Advanced tools
Comparing version 5.1.0 to 5.2.0
@@ -55,3 +55,4 @@ "use strict"; | ||
const resolver = this.resolver(...platformRequest); | ||
const mocks = this.scenarios[this.activeScenario]; | ||
const activeScenarioOverride = this.getActiveScenarioOverride && this.getActiveScenarioOverride(...platformRequest); | ||
const mocks = this.scenarios[activeScenarioOverride || this.activeScenario]; | ||
const mock = await (0, _utils.matchMock)(normalizedRequest, platformRequest, mocks); | ||
@@ -65,3 +66,2 @@ return (0, _utils.resolveResponse)(normalizedRequest, platformRequest, mock, resolver); | ||
} | ||
var _default = Parrot; | ||
exports.default = _default; | ||
var _default = exports.default = Parrot; |
@@ -27,3 +27,3 @@ "use strict"; | ||
const loggerColors = { | ||
const loggerColors = exports.loggerColors = { | ||
info: _chalk.default.white, | ||
@@ -33,3 +33,2 @@ warn: _chalk.default.yellow, | ||
}; | ||
exports.loggerColors = loggerColors; | ||
const infoTemplate = message => loggerColors.info(`Info: ${message}`); | ||
@@ -54,3 +53,2 @@ const errorTemplate = message => loggerColors.error(`Error: ${message}`); | ||
const logger = new Logger(); | ||
var _default = logger; | ||
exports.default = _default; | ||
var _default = exports.default = logger; |
{ | ||
"name": "parrot-core", | ||
"version": "5.1.0", | ||
"version": "5.2.0", | ||
"contributors": [ | ||
@@ -38,5 +38,6 @@ "Jack Cross <jack.cross1@aexp.com>", | ||
"babel-preset-amex": "^3.6.1", | ||
"jest-when": "^3.6.0", | ||
"rimraf": "^3.0.2" | ||
}, | ||
"gitHead": "392c66c11bb8ae8a4fe7131f73f2b711851cfe41" | ||
"gitHead": "624854dff766b07443ff0bc7407e5dbb7fe96d53" | ||
} |
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
28516
6
376