@mablhq/mabl-cli 1.13.28 → 1.16.5
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/api/featureSet.js +27 -0
- package/api/mablApiClient.js +21 -20
- package/browserLauncher/playwrightBrowserLauncher/playwrightBrowserLauncher.js +2 -0
- package/browserLauncher/playwrightBrowserLauncher/playwrightDom.js +12 -0
- package/browserLauncher/puppeteerBrowserLauncher/puppeteerElementHandle.js +12 -0
- package/commands/tests/executionUtil.js +6 -1
- package/commands/tests/testsUtil.js +2 -0
- package/execution/index.js +1 -1
- package/mablApi/index.js +1 -1
- package/mablscript/MablStep.js +3 -0
- package/mablscript/steps/AccessibilityCheck.js +14 -2
- package/mablscriptFind/index.js +1 -1
- package/package.json +1 -1
- package/resources/mablFind.js +1 -1
- package/util/resourceUtil.js +18 -7
- package/api/entities/JourneyRunScheduledMessage.js +0 -2
package/util/resourceUtil.js
CHANGED
|
@@ -40,20 +40,31 @@ function findDirectory(pathFromBase) {
|
|
|
40
40
|
return packedPath;
|
|
41
41
|
}
|
|
42
42
|
exports.findDirectory = findDirectory;
|
|
43
|
+
const CLI_NAMES = [
|
|
44
|
+
'mabl-cli',
|
|
45
|
+
'mabl-cli-dev',
|
|
46
|
+
'mabl-cli-internal',
|
|
47
|
+
'mabl-cli-internal-unpacked',
|
|
48
|
+
];
|
|
43
49
|
function findNodeModulesDirectory() {
|
|
44
50
|
const unpackedPath = path.normalize(path.resolve(`${__dirname}/../../../node_modules`));
|
|
45
51
|
if (fs.existsSync(unpackedPath)) {
|
|
46
52
|
return unpackedPath;
|
|
47
53
|
}
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
if (fs.existsSync(packedAsExecutionEngineDependency)) {
|
|
54
|
-
return packedAsExecutionEngineDependency;
|
|
54
|
+
for (const cliName of CLI_NAMES) {
|
|
55
|
+
const foundPath = checkForPackedPath(cliName);
|
|
56
|
+
if (foundPath) {
|
|
57
|
+
return foundPath;
|
|
58
|
+
}
|
|
55
59
|
}
|
|
56
60
|
const packedPath = path.normalize(path.resolve(`${__dirname}/../../node_modules`));
|
|
57
61
|
return packedPath;
|
|
58
62
|
}
|
|
59
63
|
exports.findNodeModulesDirectory = findNodeModulesDirectory;
|
|
64
|
+
function checkForPackedPath(cliName) {
|
|
65
|
+
const packedCheckPath = path.normalize(path.resolve(`${__dirname}/../../${cliName}/node_modules/`));
|
|
66
|
+
if (fs.existsSync(packedCheckPath)) {
|
|
67
|
+
return packedCheckPath;
|
|
68
|
+
}
|
|
69
|
+
return;
|
|
70
|
+
}
|