yeoman-generator
Advanced tools
Comparing version 6.0.0-rc.4 to 6.0.0-rc.5
@@ -288,3 +288,18 @@ /* eslint-disable @typescript-eslint/member-ordering */ | ||
const thisAny = this; | ||
const beforeQueueCallback = (this.features.taskPrefix && thisAny.beforeQueue) ?? thisAny._beforeQueue; | ||
const thisPrototype = Object.getPrototypeOf(thisAny); | ||
let beforeQueueCallback; | ||
if (this.features.taskPrefix) { | ||
// We want beforeQueue if beforeQueue belongs to the object or to the imediatelly extended class. | ||
beforeQueueCallback = | ||
Object.hasOwn(thisAny, 'beforeQueue') || Object.hasOwn(thisPrototype, 'beforeQueue') | ||
? thisAny.beforeQueue | ||
: undefined; | ||
} | ||
if (!beforeQueueCallback) { | ||
// Fallback to _beforeQueue, | ||
beforeQueueCallback = | ||
Object.hasOwn(thisAny, '_beforeQueue') || Object.hasOwn(thisPrototype, '_beforeQueue') | ||
? thisAny._beforeQueue | ||
: undefined; | ||
} | ||
if (beforeQueueCallback) { | ||
@@ -291,0 +306,0 @@ await beforeQueueCallback.call(this); |
{ | ||
"name": "yeoman-generator", | ||
"version": "6.0.0-rc.4", | ||
"version": "6.0.0-rc.5", | ||
"description": "Rails-inspired generator system that provides scaffolding for your apps", | ||
@@ -59,3 +59,3 @@ "keywords": [ | ||
"debug": "^4.1.1", | ||
"execa": "^7.1.1", | ||
"execa": "^8.0.1", | ||
"github-username": "^7.0.0", | ||
@@ -67,3 +67,3 @@ "json-schema": "^0.4.0", | ||
"minimist": "^1.2.8", | ||
"read-pkg-up": "^9.1.0", | ||
"read-pkg-up": "^10.1.0", | ||
"semver": "^7.5.0", | ||
@@ -70,0 +70,0 @@ "simple-git": "^3.18.0", |
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
135470
3169
+ Addedlines-and-columns@2.0.4(transitive)
+ Addedparse-json@7.1.1(transitive)
+ Addedread-pkg@8.1.0(transitive)
+ Addedread-pkg-up@10.1.0(transitive)
+ Addedtype-fest@3.13.14.27.0(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedhasown@2.0.2(transitive)
- Removedhosted-git-info@4.1.0(transitive)
- Removedis-core-module@2.15.1(transitive)
- Removedjson-parse-even-better-errors@2.3.1(transitive)
- Removedlines-and-columns@1.2.4(transitive)
- Removedlru-cache@6.0.0(transitive)
- Removednormalize-package-data@3.0.3(transitive)
- Removedparse-json@5.2.0(transitive)
- Removedread-pkg@7.1.0(transitive)
- Removedread-pkg-up@9.1.0(transitive)
- Removedtype-fest@2.19.0(transitive)
Updatedexeca@^8.0.1
Updatedread-pkg-up@^10.1.0