Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Commit

Permalink
Rename PackageProject to BasePackageProject
Browse files Browse the repository at this point in the history
Since it is an abstract class
  • Loading branch information
spalladino committed Sep 8, 2018
1 parent 48d57cf commit 8885b03
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/lib/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand All @@ -47,7 +47,7 @@ export {
FreezableImplementationDirectory,
UpgradeabilityProxyFactory,
Package,
PackageProject,
BasePackageProject,
LibProject,
AppProject
}
4 changes: 2 additions & 2 deletions packages/lib/src/project/AppProject.js
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/lib/src/project/LibProject.js
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 8885b03

Please sign in to comment.