@devicecloud.dev/dcd 4.4.4 → 4.4.6
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/README.md +1 -0
- package/dist/commands/cloud.d.ts +1 -0
- package/dist/commands/cloud.js +19 -0
- package/dist/commands/upload.d.ts +1 -0
- package/dist/commands/upload.js +11 -0
- package/dist/types/schema.types.d.ts +1084 -328
- package/oclif.manifest.json +1 -87
- package/package.json +1 -1
- package/dist/commands/live.d.ts +0 -22
- package/dist/commands/live.js +0 -207
package/README.md
CHANGED
package/dist/commands/cloud.d.ts
CHANGED
package/dist/commands/cloud.js
CHANGED
|
@@ -172,6 +172,14 @@ class Cloud extends core_1.Command {
|
|
|
172
172
|
this.error(`Maestro version ${resolvedMaestroVersion} is no longer supported. ` +
|
|
173
173
|
`Please upgrade to a newer version. See: https://docs.devicecloud.dev/configuration/maestro-versions`);
|
|
174
174
|
}
|
|
175
|
+
const DEPRECATED_MAESTRO_VERSIONS = ['1.39.1', '2.4.0'];
|
|
176
|
+
if (DEPRECATED_MAESTRO_VERSIONS.includes(resolvedMaestroVersion)) {
|
|
177
|
+
this.log(`\n${styling_1.dividers.light}\n` +
|
|
178
|
+
`${styling_1.colors.warning('⚠')} ${styling_1.colors.bold('Deprecation Warning')}\n` +
|
|
179
|
+
styling_1.colors.dim(` Maestro version ${resolvedMaestroVersion} is deprecated and will be removed in a future release.\n`) +
|
|
180
|
+
styling_1.colors.dim(` Please upgrade to a newer version. See: `) + styling_1.colors.info('https://docs.devicecloud.dev/configuration/maestro-versions') + `\n` +
|
|
181
|
+
`${styling_1.dividers.light}\n`);
|
|
182
|
+
}
|
|
175
183
|
if (retry && retry > 2) {
|
|
176
184
|
this.log(styling_1.colors.warning('⚠') + ' ' + styling_1.colors.dim("Retries are now free of charge but limited to 2. If your test is still failing after 2 retries, please ask for help on Discord."));
|
|
177
185
|
flags.retry = 2;
|
|
@@ -612,5 +620,16 @@ class Cloud extends core_1.Command {
|
|
|
612
620
|
}
|
|
613
621
|
}
|
|
614
622
|
}
|
|
623
|
+
toErrorJson(err) {
|
|
624
|
+
if (err instanceof Error) {
|
|
625
|
+
return {
|
|
626
|
+
error: {
|
|
627
|
+
message: err.message,
|
|
628
|
+
...(err.code ? { code: err.code } : {}),
|
|
629
|
+
},
|
|
630
|
+
};
|
|
631
|
+
}
|
|
632
|
+
return { error: { message: String(err) } };
|
|
633
|
+
}
|
|
615
634
|
}
|
|
616
635
|
exports.default = Cloud;
|
package/dist/commands/upload.js
CHANGED
|
@@ -94,5 +94,16 @@ class Upload extends core_1.Command {
|
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
+
toErrorJson(err) {
|
|
98
|
+
if (err instanceof Error) {
|
|
99
|
+
return {
|
|
100
|
+
error: {
|
|
101
|
+
message: err.message,
|
|
102
|
+
...(err.code ? { code: err.code } : {}),
|
|
103
|
+
},
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
return { error: { message: String(err) } };
|
|
107
|
+
}
|
|
97
108
|
}
|
|
98
109
|
exports.default = Upload;
|