@tc-libs/api-key 0.30.0 → 0.33.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 +12 -12
- package/src/api-key.module.d.ts +1 -1
- package/src/api-key.module.js +11 -3
- package/src/api-key.module.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tc-libs/api-key",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.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.
|
|
9
|
-
"@tc-libs/authentication": "0.
|
|
10
|
-
"@tc-libs/errors": "0.
|
|
11
|
-
"@tc-libs/request": "0.
|
|
12
|
-
"@tc-libs/response": "0.
|
|
8
|
+
"@tc-libs/pagination": "0.33.0",
|
|
9
|
+
"@tc-libs/authentication": "0.33.0",
|
|
10
|
+
"@tc-libs/errors": "0.33.0",
|
|
11
|
+
"@tc-libs/request": "0.33.0",
|
|
12
|
+
"@tc-libs/response": "0.33.0",
|
|
13
13
|
"@nestjs/swagger": "^7.1.10",
|
|
14
|
-
"@tc-libs/doc": "0.
|
|
14
|
+
"@tc-libs/doc": "0.33.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.
|
|
18
|
+
"@tc-libs/helper": "0.33.0",
|
|
19
19
|
"@nestjs/passport": "^10.0.1",
|
|
20
20
|
"passport-headerapikey": "^1.2.2",
|
|
21
|
-
"@tc-libs/user": "0.
|
|
21
|
+
"@tc-libs/user": "0.33.0",
|
|
22
22
|
"@nestjs/mongoose": "^10.0.1",
|
|
23
|
-
"@tc-libs/database": "0.
|
|
23
|
+
"@tc-libs/database": "0.33.0",
|
|
24
24
|
"mongoose": "^7.5.0",
|
|
25
|
-
"@tc-libs/app-cache": "0.
|
|
26
|
-
"@tc-libs/service": "0.
|
|
25
|
+
"@tc-libs/app-cache": "0.33.0",
|
|
26
|
+
"@tc-libs/service": "0.33.0"
|
|
27
27
|
},
|
|
28
28
|
"type": "commonjs",
|
|
29
29
|
"main": "./src/index.js",
|
package/src/api-key.module.d.ts
CHANGED
package/src/api-key.module.js
CHANGED
|
@@ -7,13 +7,21 @@ const common_1 = require("@nestjs/common");
|
|
|
7
7
|
const guards_1 = require("./guards");
|
|
8
8
|
const repository_1 = require("./repository");
|
|
9
9
|
const services_1 = require("./services");
|
|
10
|
+
const api_key_put_to_request_by_user_guard_1 = require("./guards/api-key.put-to-request-by-user.guard");
|
|
10
11
|
let ApiKeyModule = ApiKeyModule_1 = class ApiKeyModule {
|
|
11
|
-
static forRoot(userServiceProvider) {
|
|
12
|
+
static forRoot(userServiceProvider, isGlobal) {
|
|
12
13
|
return {
|
|
13
14
|
module: ApiKeyModule_1,
|
|
14
15
|
imports: [repository_1.ApiKeyRepositoryModule],
|
|
15
|
-
providers: [
|
|
16
|
-
|
|
16
|
+
providers: [
|
|
17
|
+
services_1.ApiKeyService,
|
|
18
|
+
guards_1.ApiKeyXApiKeyStrategy,
|
|
19
|
+
api_key_put_to_request_by_user_guard_1.ApiKeyPutToRequestByUserGuard,
|
|
20
|
+
guards_1.ApiKeyNotFoundGuard,
|
|
21
|
+
userServiceProvider,
|
|
22
|
+
],
|
|
23
|
+
exports: [services_1.ApiKeyService, api_key_put_to_request_by_user_guard_1.ApiKeyPutToRequestByUserGuard],
|
|
24
|
+
global: isGlobal,
|
|
17
25
|
};
|
|
18
26
|
}
|
|
19
27
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-key.module.js","sourceRoot":"","sources":["../../../../packages/api-key/src/api-key.module.ts"],"names":[],"mappings":";;;;;AAAA,2CAAiE;AACjE,
|
|
1
|
+
{"version":3,"file":"api-key.module.js","sourceRoot":"","sources":["../../../../packages/api-key/src/api-key.module.ts"],"names":[],"mappings":";;;;;AAAA,2CAAiE;AACjE,qCAAsE;AACtE,6CAAsD;AACtD,yCAA2C;AAC3C,wGAA8F;AAEvF,IAAM,YAAY,oBAAlB,MAAM,YAAY;IACvB,MAAM,CAAC,OAAO,CACZ,mBAA6B,EAC7B,QAAiB;QAEjB,OAAO;YACL,MAAM,EAAE,cAAY;YACpB,OAAO,EAAE,CAAC,mCAAsB,CAAC;YACjC,SAAS,EAAE;gBACT,wBAAa;gBACb,8BAAqB;gBACrB,oEAA6B;gBAC7B,4BAAmB;gBACnB,mBAAmB;aACpB;YACD,OAAO,EAAE,CAAC,wBAAa,EAAE,oEAA6B,CAAC;YACvD,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;CACF,CAAA;AAnBY,oCAAY;uBAAZ,YAAY;IADxB,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,YAAY,CAmBxB"}
|