@lambdatest/smartui-cli 4.1.7-beta.0 → 4.1.7-beta.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/index.cjs +13 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1530,7 +1530,7 @@ var authExec_default = (ctx) => {
|
|
|
1530
1530
|
};
|
|
1531
1531
|
|
|
1532
1532
|
// package.json
|
|
1533
|
-
var version = "4.1.7-beta.
|
|
1533
|
+
var version = "4.1.7-beta.2";
|
|
1534
1534
|
var package_default = {
|
|
1535
1535
|
name: "@lambdatest/smartui-cli",
|
|
1536
1536
|
version,
|
|
@@ -1642,7 +1642,7 @@ var httpClient = class {
|
|
|
1642
1642
|
request(config, log2) {
|
|
1643
1643
|
return __async(this, null, function* () {
|
|
1644
1644
|
log2.debug(`http request: ${config.method} ${config.url}`);
|
|
1645
|
-
if (config && config.data && !config.data.name) {
|
|
1645
|
+
if (config && config.data && !config.data.name && !config.data.snapshot) {
|
|
1646
1646
|
log2.debug(config.data);
|
|
1647
1647
|
}
|
|
1648
1648
|
if (config && config.data && config.data.snapshotUuid) {
|
|
@@ -2861,6 +2861,17 @@ function processSnapshot(snapshot, ctx) {
|
|
|
2861
2861
|
if (hasBrowserErrors) {
|
|
2862
2862
|
discoveryErrors.timestamp = (/* @__PURE__ */ new Date()).toISOString();
|
|
2863
2863
|
}
|
|
2864
|
+
if (ctx.config.useGlobalCache) {
|
|
2865
|
+
const keys = globalCache.keys();
|
|
2866
|
+
keys.forEach((key) => {
|
|
2867
|
+
if (!(key in cache)) {
|
|
2868
|
+
const globalCacheData = globalCache.get(key);
|
|
2869
|
+
if (globalCacheData) {
|
|
2870
|
+
cache[key] = globalCacheData;
|
|
2871
|
+
}
|
|
2872
|
+
}
|
|
2873
|
+
});
|
|
2874
|
+
}
|
|
2864
2875
|
return {
|
|
2865
2876
|
processedSnapshot: {
|
|
2866
2877
|
name: snapshot.name,
|