@twin.org/api-processors 0.0.1-next.16 → 0.0.1-next.17
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/types/index.d.ts +1 -2
- package/dist/types/logging/loggingProcessor.d.ts +2 -2
- package/dist/types/models/{IRequestLoggingProcessorConfig.d.ts → ILoggingProcessorConfig.d.ts} +1 -1
- package/docs/changelog.md +1 -1
- package/docs/reference/classes/LoggingProcessor.md +1 -1
- package/docs/reference/index.md +1 -2
- package/docs/reference/interfaces/{IRequestLoggingProcessorConfig.md → ILoggingProcessorConfig.md} +1 -1
- package/package.json +2 -2
- package/dist/types/models/IResponseLoggingProcessorConfig.d.ts +0 -9
- package/docs/reference/interfaces/IResponseLoggingProcessorConfig.md +0 -11
package/dist/types/index.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ export * from "./identity/nodeIdentityProcessor";
|
|
|
4
4
|
export * from "./identity/staticUserIdentityProcessor";
|
|
5
5
|
export * from "./logging/loggingProcessor";
|
|
6
6
|
export * from "./mimeType/jwtMimeTypeProcessor";
|
|
7
|
-
export * from "./models/
|
|
8
|
-
export * from "./models/IResponseLoggingProcessorConfig";
|
|
7
|
+
export * from "./models/ILoggingProcessorConfig";
|
|
9
8
|
export * from "./models/IRouteProcessorConfig";
|
|
10
9
|
export * from "./models/IStaticUserIdentityProcessorConfig";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IBaseRoute, IBaseRouteProcessor, IHttpRequestIdentity, IHttpResponse, IHttpServerRequest } from "@twin.org/api-models";
|
|
2
|
-
import type {
|
|
2
|
+
import type { ILoggingProcessorConfig } from "../models/ILoggingProcessorConfig";
|
|
3
3
|
/**
|
|
4
4
|
* Process the REST request and log its information.
|
|
5
5
|
*/
|
|
@@ -17,7 +17,7 @@ export declare class LoggingProcessor implements IBaseRouteProcessor {
|
|
|
17
17
|
*/
|
|
18
18
|
constructor(options?: {
|
|
19
19
|
loggingConnectorType?: string;
|
|
20
|
-
config?:
|
|
20
|
+
config?: ILoggingProcessorConfig;
|
|
21
21
|
});
|
|
22
22
|
/**
|
|
23
23
|
* Pre process the REST request for the specified route.
|
package/docs/changelog.md
CHANGED
|
@@ -24,7 +24,7 @@ Options for the processor.
|
|
|
24
24
|
|
|
25
25
|
The type for the logging connector, defaults to "logging".
|
|
26
26
|
|
|
27
|
-
• **options.config?**: [`
|
|
27
|
+
• **options.config?**: [`ILoggingProcessorConfig`](../interfaces/ILoggingProcessorConfig.md)
|
|
28
28
|
|
|
29
29
|
The configuration for the processor.
|
|
30
30
|
|
package/docs/reference/index.md
CHANGED
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
|
|
12
12
|
## Interfaces
|
|
13
13
|
|
|
14
|
-
- [
|
|
15
|
-
- [IResponseLoggingProcessorConfig](interfaces/IResponseLoggingProcessorConfig.md)
|
|
14
|
+
- [ILoggingProcessorConfig](interfaces/ILoggingProcessorConfig.md)
|
|
16
15
|
- [IRouteProcessorConfig](interfaces/IRouteProcessorConfig.md)
|
|
17
16
|
- [IStaticUserIdentityProcessorConfig](interfaces/IStaticUserIdentityProcessorConfig.md)
|
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.17",
|
|
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.17",
|
|
18
18
|
"@twin.org/core": "next",
|
|
19
19
|
"@twin.org/entity": "next",
|
|
20
20
|
"@twin.org/entity-storage-models": "next",
|