@clairejs/server 3.25.3 → 3.25.4
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/README.md
CHANGED
|
@@ -89,7 +89,16 @@ let DefaultHttpRequestHandler = class DefaultHttpRequestHandler extends Abstract
|
|
|
89
89
|
body: httpData.body,
|
|
90
90
|
cookies: httpData.cookies,
|
|
91
91
|
}, info);
|
|
92
|
-
|
|
92
|
+
let authInfo;
|
|
93
|
+
try {
|
|
94
|
+
authInfo = await this.principalResolver.resolvePrincipal(request);
|
|
95
|
+
}
|
|
96
|
+
catch (err) {
|
|
97
|
+
this.logger.error(err);
|
|
98
|
+
if (!info.publicAccess) {
|
|
99
|
+
throw err;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
93
102
|
request.setAuthInfo(authInfo);
|
|
94
103
|
await this.authorizationProvider.authorize(request, info);
|
|
95
104
|
const mws = await this.getMiddleware();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clairejs/server",
|
|
3
|
-
"version": "3.25.
|
|
3
|
+
"version": "3.25.4",
|
|
4
4
|
"description": "Claire server NodeJs framework written in Typescript.",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"ws": "^7.5.5"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@clairejs/client": "^3.
|
|
36
|
+
"@clairejs/client": "^3.5.0",
|
|
37
37
|
"@clairejs/core": "^3.8.13",
|
|
38
|
-
"@clairejs/orm": "^3.16.
|
|
38
|
+
"@clairejs/orm": "^3.16.31"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/cookie-parser": "^1.4.3",
|