Skip to content

Commit 7114041

Browse files
committed
chore(release): catch audit log 1.3.x up with showcase 1.3.x
1 parent 30bc655 commit 7114041

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

plugins/audit-log-node/README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ import {
6161
HttpAuthService,
6262
LoggerService,
6363
} from '@backstage/backend-plugin-api';
64+
import { Config } from '@backstage/config';
6465

6566
/* highlight-add-start */
6667
import { DefaultAuditLogger } from '@janus-idp/backstage-plugin-audit-log-node';
@@ -69,14 +70,15 @@ import { DefaultAuditLogger } from '@janus-idp/backstage-plugin-audit-log-node';
6970

7071
export interface RouterOptions {
7172
logger: LoggerService;
73+
config: Config;
7274
auth: AuthService;
7375
httpAuth: HttpAuthService;
7476
}
7577

7678
export async function createRouter(
7779
options: RouterOptions,
7880
): Promise<express.Router> {
79-
const { logger, auth, httpAuth } = options;
81+
const { logger, config, auth, httpAuth } = options;
8082

8183
/* highlight-add-start */
8284
const auditLogger = new DefaultAuditLogger({
@@ -111,7 +113,10 @@ export async function createRouter(
111113
});
112114
/* highlight-add-end */
113115
});
114-
router.use(errorHandler());
116+
117+
const middleware = MiddlewareFactory.create({ logger, config });
118+
119+
router.use(middleware.error());
115120
return router;
116121
}
117122
```

plugins/audit-log-node/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@janus-idp/backstage-plugin-audit-log-node",
33
"description": "Node.js library for the audit-log plugin",
4-
"version": "1.4.0",
4+
"version": "1.4.1",
55
"main": "src/index.ts",
66
"types": "src/index.ts",
77
"license": "Apache-2.0",

0 commit comments

Comments
 (0)