@devicecloud.dev/dcd 3.3.3-beta.1 → 3.3.4-beta.1
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/methods.js +2 -1
- package/dist/plan.js +2 -0
- package/dist/planMethods.js +6 -4
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/dist/methods.js
CHANGED
|
@@ -17,6 +17,7 @@ const promises_2 = require("node:stream/promises");
|
|
|
17
17
|
const StreamZip = require("node-stream-zip");
|
|
18
18
|
const plist_1 = require("plist");
|
|
19
19
|
const node_crypto_1 = require("node:crypto");
|
|
20
|
+
const path = require("path");
|
|
20
21
|
const cloud_1 = require("./commands/cloud");
|
|
21
22
|
const PERMITTED_EXTENSIONS = new Set([
|
|
22
23
|
'yml',
|
|
@@ -199,7 +200,7 @@ const extractAppMetadataIosZip = async (appFilePath) => new Promise((resolve, re
|
|
|
199
200
|
});
|
|
200
201
|
exports.extractAppMetadataIosZip = extractAppMetadataIosZip;
|
|
201
202
|
const extractAppMetadataIos = async (appFolderPath) => {
|
|
202
|
-
const infoPlistPath =
|
|
203
|
+
const infoPlistPath = path.normalize(path.join(appFolderPath, 'Info.plist'));
|
|
203
204
|
const buffer = await (0, promises_1.readFile)(infoPlistPath);
|
|
204
205
|
const data = await parseInfoPlist(buffer);
|
|
205
206
|
const appId = data.CFBundleIdentifier;
|
package/dist/plan.js
CHANGED
|
@@ -98,10 +98,12 @@ async function plan(input, includeTags, excludeTags, excludeFlows) {
|
|
|
98
98
|
return acc;
|
|
99
99
|
}, {});
|
|
100
100
|
const allFiles = await Promise.all(unfilteredFlowFiles.map((filePath) => checkDependencies(filePath))).then((results) => [...new Set(results.flat())]);
|
|
101
|
+
console.log('Found include tags in workspace config', workspaceConfig.includeTags);
|
|
101
102
|
const allIncludeTags = [
|
|
102
103
|
...includeTags,
|
|
103
104
|
...(workspaceConfig.includeTags || []),
|
|
104
105
|
];
|
|
106
|
+
console.log('Found exclude tags in workspace config', workspaceConfig.excludeTags);
|
|
105
107
|
const allExcludeTags = [
|
|
106
108
|
...excludeTags,
|
|
107
109
|
...(workspaceConfig.excludeTags || []),
|
package/dist/planMethods.js
CHANGED
|
@@ -36,7 +36,8 @@ function isFlowFile(filePath) {
|
|
|
36
36
|
}
|
|
37
37
|
const readYamlFileAsJson = (filePath) => {
|
|
38
38
|
try {
|
|
39
|
-
const
|
|
39
|
+
const normalizedPath = path.normalize(filePath);
|
|
40
|
+
const yamlText = fs.readFileSync(normalizedPath, 'utf8');
|
|
40
41
|
return yaml.load(yamlText);
|
|
41
42
|
}
|
|
42
43
|
catch (error) {
|
|
@@ -48,7 +49,8 @@ const readYamlFileAsJson = (filePath) => {
|
|
|
48
49
|
exports.readYamlFileAsJson = readYamlFileAsJson;
|
|
49
50
|
const readTestYamlFileAsJson = (filePath) => {
|
|
50
51
|
try {
|
|
51
|
-
const
|
|
52
|
+
const normalizedPath = path.normalize(filePath);
|
|
53
|
+
const yamlText = fs.readFileSync(normalizedPath, 'utf8');
|
|
52
54
|
const normalizedText = yamlText.replaceAll('\r\n', '\n');
|
|
53
55
|
if (normalizedText.includes('\n---\n')) {
|
|
54
56
|
const yamlTexts = normalizedText.split('\n---\n');
|
|
@@ -93,7 +95,7 @@ const checkIfFilesExistInWorkspace = (commandName, command, absoluteFilePath) =>
|
|
|
93
95
|
const directory = path.dirname(absoluteFilePath);
|
|
94
96
|
const buildError = (error) => `Flow file "${absoluteFilePath}" has a command "${commandName}" that references a ${error} ${JSON.stringify(command)}`;
|
|
95
97
|
const processFilePath = (relativePath) => {
|
|
96
|
-
const absoluteFilePath = path.resolve(directory, relativePath);
|
|
98
|
+
const absoluteFilePath = path.normalize(path.resolve(directory, relativePath));
|
|
97
99
|
const error = checkFile(absoluteFilePath);
|
|
98
100
|
if (error)
|
|
99
101
|
errors.push(buildError(error));
|
|
@@ -101,7 +103,7 @@ const checkIfFilesExistInWorkspace = (commandName, command, absoluteFilePath) =>
|
|
|
101
103
|
};
|
|
102
104
|
// simple command
|
|
103
105
|
if (typeof command === 'string') {
|
|
104
|
-
processFilePath(path.normalize(directory
|
|
106
|
+
processFilePath(path.normalize(path.join(directory, command)));
|
|
105
107
|
}
|
|
106
108
|
// array command
|
|
107
109
|
if (Array.isArray(command)) {
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED