@seidor-cloud-produtos/orbit-backend-lib 0.0.44 → 0.0.46
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.
|
@@ -27,14 +27,7 @@ class APIAuthValidator extends auth_validator_1.default {
|
|
|
27
27
|
const authorizations =
|
|
28
28
|
this.getAuthorizationsHeader() || this.getAuthsHeader();
|
|
29
29
|
if (typeof authorizations === 'string') {
|
|
30
|
-
|
|
31
|
-
return JSON.parse(authorizations);
|
|
32
|
-
} catch (e) {
|
|
33
|
-
console.log('AuthorizationsHeader', this.getAuthorizationsHeader());
|
|
34
|
-
console.log('AuthsHeader', this.getAuthsHeader());
|
|
35
|
-
console.log('authorizations', authorizations);
|
|
36
|
-
return [];
|
|
37
|
-
}
|
|
30
|
+
return JSON.parse(authorizations);
|
|
38
31
|
}
|
|
39
32
|
return authorizations;
|
|
40
33
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seidor-cloud-produtos/orbit-backend-lib",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.46",
|
|
4
4
|
"description": "Internal lib for backend components",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -70,7 +70,6 @@
|
|
|
70
70
|
"lint-staged": "13.2.2",
|
|
71
71
|
"prettier": "2.8.8",
|
|
72
72
|
"supertest": "6.3.4",
|
|
73
|
-
"tslib": "2.6.2",
|
|
74
73
|
"tsx": "4.7.1",
|
|
75
74
|
"typescript": "5.3.3",
|
|
76
75
|
"unplugin-swc": "1.4.4",
|
|
@@ -80,6 +79,7 @@
|
|
|
80
79
|
"dependencies": {
|
|
81
80
|
"@fastify/cors": "8.3.0",
|
|
82
81
|
"@nestjs/common": "10.3.8",
|
|
82
|
+
"tslib": "2.6.2",
|
|
83
83
|
"amqplib": "0.10.4",
|
|
84
84
|
"compression": "1.7.4",
|
|
85
85
|
"express": "4.19.2",
|