@smartsoft001/auth-shell-nestjs 1.1.24 → 1.1.33
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smartsoft001/auth-shell-nestjs",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.33",
|
|
4
4
|
"description": "Utils to authorization",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,126 +18,29 @@
|
|
|
18
18
|
"dependencies": {},
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"@nestjs/common": "9.0.9",
|
|
21
|
-
"
|
|
22
|
-
"tslib": "2.4.0",
|
|
23
|
-
"uuid": "8.3.2",
|
|
24
|
-
"@smartsoft001/auth-shell-app-services": "1.1.24",
|
|
21
|
+
"@smartsoft001/auth-shell-app-services": "1.1.33",
|
|
25
22
|
"@nestjs/core": "9.0.9",
|
|
26
|
-
"@
|
|
27
|
-
"chalk": "4.1.2",
|
|
28
|
-
"ansi-styles": "4.3.0",
|
|
29
|
-
"color-convert": "2.0.1",
|
|
30
|
-
"color-name": "1.1.4",
|
|
31
|
-
"supports-color": "7.2.0",
|
|
32
|
-
"has-flag": "4.0.0",
|
|
33
|
-
"consola": "2.15.3",
|
|
34
|
-
"node-fetch": "2.6.7",
|
|
35
|
-
"whatwg-url": "5.0.0",
|
|
36
|
-
"tr46": "0.0.3",
|
|
37
|
-
"webidl-conversions": "3.0.1",
|
|
38
|
-
"fast-safe-stringify": "2.1.1",
|
|
39
|
-
"object-hash": "3.0.0",
|
|
40
|
-
"path-to-regexp": "3.2.0",
|
|
41
|
-
"@smartsoft001/auth-domain": "1.1.24",
|
|
23
|
+
"@smartsoft001/auth-domain": "1.1.33",
|
|
42
24
|
"typeorm": "0.2.29",
|
|
43
|
-
"@
|
|
44
|
-
"
|
|
45
|
-
"buffer": "5.7.1",
|
|
46
|
-
"base64-js": "1.5.1",
|
|
47
|
-
"ieee754": "1.2.1",
|
|
48
|
-
"cli-highlight": "2.1.11",
|
|
49
|
-
"highlight.js": "10.7.3",
|
|
50
|
-
"mz": "2.7.0",
|
|
51
|
-
"any-promise": "1.3.0",
|
|
52
|
-
"object-assign": "4.1.1",
|
|
53
|
-
"thenify-all": "1.6.0",
|
|
54
|
-
"thenify": "3.3.1",
|
|
55
|
-
"parse5": "5.1.1",
|
|
56
|
-
"parse5-htmlparser2-tree-adapter": "6.0.1",
|
|
57
|
-
"yargs": "16.2.0",
|
|
58
|
-
"cliui": "7.0.4",
|
|
59
|
-
"string-width": "4.2.3",
|
|
60
|
-
"emoji-regex": "8.0.0",
|
|
61
|
-
"is-fullwidth-code-point": "3.0.0",
|
|
62
|
-
"strip-ansi": "6.0.1",
|
|
63
|
-
"ansi-regex": "5.0.1",
|
|
64
|
-
"wrap-ansi": "7.0.0",
|
|
65
|
-
"escalade": "3.1.1",
|
|
66
|
-
"get-caller-file": "2.0.5",
|
|
67
|
-
"require-directory": "2.1.1",
|
|
68
|
-
"y18n": "5.0.8",
|
|
69
|
-
"yargs-parser": "20.2.9",
|
|
70
|
-
"debug": "4.3.4",
|
|
71
|
-
"ms": "2.1.2",
|
|
72
|
-
"glob": "7.2.3",
|
|
73
|
-
"fs.realpath": "1.0.0",
|
|
74
|
-
"inflight": "1.0.6",
|
|
75
|
-
"once": "1.4.0",
|
|
76
|
-
"wrappy": "1.0.2",
|
|
77
|
-
"inherits": "2.0.1",
|
|
78
|
-
"minimatch": "3.1.2",
|
|
79
|
-
"brace-expansion": "1.1.11",
|
|
80
|
-
"balanced-match": "1.0.2",
|
|
81
|
-
"concat-map": "0.0.1",
|
|
82
|
-
"path-is-absolute": "1.0.1",
|
|
83
|
-
"js-yaml": "3.14.1",
|
|
84
|
-
"argparse": "1.0.10",
|
|
85
|
-
"sprintf-js": "1.0.3",
|
|
86
|
-
"esprima": "4.0.1",
|
|
87
|
-
"mkdirp": "1.0.4",
|
|
25
|
+
"@smartsoft001/domain-core": "1.1.33",
|
|
26
|
+
"@smartsoft001/models": "1.1.33",
|
|
88
27
|
"reflect-metadata": "0.1.13",
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"sax": "1.2.4",
|
|
93
|
-
"xmlbuilder": "11.0.1",
|
|
94
|
-
"yargonaut": "1.1.4",
|
|
95
|
-
"escape-string-regexp": "1.0.5",
|
|
96
|
-
"has-ansi": "2.0.0",
|
|
97
|
-
"figlet": "1.5.2",
|
|
98
|
-
"parent-require": "1.0.0",
|
|
99
|
-
"@smartsoft001/domain-core": "1.1.24",
|
|
100
|
-
"@smartsoft001/models": "1.1.24",
|
|
101
|
-
"@smartsoft001/utils": "1.1.24",
|
|
102
|
-
"@angular/common": "14.2.2",
|
|
103
|
-
"@angular/core": "14.2.2",
|
|
28
|
+
"@smartsoft001/utils": "1.1.33",
|
|
29
|
+
"@angular/common": "15.0.2",
|
|
30
|
+
"@angular/core": "15.0.2",
|
|
104
31
|
"lodash": "4.17.21",
|
|
105
32
|
"guid-typescript": "1.0.9",
|
|
106
33
|
"flatted": "3.2.7",
|
|
107
34
|
"md5": "2.3.0",
|
|
108
|
-
"charenc": "0.0.2",
|
|
109
|
-
"crypt": "0.0.2",
|
|
110
|
-
"is-buffer": "1.1.6",
|
|
111
35
|
"rxjs": "7.5.6",
|
|
112
|
-
"@smartsoft001/users": "1.1.
|
|
113
|
-
"@angular/platform-browser-dynamic": "
|
|
36
|
+
"@smartsoft001/users": "1.1.33",
|
|
37
|
+
"@angular/platform-browser-dynamic": "15.0.2",
|
|
114
38
|
"@nestjs/jwt": "7.2.0",
|
|
115
|
-
"@types/jsonwebtoken": "8.5.0",
|
|
116
|
-
"jsonwebtoken": "8.5.1",
|
|
117
|
-
"jws": "3.2.2",
|
|
118
|
-
"jwa": "1.4.1",
|
|
119
|
-
"buffer-equal-constant-time": "1.0.1",
|
|
120
|
-
"ecdsa-sig-formatter": "1.0.11",
|
|
121
|
-
"lodash.includes": "4.3.0",
|
|
122
|
-
"lodash.isboolean": "3.0.3",
|
|
123
|
-
"lodash.isinteger": "4.0.4",
|
|
124
|
-
"lodash.isnumber": "3.0.3",
|
|
125
|
-
"lodash.isplainobject": "4.0.6",
|
|
126
|
-
"lodash.isstring": "4.0.1",
|
|
127
|
-
"lodash.once": "4.1.1",
|
|
128
|
-
"semver": "5.7.1",
|
|
129
39
|
"@nestjs/typeorm": "7.1.5",
|
|
130
|
-
"@smartsoft001/fb": "1.1.
|
|
40
|
+
"@smartsoft001/fb": "1.1.33",
|
|
131
41
|
"@nestjs/axios": "0.1.0",
|
|
132
|
-
"
|
|
133
|
-
"
|
|
134
|
-
"
|
|
135
|
-
"asynckit": "0.4.0",
|
|
136
|
-
"combined-stream": "1.0.8",
|
|
137
|
-
"delayed-stream": "1.0.0",
|
|
138
|
-
"mime-types": "2.1.35",
|
|
139
|
-
"mime-db": "1.52.0",
|
|
140
|
-
"@smartsoft001/google": "1.1.24",
|
|
141
|
-
"@nestjs/passport": "7.1.6"
|
|
42
|
+
"@smartsoft001/google": "1.1.33",
|
|
43
|
+
"@nestjs/passport": "7.1.6",
|
|
44
|
+
"tslib": "2.4.1"
|
|
142
45
|
}
|
|
143
46
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { Request } from "express";
|
|
1
2
|
import { AuthService } from "@smartsoft001/auth-shell-app-services";
|
|
2
3
|
import { IAuthToken, IAuthTokenRequest } from "@smartsoft001/auth-domain";
|
|
3
4
|
export declare class TokenController {
|
|
4
5
|
private readonly service;
|
|
5
6
|
constructor(service: AuthService);
|
|
6
|
-
create(req: IAuthTokenRequest): Promise<IAuthToken>;
|
|
7
|
+
create(req: IAuthTokenRequest, httpReq: Request): Promise<IAuthToken>;
|
|
7
8
|
}
|
|
@@ -8,15 +8,16 @@ let TokenController = class TokenController {
|
|
|
8
8
|
constructor(service) {
|
|
9
9
|
this.service = service;
|
|
10
10
|
}
|
|
11
|
-
create(req) {
|
|
12
|
-
return this.service.create(req);
|
|
11
|
+
create(req, httpReq) {
|
|
12
|
+
return this.service.create(req, httpReq);
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
15
|
tslib_1.__decorate([
|
|
16
16
|
(0, common_1.Post)(),
|
|
17
17
|
tslib_1.__param(0, (0, common_1.Body)()),
|
|
18
|
+
tslib_1.__param(1, (0, common_1.Req)()),
|
|
18
19
|
tslib_1.__metadata("design:type", Function),
|
|
19
|
-
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
20
|
+
tslib_1.__metadata("design:paramtypes", [Object, Object]),
|
|
20
21
|
tslib_1.__metadata("design:returntype", Promise)
|
|
21
22
|
], TokenController.prototype, "create", null);
|
|
22
23
|
TokenController = tslib_1.__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token.controller.js","sourceRoot":"","sources":["../../../../../../../../../libs/auth/shell/nestjs/src/lib/controllers/token/token.controller.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"token.controller.js","sourceRoot":"","sources":["../../../../../../../../../libs/auth/shell/nestjs/src/lib/controllers/token/token.controller.ts"],"names":[],"mappings":";;;;AAAA,2CAA2D;AAG3D,mFAAkE;AAI3D,IAAM,eAAe,GAArB,MAAM,eAAe;IACxB,YAA6B,OAAoB;QAApB,YAAO,GAAP,OAAO,CAAa;IAAI,CAAC;IAGtD,MAAM,CAAS,GAAsB,EAAS,OAAgB;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IAC7C,CAAC;CACJ,CAAA;AAJG;IAAC,IAAA,aAAI,GAAE;IACC,mBAAA,IAAA,aAAI,GAAE,CAAA;IAA0B,mBAAA,IAAA,YAAG,GAAE,CAAA;;;;6CAE5C;AANQ,eAAe;IAD3B,IAAA,mBAAU,EAAC,OAAO,CAAC;6CAEsB,qCAAW;GADxC,eAAe,CAO3B;AAPY,0CAAe"}
|