message: Changes done for repository injection
diff: @@ -9,10 +9,20 @@ let repoSource = function (target: ClassType<any>) {
  }
  Object.keys(repositoryMap())
  .forEach(x => {
  - // TODO: Decide repository map will hold the prototype or the function
  - if (repositoryMap()[x].fn === target || <Function>repositoryMap()[x].fn === target.prototype|| (target.prototype && x === target.prototype.path)) {
  + //// TODO: Decide repository map will hold the prototype or the function
  + var path;
  + if (target.prototype) {
  + path = target.prototype.path;
  + }
  + else if (target['default']) {
  + path = target['default'].prototype.path;
  + }
  + if (path === x) {
  repo = repositoryMap()[x].repo;
  }
  + //if (repositoryMap()[x].fn === target || <Function>repositoryMap()[x].fn === target.prototype|| (target.prototype && x === target.prototype.path)) {
  + // repo = repositoryMap()[x].repo;
  + //}
  });
  return repo;
  }
  