From 8885b03074902ab73a14924fbb3fa97c50f8a471 Mon Sep 17 00:00:00 2001 From: Santiago Palladino Date: Fri, 7 Sep 2018 21:24:30 -0300 Subject: [PATCH] Rename PackageProject to BasePackageProject Since it is an abstract class --- packages/lib/src/index.js | 4 ++-- packages/lib/src/project/AppProject.js | 4 ++-- .../src/project/{PackageProject.js => BasePackageProject.js} | 2 +- packages/lib/src/project/LibProject.js | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) rename packages/lib/src/project/{PackageProject.js => BasePackageProject.js} (97%) diff --git a/packages/lib/src/index.js b/packages/lib/src/index.js index 04e16da18..054b754d1 100644 --- a/packages/lib/src/index.js +++ b/packages/lib/src/index.js @@ -24,7 +24,7 @@ import Package from './package/Package' import ImplementationDirectory from './directory/ImplementationDirectory' import FreezableImplementationDirectory from './directory/FreezableImplementationDirectory' import UpgradeabilityProxyFactory from './factory/UpgradeabilityProxyFactory' -import PackageProject from './project/PackageProject' +import BasePackageProject from './project/BasePackageProject' import LibProject from './project/LibProject' import AppProject from './project/AppProject' @@ -47,7 +47,7 @@ export { FreezableImplementationDirectory, UpgradeabilityProxyFactory, Package, - PackageProject, + BasePackageProject, LibProject, AppProject } diff --git a/packages/lib/src/project/AppProject.js b/packages/lib/src/project/AppProject.js index 4f1ab5772..f33b618bd 100644 --- a/packages/lib/src/project/AppProject.js +++ b/packages/lib/src/project/AppProject.js @@ -1,9 +1,9 @@ -import PackageProject from "./PackageProject"; +import BasePackageProject from "./BasePackageProject"; import VersionedApp from "../app/VersionedApp"; import Package from "../package/Package"; import _ from 'lodash'; -export default class AppProject extends PackageProject { +export default class AppProject extends BasePackageProject { static async fetch(appAddress, name, txParams) { const app = await VersionedApp.fetch(appAddress, txParams) const packageInfo = await app.getPackage(name) diff --git a/packages/lib/src/project/PackageProject.js b/packages/lib/src/project/BasePackageProject.js similarity index 97% rename from packages/lib/src/project/PackageProject.js rename to packages/lib/src/project/BasePackageProject.js index ef19155b3..6f81eeb42 100644 --- a/packages/lib/src/project/PackageProject.js +++ b/packages/lib/src/project/BasePackageProject.js @@ -3,7 +3,7 @@ import Logger from "../utils/Logger"; const log = new Logger('PackageProject') -export default class PackageProject { +export default class BasePackageProject { constructor(txParams) { this.txParams = txParams diff --git a/packages/lib/src/project/LibProject.js b/packages/lib/src/project/LibProject.js index 794bc3743..d24646b0e 100644 --- a/packages/lib/src/project/LibProject.js +++ b/packages/lib/src/project/LibProject.js @@ -1,7 +1,7 @@ -import PackageProject from "./PackageProject"; +import BasePackageProject from "./BasePackageProject"; import Package from "../package/Package"; -export default class LibProject extends PackageProject { +export default class LibProject extends BasePackageProject { static async fetch(packageAddress, version = '0.1.0', txParams) { const thepackage = await Package.fetch(packageAddress, txParams) return new this(thepackage, version, txParams)