@lark-apaas/devtool-kits 1.2.8-alpha.0 → 1.2.8-alpha.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 +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2318,7 +2318,7 @@ function generateUUID() {
|
|
|
2318
2318
|
});
|
|
2319
2319
|
}
|
|
2320
2320
|
__name(generateUUID, "generateUUID");
|
|
2321
|
-
async function readTriggerList(filePath, trigger, path7, limit) {
|
|
2321
|
+
async function readTriggerList(filePath, trigger, path7, limit, triggerID) {
|
|
2322
2322
|
if (!await fileExists(filePath)) {
|
|
2323
2323
|
return void 0;
|
|
2324
2324
|
}
|
|
@@ -2351,7 +2351,7 @@ async function readTriggerList(filePath, trigger, path7, limit) {
|
|
|
2351
2351
|
if (trigger && builder.entries.length > 0) {
|
|
2352
2352
|
const requestEntry = builder.entries.find((e) => e.request_body?.trigger);
|
|
2353
2353
|
if (requestEntry?.request_body?.trigger) {
|
|
2354
|
-
return String(requestEntry.request_body.trigger) === trigger;
|
|
2354
|
+
return String(requestEntry.request_body.trigger) === trigger && (triggerID ? requestEntry?.request_body?.triggerID === triggerID : true);
|
|
2355
2355
|
}
|
|
2356
2356
|
return false;
|
|
2357
2357
|
}
|
|
@@ -2584,10 +2584,11 @@ function createGetTriggerListHandler(logDir) {
|
|
|
2584
2584
|
message: "trigger is required"
|
|
2585
2585
|
});
|
|
2586
2586
|
}
|
|
2587
|
+
const triggerID = typeof req.query.triggerID === "string" ? req.query.triggerID.trim() : void 0;
|
|
2587
2588
|
const path7 = typeof req.query.path === "string" ? req.query.path.trim() : "/__innerapi__/automation/invoke";
|
|
2588
2589
|
const limit = parseLimit(req.query.limit, 10, 200);
|
|
2589
2590
|
try {
|
|
2590
|
-
const result = await readTriggerList(traceLogPath, trigger, path7, limit);
|
|
2591
|
+
const result = await readTriggerList(traceLogPath, trigger, path7, limit, triggerID);
|
|
2591
2592
|
if (!result) {
|
|
2592
2593
|
return handleNotFound(res, traceLogPath);
|
|
2593
2594
|
}
|