@devicecloud.dev/dcd 1.0.1 → 1.0.3

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/constants.js CHANGED
@@ -5,13 +5,12 @@ const core_1 = require("@oclif/core");
5
5
  exports.flags = {
6
6
  'android-api-level': core_1.Flags.integer({
7
7
  description: '[Android only] Android API level to run your flow against',
8
- options: ['32', '33', '34'],
8
+ options: ['33', '34'],
9
9
  }),
10
10
  'android-device': core_1.Flags.string({
11
11
  description: '[Android only] Android device to run your flow against',
12
12
  options: [
13
13
  'pixel-6',
14
- 'pixel-6a',
15
14
  'pixel-6-pro',
16
15
  'pixel-7',
17
16
  'pixel-7-pro',
@@ -30,7 +29,7 @@ exports.flags = {
30
29
  }),
31
30
  'app-binary-id': core_1.Flags.string({
32
31
  aliases: ['app-binary-id'],
33
- description: 'The ID of the app binary previously uploaded to Maestro Cloud',
32
+ description: 'The ID of the app binary previously uploaded to devicecloud.dev',
34
33
  }),
35
34
  'app-file': core_1.Flags.file({
36
35
  aliases: ['app-file'],
package/dist/methods.js CHANGED
@@ -32,7 +32,11 @@ Run 'npm install -g @devicecloud.dev/dcd' to update to the latest version
32
32
  };
33
33
  exports.versionCheck = versionCheck;
34
34
  const typeSafePost = async (baseUrl, path, init) => {
35
- const res = await fetch(baseUrl + path, { ...init, method: 'POST' });
35
+ const res = await fetch(baseUrl + path, {
36
+ ...init,
37
+ method: 'POST',
38
+ signal: AbortSignal.timeout(3000000),
39
+ });
36
40
  if (!res.ok) {
37
41
  throw new Error(await res.text());
38
42
  }
package/dist/plan.js CHANGED
@@ -39,9 +39,10 @@ async function plan(input, includeTags, excludeTags, excludeFlows) {
39
39
  unfilteredFlowFiles = unfilteredFlowFiles.filter((file) => !file.startsWith(path.resolve(flow)));
40
40
  }
41
41
  }
42
- const configFilePath = unfilteredFlowFiles.find((file) => file.endsWith('config.yaml') || file.endsWith('config.yml'));
43
- if (configFilePath)
44
- unfilteredFlowFiles = unfilteredFlowFiles.filter((file) => file !== configFilePath);
42
+ // if config file present at top level, use it
43
+ const configFilePath = unfilteredFlowFiles.find((file) => file === input + 'config.yaml' || file === input + 'config.yml');
44
+ // remove all config files from the list to prevent processing them
45
+ unfilteredFlowFiles = unfilteredFlowFiles.filter((file) => !(file.endsWith('config.yaml') || file.endsWith('config.yml')));
45
46
  const cleanPath = path.normalize(input);
46
47
  const relativeFilePaths = unfilteredFlowFiles.map((file) => file.replace(cleanPath, ''));
47
48
  const topLevelFlowFiles = relativeFilePaths.filter((file) => !file.includes('/'));
@@ -25,7 +25,6 @@
25
25
  "hasDynamicHelp": false,
26
26
  "multiple": false,
27
27
  "options": [
28
- "32",
29
28
  "33",
30
29
  "34"
31
30
  ],
@@ -38,7 +37,6 @@
38
37
  "multiple": false,
39
38
  "options": [
40
39
  "pixel-6",
41
- "pixel-6a",
42
40
  "pixel-6-pro",
43
41
  "pixel-7",
44
42
  "pixel-7-pro",
@@ -73,7 +71,7 @@
73
71
  "aliases": [
74
72
  "app-binary-id"
75
73
  ],
76
- "description": "The ID of the app binary previously uploaded to Maestro Cloud",
74
+ "description": "The ID of the app binary previously uploaded to devicecloud.dev",
77
75
  "name": "app-binary-id",
78
76
  "hasDynamicHelp": false,
79
77
  "multiple": false,
@@ -228,5 +226,5 @@
228
226
  ]
229
227
  }
230
228
  },
231
- "version": "1.0.1"
229
+ "version": "1.0.3"
232
230
  }
package/package.json CHANGED
@@ -73,7 +73,7 @@
73
73
  "test": "mocha --forbid-only \"test/**/*.test.ts\"",
74
74
  "version": "oclif readme && git add README.md"
75
75
  },
76
- "version": "1.0.1",
76
+ "version": "1.0.3",
77
77
  "bugs": {
78
78
  "url": "https://discord.gg/gm3mJwcNw8"
79
79
  },