yeoman-environment
Advanced tools
Comparing version 1.4.0 to 1.5.1
@@ -243,5 +243,13 @@ 'use strict'; | ||
// Legacy yeoman-generator `#hookFor()` function is passing the generator path as part | ||
// of the namespace. If we find a path delimiter in the namespace, then ignore the | ||
// last part of the namespace. | ||
var parts = namespace.split(':'); | ||
if (parts.length > 1 && parts[parts.length - 1].indexOf('/') >= 0) { | ||
parts.pop(); | ||
namespace = parts.join(':'); | ||
} | ||
return this.store.get(namespace) || | ||
this.store.get(this.alias(namespace)) || | ||
this.get(namespace.split(':').slice(0, -1).join(':')) || | ||
this.getByPath(namespace); | ||
@@ -248,0 +256,0 @@ }; |
{ | ||
"name": "yeoman-environment", | ||
"version": "1.4.0", | ||
"version": "1.5.1", | ||
"description": "Handles the lifecyle and bootstrapping of generators in a specific environment", | ||
@@ -5,0 +5,0 @@ "homepage": "http://yeoman.io", |
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
31698
896