@tc-libs/api-key 0.29.0 → 0.30.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.
package/package.json CHANGED
@@ -1,29 +1,29 @@
1
1
  {
2
2
  "name": "@tc-libs/api-key",
3
- "version": "0.29.0",
3
+ "version": "0.30.0",
4
4
  "dependencies": {
5
5
  "tslib": "^2.3.0",
6
6
  "@nestjs/common": "^10.0.2",
7
7
  "@faker-js/faker": "^8.0.2",
8
- "@tc-libs/pagination": "0.29.0",
9
- "@tc-libs/authentication": "0.29.0",
10
- "@tc-libs/errors": "0.29.0",
11
- "@tc-libs/request": "0.29.0",
12
- "@tc-libs/response": "0.29.0",
8
+ "@tc-libs/pagination": "0.30.0",
9
+ "@tc-libs/authentication": "0.30.0",
10
+ "@tc-libs/errors": "0.30.0",
11
+ "@tc-libs/request": "0.30.0",
12
+ "@tc-libs/response": "0.30.0",
13
13
  "@nestjs/swagger": "^7.1.10",
14
- "@tc-libs/doc": "0.29.0",
14
+ "@tc-libs/doc": "0.30.0",
15
15
  "class-validator": "^0.14.0",
16
16
  "class-transformer": "^0.5.1",
17
17
  "@nestjs/core": "^10.0.2",
18
- "@tc-libs/helper": "0.29.0",
18
+ "@tc-libs/helper": "0.30.0",
19
19
  "@nestjs/passport": "^10.0.1",
20
20
  "passport-headerapikey": "^1.2.2",
21
- "@tc-libs/user": "0.29.0",
21
+ "@tc-libs/user": "0.30.0",
22
22
  "@nestjs/mongoose": "^10.0.1",
23
- "@tc-libs/database": "0.29.0",
23
+ "@tc-libs/database": "0.30.0",
24
24
  "mongoose": "^7.5.0",
25
- "@tc-libs/app-cache": "0.29.0",
26
- "@tc-libs/service": "0.29.0"
25
+ "@tc-libs/app-cache": "0.30.0",
26
+ "@tc-libs/service": "0.30.0"
27
27
  },
28
28
  "type": "commonjs",
29
29
  "main": "./src/index.js",
@@ -1,2 +1,4 @@
1
+ import { DynamicModule, Provider } from '@nestjs/common';
1
2
  export declare class ApiKeyModule {
3
+ static forRoot(userServiceProvider: Provider): DynamicModule;
2
4
  }
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ var ApiKeyModule_1;
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
3
4
  exports.ApiKeyModule = void 0;
4
5
  const tslib_1 = require("tslib");
@@ -6,15 +7,18 @@ const common_1 = require("@nestjs/common");
6
7
  const guards_1 = require("./guards");
7
8
  const repository_1 = require("./repository");
8
9
  const services_1 = require("./services");
9
- let ApiKeyModule = class ApiKeyModule {
10
+ let ApiKeyModule = ApiKeyModule_1 = class ApiKeyModule {
11
+ static forRoot(userServiceProvider) {
12
+ return {
13
+ module: ApiKeyModule_1,
14
+ imports: [repository_1.ApiKeyRepositoryModule],
15
+ providers: [services_1.ApiKeyService, guards_1.ApiKeyXApiKeyStrategy, userServiceProvider],
16
+ exports: [services_1.ApiKeyService],
17
+ };
18
+ }
10
19
  };
11
20
  exports.ApiKeyModule = ApiKeyModule;
12
- exports.ApiKeyModule = ApiKeyModule = tslib_1.__decorate([
13
- (0, common_1.Module)({
14
- imports: [repository_1.ApiKeyRepositoryModule],
15
- controllers: [],
16
- providers: [services_1.ApiKeyService, guards_1.ApiKeyXApiKeyStrategy],
17
- exports: [services_1.ApiKeyService],
18
- })
21
+ exports.ApiKeyModule = ApiKeyModule = ApiKeyModule_1 = tslib_1.__decorate([
22
+ (0, common_1.Module)({})
19
23
  ], ApiKeyModule);
20
24
  //# sourceMappingURL=api-key.module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"api-key.module.js","sourceRoot":"","sources":["../../../../packages/api-key/src/api-key.module.ts"],"names":[],"mappings":";;;;AAAA,2CAAwC;AACxC,qCAAiD;AACjD,6CAAsD;AACtD,yCAA2C;AAOpC,IAAM,YAAY,GAAlB,MAAM,YAAY;CAAG,CAAA;AAAf,oCAAY;uBAAZ,YAAY;IANxB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,mCAAsB,CAAC;QACjC,WAAW,EAAE,EAAE;QACf,SAAS,EAAE,CAAC,wBAAa,EAAE,8BAAqB,CAAC;QACjD,OAAO,EAAE,CAAC,wBAAa,CAAC;KACzB,CAAC;GACW,YAAY,CAAG"}
1
+ {"version":3,"file":"api-key.module.js","sourceRoot":"","sources":["../../../../packages/api-key/src/api-key.module.ts"],"names":[],"mappings":";;;;;AAAA,2CAAiE;AACjE,qCAAiD;AACjD,6CAAsD;AACtD,yCAA2C;AAEpC,IAAM,YAAY,oBAAlB,MAAM,YAAY;IACvB,MAAM,CAAC,OAAO,CAAC,mBAA6B;QAC1C,OAAO;YACL,MAAM,EAAE,cAAY;YACpB,OAAO,EAAE,CAAC,mCAAsB,CAAC;YACjC,SAAS,EAAE,CAAC,wBAAa,EAAE,8BAAqB,EAAE,mBAAmB,CAAC;YACtE,OAAO,EAAE,CAAC,wBAAa,CAAC;SACzB,CAAC;IACJ,CAAC;CACF,CAAA;AATY,oCAAY;uBAAZ,YAAY;IADxB,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,YAAY,CASxB"}