itlab-internal-services 1.0.1 → 1.0.3

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.
@@ -45,5 +45,5 @@ UnauthorizedApplicationException = __decorate([
45
45
  __metadata("design:paramtypes", [])
46
46
  ], UnauthorizedApplicationException);
47
47
  exports.UnauthorizedApplicationException = UnauthorizedApplicationException;
48
- const Internal = () => (0, common_1.applyDecorators)((0, swagger_1.ApiBasicAuth)(exports.INTERNAL_HEADER_KEY), (0, common_1.UseGuards)(InternalGuard), (0, swagger_1.ApiUnauthorizedResponse)({ description: 'Application unauthorized' }));
48
+ const Internal = () => (0, common_1.applyDecorators)((0, swagger_1.ApiBasicAuth)(exports.INTERNAL_HEADER_KEY), (0, common_1.UseGuards)(new InternalGuard()), (0, swagger_1.ApiUnauthorizedResponse)({ description: 'Application unauthorized' }));
49
49
  exports.Internal = Internal;
@@ -114,7 +114,9 @@ InternalModule = InternalModule_1 = __decorate([
114
114
  services_1.ContentService,
115
115
  services_1.SearchService,
116
116
  { provide: internal_constants_1.AXIOS_INSTANCE_TOKEN, useValue: axios_1.default },
117
- guards_1.JwtStrategy,
117
+ guards_1.JwtGuard,
118
+ guards_1.InternalGuard,
119
+ guards_1.PermsGuard,
118
120
  ],
119
121
  exports: [services_1.CommentService, services_1.ContentService, services_1.SearchService],
120
122
  })
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "email": "timo.scheuermann@sv-informatik.de",
6
6
  "url": "https://timos.design"
7
7
  },
8
- "version": "1.0.1",
8
+ "version": "1.0.3",
9
9
  "type": "commonjs",
10
10
  "files": [
11
11
  "dist"