@lark-apaas/devtool-kits 1.0.0 → 1.0.1
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 +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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 = "
|
|
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, "
|
|
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) {
|