From 9b8f210a019bbfb47ae67be0b57836a5387ef2b8 Mon Sep 17 00:00:00 2001 From: Edward Faulkner Date: Thu, 29 Jun 2023 18:32:02 -0400 Subject: [PATCH] Make proxied rewritten-package-cache methods clearer These worked like this but it's unnecessarily confusing to debug and read. --- .../src/rewritten-package-cache.ts | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/shared-internals/src/rewritten-package-cache.ts b/packages/shared-internals/src/rewritten-package-cache.ts index 1adc3e179..ea9d673f2 100644 --- a/packages/shared-internals/src/rewritten-package-cache.ts +++ b/packages/shared-internals/src/rewritten-package-cache.ts @@ -232,28 +232,28 @@ class WrappedPackage implements PackageTheGoodParts { return this.plainPkg.meta; } - get isEmberPackage() { - return this.plainPkg.isEmberPackage; + isEmberPackage() { + return this.plainPkg.isEmberPackage(); } isEngine() { return this.plainPkg.isEngine(); } - get isLazyEngine() { - return this.plainPkg.isLazyEngine; + isLazyEngine() { + return this.plainPkg.isLazyEngine(); } - get isV2Ember() { - return this.plainPkg.isV2Ember; + isV2Ember() { + return this.plainPkg.isV2Ember(); } - get isV2App() { - return this.plainPkg.isV2App; + isV2App() { + return this.plainPkg.isV2App(); } - get isV2Addon() { - return this.plainPkg.isV2Addon; + isV2Addon() { + return this.plainPkg.isV2Addon(); } // it's important that we're calling this.dependencies here at this level, not