@vizzly-testing/cli 0.28.0 → 0.28.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/commands/builds.js
CHANGED
|
@@ -50,9 +50,7 @@ export async function buildsCommand(options = {}, globalOptions = {}, deps = {})
|
|
|
50
50
|
if (options.build) {
|
|
51
51
|
output.startSpinner('Fetching build...');
|
|
52
52
|
let include = options.comparisons ? 'comparisons' : undefined;
|
|
53
|
-
let response = await getBuild(client, options.build,
|
|
54
|
-
include
|
|
55
|
-
});
|
|
53
|
+
let response = await getBuild(client, options.build, include);
|
|
56
54
|
output.stopSpinner();
|
|
57
55
|
let build = response.build || response;
|
|
58
56
|
if (globalOptions.json) {
|
|
@@ -65,9 +65,7 @@ export async function comparisonsCommand(options = {}, globalOptions = {}, deps
|
|
|
65
65
|
// Get comparisons for a specific build
|
|
66
66
|
if (options.build) {
|
|
67
67
|
output.startSpinner('Fetching comparisons for build...');
|
|
68
|
-
let response = await getBuild(client, options.build,
|
|
69
|
-
include: 'comparisons'
|
|
70
|
-
});
|
|
68
|
+
let response = await getBuild(client, options.build, 'comparisons');
|
|
71
69
|
output.stopSpinner();
|
|
72
70
|
let build = response.build || response;
|
|
73
71
|
let comparisons = build.comparisons || [];
|