@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/error.html CHANGED
@@ -146,7 +146,11 @@
146
146
  search: window.location.search,
147
147
  hash: window.location.hash,
148
148
  };
149
-
149
+ // 通知前端,渲染错误页面已准备就绪
150
+ sendPostMessage({
151
+ type: 'PreviewReady'
152
+ });
153
+
150
154
  // 如果有错误对象,发送 postMessage
151
155
  if (errorData) {
152
156
  sendPostMessage({
package/dist/index.cjs CHANGED
@@ -28493,7 +28493,7 @@ function injectErrorData(template, errorLogs) {
28493
28493
  }
28494
28494
  __name(injectErrorData, "injectErrorData");
28495
28495
  function handleDevProxyError(err, _req, res, options) {
28496
- const { logDir = import_node_path2.default.join(process.cwd(), "logs"), maxErrorLogs = 100, logFileName = "app.log" } = options || {};
28496
+ const { logDir = import_node_path2.default.join(process.cwd(), "logs"), maxErrorLogs = 100, logFileName = "server.log" } = options || {};
28497
28497
  console.error("[Proxy Error]:", err.message);
28498
28498
  if (res.headersSent) {
28499
28499
  console.error("[Proxy Error]: Headers already sent, cannot send error page");
@@ -29171,7 +29171,7 @@ function handleError(res, error, message = "Failed to read log file") {
29171
29171
  }
29172
29172
  __name(handleError, "handleError");
29173
29173
  function createGetTraceEntriesHandler(logDir) {
29174
- const appLogPath = (0, import_node_path6.join)(logDir, "app.log");
29174
+ const appLogPath = (0, import_node_path6.join)(logDir, "server.log");
29175
29175
  return async (req, res) => {
29176
29176
  const traceId = (req.params.traceId || "").trim();
29177
29177
  if (!traceId) {