@yourrentals/cloudevent-receiver-nestjs 0.5.1 → 0.6.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/index.cjs.js +3 -0
- package/index.esm.js +3 -0
- package/package.json +3 -3
package/index.cjs.js
CHANGED
|
@@ -97,6 +97,9 @@ const createController = (pathPrefix = '/message-bus', routeDecorator = (target,
|
|
|
97
97
|
yield this.service.handle(queueName, request.headers, request.rawBody);
|
|
98
98
|
}
|
|
99
99
|
catch (e) {
|
|
100
|
+
if (e instanceof common.HttpException) {
|
|
101
|
+
throw e;
|
|
102
|
+
}
|
|
100
103
|
if (utilReceiverError.isReceiverError(e)) {
|
|
101
104
|
throw new common.HttpException(e.message, e.statusCode);
|
|
102
105
|
}
|
package/index.esm.js
CHANGED
|
@@ -94,6 +94,9 @@ const createController = (pathPrefix = '/message-bus', routeDecorator = (target,
|
|
|
94
94
|
yield this.service.handle(queueName, request.headers, request.rawBody);
|
|
95
95
|
}
|
|
96
96
|
catch (e) {
|
|
97
|
+
if (e instanceof HttpException) {
|
|
98
|
+
throw e;
|
|
99
|
+
}
|
|
97
100
|
if (isReceiverError(e)) {
|
|
98
101
|
throw new HttpException(e.message, e.statusCode);
|
|
99
102
|
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yourrentals/cloudevent-receiver-nestjs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@yourrentals/cloudevent-receiver-core": "0.
|
|
6
|
-
"@yourrentals/util-receiver-error": "0.
|
|
5
|
+
"@yourrentals/cloudevent-receiver-core": "0.6.0",
|
|
6
|
+
"@yourrentals/util-receiver-error": "0.6.0"
|
|
7
7
|
},
|
|
8
8
|
"peerDependencies": {
|
|
9
9
|
"@nestjs/common": "^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0",
|