@congruent-stack/congruent-api-express 0.12.2 → 0.14.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/dist/index.cjs CHANGED
@@ -104,6 +104,19 @@ function createExpressRegistry(app, diContainer, apiContract) {
104
104
  req,
105
105
  {
106
106
  next,
107
+ // TODO: check handler_context.ts
108
+ // getHeader: (name: string): string | number | readonly string[] | undefined => {
109
+ // return res.getHeader(name);
110
+ // },
111
+ // setHeader: (name: string, value: string | number | readonly string[]) => {
112
+ // res.setHeader(name, value);
113
+ // },
114
+ // hasHeader: (name: string) => {
115
+ // return res.hasHeader(name);
116
+ // },
117
+ // removeHeader: (name: string) => {
118
+ // return res.removeHeader(name);
119
+ // },
107
120
  originalRequest: req
108
121
  }
109
122
  );
package/dist/index.mjs CHANGED
@@ -102,6 +102,19 @@ function createExpressRegistry(app, diContainer, apiContract) {
102
102
  req,
103
103
  {
104
104
  next,
105
+ // TODO: check handler_context.ts
106
+ // getHeader: (name: string): string | number | readonly string[] | undefined => {
107
+ // return res.getHeader(name);
108
+ // },
109
+ // setHeader: (name: string, value: string | number | readonly string[]) => {
110
+ // res.setHeader(name, value);
111
+ // },
112
+ // hasHeader: (name: string) => {
113
+ // return res.hasHeader(name);
114
+ // },
115
+ // removeHeader: (name: string) => {
116
+ // return res.removeHeader(name);
117
+ // },
105
118
  originalRequest: req
106
119
  }
107
120
  );
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@congruent-stack/congruent-api-express",
3
3
  "type": "module",
4
- "version": "0.12.2",
4
+ "version": "0.14.0",
5
5
  "description": "Typescript schema-first tooling for agnostic REST APIs.",
6
6
  "keywords": [],
7
7
  "author": "congruent-stack",
@@ -22,7 +22,7 @@
22
22
  "peerDependencies": {
23
23
  "@types/express": "5.0.3",
24
24
  "express": "5.1.0",
25
- "@congruent-stack/congruent-api": "0.12.2"
25
+ "@congruent-stack/congruent-api": "0.14.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/express": "5.0.3",