@trayio/cdk-runtime 3.9.0 → 3.9.2-unstable

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.
@@ -43,7 +43,7 @@ class TestControllerHttp {
43
43
  {
44
44
  path: `/posts/:id`,
45
45
  method: Http_1.HttpMethod.Get,
46
- execute: (request) => {
46
+ execute: () => (request) => {
47
47
  const { id } = request.pathParams;
48
48
  return T.of({
49
49
  body: stream_1.Readable.from(JSON.stringify({
@@ -58,7 +58,7 @@ class TestControllerHttp {
58
58
  {
59
59
  path: `/tokens`,
60
60
  method: Http_1.HttpMethod.Get,
61
- execute: (request) => {
61
+ execute: () => (request) => {
62
62
  const token = request.headers.authorization;
63
63
  if (token === 'Bearer valid') {
64
64
  return T.of({
@@ -75,7 +75,7 @@ class TestControllerHttp {
75
75
  {
76
76
  path: `/posts/create`,
77
77
  method: Http_1.HttpMethod.Post,
78
- execute: (request) => {
78
+ execute: () => (request) => {
79
79
  const { body } = request;
80
80
  return T.of({
81
81
  body: body,
@@ -87,7 +87,7 @@ class TestControllerHttp {
87
87
  {
88
88
  path: `/image-upload`,
89
89
  method: Http_1.HttpMethod.Post,
90
- execute: (request) => {
90
+ execute: () => (request) => {
91
91
  const { body } = request;
92
92
  return (0, function_1.pipe)(fileStorage.write({
93
93
  content: body,
@@ -113,7 +113,7 @@ class TestControllerHttp {
113
113
  {
114
114
  path: `/multipart-upload`,
115
115
  method: Http_1.HttpMethod.Post,
116
- execute: (request) => {
116
+ execute: () => (request) => {
117
117
  const { body } = request;
118
118
  expect(body).toEqual(expect.objectContaining({
119
119
  fields: expect.objectContaining({ test: 'Hello world!' }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trayio/cdk-runtime",
3
- "version": "3.9.0",
3
+ "version": "3.9.2-unstable",
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": "3.9.0",
18
- "@trayio/cdk-dsl": "3.9.0",
19
- "@trayio/express": "3.9.0",
20
- "@trayio/winston": "3.9.0",
17
+ "@trayio/axios": "3.9.2-unstable",
18
+ "@trayio/cdk-dsl": "3.9.2-unstable",
19
+ "@trayio/express": "3.9.2-unstable",
20
+ "@trayio/winston": "3.9.2-unstable",
21
21
  "mime": "3.0.0",
22
22
  "uuid": "9.0.0"
23
23
  },