@lambdatest/smartui-cli 4.1.44 → 4.1.45
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 +25 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2630,6 +2630,30 @@ var server_default = (ctx) => __async(void 0, null, function* () {
|
|
|
2630
2630
|
return reply.code(replyCode).send(replyBody);
|
|
2631
2631
|
}
|
|
2632
2632
|
}));
|
|
2633
|
+
server.get("/build/info", opts, (request, reply) => __async(void 0, null, function* () {
|
|
2634
|
+
let replyCode;
|
|
2635
|
+
let replyBody;
|
|
2636
|
+
try {
|
|
2637
|
+
if (ctx.build && ctx.build.id) {
|
|
2638
|
+
const buildInfo = ctx.build;
|
|
2639
|
+
const data = {
|
|
2640
|
+
buildId: buildInfo.id,
|
|
2641
|
+
buildName: buildInfo.name,
|
|
2642
|
+
baseline: buildInfo.baseline,
|
|
2643
|
+
projectToken: ctx.env.PROJECT_TOKEN || ""
|
|
2644
|
+
};
|
|
2645
|
+
replyCode = 200;
|
|
2646
|
+
replyBody = { data };
|
|
2647
|
+
} else {
|
|
2648
|
+
throw new Error("Build information is not available");
|
|
2649
|
+
}
|
|
2650
|
+
} catch (error) {
|
|
2651
|
+
ctx.log.debug(`build info failed; ${error}`);
|
|
2652
|
+
replyCode = 500;
|
|
2653
|
+
replyBody = { error: { message: error.message } };
|
|
2654
|
+
}
|
|
2655
|
+
return reply.code(replyCode).send(replyBody);
|
|
2656
|
+
}));
|
|
2633
2657
|
if (ctx.sourceCommand && ctx.sourceCommand === "exec-start") {
|
|
2634
2658
|
yield server.listen({ port: ctx.options.port });
|
|
2635
2659
|
let { port } = server.addresses()[0];
|
|
@@ -2796,7 +2820,7 @@ var authExec_default = (ctx) => {
|
|
|
2796
2820
|
};
|
|
2797
2821
|
|
|
2798
2822
|
// package.json
|
|
2799
|
-
var version = "4.1.
|
|
2823
|
+
var version = "4.1.45";
|
|
2800
2824
|
var package_default = {
|
|
2801
2825
|
name: "@lambdatest/smartui-cli",
|
|
2802
2826
|
version,
|