@devicecloud.dev/dcd 4.4.5 → 4.4.8
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 +0 -5
- package/dist/commands/cloud.d.ts +1 -0
- package/dist/commands/cloud.js +12 -9
- package/dist/commands/upload.d.ts +1 -0
- package/dist/commands/upload.js +11 -0
- package/dist/types/domain/device.types.d.ts +1 -0
- package/dist/types/domain/device.types.js +1 -0
- package/dist/types/generated/schema.types.d.ts +0 -1
- package/dist/types/schema.types.d.ts +0 -1
- package/oclif.manifest.json +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
# devicecloud.dev CLI
|
|
2
2
|
|
|
3
|
-
> **Notice:** This CLI is being replaced by a new standalone repository at
|
|
4
|
-
> [moropo-com/cli](https://github.com/moropo-com/cli). Active development,
|
|
5
|
-
> releases, and new features (including `dcd login`) live there. The version
|
|
6
|
-
> in this directory is retained for historical reference and will be removed
|
|
7
|
-
> once the migration is complete.
|
|
8
3
|
|
|
9
4
|
---
|
|
10
5
|
|
package/dist/commands/cloud.d.ts
CHANGED
package/dist/commands/cloud.js
CHANGED
|
@@ -167,19 +167,11 @@ class Cloud extends core_1.Command {
|
|
|
167
167
|
debug,
|
|
168
168
|
logger: this.log.bind(this),
|
|
169
169
|
});
|
|
170
|
-
const REMOVED_MAESTRO_VERSIONS = ['1.39.2', '1.39.7', '2.0.3'];
|
|
170
|
+
const REMOVED_MAESTRO_VERSIONS = ['1.39.1', '1.39.2', '1.39.7', '2.0.3', '2.4.0'];
|
|
171
171
|
if (REMOVED_MAESTRO_VERSIONS.includes(resolvedMaestroVersion)) {
|
|
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
|
-
}
|
|
183
175
|
if (retry && retry > 2) {
|
|
184
176
|
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."));
|
|
185
177
|
flags.retry = 2;
|
|
@@ -620,5 +612,16 @@ class Cloud extends core_1.Command {
|
|
|
620
612
|
}
|
|
621
613
|
}
|
|
622
614
|
}
|
|
615
|
+
toErrorJson(err) {
|
|
616
|
+
if (err instanceof Error) {
|
|
617
|
+
return {
|
|
618
|
+
error: {
|
|
619
|
+
message: err.message,
|
|
620
|
+
...(err.code ? { code: err.code } : {}),
|
|
621
|
+
},
|
|
622
|
+
};
|
|
623
|
+
}
|
|
624
|
+
return { error: { message: String(err) } };
|
|
625
|
+
}
|
|
623
626
|
}
|
|
624
627
|
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;
|
|
@@ -19,6 +19,7 @@ var EiOSDevices;
|
|
|
19
19
|
})(EiOSDevices || (exports.EiOSDevices = EiOSDevices = {}));
|
|
20
20
|
var EAndroidDevices;
|
|
21
21
|
(function (EAndroidDevices) {
|
|
22
|
+
EAndroidDevices["generic-tablet"] = "generic-tablet";
|
|
22
23
|
EAndroidDevices["pixel-6"] = "pixel-6";
|
|
23
24
|
EAndroidDevices["pixel-6-pro"] = "pixel-6-pro";
|
|
24
25
|
EAndroidDevices["pixel-7"] = "pixel-7";
|
package/oclif.manifest.json
CHANGED