@uipath/flow-tool 1.200.0-preview.109 → 1.201.0-preview.115
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/authoring-vbbqwp0v.js +268 -0
- package/dist/{browser-strategy-d4zm14fb.js → browser-strategy-rkcvc6tn.js} +1 -1
- package/dist/{conversion-COFE4RVO-6gembcyk.js → conversion-MQ7TJMHW-5zbdb6y2.js} +13 -13
- package/dist/{en-ZBJX4WAU-L7DPQ3FB-4saj6t9b.js → en-JGJNQYMG-BSN3EE6C-mhg57v8h.js} +61 -3
- package/dist/{en-ZBJX4WAU-5yq8e307.js → en-JGJNQYMG-xq29xvhk.js} +60 -2
- package/dist/en-UNT7BE26-rhh65jry.js +24 -0
- package/dist/index-9f8q2ege.js +2058 -0
- package/dist/index-hsadteg4.js +634 -0
- package/dist/{index-nfn4t0c4.js → index-hzp6y5m7.js} +18 -13
- package/dist/index.js +19 -16
- package/dist/init.js +15 -12
- package/dist/js-yaml-cggj6w7q.js +3145 -0
- package/dist/{node-aydcnk2h.js → node-6xp9wf15.js} +7595 -7310
- package/dist/node-strategy-fwj45942.js +350 -0
- package/dist/packager-tool-1cb0d5e0.js +237 -0
- package/dist/{packager-tool-vd9zwk2j.js → packager-tool-2vme4a8e.js} +7522 -16200
- package/dist/{packager-tool-0j0gntbg.js → packager-tool-3gmj73c5.js} +1 -1
- package/dist/{packager-tool-1ps2qeqg.js → packager-tool-5arsyj36.js} +3 -2
- package/dist/{packager-tool-jh2jacex.js → packager-tool-9ae2gt84.js} +8 -6
- package/dist/{packager-tool-rdkhh2x5.js → packager-tool-9qhez6bh.js} +37 -25
- package/dist/packager-tool-gbgfwx8f.js +2 -0
- package/dist/{packager-tool-3ahtr7dn.js → packager-tool-h3gpqv5a.js} +3621 -1918
- package/dist/{packager-tool-g46253qc.js → packager-tool-hcdc89cf.js} +550 -3932
- package/dist/{packager-tool-hkrpcn6d.js → packager-tool-htc0z863.js} +61 -3
- package/dist/{packager-tool-qz3cg5tg.js → packager-tool-kvgt1s4z.js} +61 -3
- package/dist/{packager-tool-774q0xhb.js → packager-tool-mtrz8981.js} +115 -65
- package/dist/packager-tool-p1ts5b0h.js +5297 -0
- package/dist/{packager-tool-9bnpe8n1.js → packager-tool-q9zrqwxw.js} +23579 -18538
- package/dist/packager-tool-qa9gftnj.js +31 -0
- package/dist/{packager-tool-kgkv7f24.js → packager-tool-vz3b1ea9.js} +253 -157
- package/dist/packager-tool-y3dezh8k.js +21 -0
- package/dist/packager-tool.js +10 -9
- package/dist/{serialization-3RH6P643-zxj2yyfh.js → serialization-JNQMGOXW-mj06e5pv.js} +9 -7
- package/dist/services/flow-migration-check.d.ts +15 -11
- package/dist/services/flow-validate-service.d.ts +11 -5
- package/dist/tool.js +18 -15
- package/dist/utils/flow-io.d.ts +1 -1
- package/dist/validation.js +15 -12
- package/package.json +2 -2
- package/dist/de-LVBY3VVG-gyt1s22e.js +0 -134
- package/dist/en-4UFXRW7N-p8f4r47q.js +0 -98
- package/dist/en-IMUXHKKC-3zcks7ks.js +0 -16
- package/dist/es-CI4AE5B5-yfv6qwgr.js +0 -134
- package/dist/es-MX-OLZNAYY5-6f3m32xs.js +0 -134
- package/dist/fr-CCN6ZO5E-srd8q9ne.js +0 -134
- package/dist/ja-O2NEV5D6-pvhh5bag.js +0 -134
- package/dist/ko-7XWV2SEQ-9dz74aam.js +0 -134
- package/dist/node-strategy-7bvg07kx.js +0 -63
- package/dist/packager-tool-060a9knt.js +0 -11
- package/dist/packager-tool-1q1bg65m.js +0 -5046
- package/dist/packager-tool-3yjtbs1y.js +0 -95
- package/dist/packager-tool-4f38v0ry.js +0 -1161
- package/dist/packager-tool-ek2dnj9h.js +0 -13
- package/dist/pt-BR-Z4J3LEEO-t28qfgyc.js +0 -134
- package/dist/pt-CRSN3TCU-s7hxhsxv.js +0 -134
- package/dist/ro-WMQEVD7D-h0kamt4a.js +0 -134
- package/dist/ru-WBLQ5B2U-n1e7fn8t.js +0 -10
- package/dist/tr-UCMB7W3T-xv61hggk.js +0 -134
- package/dist/zh-CN-2QOHEFC5-meycvgab.js +0 -134
- package/dist/zh-TW-Q5QSSTS6-65s6kte4.js +0 -134
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// ../auth/src/catch-error.ts
|
|
2
|
+
function isPromiseLike(value) {
|
|
3
|
+
return value !== null && typeof value === "object" && typeof value.then === "function";
|
|
4
|
+
}
|
|
5
|
+
function catchError(fnOrPromise) {
|
|
6
|
+
if (isPromiseLike(fnOrPromise)) {
|
|
7
|
+
return settlePromiseLike(fnOrPromise);
|
|
8
|
+
}
|
|
9
|
+
try {
|
|
10
|
+
const result = fnOrPromise();
|
|
11
|
+
if (isPromiseLike(result)) {
|
|
12
|
+
return settlePromiseLike(result);
|
|
13
|
+
}
|
|
14
|
+
return [undefined, result];
|
|
15
|
+
} catch (error) {
|
|
16
|
+
return [
|
|
17
|
+
error instanceof Error ? error : new Error(String(error)),
|
|
18
|
+
undefined
|
|
19
|
+
];
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
function settlePromiseLike(thenable) {
|
|
23
|
+
return Promise.resolve(thenable).then((data) => [undefined, data]).catch((error) => [
|
|
24
|
+
error instanceof Error ? error : new Error(String(error)),
|
|
25
|
+
undefined
|
|
26
|
+
]);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { catchError };
|
|
30
|
+
|
|
31
|
+
//# debugId=CD090F76722F72E364756E2164756E21
|
|
@@ -2348,31 +2348,18 @@ if (!_global[REGISTRY_KEY]) {
|
|
|
2348
2348
|
var toolsFactoryRepository = _global[REGISTRY_KEY];
|
|
2349
2349
|
|
|
2350
2350
|
// ../filesystem/dist/index.js
|
|
2351
|
-
import
|
|
2352
|
-
import
|
|
2353
|
-
import * as fs6 from "node:fs/promises";
|
|
2354
|
-
import * as os2 from "node:os";
|
|
2355
|
-
import * as path2 from "node:path";
|
|
2356
|
-
import process8 from "node:process";
|
|
2357
|
-
import path from "node:path";
|
|
2358
|
-
import { fileURLToPath } from "node:url";
|
|
2359
|
-
import childProcess3 from "node:child_process";
|
|
2360
|
-
import fs5, { constants as fsConstants2 } from "node:fs/promises";
|
|
2361
|
-
import { promisify as promisify2 } from "node:util";
|
|
2362
|
-
import childProcess2 from "node:child_process";
|
|
2363
|
-
import fs4, { constants as fsConstants } from "node:fs/promises";
|
|
2351
|
+
import fs from "node:fs";
|
|
2352
|
+
import fs2 from "node:fs";
|
|
2364
2353
|
import process2 from "node:process";
|
|
2365
2354
|
import os from "node:os";
|
|
2366
2355
|
import fs3 from "node:fs";
|
|
2367
|
-
import fs2 from "node:fs";
|
|
2368
|
-
import fs from "node:fs";
|
|
2369
2356
|
import process3 from "node:process";
|
|
2370
2357
|
import { Buffer } from "node:buffer";
|
|
2371
2358
|
import { promisify } from "node:util";
|
|
2372
2359
|
import childProcess from "node:child_process";
|
|
2373
|
-
import { promisify as
|
|
2374
|
-
import
|
|
2375
|
-
import {
|
|
2360
|
+
import { promisify as promisify2 } from "node:util";
|
|
2361
|
+
import childProcess2 from "node:child_process";
|
|
2362
|
+
import fs4, { constants as fsConstants } from "node:fs/promises";
|
|
2376
2363
|
import { promisify as promisify3 } from "node:util";
|
|
2377
2364
|
import process4 from "node:process";
|
|
2378
2365
|
import { execFile as execFile3 } from "node:child_process";
|
|
@@ -2381,8 +2368,35 @@ import { promisify as promisify4 } from "node:util";
|
|
|
2381
2368
|
import { execFile as execFile4, execFileSync } from "node:child_process";
|
|
2382
2369
|
import { promisify as promisify5 } from "node:util";
|
|
2383
2370
|
import { execFile as execFile5 } from "node:child_process";
|
|
2371
|
+
import { promisify as promisify6 } from "node:util";
|
|
2372
|
+
import process6 from "node:process";
|
|
2373
|
+
import { execFile as execFile6 } from "node:child_process";
|
|
2384
2374
|
import process7 from "node:process";
|
|
2385
|
-
|
|
2375
|
+
import process8 from "node:process";
|
|
2376
|
+
import path from "node:path";
|
|
2377
|
+
import { fileURLToPath } from "node:url";
|
|
2378
|
+
import childProcess3 from "node:child_process";
|
|
2379
|
+
import fs5, { constants as fsConstants2 } from "node:fs/promises";
|
|
2380
|
+
import { randomUUID } from "node:crypto";
|
|
2381
|
+
import { existsSync } from "node:fs";
|
|
2382
|
+
import * as fs6 from "node:fs/promises";
|
|
2383
|
+
import * as os2 from "node:os";
|
|
2384
|
+
import * as path2 from "node:path";
|
|
2385
|
+
var __defProp = Object.defineProperty;
|
|
2386
|
+
var __returnValue = (v) => v;
|
|
2387
|
+
function __exportSetter(name, newValue) {
|
|
2388
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
2389
|
+
}
|
|
2390
|
+
var __export = (target, all) => {
|
|
2391
|
+
for (var name in all)
|
|
2392
|
+
__defProp(target, name, {
|
|
2393
|
+
get: all[name],
|
|
2394
|
+
enumerable: true,
|
|
2395
|
+
configurable: true,
|
|
2396
|
+
set: __exportSetter.bind(all, name)
|
|
2397
|
+
});
|
|
2398
|
+
};
|
|
2399
|
+
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
2386
2400
|
function hasDockerEnv() {
|
|
2387
2401
|
try {
|
|
2388
2402
|
fs.statSync("/.dockerenv");
|
|
@@ -2404,6 +2418,14 @@ function isDocker() {
|
|
|
2404
2418
|
}
|
|
2405
2419
|
return isDockerCached;
|
|
2406
2420
|
}
|
|
2421
|
+
var isDockerCached;
|
|
2422
|
+
var init_is_docker = () => {};
|
|
2423
|
+
function isInsideContainer() {
|
|
2424
|
+
if (cachedResult === undefined) {
|
|
2425
|
+
cachedResult = hasContainerEnv() || isDocker();
|
|
2426
|
+
}
|
|
2427
|
+
return cachedResult;
|
|
2428
|
+
}
|
|
2407
2429
|
var cachedResult;
|
|
2408
2430
|
var hasContainerEnv = () => {
|
|
2409
2431
|
try {
|
|
@@ -2413,12 +2435,9 @@ var hasContainerEnv = () => {
|
|
|
2413
2435
|
return false;
|
|
2414
2436
|
}
|
|
2415
2437
|
};
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
}
|
|
2420
|
-
return cachedResult;
|
|
2421
|
-
}
|
|
2438
|
+
var init_is_inside_container = __esm(() => {
|
|
2439
|
+
init_is_docker();
|
|
2440
|
+
});
|
|
2422
2441
|
var isWsl = () => {
|
|
2423
2442
|
if (process2.platform !== "linux") {
|
|
2424
2443
|
return false;
|
|
@@ -2439,8 +2458,12 @@ var isWsl = () => {
|
|
|
2439
2458
|
}
|
|
2440
2459
|
return false;
|
|
2441
2460
|
};
|
|
2442
|
-
var is_wsl_default
|
|
2443
|
-
var
|
|
2461
|
+
var is_wsl_default;
|
|
2462
|
+
var init_is_wsl = __esm(() => {
|
|
2463
|
+
init_is_inside_container();
|
|
2464
|
+
is_wsl_default = process2.env.__IS_WSL_TEST__ ? isWsl : isWsl();
|
|
2465
|
+
});
|
|
2466
|
+
var execFile;
|
|
2444
2467
|
var powerShellPath = () => `${process3.env.SYSTEMROOT || process3.env.windir || String.raw`C:\Windows`}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`;
|
|
2445
2468
|
var executePowerShell = async (command, options = {}) => {
|
|
2446
2469
|
const {
|
|
@@ -2456,15 +2479,18 @@ var executePowerShell = async (command, options = {}) => {
|
|
|
2456
2479
|
...execFileOptions
|
|
2457
2480
|
});
|
|
2458
2481
|
};
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2482
|
+
var init_powershell_utils = __esm(() => {
|
|
2483
|
+
execFile = promisify(childProcess.execFile);
|
|
2484
|
+
executePowerShell.argumentsPrefix = [
|
|
2485
|
+
"-NoProfile",
|
|
2486
|
+
"-NonInteractive",
|
|
2487
|
+
"-ExecutionPolicy",
|
|
2488
|
+
"Bypass",
|
|
2489
|
+
"-EncodedCommand"
|
|
2490
|
+
];
|
|
2491
|
+
executePowerShell.encodeCommand = (command) => Buffer.from(command, "utf16le").toString("base64");
|
|
2492
|
+
executePowerShell.escapeArgument = (value) => `'${String(value).replaceAll("'", "''")}'`;
|
|
2493
|
+
});
|
|
2468
2494
|
function parseMountPointFromConfig(content) {
|
|
2469
2495
|
for (const line of content.split(`
|
|
2470
2496
|
`)) {
|
|
@@ -2478,38 +2504,13 @@ function parseMountPointFromConfig(content) {
|
|
|
2478
2504
|
return match.groups.mountPoint.trim().replaceAll(/^["']|["']$/g, "");
|
|
2479
2505
|
}
|
|
2480
2506
|
}
|
|
2481
|
-
var execFile2
|
|
2482
|
-
var wslDrivesMountPoint
|
|
2483
|
-
const defaultMountPoint = "/mnt/";
|
|
2484
|
-
let mountPoint;
|
|
2485
|
-
return async function() {
|
|
2486
|
-
if (mountPoint) {
|
|
2487
|
-
return mountPoint;
|
|
2488
|
-
}
|
|
2489
|
-
const configFilePath = "/etc/wsl.conf";
|
|
2490
|
-
let isConfigFileExists = false;
|
|
2491
|
-
try {
|
|
2492
|
-
await fs4.access(configFilePath, fsConstants.F_OK);
|
|
2493
|
-
isConfigFileExists = true;
|
|
2494
|
-
} catch {}
|
|
2495
|
-
if (!isConfigFileExists) {
|
|
2496
|
-
return defaultMountPoint;
|
|
2497
|
-
}
|
|
2498
|
-
const configContent = await fs4.readFile(configFilePath, { encoding: "utf8" });
|
|
2499
|
-
const parsedMountPoint = parseMountPointFromConfig(configContent);
|
|
2500
|
-
if (parsedMountPoint === undefined) {
|
|
2501
|
-
return defaultMountPoint;
|
|
2502
|
-
}
|
|
2503
|
-
mountPoint = parsedMountPoint;
|
|
2504
|
-
mountPoint = mountPoint.endsWith("/") ? mountPoint : `${mountPoint}/`;
|
|
2505
|
-
return mountPoint;
|
|
2506
|
-
};
|
|
2507
|
-
})();
|
|
2507
|
+
var execFile2;
|
|
2508
|
+
var wslDrivesMountPoint;
|
|
2508
2509
|
var powerShellPathFromWsl = async () => {
|
|
2509
2510
|
const mountPoint = await wslDrivesMountPoint();
|
|
2510
2511
|
return `${mountPoint}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`;
|
|
2511
2512
|
};
|
|
2512
|
-
var powerShellPath2
|
|
2513
|
+
var powerShellPath2;
|
|
2513
2514
|
var canAccessPowerShellPromise;
|
|
2514
2515
|
var canAccessPowerShell = async () => {
|
|
2515
2516
|
canAccessPowerShellPromise ??= (async () => {
|
|
@@ -2540,6 +2541,39 @@ var convertWslPathToWindows = async (path3) => {
|
|
|
2540
2541
|
return path3;
|
|
2541
2542
|
}
|
|
2542
2543
|
};
|
|
2544
|
+
var init_wsl_utils = __esm(() => {
|
|
2545
|
+
init_is_wsl();
|
|
2546
|
+
init_powershell_utils();
|
|
2547
|
+
init_is_wsl();
|
|
2548
|
+
execFile2 = promisify2(childProcess2.execFile);
|
|
2549
|
+
wslDrivesMountPoint = (() => {
|
|
2550
|
+
const defaultMountPoint = "/mnt/";
|
|
2551
|
+
let mountPoint;
|
|
2552
|
+
return async function() {
|
|
2553
|
+
if (mountPoint) {
|
|
2554
|
+
return mountPoint;
|
|
2555
|
+
}
|
|
2556
|
+
const configFilePath = "/etc/wsl.conf";
|
|
2557
|
+
let isConfigFileExists = false;
|
|
2558
|
+
try {
|
|
2559
|
+
await fs4.access(configFilePath, fsConstants.F_OK);
|
|
2560
|
+
isConfigFileExists = true;
|
|
2561
|
+
} catch {}
|
|
2562
|
+
if (!isConfigFileExists) {
|
|
2563
|
+
return defaultMountPoint;
|
|
2564
|
+
}
|
|
2565
|
+
const configContent = await fs4.readFile(configFilePath, { encoding: "utf8" });
|
|
2566
|
+
const parsedMountPoint = parseMountPointFromConfig(configContent);
|
|
2567
|
+
if (parsedMountPoint === undefined) {
|
|
2568
|
+
return defaultMountPoint;
|
|
2569
|
+
}
|
|
2570
|
+
mountPoint = parsedMountPoint;
|
|
2571
|
+
mountPoint = mountPoint.endsWith("/") ? mountPoint : `${mountPoint}/`;
|
|
2572
|
+
return mountPoint;
|
|
2573
|
+
};
|
|
2574
|
+
})();
|
|
2575
|
+
powerShellPath2 = is_wsl_default ? powerShellPathFromWsl : powerShellPath;
|
|
2576
|
+
});
|
|
2543
2577
|
function defineLazyProperty(object, propertyName, valueGetter) {
|
|
2544
2578
|
const define = (value) => Object.defineProperty(object, propertyName, { value, enumerable: true, writable: true });
|
|
2545
2579
|
Object.defineProperty(object, propertyName, {
|
|
@@ -2556,7 +2590,6 @@ function defineLazyProperty(object, propertyName, valueGetter) {
|
|
|
2556
2590
|
});
|
|
2557
2591
|
return object;
|
|
2558
2592
|
}
|
|
2559
|
-
var execFileAsync = promisify3(execFile3);
|
|
2560
2593
|
async function defaultBrowserId() {
|
|
2561
2594
|
if (process4.platform !== "darwin") {
|
|
2562
2595
|
throw new Error("macOS only");
|
|
@@ -2569,7 +2602,10 @@ async function defaultBrowserId() {
|
|
|
2569
2602
|
}
|
|
2570
2603
|
return browserId;
|
|
2571
2604
|
}
|
|
2572
|
-
var
|
|
2605
|
+
var execFileAsync;
|
|
2606
|
+
var init_default_browser_id = __esm(() => {
|
|
2607
|
+
execFileAsync = promisify3(execFile3);
|
|
2608
|
+
});
|
|
2573
2609
|
async function runAppleScript(script, { humanReadableOutput = true, signal } = {}) {
|
|
2574
2610
|
if (process5.platform !== "darwin") {
|
|
2575
2611
|
throw new Error("macOS only");
|
|
@@ -2582,33 +2618,17 @@ async function runAppleScript(script, { humanReadableOutput = true, signal } = {
|
|
|
2582
2618
|
const { stdout } = await execFileAsync2("osascript", ["-e", script, outputArguments], execOptions);
|
|
2583
2619
|
return stdout.trim();
|
|
2584
2620
|
}
|
|
2621
|
+
var execFileAsync2;
|
|
2622
|
+
var init_run_applescript = __esm(() => {
|
|
2623
|
+
execFileAsync2 = promisify4(execFile4);
|
|
2624
|
+
});
|
|
2585
2625
|
async function bundleName(bundleId) {
|
|
2586
2626
|
return runAppleScript(`tell application "Finder" to set app_path to application file id "${bundleId}" as string
|
|
2587
2627
|
tell application "System Events" to get value of property list item "CFBundleName" of property list file (app_path & ":Contents:Info.plist")`);
|
|
2588
2628
|
}
|
|
2589
|
-
var
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
MSEdgeBHTML: { name: "Edge Beta", id: "com.microsoft.edge.beta" },
|
|
2593
|
-
MSEdgeDHTML: { name: "Edge Dev", id: "com.microsoft.edge.dev" },
|
|
2594
|
-
AppXq0fevzme2pys62n3e0fbqa7peapykr8v: { name: "Edge", id: "com.microsoft.edge.old" },
|
|
2595
|
-
ChromeHTML: { name: "Chrome", id: "com.google.chrome" },
|
|
2596
|
-
ChromeBHTML: { name: "Chrome Beta", id: "com.google.chrome.beta" },
|
|
2597
|
-
ChromeDHTML: { name: "Chrome Dev", id: "com.google.chrome.dev" },
|
|
2598
|
-
ChromiumHTM: { name: "Chromium", id: "org.chromium.Chromium" },
|
|
2599
|
-
BraveHTML: { name: "Brave", id: "com.brave.Browser" },
|
|
2600
|
-
BraveBHTML: { name: "Brave Beta", id: "com.brave.Browser.beta" },
|
|
2601
|
-
BraveDHTML: { name: "Brave Dev", id: "com.brave.Browser.dev" },
|
|
2602
|
-
BraveSSHTM: { name: "Brave Nightly", id: "com.brave.Browser.nightly" },
|
|
2603
|
-
FirefoxURL: { name: "Firefox", id: "org.mozilla.firefox" },
|
|
2604
|
-
OperaStable: { name: "Opera", id: "com.operasoftware.Opera" },
|
|
2605
|
-
VivaldiHTM: { name: "Vivaldi", id: "com.vivaldi.Vivaldi" },
|
|
2606
|
-
"IE.HTTP": { name: "Internet Explorer", id: "com.microsoft.ie" }
|
|
2607
|
-
};
|
|
2608
|
-
var _windowsBrowserProgIdMap = new Map(Object.entries(windowsBrowserProgIds));
|
|
2609
|
-
|
|
2610
|
-
class UnknownBrowserError extends Error {
|
|
2611
|
-
}
|
|
2629
|
+
var init_bundle_name = __esm(() => {
|
|
2630
|
+
init_run_applescript();
|
|
2631
|
+
});
|
|
2612
2632
|
async function defaultBrowser(_execFileAsync = execFileAsync3) {
|
|
2613
2633
|
const { stdout } = await _execFileAsync("reg", [
|
|
2614
2634
|
"QUERY",
|
|
@@ -2627,8 +2647,34 @@ async function defaultBrowser(_execFileAsync = execFileAsync3) {
|
|
|
2627
2647
|
const baseIdByHyphen = hyphenIndex === -1 ? undefined : id.slice(0, hyphenIndex);
|
|
2628
2648
|
return windowsBrowserProgIds[id] ?? windowsBrowserProgIds[baseIdByDot] ?? windowsBrowserProgIds[baseIdByHyphen] ?? { name: id, id };
|
|
2629
2649
|
}
|
|
2630
|
-
var
|
|
2631
|
-
var
|
|
2650
|
+
var execFileAsync3;
|
|
2651
|
+
var windowsBrowserProgIds;
|
|
2652
|
+
var _windowsBrowserProgIdMap;
|
|
2653
|
+
var UnknownBrowserError;
|
|
2654
|
+
var init_windows = __esm(() => {
|
|
2655
|
+
execFileAsync3 = promisify5(execFile5);
|
|
2656
|
+
windowsBrowserProgIds = {
|
|
2657
|
+
MSEdgeHTM: { name: "Edge", id: "com.microsoft.edge" },
|
|
2658
|
+
MSEdgeBHTML: { name: "Edge Beta", id: "com.microsoft.edge.beta" },
|
|
2659
|
+
MSEdgeDHTML: { name: "Edge Dev", id: "com.microsoft.edge.dev" },
|
|
2660
|
+
AppXq0fevzme2pys62n3e0fbqa7peapykr8v: { name: "Edge", id: "com.microsoft.edge.old" },
|
|
2661
|
+
ChromeHTML: { name: "Chrome", id: "com.google.chrome" },
|
|
2662
|
+
ChromeBHTML: { name: "Chrome Beta", id: "com.google.chrome.beta" },
|
|
2663
|
+
ChromeDHTML: { name: "Chrome Dev", id: "com.google.chrome.dev" },
|
|
2664
|
+
ChromiumHTM: { name: "Chromium", id: "org.chromium.Chromium" },
|
|
2665
|
+
BraveHTML: { name: "Brave", id: "com.brave.Browser" },
|
|
2666
|
+
BraveBHTML: { name: "Brave Beta", id: "com.brave.Browser.beta" },
|
|
2667
|
+
BraveDHTML: { name: "Brave Dev", id: "com.brave.Browser.dev" },
|
|
2668
|
+
BraveSSHTM: { name: "Brave Nightly", id: "com.brave.Browser.nightly" },
|
|
2669
|
+
FirefoxURL: { name: "Firefox", id: "org.mozilla.firefox" },
|
|
2670
|
+
OperaStable: { name: "Opera", id: "com.operasoftware.Opera" },
|
|
2671
|
+
VivaldiHTM: { name: "Vivaldi", id: "com.vivaldi.Vivaldi" },
|
|
2672
|
+
"IE.HTTP": { name: "Internet Explorer", id: "com.microsoft.ie" }
|
|
2673
|
+
};
|
|
2674
|
+
_windowsBrowserProgIdMap = new Map(Object.entries(windowsBrowserProgIds));
|
|
2675
|
+
UnknownBrowserError = class UnknownBrowserError2 extends Error {
|
|
2676
|
+
};
|
|
2677
|
+
});
|
|
2632
2678
|
async function defaultBrowser2() {
|
|
2633
2679
|
if (process6.platform === "darwin") {
|
|
2634
2680
|
const id = await defaultBrowserId();
|
|
@@ -2646,12 +2692,51 @@ async function defaultBrowser2() {
|
|
|
2646
2692
|
}
|
|
2647
2693
|
throw new Error("Only macOS, Linux, and Windows are supported");
|
|
2648
2694
|
}
|
|
2649
|
-
var
|
|
2650
|
-
var
|
|
2651
|
-
var
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2695
|
+
var execFileAsync4;
|
|
2696
|
+
var titleize = (string) => string.toLowerCase().replaceAll(/(?:^|\s|-)\S/g, (x2) => x2.toUpperCase());
|
|
2697
|
+
var init_default_browser = __esm(() => {
|
|
2698
|
+
init_default_browser_id();
|
|
2699
|
+
init_bundle_name();
|
|
2700
|
+
init_windows();
|
|
2701
|
+
init_windows();
|
|
2702
|
+
execFileAsync4 = promisify6(execFile6);
|
|
2703
|
+
});
|
|
2704
|
+
var isInSsh;
|
|
2705
|
+
var is_in_ssh_default;
|
|
2706
|
+
var init_is_in_ssh = __esm(() => {
|
|
2707
|
+
isInSsh = Boolean(process7.env.SSH_CONNECTION || process7.env.SSH_CLIENT || process7.env.SSH_TTY);
|
|
2708
|
+
is_in_ssh_default = isInSsh;
|
|
2709
|
+
});
|
|
2710
|
+
var exports_open = {};
|
|
2711
|
+
__export(exports_open, {
|
|
2712
|
+
openApp: () => openApp,
|
|
2713
|
+
default: () => open_default,
|
|
2714
|
+
apps: () => apps
|
|
2715
|
+
});
|
|
2716
|
+
function detectArchBinary(binary) {
|
|
2717
|
+
if (typeof binary === "string" || Array.isArray(binary)) {
|
|
2718
|
+
return binary;
|
|
2719
|
+
}
|
|
2720
|
+
const { [arch]: archBinary } = binary;
|
|
2721
|
+
if (!archBinary) {
|
|
2722
|
+
throw new Error(`${arch} is not supported`);
|
|
2723
|
+
}
|
|
2724
|
+
return archBinary;
|
|
2725
|
+
}
|
|
2726
|
+
function detectPlatformBinary({ [platform]: platformBinary }, { wsl } = {}) {
|
|
2727
|
+
if (wsl && is_wsl_default) {
|
|
2728
|
+
return detectArchBinary(wsl);
|
|
2729
|
+
}
|
|
2730
|
+
if (!platformBinary) {
|
|
2731
|
+
throw new Error(`${platform} is not supported`);
|
|
2732
|
+
}
|
|
2733
|
+
return detectArchBinary(platformBinary);
|
|
2734
|
+
}
|
|
2735
|
+
var fallbackAttemptSymbol;
|
|
2736
|
+
var __dirname2;
|
|
2737
|
+
var localXdgOpenPath;
|
|
2738
|
+
var platform;
|
|
2739
|
+
var arch;
|
|
2655
2740
|
var tryEachApp = async (apps, opener) => {
|
|
2656
2741
|
if (apps.length === 0) {
|
|
2657
2742
|
return;
|
|
@@ -2864,67 +2949,77 @@ var open = (target, options) => {
|
|
|
2864
2949
|
target
|
|
2865
2950
|
});
|
|
2866
2951
|
};
|
|
2867
|
-
|
|
2868
|
-
if (typeof
|
|
2869
|
-
|
|
2952
|
+
var openApp = (name, options) => {
|
|
2953
|
+
if (typeof name !== "string" && !Array.isArray(name)) {
|
|
2954
|
+
throw new TypeError("Expected a valid `name`");
|
|
2870
2955
|
}
|
|
2871
|
-
const { [
|
|
2872
|
-
if (!
|
|
2873
|
-
throw new
|
|
2956
|
+
const { arguments: appArguments = [] } = options ?? {};
|
|
2957
|
+
if (appArguments !== undefined && appArguments !== null && !Array.isArray(appArguments)) {
|
|
2958
|
+
throw new TypeError("Expected `appArguments` as Array type");
|
|
2874
2959
|
}
|
|
2875
|
-
return
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
throw new Error(`${platform} is not supported`);
|
|
2883
|
-
}
|
|
2884
|
-
return detectArchBinary(platformBinary);
|
|
2885
|
-
}
|
|
2886
|
-
var apps = {
|
|
2887
|
-
browser: "browser",
|
|
2888
|
-
browserPrivate: "browserPrivate"
|
|
2960
|
+
return baseOpen({
|
|
2961
|
+
...options,
|
|
2962
|
+
app: {
|
|
2963
|
+
name,
|
|
2964
|
+
arguments: appArguments
|
|
2965
|
+
}
|
|
2966
|
+
});
|
|
2889
2967
|
};
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
}
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2968
|
+
var apps;
|
|
2969
|
+
var open_default;
|
|
2970
|
+
var init_open = __esm(() => {
|
|
2971
|
+
init_wsl_utils();
|
|
2972
|
+
init_powershell_utils();
|
|
2973
|
+
init_default_browser();
|
|
2974
|
+
init_is_inside_container();
|
|
2975
|
+
init_is_in_ssh();
|
|
2976
|
+
fallbackAttemptSymbol = Symbol("fallbackAttempt");
|
|
2977
|
+
__dirname2 = import.meta.url ? path.dirname(fileURLToPath(import.meta.url)) : "";
|
|
2978
|
+
localXdgOpenPath = path.join(__dirname2, "xdg-open");
|
|
2979
|
+
({ platform, arch } = process8);
|
|
2980
|
+
apps = {
|
|
2981
|
+
browser: "browser",
|
|
2982
|
+
browserPrivate: "browserPrivate"
|
|
2983
|
+
};
|
|
2984
|
+
defineLazyProperty(apps, "chrome", () => detectPlatformBinary({
|
|
2985
|
+
darwin: "google chrome",
|
|
2986
|
+
win32: "chrome",
|
|
2987
|
+
linux: ["google-chrome", "google-chrome-stable", "chromium", "chromium-browser"]
|
|
2988
|
+
}, {
|
|
2989
|
+
wsl: {
|
|
2990
|
+
ia32: "/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",
|
|
2991
|
+
x64: ["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe", "/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]
|
|
2992
|
+
}
|
|
2993
|
+
}));
|
|
2994
|
+
defineLazyProperty(apps, "brave", () => detectPlatformBinary({
|
|
2995
|
+
darwin: "brave browser",
|
|
2996
|
+
win32: "brave",
|
|
2997
|
+
linux: ["brave-browser", "brave"]
|
|
2998
|
+
}, {
|
|
2999
|
+
wsl: {
|
|
3000
|
+
ia32: "/mnt/c/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe",
|
|
3001
|
+
x64: ["/mnt/c/Program Files/BraveSoftware/Brave-Browser/Application/brave.exe", "/mnt/c/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe"]
|
|
3002
|
+
}
|
|
3003
|
+
}));
|
|
3004
|
+
defineLazyProperty(apps, "firefox", () => detectPlatformBinary({
|
|
3005
|
+
darwin: "firefox",
|
|
3006
|
+
win32: String.raw`C:\Program Files\Mozilla Firefox\firefox.exe`,
|
|
3007
|
+
linux: "firefox"
|
|
3008
|
+
}, {
|
|
3009
|
+
wsl: "/mnt/c/Program Files/Mozilla Firefox/firefox.exe"
|
|
3010
|
+
}));
|
|
3011
|
+
defineLazyProperty(apps, "edge", () => detectPlatformBinary({
|
|
3012
|
+
darwin: "microsoft edge",
|
|
3013
|
+
win32: "msedge",
|
|
3014
|
+
linux: ["microsoft-edge", "microsoft-edge-dev"]
|
|
3015
|
+
}, {
|
|
3016
|
+
wsl: "/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"
|
|
3017
|
+
}));
|
|
3018
|
+
defineLazyProperty(apps, "safari", () => detectPlatformBinary({
|
|
3019
|
+
darwin: "Safari"
|
|
3020
|
+
}));
|
|
3021
|
+
open_default = open;
|
|
3022
|
+
});
|
|
2928
3023
|
var LOCK_HEARTBEAT_MS = 5000;
|
|
2929
3024
|
var LOCK_STALE_MS = 15000;
|
|
2930
3025
|
var LOCK_MAX_WAIT_MS = 20000;
|
|
@@ -2949,7 +3044,8 @@ class NodeFileSystem {
|
|
|
2949
3044
|
};
|
|
2950
3045
|
utils = {
|
|
2951
3046
|
open: async (url) => {
|
|
2952
|
-
await
|
|
3047
|
+
const { default: open2 } = await Promise.resolve().then(() => (init_open(), exports_open));
|
|
3048
|
+
await open2(url);
|
|
2953
3049
|
}
|
|
2954
3050
|
};
|
|
2955
3051
|
async readFile(path3, options) {
|
|
@@ -3148,4 +3244,4 @@ var getFileSystem = () => fsInstance;
|
|
|
3148
3244
|
|
|
3149
3245
|
export { zipSync, Path, TemporaryStorageService, ZipService, I18nManager, translate, LogLevel, LogMessage, NugetConstants, ProjectTypes, TargetFramework, ToolErrorCodes, ToolResult, ensureProjectId, writeContentOperateFile, NugetPackager, ProjectTool, toolsFactoryRepository, NodeFileSystem, getFileSystem };
|
|
3150
3246
|
|
|
3151
|
-
//# debugId=
|
|
3247
|
+
//# debugId=CE2A5A27F0C44F5064756E2164756E21
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// ../../node_modules/@uipath/flow-migrations/dist/chunk-PF22ZHE3.js
|
|
2
|
+
var createMigration_invalidDownInput_message = "Invalid input for down-migration {{fromVersion}} → {{toVersion}}";
|
|
3
|
+
var createMigration_invalidDownOutput_message = "Invalid output for down-migration {{fromVersion}} → {{toVersion}}";
|
|
4
|
+
var createMigration_invalidInput_message = "Invalid input for migration {{fromVersion}} → {{toVersion}}";
|
|
5
|
+
var createMigration_invalidOutput_message = "Invalid output for migration {{fromVersion}} → {{toVersion}}";
|
|
6
|
+
var downgradeWorkflow_missingDown_message = "Downgrade path is missing {{fromVersion}} → {{toVersion}}";
|
|
7
|
+
var downgradeWorkflow_noPath_message = "No downgrade path from {{fromVersion}} to {{toVersion}}";
|
|
8
|
+
var migrate_chain_noMigrationFound_message = "No migration found from version {{current}}. Cannot reach {{toVersion}}.";
|
|
9
|
+
var en_default = {
|
|
10
|
+
createMigration_invalidDownInput_message,
|
|
11
|
+
createMigration_invalidDownOutput_message,
|
|
12
|
+
createMigration_invalidInput_message,
|
|
13
|
+
createMigration_invalidOutput_message,
|
|
14
|
+
downgradeWorkflow_missingDown_message,
|
|
15
|
+
downgradeWorkflow_noPath_message,
|
|
16
|
+
migrate_chain_noMigrationFound_message
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export { createMigration_invalidDownInput_message, createMigration_invalidDownOutput_message, createMigration_invalidInput_message, createMigration_invalidOutput_message, downgradeWorkflow_missingDown_message, downgradeWorkflow_noPath_message, migrate_chain_noMigrationFound_message, en_default };
|
|
20
|
+
|
|
21
|
+
//# debugId=F2DA66301ADBA78364756E2164756E21
|
package/dist/packager-tool.js
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
registerPackagerFactories
|
|
3
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-3gmj73c5.js";
|
|
4
4
|
import"./packager-tool-7yjpwj92.js";
|
|
5
|
-
import"./packager-tool-
|
|
6
|
-
import"./packager-tool-
|
|
7
|
-
import"./packager-tool-
|
|
5
|
+
import"./packager-tool-hcdc89cf.js";
|
|
6
|
+
import"./packager-tool-vz3b1ea9.js";
|
|
7
|
+
import"./packager-tool-y3dezh8k.js";
|
|
8
8
|
import"./packager-tool-hk1gxnth.js";
|
|
9
|
-
import"./packager-tool-
|
|
9
|
+
import"./packager-tool-gbgfwx8f.js";
|
|
10
|
+
import"./packager-tool-kvgt1s4z.js";
|
|
10
11
|
import"./packager-tool-sc961w0q.js";
|
|
11
|
-
import"./packager-tool-
|
|
12
|
-
import"./packager-tool-c23zrhj8.js";
|
|
13
|
-
import"./packager-tool-9bnpe8n1.js";
|
|
12
|
+
import"./packager-tool-q9zrqwxw.js";
|
|
14
13
|
import"./packager-tool-ahm4ymrp.js";
|
|
15
14
|
import"./packager-tool-c19w8vg9.js";
|
|
15
|
+
import"./packager-tool-973f0r2g.js";
|
|
16
|
+
import"./packager-tool-c23zrhj8.js";
|
|
16
17
|
import"./packager-tool-wckvcay0.js";
|
|
17
18
|
export {
|
|
18
19
|
registerPackagerFactories
|
|
19
20
|
};
|
|
20
21
|
|
|
21
|
-
//# debugId=
|
|
22
|
+
//# debugId=9C12E841744085BE64756E2164756E21
|
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
VALUE_FREE_CONDITIONS,
|
|
18
18
|
buildAgentInputTypeResolver,
|
|
19
19
|
buildCollectionAccessor,
|
|
20
|
+
canPruneAgentInputs,
|
|
20
21
|
collectArtifactDescendants,
|
|
21
22
|
collectCompositeConnectorInputs,
|
|
22
23
|
collectInlineAgentClusterInputs,
|
|
@@ -63,16 +64,16 @@ import {
|
|
|
63
64
|
stripVarsPrefix,
|
|
64
65
|
toServerlessWorkflow,
|
|
65
66
|
toXml
|
|
66
|
-
} from "./packager-tool-
|
|
67
|
-
import"./packager-tool-1q1bg65m.js";
|
|
67
|
+
} from "./packager-tool-h3gpqv5a.js";
|
|
68
68
|
import"./packager-tool-jqtspg41.js";
|
|
69
|
-
import"./packager-tool-
|
|
69
|
+
import"./packager-tool-htc0z863.js";
|
|
70
70
|
import"./packager-tool-fr5b9qs6.js";
|
|
71
|
-
import"./packager-tool-
|
|
71
|
+
import"./packager-tool-gbgfwx8f.js";
|
|
72
|
+
import"./packager-tool-q9zrqwxw.js";
|
|
72
73
|
import"./packager-tool-ahm4ymrp.js";
|
|
73
74
|
import"./packager-tool-c19w8vg9.js";
|
|
74
|
-
import"./packager-tool-
|
|
75
|
-
import"./packager-tool-
|
|
75
|
+
import"./packager-tool-973f0r2g.js";
|
|
76
|
+
import"./packager-tool-c23zrhj8.js";
|
|
76
77
|
import"./packager-tool-wckvcay0.js";
|
|
77
78
|
export {
|
|
78
79
|
toXml,
|
|
@@ -121,6 +122,7 @@ export {
|
|
|
121
122
|
collectInlineAgentClusterInputs,
|
|
122
123
|
collectCompositeConnectorInputs,
|
|
123
124
|
collectArtifactDescendants,
|
|
125
|
+
canPruneAgentInputs,
|
|
124
126
|
buildCollectionAccessor,
|
|
125
127
|
buildAgentInputTypeResolver,
|
|
126
128
|
VALUE_FREE_CONDITIONS,
|
|
@@ -141,4 +143,4 @@ export {
|
|
|
141
143
|
AGGREGATION_OPTIONS
|
|
142
144
|
};
|
|
143
145
|
|
|
144
|
-
//# debugId=
|
|
146
|
+
//# debugId=B6DFD94A24099FAE64756E2164756E21
|