@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.js CHANGED
@@ -1605,7 +1605,7 @@ function createOpenapiRouter(options, context) {
1605
1605
  const { openapiFilePath, enableEnhancement, serverDir } = options;
1606
1606
  const router = express.Router();
1607
1607
  const handler = createOpenapiHandler(openapiFilePath, enableEnhancement, serverDir);
1608
- router.get("/", (req, res) => handler(req, res, context));
1608
+ router.get("/openapi.json", (req, res) => handler(req, res, context));
1609
1609
  return router;
1610
1610
  }
1611
1611
  __name(createOpenapiRouter, "createOpenapiRouter");
@@ -1614,7 +1614,7 @@ __name(createOpenapiRouter, "createOpenapiRouter");
1614
1614
  var OPENAPI_ROUTES = [
1615
1615
  {
1616
1616
  method: "GET",
1617
- path: "/",
1617
+ path: "/openapi.json",
1618
1618
  description: "Serve enhanced OpenAPI specification with source code references"
1619
1619
  }
1620
1620
  ];
@@ -1622,7 +1622,7 @@ function createOpenapiMiddleware(options) {
1622
1622
  const { openapiFilePath, enableEnhancement = true, serverDir } = options;
1623
1623
  return {
1624
1624
  name: "openapi",
1625
- mountPath: "/dev/openapi.json",
1625
+ mountPath: "/dev",
1626
1626
  routes: OPENAPI_ROUTES,
1627
1627
  enabled: /* @__PURE__ */ __name((context) => context.isDev, "enabled"),
1628
1628
  createRouter: /* @__PURE__ */ __name((context) => {
@@ -1894,7 +1894,7 @@ function parsePinoLog(line, source) {
1894
1894
  statusCode: pinoLog.status_code,
1895
1895
  durationMs: pinoLog.duration_ms,
1896
1896
  ip: pinoLog.ip,
1897
- referer: pinoLog.referer,
1897
+ pageRoute: pinoLog.page_route,
1898
1898
  requestBody: pinoLog.request_body,
1899
1899
  responseBody: pinoLog.response_body,
1900
1900
  queryParams: pinoLog.query_params
@@ -2801,6 +2801,7 @@ function parsePinoLog2(line, source) {
2801
2801
  statusCode: pinoLog.status_code,
2802
2802
  durationMs: pinoLog.duration_ms,
2803
2803
  ip: pinoLog.ip,
2804
+ pageRoute: pinoLog.page_route,
2804
2805
  requestBody: pinoLog.request_body,
2805
2806
  responseBody: pinoLog.response_body,
2806
2807
  queryParams: pinoLog.query_params