@devicecloud.dev/dcd 3.7.6 → 3.7.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.
@@ -137,9 +137,8 @@ class Cloud extends core_1.Command {
137
137
  if (debug) {
138
138
  this.log('DEBUG: Moropo v1 API key detected, downloading tests from Moropo API');
139
139
  }
140
- const branchName = process.env.GITHUB_REF_NAME || 'main';
141
140
  if (debug) {
142
- this.log(`DEBUG: Using branch name: ${branchName}`);
141
+ this.log(`DEBUG: Using branch name: main`);
143
142
  }
144
143
  try {
145
144
  if (!quiet && !json) {
@@ -151,7 +150,7 @@ class Cloud extends core_1.Command {
151
150
  headers: {
152
151
  accept: 'application/zip',
153
152
  'x-app-api-key': moropoApiKey,
154
- 'x-branch-name': branchName,
153
+ 'x-branch-name': 'main',
155
154
  },
156
155
  });
157
156
  if (!response.ok) {
package/dist/plan.js CHANGED
@@ -99,10 +99,29 @@ async function plan(input, includeTags, excludeTags, excludeFlows, configFile) {
99
99
  });
100
100
  // overwrite the list of files with the globbed ones
101
101
  unfilteredFlowFiles = matchedFiles
102
- .filter((file) => file !== 'config.yaml' &&
103
- file !== 'config.yml' &&
104
- (!configFile || file !== path.basename(configFile)) &&
105
- (file.endsWith('.yaml') || file.endsWith('.yml')))
102
+ .filter((file) => {
103
+ // Exclude config files
104
+ if (file === 'config.yaml' || file === 'config.yml') {
105
+ return false;
106
+ }
107
+ // Exclude config file if specified
108
+ if (configFile && file === path.basename(configFile)) {
109
+ return false;
110
+ }
111
+ // Check file extension
112
+ if (!file.endsWith('.yaml') && !file.endsWith('.yml')) {
113
+ return false;
114
+ }
115
+ // Exclude files inside .app bundles
116
+ // Check if any directory in the path ends with .app
117
+ const pathParts = file.split(path.sep);
118
+ for (const part of pathParts) {
119
+ if (part.endsWith('.app')) {
120
+ return false;
121
+ }
122
+ }
123
+ return true;
124
+ })
106
125
  .map((file) => path.resolve(normalizedInput, file));
107
126
  }
108
127
  else {
@@ -32,6 +32,14 @@ function getFlowsToRunInSequence(paths, flowOrder) {
32
32
  }
33
33
  }
34
34
  function isFlowFile(filePath) {
35
+ // Exclude files inside .app bundles
36
+ // Check if any directory in the path ends with .app
37
+ const pathParts = filePath.split(path.sep);
38
+ for (const part of pathParts) {
39
+ if (part.endsWith('.app')) {
40
+ return false;
41
+ }
42
+ }
35
43
  return filePath.endsWith('.yaml') || filePath.endsWith('.yml');
36
44
  }
37
45
  const readYamlFileAsJson = (filePath) => {
@@ -556,5 +556,5 @@
556
556
  ]
557
557
  }
558
558
  },
559
- "version": "3.7.6"
559
+ "version": "3.7.8"
560
560
  }
package/package.json CHANGED
@@ -79,7 +79,7 @@
79
79
  "prepare": "yarn build",
80
80
  "version": "oclif readme && git add README.md"
81
81
  },
82
- "version": "3.7.6",
82
+ "version": "3.7.8",
83
83
  "bugs": {
84
84
  "url": "https://discord.gg/gm3mJwcNw8"
85
85
  },