machinepack-machines
Advanced tools
Comparing version 6.1.0 to 6.1.1
@@ -124,3 +124,7 @@ module.exports = { | ||
// If that exit def has neither an `outputExample`, `like`, `itemOf`, nor `getExample`, report an error. | ||
else if (_.isUndefined(successExitDef.outputExample) && _.isUndefined(successExitDef.like) && _.isUndefined(successExitDef.itemOf) && !_.isFunction(successExitDef.getExample)) { | ||
else if ( | ||
(_.isUndefined(successExitDef.outputExample) || _.isNull(successExitDef.outputExample)) && | ||
(_.isUndefined(successExitDef.like) || _.isNull(successExitDef.like)) && | ||
(_.isUndefined(successExitDef.itemOf) || _.isNull(successExitDef.itemOf)) && | ||
!_.isFunction(successExitDef.getExample)) { | ||
errors.push({ | ||
@@ -127,0 +131,0 @@ message: 'Machine\'s success exit def has neither an `outputExample`, `like`, `itemOf`, nor a `getExample` function.', |
{ | ||
"name": "machinepack-machines", | ||
"version": "6.1.0", | ||
"version": "6.1.1", | ||
"description": "Work with machines and machinepacks.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
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
17264
301