@twin.org/api-processors 0.0.1-next.13 → 0.0.1-next.15
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/cjs/index.cjs
CHANGED
|
@@ -169,12 +169,12 @@ class SocketRouteProcessor {
|
|
|
169
169
|
...requestIdentity,
|
|
170
170
|
serverRequest: request,
|
|
171
171
|
processorState
|
|
172
|
-
}, req, async (restRouteResponse) => {
|
|
172
|
+
}, req, async (topic, restRouteResponse) => {
|
|
173
173
|
response.headers = restRouteResponse?.headers;
|
|
174
174
|
response.body = restRouteResponse?.body;
|
|
175
175
|
response.statusCode =
|
|
176
176
|
restRouteResponse.statusCode ?? response.statusCode ?? web.HttpStatusCode.ok;
|
|
177
|
-
await responseEmitter(response);
|
|
177
|
+
await responseEmitter(topic, response);
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
180
|
catch (err) {
|
package/dist/esm/index.mjs
CHANGED
|
@@ -167,12 +167,12 @@ class SocketRouteProcessor {
|
|
|
167
167
|
...requestIdentity,
|
|
168
168
|
serverRequest: request,
|
|
169
169
|
processorState
|
|
170
|
-
}, req, async (restRouteResponse) => {
|
|
170
|
+
}, req, async (topic, restRouteResponse) => {
|
|
171
171
|
response.headers = restRouteResponse?.headers;
|
|
172
172
|
response.body = restRouteResponse?.body;
|
|
173
173
|
response.statusCode =
|
|
174
174
|
restRouteResponse.statusCode ?? response.statusCode ?? HttpStatusCode.ok;
|
|
175
|
-
await responseEmitter(response);
|
|
175
|
+
await responseEmitter(topic, response);
|
|
176
176
|
});
|
|
177
177
|
}
|
|
178
178
|
catch (err) {
|
|
@@ -28,5 +28,5 @@ export declare class SocketRouteProcessor implements ISocketRouteProcessor {
|
|
|
28
28
|
*/
|
|
29
29
|
process(request: IHttpServerRequest, response: IHttpResponse, route: ISocketRoute | undefined, requestIdentity: IHttpRequestIdentity, processorState: {
|
|
30
30
|
[id: string]: unknown;
|
|
31
|
-
}, responseEmitter: (response: IHttpResponse) => Promise<void>): Promise<void>;
|
|
31
|
+
}, responseEmitter: (topic: string, response: IHttpResponse) => Promise<void>): Promise<void>;
|
|
32
32
|
}
|
package/docs/changelog.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/api-processors",
|
|
3
|
-
"version": "0.0.1-next.
|
|
3
|
+
"version": "0.0.1-next.15",
|
|
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.1-next.
|
|
17
|
+
"@twin.org/api-models": "0.0.1-next.15",
|
|
18
18
|
"@twin.org/core": "next",
|
|
19
19
|
"@twin.org/entity": "next",
|
|
20
20
|
"@twin.org/entity-storage-models": "next",
|