@nathapp/nestjs-data 1.0.0-rc.10 → 1.0.0-rc.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from "./decorator";
2
2
  export * from "./entities";
3
+ export * from "./repository";
3
4
  export * from "./pagination";
4
5
  export * from "./typeorm";
package/dist/index.js CHANGED
@@ -16,5 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./decorator"), exports);
18
18
  __exportStar(require("./entities"), exports);
19
+ __exportStar(require("./repository"), exports);
19
20
  __exportStar(require("./pagination"), exports);
20
21
  __exportStar(require("./typeorm"), exports);
@@ -31,7 +31,7 @@ class TypeOrmExModule {
31
31
  inject: [(0, typeorm_1.getDataSourceToken)(dataSource)],
32
32
  provide: repository,
33
33
  useFactory: (dataSource) => {
34
- if (repository instanceof repository_1.BaseRepository) {
34
+ if (repository.prototype instanceof repository_1.BaseRepository) {
35
35
  return new repository(dataSource);
36
36
  }
37
37
  const baseRepository = dataSource.getRepository(entity);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nathapp/nestjs-data",
3
- "version": "1.0.0-rc.10",
3
+ "version": "1.0.0-rc.12",
4
4
  "description": "@nathapp/nestjs-data",
5
5
  "scripts": {
6
6
  "build": "rimraf dist && tsc -p tsconfig.json",