@lambdatest/smartui-cli 4.1.38 → 4.1.39
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 +13 -6
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2271,7 +2271,7 @@ var server_default = (ctx) => __async(void 0, null, function* () {
|
|
|
2271
2271
|
capsBuildId = (cachedCapabilities == null ? void 0 : cachedCapabilities.buildId) || "";
|
|
2272
2272
|
} else {
|
|
2273
2273
|
try {
|
|
2274
|
-
let fetchedCapabilitiesResp = yield ctx.client.getSmartUICapabilities(sessionId, ctx.config, ctx.git, ctx.log, ctx.isStartExec);
|
|
2274
|
+
let fetchedCapabilitiesResp = yield ctx.client.getSmartUICapabilities(sessionId, ctx.config, ctx.git, ctx.log, ctx.isStartExec, ctx.options.baselineBuild);
|
|
2275
2275
|
capsBuildId = (fetchedCapabilitiesResp == null ? void 0 : fetchedCapabilitiesResp.buildId) || "";
|
|
2276
2276
|
ctx.log.debug(`fetch caps for sessionId: ${sessionId} are ${JSON.stringify(fetchedCapabilitiesResp)}`);
|
|
2277
2277
|
if (capsBuildId) {
|
|
@@ -2399,7 +2399,8 @@ var server_default = (ctx) => __async(void 0, null, function* () {
|
|
|
2399
2399
|
let replyBody;
|
|
2400
2400
|
try {
|
|
2401
2401
|
ctx.log.debug(`request.query : ${JSON.stringify(request.query)}`);
|
|
2402
|
-
const { contextId, pollTimeout, snapshotName } = request.query;
|
|
2402
|
+
const { contextId, pollTimeout, snapshotName: rawSnapshotName } = request.query;
|
|
2403
|
+
const snapshotName = rawSnapshotName == null ? void 0 : rawSnapshotName.trim();
|
|
2403
2404
|
if (!contextId || !snapshotName) {
|
|
2404
2405
|
throw new Error("contextId and snapshotName are required parameters");
|
|
2405
2406
|
}
|
|
@@ -2652,7 +2653,7 @@ var authExec_default = (ctx) => {
|
|
|
2652
2653
|
};
|
|
2653
2654
|
|
|
2654
2655
|
// package.json
|
|
2655
|
-
var version = "4.1.
|
|
2656
|
+
var version = "4.1.39";
|
|
2656
2657
|
var package_default = {
|
|
2657
2658
|
name: "@lambdatest/smartui-cli",
|
|
2658
2659
|
version,
|
|
@@ -2963,7 +2964,7 @@ var httpClient = class {
|
|
|
2963
2964
|
}
|
|
2964
2965
|
}, log2);
|
|
2965
2966
|
}
|
|
2966
|
-
getSmartUICapabilities(sessionId, config, git, log2, isStartExec) {
|
|
2967
|
+
getSmartUICapabilities(sessionId, config, git, log2, isStartExec, baselineBuild) {
|
|
2967
2968
|
return this.request({
|
|
2968
2969
|
url: "/sessions/capabilities",
|
|
2969
2970
|
method: "GET",
|
|
@@ -2973,7 +2974,8 @@ var httpClient = class {
|
|
|
2973
2974
|
data: {
|
|
2974
2975
|
git,
|
|
2975
2976
|
config,
|
|
2976
|
-
isStartExec
|
|
2977
|
+
isStartExec,
|
|
2978
|
+
baselineBuild
|
|
2977
2979
|
},
|
|
2978
2980
|
headers: {
|
|
2979
2981
|
projectToken: "",
|
|
@@ -3330,8 +3332,13 @@ var httpClient = class {
|
|
|
3330
3332
|
}
|
|
3331
3333
|
getSnapshotStatus(buildId, snapshotName, snapshotUuid, ctx) {
|
|
3332
3334
|
return this.request({
|
|
3333
|
-
url: `/snapshot/status
|
|
3335
|
+
url: `/snapshot/status`,
|
|
3334
3336
|
method: "GET",
|
|
3337
|
+
params: {
|
|
3338
|
+
buildId,
|
|
3339
|
+
snapshotName,
|
|
3340
|
+
snapshotUUID: snapshotUuid
|
|
3341
|
+
},
|
|
3335
3342
|
headers: {
|
|
3336
3343
|
"Content-Type": "application/json"
|
|
3337
3344
|
}
|