Comparing version 8.2.0 to 8.2.1
@@ -84,4 +84,7 @@ 'use strict'; | ||
res = res.then ? yield res : res; | ||
if (!res) { | ||
throw new Error(`Validation failed at prompt: "${name}"`) | ||
if (typeof res === 'string') { | ||
// eslint-disable-next-line unicorn/prefer-type-error | ||
throw new Error(`Validation failed at prompt "${name}":\n${res}`) | ||
} else if (!res) { | ||
throw new Error(`Validation failed at prompt "${name}"`) | ||
} | ||
@@ -88,0 +91,0 @@ } |
{ | ||
"name": "kopy", | ||
"version": "8.2.0", | ||
"version": "8.2.1", | ||
"description": "Gracefully copy a directory and render templates.", | ||
@@ -43,3 +43,2 @@ "license": "MIT", | ||
"rimraf": "^2.5.4", | ||
"rollup-plugin-babel": "^3.0.2", | ||
"xo": "^0.18.2" | ||
@@ -46,0 +45,0 @@ }, |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
15656
9
246
1