@trayio/cdk-runtime 4.65.0 → 4.67.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.
@@ -1 +1 @@
1
- {"version":3,"file":"OperationExecutionGateway.unit.test.d.ts","sourceRoot":"","sources":["../../../src/connector/operation/OperationExecutionGateway.unit.test.ts"],"names":[],"mappings":"AAiCA,OAAO,8BAA8B,CAAC"}
1
+ {"version":3,"file":"OperationExecutionGateway.unit.test.d.ts","sourceRoot":"","sources":["../../../src/connector/operation/OperationExecutionGateway.unit.test.ts"],"names":[],"mappings":"AA4BA,OAAO,8BAA8B,CAAC"}
@@ -108,10 +108,19 @@ class TestControllerHttp {
108
108
  method: Http_1.HttpMethod.Post,
109
109
  execute: () => (request) => {
110
110
  const { body } = request;
111
+ if (body instanceof stream_1.Readable) {
112
+ return T.of({
113
+ body,
114
+ headers: {},
115
+ statusCode: 200,
116
+ });
117
+ }
111
118
  return T.of({
112
- body: body,
119
+ body: stream_1.Readable.from(JSON.stringify({
120
+ success: false,
121
+ })),
113
122
  headers: {},
114
- statusCode: 200,
123
+ statusCode: 500,
115
124
  });
116
125
  },
117
126
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trayio/cdk-runtime",
3
- "version": "4.65.0",
3
+ "version": "4.67.0",
4
4
  "description": "A Runtime that executes connector operations defined using the CDK DSL",
5
5
  "exports": {
6
6
  "./*": "./dist/*.js"
@@ -14,10 +14,10 @@
14
14
  "node": ">=18.x"
15
15
  },
16
16
  "dependencies": {
17
- "@trayio/axios": "4.65.0",
18
- "@trayio/cdk-dsl": "4.65.0",
19
- "@trayio/express": "4.65.0",
20
- "@trayio/winston": "4.65.0",
17
+ "@trayio/axios": "4.67.0",
18
+ "@trayio/cdk-dsl": "4.67.0",
19
+ "@trayio/express": "4.67.0",
20
+ "@trayio/winston": "4.67.0",
21
21
  "mime": "3.0.0",
22
22
  "uuid": "9.0.0"
23
23
  },