@twin.org/api-processors 0.0.2-next.7 → 0.0.2-next.8

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.
@@ -80,7 +80,7 @@ class RestRouteProcessor {
80
80
  // instead of the default application/json
81
81
  headers[web.HeaderTypes.ContentType] =
82
82
  restRouteResponse?.attachment?.mimeType ??
83
- response.headers?.[web.HeaderTypes.ContentType] ??
83
+ restRouteResponse.headers?.[web.HeaderTypes.ContentType] ??
84
84
  `${web.MimeTypes.Json}; charset=utf-8`;
85
85
  // If there are filename or inline options set then add the content disposition
86
86
  if (core.Is.stringValue(restRouteResponse?.attachment?.filename) ||
@@ -78,7 +78,7 @@ class RestRouteProcessor {
78
78
  // instead of the default application/json
79
79
  headers[HeaderTypes.ContentType] =
80
80
  restRouteResponse?.attachment?.mimeType ??
81
- response.headers?.[HeaderTypes.ContentType] ??
81
+ restRouteResponse.headers?.[HeaderTypes.ContentType] ??
82
82
  `${MimeTypes.Json}; charset=utf-8`;
83
83
  // If there are filename or inline options set then add the content disposition
84
84
  if (Is.stringValue(restRouteResponse?.attachment?.filename) ||
package/docs/changelog.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @twin.org/api-processors - Changelog
2
2
 
3
+ ## [0.0.2-next.8](https://github.com/twinfoundation/api/compare/api-processors-v0.0.2-next.7...api-processors-v0.0.2-next.8) (2025-08-21)
4
+
5
+
6
+ ### Features
7
+
8
+ * add root, favicon routes ([71da1c3](https://github.com/twinfoundation/api/commit/71da1c3a93c349588aff7084d1d8d6a29a277da8))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/api-models bumped from 0.0.2-next.7 to 0.0.2-next.8
16
+
3
17
  ## [0.0.2-next.7](https://github.com/twinfoundation/api/compare/api-processors-v0.0.2-next.6...api-processors-v0.0.2-next.7) (2025-08-20)
4
18
 
5
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/api-processors",
3
- "version": "0.0.2-next.7",
3
+ "version": "0.0.2-next.8",
4
4
  "description": "Route processors for use with API servers",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,7 +14,7 @@
14
14
  "node": ">=20.0.0"
15
15
  },
16
16
  "dependencies": {
17
- "@twin.org/api-models": "0.0.2-next.7",
17
+ "@twin.org/api-models": "0.0.2-next.8",
18
18
  "@twin.org/core": "next",
19
19
  "@twin.org/logging-models": "next",
20
20
  "@twin.org/nameof": "next",