@artenc/nest-orm 0.0.2 → 0.1.0

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.
@@ -0,0 +1,15 @@
1
+ declare const _default: (() => {
2
+ host: string | undefined;
3
+ port: string | undefined;
4
+ user: string | undefined;
5
+ pass: string | undefined;
6
+ name: string | undefined;
7
+ }) & import("@nestjs/config").ConfigFactoryKeyHost<{
8
+ host: string | undefined;
9
+ port: string | undefined;
10
+ user: string | undefined;
11
+ pass: string | undefined;
12
+ name: string | undefined;
13
+ }>;
14
+ export default _default;
15
+ //# sourceMappingURL=check.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check.config.d.ts","sourceRoot":"","sources":["../../src/config/check.config.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAEA,wBAMG"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const config_1 = require("@nestjs/config");
4
+ exports.default = (0, config_1.registerAs)('db', () => ({
5
+ host: process.env.DB_HOST,
6
+ port: process.env.DB_PORT,
7
+ user: process.env.DB_USER,
8
+ pass: process.env.DB_PASS,
9
+ name: process.env.DB_NAME,
10
+ }));
11
+ //# sourceMappingURL=check.config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check.config.js","sourceRoot":"","sources":["../../src/config/check.config.ts"],"names":[],"mappings":";;AAAA,2CAA2C;AAE3C,kBAAe,IAAA,mBAAU,EAAC,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC;IACnC,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,OAAO;IACzB,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,OAAO;IACzB,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,OAAO;IACzB,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,OAAO;IACzB,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,OAAO;CAC5B,CAAC,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAEA,wBAEC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAGA,wBAGC"}
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const check_config_1 = require("./check.config");
3
4
  const db_config_1 = require("./db.config");
4
5
  exports.default = [
5
6
  db_config_1.default,
7
+ check_config_1.default,
6
8
  ];
7
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":";;AAAA,2CAAkC;AAElC,kBAAe;IACX,mBAAQ;CACX,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":";;AAAA,iDAAwC;AACxC,2CAAkC;AAElC,kBAAe;IACX,mBAAQ;IACR,sBAAW;CACd,CAAA"}
@@ -1,3 +1,7 @@
1
+ import { DataSource, DataSourceOptions } from 'typeorm';
2
+ import { DynamicModule } from '@nestjs/common';
3
+ import { EntityClassOrSchema } from '@nestjs/typeorm/dist/interfaces/entity-class-or-schema.type';
1
4
  export declare class OrmModule {
5
+ static forFeature(entities?: EntityClassOrSchema[], dataSource?: DataSource | DataSourceOptions | string): DynamicModule;
2
6
  }
3
7
  //# sourceMappingURL=orm.module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"orm.module.d.ts","sourceRoot":"","sources":["../src/orm.module.ts"],"names":[],"mappings":"AAKA,qBAqBa,SAAS;CAAG"}
1
+ {"version":3,"file":"orm.module.d.ts","sourceRoot":"","sources":["../src/orm.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AACvD,OAAO,EAAE,aAAa,EAAU,MAAM,gBAAgB,CAAA;AAGtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,6DAA6D,CAAA;AAGjG,qBAqBa,SAAS;IAClB,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,mBAAmB,EAAE,EAAE,UAAU,CAAC,EAAE,UAAU,GAAG,iBAAiB,GAAG,MAAM,GAAG,aAAa;CAG3H"}
@@ -12,6 +12,9 @@ const config_1 = require("@nestjs/config");
12
12
  const typeorm_1 = require("@nestjs/typeorm");
13
13
  const config_2 = require("./config");
14
14
  let OrmModule = class OrmModule {
15
+ static forFeature(entities, dataSource) {
16
+ return typeorm_1.TypeOrmModule.forFeature(entities, dataSource);
17
+ }
15
18
  };
16
19
  exports.OrmModule = OrmModule;
17
20
  exports.OrmModule = OrmModule = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"orm.module.js","sourceRoot":"","sources":["../src/orm.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAuC;AACvC,2CAA4D;AAC5D,6CAA+C;AAC/C,qCAA6B;AAuBtB,IAAM,SAAS,GAAf,MAAM,SAAS;CAAG,CAAA;AAAZ,8BAAS;oBAAT,SAAS;IArBrB,IAAA,eAAM,EAAC;QACJ,OAAO,EAAE;YACL,qBAAY,CAAC,OAAO,CAAC;gBACjB,IAAI,EAAE,gBAAM;aACf,CAAC;YAEF,uBAAa,CAAC,YAAY,CAAC;gBACvB,UAAU,EAAE,CAAC,aAA4B,EAAE,EAAE,CAAC,CAAC;oBAC3C,IAAI,EAAE,OAAO;oBACb,IAAI,EAAE,aAAa,CAAC,GAAG,CAAC,SAAS,CAAC;oBAClC,IAAI,EAAE,aAAa,CAAC,GAAG,CAAS,SAAS,CAAC;oBAC1C,QAAQ,EAAE,aAAa,CAAC,GAAG,CAAC,SAAS,CAAC;oBACtC,QAAQ,EAAE,aAAa,CAAC,GAAG,CAAC,SAAS,CAAC;oBACtC,QAAQ,EAAE,aAAa,CAAC,GAAG,CAAC,SAA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