@lark-apaas/devtool-kits 1.0.0 → 1.0.2

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.d.cts CHANGED
@@ -22,7 +22,7 @@ interface ProxyErrorOptions {
22
22
  logDir?: string;
23
23
  /** 读取最近多少条错误日志 */
24
24
  maxErrorLogs?: number;
25
- /** 日志文件名(默认为 app.log) */
25
+ /** 日志文件名(默认为 server.log) */
26
26
  logFileName?: string;
27
27
  }
28
28
  /**
@@ -47,7 +47,7 @@ interface ProxyErrorOptions {
47
47
  * handleDevProxyError(err, req, res, {
48
48
  * logDir: './logs',
49
49
  * maxErrorLogs: 50,
50
- * logFileName: 'app.log'
50
+ * logFileName: 'server.log'
51
51
  * });
52
52
  * }
53
53
  * });
package/dist/index.d.ts CHANGED
@@ -22,7 +22,7 @@ interface ProxyErrorOptions {
22
22
  logDir?: string;
23
23
  /** 读取最近多少条错误日志 */
24
24
  maxErrorLogs?: number;
25
- /** 日志文件名(默认为 app.log) */
25
+ /** 日志文件名(默认为 server.log) */
26
26
  logFileName?: string;
27
27
  }
28
28
  /**
@@ -47,7 +47,7 @@ interface ProxyErrorOptions {
47
47
  * handleDevProxyError(err, req, res, {
48
48
  * logDir: './logs',
49
49
  * maxErrorLogs: 50,
50
- * logFileName: 'app.log'
50
+ * logFileName: 'server.log'
51
51
  * });
52
52
  * }
53
53
  * });
package/dist/index.js CHANGED
@@ -28480,7 +28480,7 @@ function injectErrorData(template, errorLogs) {
28480
28480
  }
28481
28481
  __name(injectErrorData, "injectErrorData");
28482
28482
  function handleDevProxyError(err, _req, res, options) {
28483
- const { logDir = path2.join(process.cwd(), "logs"), maxErrorLogs = 100, logFileName = "app.log" } = options || {};
28483
+ const { logDir = path2.join(process.cwd(), "logs"), maxErrorLogs = 100, logFileName = "server.log" } = options || {};
28484
28484
  console.error("[Proxy Error]:", err.message);
28485
28485
  if (res.headersSent) {
28486
28486
  console.error("[Proxy Error]: Headers already sent, cannot send error page");
@@ -29158,7 +29158,7 @@ function handleError(res, error, message = "Failed to read log file") {
29158
29158
  }
29159
29159
  __name(handleError, "handleError");
29160
29160
  function createGetTraceEntriesHandler(logDir) {
29161
- const appLogPath = join2(logDir, "app.log");
29161
+ const appLogPath = join2(logDir, "server.log");
29162
29162
  return async (req, res) => {
29163
29163
  const traceId = (req.params.traceId || "").trim();
29164
29164
  if (!traceId) {