@mablhq/mabl-cli 2.12.13 → 2.12.22
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/mablApiClient.js +2 -2
- package/commands/constants.js +5 -2
- package/commands/workspaces/workspace_cmds/copy.js +23 -2
- package/execution/index.js +2 -2
- package/mablApi/index.js +1 -1
- package/mablscript/importer.js +2 -0
- package/mablscript/mobile/steps/OpenLinkStep.js +19 -0
- package/mablscript/mobile/tests/steps/OpenLinkStep.mobiletest.js +20 -0
- package/mablscript/types/mobile/OpenLinkStepDescriptor.js +2 -0
- package/package.json +1 -1
- package/upload/index.js +1 -1
- package/util/downloadUtil.js +3 -2
package/util/downloadUtil.js
CHANGED
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.moveDownloadedFileToProcessed = exports.awaitDownload = exports.getAwaitDownloadTimeout = void 0;
|
|
26
|
+
exports.moveDownloadedFileToProcessed = exports.awaitDownload = exports.getAwaitDownloadTimeout = exports.PROCESSED_DIR_NAME = void 0;
|
|
27
27
|
const path = __importStar(require("path"));
|
|
28
28
|
const fs = __importStar(require("fs"));
|
|
29
29
|
const fsExtra = __importStar(require("fs-extra"));
|
|
@@ -32,6 +32,7 @@ const testsUtil_1 = require("../commands/tests/testsUtil");
|
|
|
32
32
|
const AWAIT_DOWNLOAD_MAX_TIMEOUT_MILLIS = 60000;
|
|
33
33
|
const FILE_MIN_STABLE_TIME_MILLIS = 3000;
|
|
34
34
|
const AWAIT_DOWNLOAD_POLLING_INTERVAL_MILLISECONDS = 500;
|
|
35
|
+
exports.PROCESSED_DIR_NAME = 'Processed';
|
|
35
36
|
function getAwaitDownloadTimeout() {
|
|
36
37
|
return AWAIT_DOWNLOAD_MAX_TIMEOUT_MILLIS;
|
|
37
38
|
}
|
|
@@ -77,7 +78,7 @@ async function getLatestFile(downloadDirectory, filePathSuffix) {
|
|
|
77
78
|
return latestFilePath;
|
|
78
79
|
}
|
|
79
80
|
function moveDownloadedFileToProcessed(downloadDirectory, fileName) {
|
|
80
|
-
const processedDirectory = path.join(downloadDirectory,
|
|
81
|
+
const processedDirectory = path.join(downloadDirectory, exports.PROCESSED_DIR_NAME);
|
|
81
82
|
const sourceLocation = path.join(downloadDirectory, fileName);
|
|
82
83
|
const destinationLocation = path.join(processedDirectory, fileName);
|
|
83
84
|
fsExtra.ensureDirSync(processedDirectory);
|