@uipath/codedapp-tool 1.202.0-preview.137 → 1.202.0-preview.139
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/{index-bmzhf5fp.js → index-asg5kph8.js} +90 -5
- package/dist/index.js +3 -3
- package/dist/{packager-tool-14ha5twz.js → packager-tool-05wez2xw.js} +3 -4
- package/dist/{packager-tool-hmkqrzhj.js → packager-tool-37s7ccxs.js} +5 -5
- package/dist/{packager-tool-jke4p8q1.js → packager-tool-aybzcdfg.js} +2 -3
- package/dist/packager-tool.js +2 -2
- package/dist/tool.js +3 -3
- package/package.json +2 -2
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
getFileSystem
|
|
18
18
|
} from "./packager-tool-qyctya2j.js";
|
|
19
|
-
import"./packager-tool-
|
|
19
|
+
import"./packager-tool-aybzcdfg.js";
|
|
20
20
|
import"./packager-tool-0gctz400.js";
|
|
21
21
|
import"./packager-tool-yc4kw997.js";
|
|
22
22
|
import {
|
|
@@ -15564,6 +15564,59 @@ class FileSystemFileStorageProviderFactory {
|
|
|
15564
15564
|
}
|
|
15565
15565
|
}
|
|
15566
15566
|
|
|
15567
|
+
// ../solution-sdk/src/resources/providers/resource-builder-logger.ts
|
|
15568
|
+
var PLACEHOLDER = /\{(\w+)\}|%[sdifoOj]/g;
|
|
15569
|
+
function render(value) {
|
|
15570
|
+
if (typeof value === "string")
|
|
15571
|
+
return value;
|
|
15572
|
+
if (value === null || value === undefined)
|
|
15573
|
+
return String(value);
|
|
15574
|
+
if (typeof value !== "object")
|
|
15575
|
+
return String(value);
|
|
15576
|
+
try {
|
|
15577
|
+
return JSON.stringify(value) ?? String(value);
|
|
15578
|
+
} catch {
|
|
15579
|
+
return String(value);
|
|
15580
|
+
}
|
|
15581
|
+
}
|
|
15582
|
+
function interpolate(message, args) {
|
|
15583
|
+
const fields = args[0] !== null && typeof args[0] === "object" && !Array.isArray(args[0]) ? args[0] : undefined;
|
|
15584
|
+
const consumed = new Set;
|
|
15585
|
+
let positional = 0;
|
|
15586
|
+
const filled = message.replace(PLACEHOLDER, (match, name) => {
|
|
15587
|
+
if (name !== undefined) {
|
|
15588
|
+
if (fields && name in fields) {
|
|
15589
|
+
consumed.add(0);
|
|
15590
|
+
return render(fields[name]);
|
|
15591
|
+
}
|
|
15592
|
+
return match;
|
|
15593
|
+
}
|
|
15594
|
+
const index = positional;
|
|
15595
|
+
positional += 1;
|
|
15596
|
+
if (index >= args.length)
|
|
15597
|
+
return match;
|
|
15598
|
+
consumed.add(index);
|
|
15599
|
+
return render(args[index]);
|
|
15600
|
+
});
|
|
15601
|
+
const extra = args.filter((_, index) => !consumed.has(index)).map(render).filter((text) => text.length > 0);
|
|
15602
|
+
return extra.length > 0 ? `${filled} ${extra.join(" ")}` : filled;
|
|
15603
|
+
}
|
|
15604
|
+
|
|
15605
|
+
class CliResourceBuilderLoggerFactory {
|
|
15606
|
+
create(target) {
|
|
15607
|
+
const name = typeof target === "string" ? target : target.name;
|
|
15608
|
+
const line = (message, args) => `[${name}] ${interpolate(message, args)}`;
|
|
15609
|
+
return {
|
|
15610
|
+
trace: (message, ...args) => logger.debug(line(message, args)),
|
|
15611
|
+
debug: (message, ...args) => logger.debug(line(message, args)),
|
|
15612
|
+
info: (message, ...args) => logger.info(line(message, args)),
|
|
15613
|
+
warn: (message, ...args) => logger.warn(line(message, args)),
|
|
15614
|
+
error: (message, error, ...args) => logger.error(error ? `${line(message, args)}: ${error.message}` : line(message, args)),
|
|
15615
|
+
fatal: (message, ...args) => logger.error(line(message, args))
|
|
15616
|
+
};
|
|
15617
|
+
}
|
|
15618
|
+
}
|
|
15619
|
+
|
|
15567
15620
|
// ../orchestrator-sdk/generated/src/runtime.ts
|
|
15568
15621
|
var BASE_PATH = "https://alpha.uipath.com/uipattycyrhx/abizon_1/orchestrator_".replace(/\/+$/, "");
|
|
15569
15622
|
|
|
@@ -17437,7 +17490,7 @@ class SolutionAccessProvider {
|
|
|
17437
17490
|
|
|
17438
17491
|
// ../solution-sdk/src/resources/providers/resource-builder-init.ts
|
|
17439
17492
|
async function createResourceBuilderServices() {
|
|
17440
|
-
return await createResourceBuilderConfiguration().addAccessProvider(new SolutionAccessProvider).addFileStorageProviderFactory(new FileSystemFileStorageProviderFactory).addArtifactResourceSpecEnhancer(new EntryPointSpecEnhancer).build();
|
|
17493
|
+
return await createResourceBuilderConfiguration().addAccessProvider(new SolutionAccessProvider).addFileStorageProviderFactory(new FileSystemFileStorageProviderFactory).addArtifactResourceSpecEnhancer(new EntryPointSpecEnhancer).addLoggerFactory(new CliResourceBuilderLoggerFactory).build();
|
|
17441
17494
|
}
|
|
17442
17495
|
|
|
17443
17496
|
// ../solution-sdk/src/resources/commands/project-utils.ts
|
|
@@ -17481,6 +17534,26 @@ async function findProjectFile(projectDir) {
|
|
|
17481
17534
|
null
|
|
17482
17535
|
];
|
|
17483
17536
|
}
|
|
17537
|
+
|
|
17538
|
+
class ProjectManifestError extends Error {
|
|
17539
|
+
__projectManifestError = true;
|
|
17540
|
+
reason;
|
|
17541
|
+
constructor(message, reason) {
|
|
17542
|
+
super(message);
|
|
17543
|
+
this.name = "ProjectManifestError";
|
|
17544
|
+
this.reason = reason;
|
|
17545
|
+
}
|
|
17546
|
+
}
|
|
17547
|
+
function isProjectManifestError(error) {
|
|
17548
|
+
return !!error && typeof error === "object" && error.__projectManifestError === true;
|
|
17549
|
+
}
|
|
17550
|
+
function isMissingProjectTypeError(error) {
|
|
17551
|
+
return isProjectManifestError(error) && error.reason === "no-project-type";
|
|
17552
|
+
}
|
|
17553
|
+
function lastPathSegment(filePath) {
|
|
17554
|
+
const parts = filePath.split(/[/\\]/);
|
|
17555
|
+
return parts[parts.length - 1] ?? filePath;
|
|
17556
|
+
}
|
|
17484
17557
|
async function readProjectFile(filePath, useProjectJson) {
|
|
17485
17558
|
const fs = getFileSystem();
|
|
17486
17559
|
const [readError, rawContent] = await catchError(fs.readFile(filePath, "utf-8"));
|
|
@@ -17490,7 +17563,7 @@ async function readProjectFile(filePath, useProjectJson) {
|
|
|
17490
17563
|
const [parseError, content] = catchError(() => JSON.parse(rawContent));
|
|
17491
17564
|
if (parseError) {
|
|
17492
17565
|
return [
|
|
17493
|
-
new
|
|
17566
|
+
new ProjectManifestError(`Invalid JSON in project file: ${parseError.message}`, "invalid-json"),
|
|
17494
17567
|
null
|
|
17495
17568
|
];
|
|
17496
17569
|
}
|
|
@@ -17505,7 +17578,16 @@ async function readProjectFile(filePath, useProjectJson) {
|
|
|
17505
17578
|
}
|
|
17506
17579
|
];
|
|
17507
17580
|
}
|
|
17508
|
-
|
|
17581
|
+
if (lastPathSegment(filePath) === "uipath.json") {
|
|
17582
|
+
return [
|
|
17583
|
+
new ProjectManifestError(`${filePath} has no 'ProjectType'. A uipath.json is only read as a code-first Functions project, which also needs a 'functions' entry. Other project types are registered from project.uiproj or project.json, not from uipath.json.`, "no-project-type"),
|
|
17584
|
+
null
|
|
17585
|
+
];
|
|
17586
|
+
}
|
|
17587
|
+
return [
|
|
17588
|
+
new ProjectManifestError(`ProjectType not found in ${filePath}`, "no-project-type"),
|
|
17589
|
+
null
|
|
17590
|
+
];
|
|
17509
17591
|
}
|
|
17510
17592
|
return [null, { content, projectType: normalizeProjectType(projectType) }];
|
|
17511
17593
|
}
|
|
@@ -18343,6 +18425,7 @@ async function resourceRefreshAsync(solutionPath = ".", options = {}) {
|
|
|
18343
18425
|
}
|
|
18344
18426
|
export {
|
|
18345
18427
|
EntryPointSpecEnhancer,
|
|
18428
|
+
ProjectManifestError,
|
|
18346
18429
|
addProjectArtifactsToSolutionAsync,
|
|
18347
18430
|
applyEntryPointEnhancementAsync,
|
|
18348
18431
|
assertSolutionManifest,
|
|
@@ -18356,6 +18439,8 @@ export {
|
|
|
18356
18439
|
findProjectFile,
|
|
18357
18440
|
findResourceByKeyInRcs,
|
|
18358
18441
|
findResourceInRcs,
|
|
18442
|
+
isMissingProjectTypeError,
|
|
18443
|
+
isProjectManifestError,
|
|
18359
18444
|
normalizeFolderPath,
|
|
18360
18445
|
readProjectFile,
|
|
18361
18446
|
readSolutionFile,
|
|
@@ -18371,4 +18456,4 @@ export {
|
|
|
18371
18456
|
writeSolutionFile
|
|
18372
18457
|
};
|
|
18373
18458
|
|
|
18374
|
-
//# debugId=
|
|
18459
|
+
//# debugId=CDE87B7065C8F26964756E2164756E21
|
package/dist/index.js
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import {
|
|
3
3
|
metadata,
|
|
4
4
|
registerCommands
|
|
5
|
-
} from "./packager-tool-
|
|
5
|
+
} from "./packager-tool-37s7ccxs.js";
|
|
6
6
|
import {
|
|
7
7
|
Command
|
|
8
8
|
} from "./packager-tool-dhmzfax7.js";
|
|
9
9
|
import"./packager-tool-8hncwr6a.js";
|
|
10
10
|
import"./packager-tool-qyctya2j.js";
|
|
11
|
-
import"./packager-tool-
|
|
12
|
-
import"./packager-tool-
|
|
11
|
+
import"./packager-tool-05wez2xw.js";
|
|
12
|
+
import"./packager-tool-aybzcdfg.js";
|
|
13
13
|
import"./packager-tool-vv9c52ax.js";
|
|
14
14
|
import"./packager-tool-0gctz400.js";
|
|
15
15
|
import"./packager-tool-yc4kw997.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
zipSync
|
|
3
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-aybzcdfg.js";
|
|
4
4
|
|
|
5
5
|
// ../packager/packager-core/dist/index.js
|
|
6
6
|
class Path {
|
|
@@ -1158,8 +1158,7 @@ class ToolsFactoryRepository {
|
|
|
1158
1158
|
getProjectToolFactory(projectType) {
|
|
1159
1159
|
const factory = this.projectFactoryMap.get(projectType);
|
|
1160
1160
|
if (!factory) {
|
|
1161
|
-
|
|
1162
|
-
throw new Error(`Cannot pack project type '${projectType}': no packager is installed for it. ` + `Project types that can be packed: ${known || "none"}.`);
|
|
1161
|
+
throw new Error(`Cannot pack project type '${projectType}': no packager is installed for it.`);
|
|
1163
1162
|
}
|
|
1164
1163
|
return factory;
|
|
1165
1164
|
}
|
|
@@ -1835,4 +1834,4 @@ class WebAppToolFactory {
|
|
|
1835
1834
|
}
|
|
1836
1835
|
export { WEBAPP_MANIFEST_FILE_NAME, WebAppToolFactory };
|
|
1837
1836
|
|
|
1838
|
-
//# debugId=
|
|
1837
|
+
//# debugId=38E533D0C989997E64756E2164756E21
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
import {
|
|
30
30
|
WEBAPP_MANIFEST_FILE_NAME,
|
|
31
31
|
WebAppToolFactory
|
|
32
|
-
} from "./packager-tool-
|
|
32
|
+
} from "./packager-tool-05wez2xw.js";
|
|
33
33
|
import {
|
|
34
34
|
FormData as FormData2,
|
|
35
35
|
fetch_blob_default,
|
|
@@ -30726,7 +30726,7 @@ var require_ignore = __commonJS(function(exports, module) {
|
|
|
30726
30726
|
var package_default = {
|
|
30727
30727
|
name: "@uipath/codedapp-tool",
|
|
30728
30728
|
license: "MIT",
|
|
30729
|
-
version: "1.202.0-preview.
|
|
30729
|
+
version: "1.202.0-preview.139",
|
|
30730
30730
|
description: "Build, pack, publish, deploy, and manage UiPath Coded Web Applications.",
|
|
30731
30731
|
keywords: [
|
|
30732
30732
|
"cli-tool",
|
|
@@ -54878,7 +54878,7 @@ function querystringSingleKey(key, value, keyPrefix = "") {
|
|
|
54878
54878
|
var package_default2 = {
|
|
54879
54879
|
name: "@uipath/solution-sdk",
|
|
54880
54880
|
license: "MIT",
|
|
54881
|
-
version: "1.202.0-preview.
|
|
54881
|
+
version: "1.202.0-preview.139",
|
|
54882
54882
|
repository: {
|
|
54883
54883
|
type: "git",
|
|
54884
54884
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -55177,7 +55177,7 @@ var SUCCEEDED = "creationsucceeded";
|
|
|
55177
55177
|
var TERMINAL = new Set([SUCCEEDED, "creationfailed", "validationfailed"]);
|
|
55178
55178
|
// src/services/project-artifacts.ts
|
|
55179
55179
|
async function ensureProjectArtifacts(args) {
|
|
55180
|
-
const { addProjectArtifactsToSolutionAsync } = await import("./index-
|
|
55180
|
+
const { addProjectArtifactsToSolutionAsync } = await import("./index-asg5kph8.js");
|
|
55181
55181
|
return addProjectArtifactsToSolutionAsync(args);
|
|
55182
55182
|
}
|
|
55183
55183
|
|
|
@@ -59403,4 +59403,4 @@ var registerCommands = async (program) => {
|
|
|
59403
59403
|
|
|
59404
59404
|
export { metadata, registerCommands };
|
|
59405
59405
|
|
|
59406
|
-
//# debugId=
|
|
59406
|
+
//# debugId=669620494254C98764756E2164756E21
|
|
@@ -29,8 +29,7 @@ class ToolsFactoryRepository {
|
|
|
29
29
|
getProjectToolFactory(projectType) {
|
|
30
30
|
const factory = this.projectFactoryMap.get(projectType);
|
|
31
31
|
if (!factory) {
|
|
32
|
-
|
|
33
|
-
throw new Error(`Cannot pack project type '${projectType}': no packager is installed for it. ` + `Project types that can be packed: ${known || "none"}.`);
|
|
32
|
+
throw new Error(`Cannot pack project type '${projectType}': no packager is installed for it.`);
|
|
34
33
|
}
|
|
35
34
|
return factory;
|
|
36
35
|
}
|
|
@@ -1512,4 +1511,4 @@ I18nManager.registerTranslations("zu", zu);
|
|
|
1512
1511
|
I18nManager.setLocale("en");
|
|
1513
1512
|
export { zipSync, toolsFactoryRepository };
|
|
1514
1513
|
|
|
1515
|
-
//# debugId=
|
|
1514
|
+
//# debugId=7F63F7116E65B50564756E2164756E21
|
package/dist/packager-tool.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WebAppToolFactory
|
|
3
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-05wez2xw.js";
|
|
4
4
|
import {
|
|
5
5
|
toolsFactoryRepository
|
|
6
|
-
} from "./packager-tool-
|
|
6
|
+
} from "./packager-tool-aybzcdfg.js";
|
|
7
7
|
import"./packager-tool-1yh8g550.js";
|
|
8
8
|
|
|
9
9
|
// src/packager-tool.ts
|
package/dist/tool.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
metadata,
|
|
3
3
|
registerCommands
|
|
4
|
-
} from "./packager-tool-
|
|
4
|
+
} from "./packager-tool-37s7ccxs.js";
|
|
5
5
|
import"./packager-tool-dhmzfax7.js";
|
|
6
6
|
import"./packager-tool-8hncwr6a.js";
|
|
7
7
|
import"./packager-tool-qyctya2j.js";
|
|
8
|
-
import"./packager-tool-
|
|
9
|
-
import"./packager-tool-
|
|
8
|
+
import"./packager-tool-05wez2xw.js";
|
|
9
|
+
import"./packager-tool-aybzcdfg.js";
|
|
10
10
|
import"./packager-tool-vv9c52ax.js";
|
|
11
11
|
import"./packager-tool-0gctz400.js";
|
|
12
12
|
import"./packager-tool-yc4kw997.js";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/codedapp-tool",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "1.202.0-preview.
|
|
4
|
+
"version": "1.202.0-preview.139",
|
|
5
5
|
"description": "Build, pack, publish, deploy, and manage UiPath Coded Web Applications.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"cli-tool",
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"registry": "https://registry.npmjs.org/"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "fd9f8b8a05749404743763d22187b1b012c44274"
|
|
32
32
|
}
|