@lark-apaas/devtool-kits 1.2.17-alpha.23 → 1.2.17-alpha.24

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
@@ -1652,7 +1652,7 @@ function createOpenapiRouter(options, context) {
1652
1652
  const { openapiFilePath, enableEnhancement, serverDir } = options;
1653
1653
  const router = import_express.default.Router();
1654
1654
  const handler = createOpenapiHandler(openapiFilePath, enableEnhancement, serverDir);
1655
- router.get("/", (req, res) => handler(req, res, context));
1655
+ router.get("/openapi.json", (req, res) => handler(req, res, context));
1656
1656
  return router;
1657
1657
  }
1658
1658
  __name(createOpenapiRouter, "createOpenapiRouter");
@@ -1661,7 +1661,7 @@ __name(createOpenapiRouter, "createOpenapiRouter");
1661
1661
  var OPENAPI_ROUTES = [
1662
1662
  {
1663
1663
  method: "GET",
1664
- path: "/",
1664
+ path: "/openapi.json",
1665
1665
  description: "Serve enhanced OpenAPI specification with source code references"
1666
1666
  }
1667
1667
  ];
@@ -1669,7 +1669,7 @@ function createOpenapiMiddleware(options) {
1669
1669
  const { openapiFilePath, enableEnhancement = true, serverDir } = options;
1670
1670
  return {
1671
1671
  name: "openapi",
1672
- mountPath: "/dev/openapi.json",
1672
+ mountPath: "/dev",
1673
1673
  routes: OPENAPI_ROUTES,
1674
1674
  enabled: /* @__PURE__ */ __name((context) => context.isDev, "enabled"),
1675
1675
  createRouter: /* @__PURE__ */ __name((context) => {
@@ -1941,7 +1941,7 @@ function parsePinoLog(line, source) {
1941
1941
  statusCode: pinoLog.status_code,
1942
1942
  durationMs: pinoLog.duration_ms,
1943
1943
  ip: pinoLog.ip,
1944
- referer: pinoLog.referer,
1944
+ pageRoute: pinoLog.page_route,
1945
1945
  requestBody: pinoLog.request_body,
1946
1946
  responseBody: pinoLog.response_body,
1947
1947
  queryParams: pinoLog.query_params
@@ -2848,6 +2848,7 @@ function parsePinoLog2(line, source) {
2848
2848
  statusCode: pinoLog.status_code,
2849
2849
  durationMs: pinoLog.duration_ms,
2850
2850
  ip: pinoLog.ip,
2851
+ pageRoute: pinoLog.page_route,
2851
2852
  requestBody: pinoLog.request_body,
2852
2853
  responseBody: pinoLog.response_body,
2853
2854
  queryParams: pinoLog.query_params