@devicecloud.dev/dcd 3.2.0 → 3.2.2
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/commands/cloud.js +1 -1
- package/dist/constants.js +1 -1
- package/dist/methods.js +9 -4
- package/dist/plan.js +3 -1
- package/oclif.manifest.json +2 -2
- package/package.json +1 -1
package/dist/commands/cloud.js
CHANGED
|
@@ -264,7 +264,7 @@ class Cloud extends core_1.Command {
|
|
|
264
264
|
core_1.ux.url(url, url);
|
|
265
265
|
if (async) {
|
|
266
266
|
(0, cli_ux_1.info)('Not waiting for results as async flag is set to true');
|
|
267
|
-
|
|
267
|
+
return;
|
|
268
268
|
}
|
|
269
269
|
// poll for the run status every 5 seconds
|
|
270
270
|
core_1.ux.action.start('Waiting for results', 'Initializing', { stdout: true });
|
package/dist/constants.js
CHANGED
|
@@ -50,7 +50,7 @@ exports.flags = {
|
|
|
50
50
|
description: 'App binary to run your flows against',
|
|
51
51
|
}),
|
|
52
52
|
async: core_1.Flags.boolean({
|
|
53
|
-
description: '
|
|
53
|
+
description: 'Immediately return (exit code 0) from the command without waiting for the results of the run (useful for saving CI minutes)',
|
|
54
54
|
}),
|
|
55
55
|
'device-locale': core_1.Flags.string({
|
|
56
56
|
description: 'Locale that will be set to a device, ISO-639-1 code and uppercase ISO-3166-1 code e.g. "de_DE" for Germany',
|
package/dist/methods.js
CHANGED
|
@@ -224,7 +224,12 @@ const uploadBinary = async (filePath, apiUrl, apiKey, ignoreShaCheck = false) =>
|
|
|
224
224
|
let sha = undefined;
|
|
225
225
|
try {
|
|
226
226
|
sha = await getFileHashFromFile(file);
|
|
227
|
-
|
|
227
|
+
}
|
|
228
|
+
catch (e) {
|
|
229
|
+
console.warn('Warning: Failed to get file hash', e);
|
|
230
|
+
}
|
|
231
|
+
if (!ignoreShaCheck && sha) {
|
|
232
|
+
try {
|
|
228
233
|
const { appBinaryId, exists } = await (0, exports.typeSafePost)(apiUrl, '/uploads/checkForExistingUpload', {
|
|
229
234
|
body: JSON.stringify({ sha }),
|
|
230
235
|
headers: {
|
|
@@ -238,9 +243,9 @@ const uploadBinary = async (filePath, apiUrl, apiKey, ignoreShaCheck = false) =>
|
|
|
238
243
|
return appBinaryId;
|
|
239
244
|
}
|
|
240
245
|
}
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
246
|
+
catch {
|
|
247
|
+
// ignore error
|
|
248
|
+
}
|
|
244
249
|
}
|
|
245
250
|
const { id, message, path, token } = await (0, exports.typeSafePost)(apiUrl, '/uploads/getBinaryUploadUrl', {
|
|
246
251
|
body: JSON.stringify({
|
package/dist/plan.js
CHANGED
|
@@ -120,10 +120,12 @@ async function plan(input, includeTags, excludeTags, excludeFlows) {
|
|
|
120
120
|
// eslint-disable-next-line unicorn/no-array-reduce
|
|
121
121
|
const pathsByName = allFlows.reduce((acc, filePath) => {
|
|
122
122
|
const config = configPerFlowFile[filePath];
|
|
123
|
-
|
|
123
|
+
const name = config?.name || path.parse(filePath).name;
|
|
124
|
+
acc[name] = filePath;
|
|
124
125
|
return acc;
|
|
125
126
|
}, {});
|
|
126
127
|
const flowsToRunInSequence = workspaceConfig.executionOrder?.flowsOrder
|
|
128
|
+
?.map((flowOrder) => flowOrder.replace('.yaml', '').replace('.yml', '')) // support case where ext is left on
|
|
127
129
|
?.map((flowOrder) => (0, planMethods_1.getFlowsToRunInSequence)(pathsByName, [flowOrder]))
|
|
128
130
|
.flat() || [];
|
|
129
131
|
const normalFlows = allFlows
|
package/oclif.manifest.json
CHANGED
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"type": "option"
|
|
110
110
|
},
|
|
111
111
|
"async": {
|
|
112
|
-
"description": "
|
|
112
|
+
"description": "Immediately return (exit code 0) from the command without waiting for the results of the run (useful for saving CI minutes)",
|
|
113
113
|
"name": "async",
|
|
114
114
|
"allowNo": false,
|
|
115
115
|
"type": "boolean"
|
|
@@ -323,5 +323,5 @@
|
|
|
323
323
|
]
|
|
324
324
|
}
|
|
325
325
|
},
|
|
326
|
-
"version": "3.2.
|
|
326
|
+
"version": "3.2.2"
|
|
327
327
|
}
|