Comparing version 9.0.2 to 9.0.3
@@ -182,5 +182,5 @@ /** | ||
var newExample; | ||
// TODO: would be good to _not_ cloneDeep here | ||
// (for performance, but also just because you might not actually want that in a lot of | ||
// cases, like streams) | ||
// TODO: prepare the input values the same way we prepare them for `.exec()` | ||
// TODO: but if possible, exclude `===` values, to avoid any destructive changes from | ||
// the getExample (i.e. starting to pump on a stream, etc.) | ||
try { | ||
@@ -195,2 +195,3 @@ newExample = exitDef.getExample.apply(env, [_.cloneDeep(allConfiguredInputValues), env]); | ||
_err.status = 500; | ||
return _err; | ||
})(); | ||
@@ -200,3 +201,3 @@ } | ||
// Validate the returned example: | ||
// If returned example is an array, make sure it only has one item | ||
// If returned example is an array, make sure it only has one item. | ||
if (_.isArray(newExample)) { | ||
@@ -206,3 +207,5 @@ newExample = newExample.slice(0,1); | ||
// TODO: sanitize returned example (dont allow null) | ||
return newExample; | ||
} |
{ | ||
"name": "machine", | ||
"version": "9.0.2", | ||
"version": "9.0.3", | ||
"description": "Configure and execute machines", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
72677
1645