@nestjs/cli
Advanced tools
Comparing version 5.0.0 to 5.0.1
@@ -28,7 +28,7 @@ module.exports = (program) => { | ||
function validate(arg) { | ||
const schematic = SCHEMATICS.findIndex((schematic) => schematic.value === arg || schematic.alias === arg); | ||
const schematic = SCHEMATICS.find((schematic) => schematic.value === arg || schematic.alias === arg); | ||
if (schematic === undefined || schematic === null) { | ||
throw new Error(); | ||
} | ||
return schematic; | ||
return schematic.value; | ||
} |
{ | ||
"name": "@nestjs/cli", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "Nest CLI", | ||
@@ -5,0 +5,0 @@ "publishConfig": { |
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
22485