@uipath/maestro-tool 1.199.0-preview.99 → 1.199.0
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/packager-tool.js +45 -10
- package/dist/tool.js +101004 -93819
- package/package.json +2 -2
package/dist/packager-tool.js
CHANGED
|
@@ -26273,7 +26273,12 @@ var require_fast_uri = __commonJS((exports, module) => {
|
|
|
26273
26273
|
}
|
|
26274
26274
|
function resolve(baseURI, relativeURI, options) {
|
|
26275
26275
|
const schemelessOptions = options ? Object.assign({ scheme: "null" }, options) : { scheme: "null" };
|
|
26276
|
-
const
|
|
26276
|
+
const { parsed: baseParsed, malformedAuthorityOrPort: baseMalformed } = parseWithStatus(baseURI, schemelessOptions);
|
|
26277
|
+
const { parsed: relativeParsed, malformedAuthorityOrPort: relativeMalformed } = parseWithStatus(relativeURI, schemelessOptions);
|
|
26278
|
+
if (baseMalformed || relativeMalformed) {
|
|
26279
|
+
throw new Error(baseParsed.error || relativeParsed.error || "URI is malformed.");
|
|
26280
|
+
}
|
|
26281
|
+
const resolved = resolveComponent(baseParsed, relativeParsed, schemelessOptions, true);
|
|
26277
26282
|
schemelessOptions.skipEscape = true;
|
|
26278
26283
|
return serialize(resolved, schemelessOptions);
|
|
26279
26284
|
}
|
|
@@ -26400,6 +26405,7 @@ var require_fast_uri = __commonJS((exports, module) => {
|
|
|
26400
26405
|
}
|
|
26401
26406
|
var URI_PARSE = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
|
|
26402
26407
|
var AUTHORITY_PREFIX = /^(?:[^#/:?]+:)?\/\/([^/?#]*)/;
|
|
26408
|
+
var AUTHORITY_INTRODUCER_REGION = /^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;
|
|
26403
26409
|
function getParseError(parsed, matches) {
|
|
26404
26410
|
if (matches[2] !== undefined && parsed.path && parsed.path[0] !== "/") {
|
|
26405
26411
|
return 'URI path must start with "/" when authority is present.';
|
|
@@ -26434,6 +26440,20 @@ var require_fast_uri = __commonJS((exports, module) => {
|
|
|
26434
26440
|
parsed.error = "URI authority must not contain a literal backslash.";
|
|
26435
26441
|
malformedAuthorityOrPort = true;
|
|
26436
26442
|
}
|
|
26443
|
+
const introducerMatch = uri2.match(AUTHORITY_INTRODUCER_REGION);
|
|
26444
|
+
if (introducerMatch !== null) {
|
|
26445
|
+
const region = introducerMatch[1];
|
|
26446
|
+
const normalizedRegion = region.replace(/[\t\n\r]/g, "");
|
|
26447
|
+
if (normalizedRegion.length >= 2) {
|
|
26448
|
+
if (normalizedRegion.slice(0, 2) !== "//") {
|
|
26449
|
+
parsed.error = parsed.error || "URI authority must not contain a literal backslash.";
|
|
26450
|
+
malformedAuthorityOrPort = true;
|
|
26451
|
+
} else if (region.length !== normalizedRegion.length) {
|
|
26452
|
+
parsed.error = parsed.error || "URI authority introducer must not contain whitespace.";
|
|
26453
|
+
malformedAuthorityOrPort = true;
|
|
26454
|
+
}
|
|
26455
|
+
}
|
|
26456
|
+
}
|
|
26437
26457
|
const matches = uri2.match(URI_PARSE);
|
|
26438
26458
|
if (matches) {
|
|
26439
26459
|
parsed.scheme = matches[1];
|
|
@@ -175071,8 +175091,8 @@ var bpmn_spec_default = {
|
|
|
175071
175091
|
<bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
|
|
175072
175092
|
</bpmn:Task>`,
|
|
175073
175093
|
inputNotes: "Variable mappings use uipath:mapping with direct input/output elements, not a jsonBody pattern",
|
|
175074
|
-
bpmnElementNotes: "Also used on bpmn:StartEvent and bpmn:
|
|
175075
|
-
extensionTagNotes: "Uses uipath:mapping (not uipath:activity).
|
|
175094
|
+
bpmnElementNotes: "Also used on bpmn:StartEvent, bpmn:EndEvent, bpmn:ScriptTask, and bpmn:SubProcess for variable mappings. On bpmn:Task with no serviceType, defaults to BPMN.Variables.",
|
|
175095
|
+
extensionTagNotes: "Uses uipath:mapping (not uipath:activity). BPMN.Variables mappings are supported on StartEvent, EndEvent, Task, ScriptTask, and SubProcess owners."
|
|
175076
175096
|
},
|
|
175077
175097
|
"BPMN.ScriptTask": {
|
|
175078
175098
|
extensionType: "BPMN.ScriptTask",
|
|
@@ -175815,6 +175835,7 @@ var SUPPORTED_UIPATH_EXTENSION_TAG_NAMES = Object.freeze([
|
|
|
175815
175835
|
var SUPPORTED_UIPATH_EXTENSION_TAGS = Object.freeze(SUPPORTED_UIPATH_EXTENSION_TAG_NAMES.map((tag) => `uipath:${tag}`));
|
|
175816
175836
|
var KNOWN_UIPATH_TAGS = new Set(SUPPORTED_UIPATH_EXTENSION_TAGS);
|
|
175817
175837
|
var SEMANTIC_VALIDATION_ERROR = "BPMN_VALIDATION_ERROR";
|
|
175838
|
+
var BPMN_MODEL_NAMESPACE = "http://www.omg.org/spec/BPMN/20100524/MODEL";
|
|
175818
175839
|
|
|
175819
175840
|
class BpmnValidateService {
|
|
175820
175841
|
fileSystem;
|
|
@@ -176021,7 +176042,7 @@ class BpmnValidateService {
|
|
|
176021
176042
|
});
|
|
176022
176043
|
}
|
|
176023
176044
|
const allowedOwners = getAllowedOwnerTypes(contract);
|
|
176024
|
-
if (!allowedOwners.some((allowedOwner) =>
|
|
176045
|
+
if (!allowedOwners.some((allowedOwner) => getLocalName(allowedOwner) === getLocalName(owner.name) && resolveNamespace(owner) === BPMN_MODEL_NAMESPACE)) {
|
|
176025
176046
|
diagnostics.push({
|
|
176026
176047
|
file,
|
|
176027
176048
|
element: describeElement(owner),
|
|
@@ -176490,10 +176511,23 @@ function findFirst(node, predicate) {
|
|
|
176490
176511
|
return;
|
|
176491
176512
|
}
|
|
176492
176513
|
function hasLocalName(node, localName) {
|
|
176493
|
-
return
|
|
176514
|
+
return getLocalName(node.name) === localName.toLowerCase();
|
|
176494
176515
|
}
|
|
176495
|
-
function
|
|
176496
|
-
return name.toLowerCase();
|
|
176516
|
+
function getLocalName(name) {
|
|
176517
|
+
return name.slice(name.lastIndexOf(":") + 1).toLowerCase();
|
|
176518
|
+
}
|
|
176519
|
+
function resolveNamespace(node) {
|
|
176520
|
+
const separator = node.name.indexOf(":");
|
|
176521
|
+
const prefix = separator === -1 ? "" : node.name.slice(0, separator);
|
|
176522
|
+
const declaration = prefix ? `xmlns:${prefix}` : "xmlns";
|
|
176523
|
+
let current = node;
|
|
176524
|
+
while (current) {
|
|
176525
|
+
if (Object.hasOwn(current.attributes, declaration)) {
|
|
176526
|
+
return current.attributes[declaration];
|
|
176527
|
+
}
|
|
176528
|
+
current = current.parent;
|
|
176529
|
+
}
|
|
176530
|
+
return;
|
|
176497
176531
|
}
|
|
176498
176532
|
function findBpmnOwner(payload) {
|
|
176499
176533
|
const extensionElements = payload.parent;
|
|
@@ -176522,7 +176556,8 @@ function getAllowedOwnerTypes(contract) {
|
|
|
176522
176556
|
"bpmn:StartEvent",
|
|
176523
176557
|
"bpmn:EndEvent",
|
|
176524
176558
|
"bpmn:Task",
|
|
176525
|
-
"bpmn:ScriptTask"
|
|
176559
|
+
"bpmn:ScriptTask",
|
|
176560
|
+
"bpmn:SubProcess"
|
|
176526
176561
|
];
|
|
176527
176562
|
}
|
|
176528
176563
|
const placementTypes = Object.values(contract.placements).map((placement) => placement.type);
|
|
@@ -176983,7 +177018,7 @@ init_dist6();
|
|
|
176983
177018
|
// ../packager/packager-tool-flow/package.json
|
|
176984
177019
|
var package_default = {
|
|
176985
177020
|
name: "@uipath/packager-tool-flow",
|
|
176986
|
-
version: "1.199.0
|
|
177021
|
+
version: "1.199.0",
|
|
176987
177022
|
description: "UiPath Flow tool implementation",
|
|
176988
177023
|
type: "module",
|
|
176989
177024
|
exports: {
|
|
@@ -191748,4 +191783,4 @@ toolsFactoryRepository2.registerProjectToolFactory(new BpmnToolFactory);
|
|
|
191748
191783
|
toolsFactoryRepository2.registerProjectToolFactory(new FlowToolFactory);
|
|
191749
191784
|
toolsFactoryRepository2.registerProjectToolFactory(new CaseToolFactory);
|
|
191750
191785
|
|
|
191751
|
-
//# debugId=
|
|
191786
|
+
//# debugId=B186BC1FF607728F64756E2164756E21
|