@devicecloud.dev/dcd 4.4.5 → 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 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
 
@@ -96,4 +96,5 @@ export default class Cloud extends Command {
96
96
  * @throws Error for infrastructure or configuration errors
97
97
  */
98
98
  run(): Promise<any>;
99
+ protected toErrorJson(err: unknown): unknown;
99
100
  }
@@ -620,5 +620,16 @@ class Cloud extends core_1.Command {
620
620
  }
621
621
  }
622
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
+ }
623
634
  }
624
635
  exports.default = Cloud;
@@ -16,4 +16,5 @@ export default class Upload extends Command {
16
16
  run(): Promise<{
17
17
  appBinaryId: string;
18
18
  }>;
19
+ protected toErrorJson(err: unknown): unknown;
19
20
  }
@@ -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;
@@ -14,6 +14,7 @@ export declare enum EiOSDevices {
14
14
  'iphone-16-pro-max' = "iphone-16-pro-max"
15
15
  }
16
16
  export declare enum EAndroidDevices {
17
+ 'generic-tablet' = "generic-tablet",
17
18
  'pixel-6' = "pixel-6",
18
19
  'pixel-6-pro' = "pixel-6-pro",
19
20
  'pixel-7' = "pixel-7",
@@ -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";
@@ -247,6 +247,7 @@
247
247
  "hasDynamicHelp": false,
248
248
  "multiple": false,
249
249
  "options": [
250
+ "generic-tablet",
250
251
  "pixel-6",
251
252
  "pixel-6-pro",
252
253
  "pixel-7",
@@ -879,5 +880,5 @@
879
880
  ]
880
881
  }
881
882
  },
882
- "version": "4.4.5"
883
+ "version": "4.4.6"
883
884
  }
package/package.json CHANGED
@@ -69,7 +69,7 @@
69
69
  "type": "git",
70
70
  "url": "https://devicecloud.dev"
71
71
  },
72
- "version": "4.4.5",
72
+ "version": "4.4.6",
73
73
  "bugs": {
74
74
  "url": "https://discord.gg/gm3mJwcNw8"
75
75
  },