@uipath/function-tool 1.202.0-preview.134 → 1.202.0-preview.137
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/tool.js +41 -25
- package/package.json +2 -2
package/dist/tool.js
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
var package_default = {
|
|
9
9
|
name: "@uipath/function-tool",
|
|
10
10
|
license: "MIT",
|
|
11
|
-
version: "1.202.0-preview.
|
|
11
|
+
version: "1.202.0-preview.137",
|
|
12
12
|
description: "UiPath CLI tool for JS/TS and Python Functions — thin passthrough to uipath-functions / uipath",
|
|
13
13
|
keywords: [
|
|
14
14
|
"uipcli-tool",
|
|
@@ -2074,16 +2074,21 @@ function requireLoader() {
|
|
|
2074
2074
|
state.result += _result;
|
|
2075
2075
|
}
|
|
2076
2076
|
}
|
|
2077
|
+
function chargeMergeWork(state) {
|
|
2078
|
+
state.totalMergeKeys++;
|
|
2079
|
+
if (state.maxTotalMergeKeys !== -1 && state.totalMergeKeys > state.maxTotalMergeKeys) {
|
|
2080
|
+
throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
|
|
2081
|
+
}
|
|
2082
|
+
}
|
|
2077
2083
|
function mergeMappings(state, destination, source, overridableKeys) {
|
|
2078
2084
|
if (!common2.isObject(source)) {
|
|
2079
2085
|
throwError(state, "cannot merge mappings; the provided source object is unacceptable");
|
|
2080
2086
|
}
|
|
2087
|
+
chargeMergeWork(state);
|
|
2081
2088
|
const sourceKeys = Object.keys(source);
|
|
2082
2089
|
for (let index = 0, quantity = sourceKeys.length;index < quantity; index += 1) {
|
|
2083
2090
|
const key = sourceKeys[index];
|
|
2084
|
-
|
|
2085
|
-
throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
|
|
2086
|
-
}
|
|
2091
|
+
chargeMergeWork(state);
|
|
2087
2092
|
if (!_hasOwnProperty.call(destination, key)) {
|
|
2088
2093
|
setProperty(destination, key, source[key]);
|
|
2089
2094
|
overridableKeys[key] = true;
|
|
@@ -2111,6 +2116,9 @@ function requireLoader() {
|
|
|
2111
2116
|
}
|
|
2112
2117
|
if (keyTag === "tag:yaml.org,2002:merge") {
|
|
2113
2118
|
if (Array.isArray(valueNode)) {
|
|
2119
|
+
if (valueNode.length > 100) {
|
|
2120
|
+
throwError(state, "abnormal merge sequence size");
|
|
2121
|
+
}
|
|
2114
2122
|
for (let index = 0, quantity = valueNode.length;index < quantity; index += 1) {
|
|
2115
2123
|
mergeMappings(state, _result, valueNode[index], overridableKeys);
|
|
2116
2124
|
}
|
|
@@ -9952,6 +9960,14 @@ var RETRY_HINTS = [
|
|
|
9952
9960
|
"RetryAfter30Seconds",
|
|
9953
9961
|
"RetryAfter60Seconds"
|
|
9954
9962
|
];
|
|
9963
|
+
var CLI_ERROR_CODE_VALUES = new Set(CLI_ERROR_CODES);
|
|
9964
|
+
var RETRY_HINT_VALUES = new Set(RETRY_HINTS);
|
|
9965
|
+
function isCliErrorCode(value) {
|
|
9966
|
+
return typeof value === "string" && CLI_ERROR_CODE_VALUES.has(value);
|
|
9967
|
+
}
|
|
9968
|
+
function isRetryHint(value) {
|
|
9969
|
+
return typeof value === "string" && RETRY_HINT_VALUES.has(value);
|
|
9970
|
+
}
|
|
9955
9971
|
var RESULTS = {
|
|
9956
9972
|
Success: "Success",
|
|
9957
9973
|
Failure: "Failure",
|
|
@@ -10743,8 +10759,6 @@ function emitInvocationRequest(name, success, properties) {
|
|
|
10743
10759
|
}
|
|
10744
10760
|
}
|
|
10745
10761
|
var pollSignalSlot = singleton("PollSignal");
|
|
10746
|
-
var cliErrorCodeValues = new Set(CLI_ERROR_CODES);
|
|
10747
|
-
var retryHintValues = new Set(RETRY_HINTS);
|
|
10748
10762
|
var TELEMETRY_COMMAND_ARG_PREFIX = "uip.cmd.arg.";
|
|
10749
10763
|
var processContext = {
|
|
10750
10764
|
exit: (code) => {
|
|
@@ -10832,12 +10846,6 @@ function deriveCommandPath(cmd) {
|
|
|
10832
10846
|
}
|
|
10833
10847
|
return commandTelemetryName(parts);
|
|
10834
10848
|
}
|
|
10835
|
-
function isCliErrorCode(value) {
|
|
10836
|
-
return typeof value === "string" && cliErrorCodeValues.has(value);
|
|
10837
|
-
}
|
|
10838
|
-
function isRetryHint(value) {
|
|
10839
|
-
return typeof value === "string" && retryHintValues.has(value);
|
|
10840
|
-
}
|
|
10841
10849
|
function isErrorContext(value) {
|
|
10842
10850
|
return value !== null && typeof value === "object";
|
|
10843
10851
|
}
|
|
@@ -14412,16 +14420,21 @@ function requireLoader2() {
|
|
|
14412
14420
|
state.result += _result;
|
|
14413
14421
|
}
|
|
14414
14422
|
}
|
|
14423
|
+
function chargeMergeWork(state) {
|
|
14424
|
+
state.totalMergeKeys++;
|
|
14425
|
+
if (state.maxTotalMergeKeys !== -1 && state.totalMergeKeys > state.maxTotalMergeKeys) {
|
|
14426
|
+
throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
|
|
14427
|
+
}
|
|
14428
|
+
}
|
|
14415
14429
|
function mergeMappings(state, destination, source, overridableKeys) {
|
|
14416
14430
|
if (!common2.isObject(source)) {
|
|
14417
14431
|
throwError(state, "cannot merge mappings; the provided source object is unacceptable");
|
|
14418
14432
|
}
|
|
14433
|
+
chargeMergeWork(state);
|
|
14419
14434
|
const sourceKeys = Object.keys(source);
|
|
14420
14435
|
for (let index = 0, quantity = sourceKeys.length;index < quantity; index += 1) {
|
|
14421
14436
|
const key = sourceKeys[index];
|
|
14422
|
-
|
|
14423
|
-
throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
|
|
14424
|
-
}
|
|
14437
|
+
chargeMergeWork(state);
|
|
14425
14438
|
if (!_hasOwnProperty.call(destination, key)) {
|
|
14426
14439
|
setProperty(destination, key, source[key]);
|
|
14427
14440
|
overridableKeys[key] = true;
|
|
@@ -14449,6 +14462,9 @@ function requireLoader2() {
|
|
|
14449
14462
|
}
|
|
14450
14463
|
if (keyTag === "tag:yaml.org,2002:merge") {
|
|
14451
14464
|
if (Array.isArray(valueNode)) {
|
|
14465
|
+
if (valueNode.length > 100) {
|
|
14466
|
+
throwError(state, "abnormal merge sequence size");
|
|
14467
|
+
}
|
|
14452
14468
|
for (let index = 0, quantity = valueNode.length;index < quantity; index += 1) {
|
|
14453
14469
|
mergeMappings(state, _result, valueNode[index], overridableKeys);
|
|
14454
14470
|
}
|
|
@@ -20746,7 +20762,7 @@ function querystringSingleKey(key, value, keyPrefix = "") {
|
|
|
20746
20762
|
var package_default2 = {
|
|
20747
20763
|
name: "@uipath/solution-sdk",
|
|
20748
20764
|
license: "MIT",
|
|
20749
|
-
version: "1.202.0-preview.
|
|
20765
|
+
version: "1.202.0-preview.137",
|
|
20750
20766
|
repository: {
|
|
20751
20767
|
type: "git",
|
|
20752
20768
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -22633,6 +22649,14 @@ var RETRY_HINTS2 = [
|
|
|
22633
22649
|
"RetryAfter30Seconds",
|
|
22634
22650
|
"RetryAfter60Seconds"
|
|
22635
22651
|
];
|
|
22652
|
+
var CLI_ERROR_CODE_VALUES2 = new Set(CLI_ERROR_CODES2);
|
|
22653
|
+
var RETRY_HINT_VALUES2 = new Set(RETRY_HINTS2);
|
|
22654
|
+
function isCliErrorCode2(value) {
|
|
22655
|
+
return typeof value === "string" && CLI_ERROR_CODE_VALUES2.has(value);
|
|
22656
|
+
}
|
|
22657
|
+
function isRetryHint2(value) {
|
|
22658
|
+
return typeof value === "string" && RETRY_HINT_VALUES2.has(value);
|
|
22659
|
+
}
|
|
22636
22660
|
var RESULTS2 = {
|
|
22637
22661
|
Success: "Success",
|
|
22638
22662
|
Failure: "Failure",
|
|
@@ -23424,8 +23448,6 @@ function emitInvocationRequest2(name, success, properties) {
|
|
|
23424
23448
|
}
|
|
23425
23449
|
}
|
|
23426
23450
|
var pollSignalSlot2 = singleton2("PollSignal");
|
|
23427
|
-
var cliErrorCodeValues2 = new Set(CLI_ERROR_CODES2);
|
|
23428
|
-
var retryHintValues2 = new Set(RETRY_HINTS2);
|
|
23429
23451
|
var TELEMETRY_COMMAND_ARG_PREFIX2 = "uip.cmd.arg.";
|
|
23430
23452
|
var TELEMETRY_ARG_VALUE_WITHHELD2 = "<provided>";
|
|
23431
23453
|
var TELEMETRY_ARG_VALUE_DEFAULTED2 = "<default>";
|
|
@@ -23504,12 +23526,6 @@ function deriveCommandPath2(cmd) {
|
|
|
23504
23526
|
}
|
|
23505
23527
|
return commandTelemetryName2(parts);
|
|
23506
23528
|
}
|
|
23507
|
-
function isCliErrorCode2(value) {
|
|
23508
|
-
return typeof value === "string" && cliErrorCodeValues2.has(value);
|
|
23509
|
-
}
|
|
23510
|
-
function isRetryHint2(value) {
|
|
23511
|
-
return typeof value === "string" && retryHintValues2.has(value);
|
|
23512
|
-
}
|
|
23513
23529
|
function isErrorContext2(value) {
|
|
23514
23530
|
return value !== null && typeof value === "object";
|
|
23515
23531
|
}
|
|
@@ -27869,4 +27885,4 @@ export {
|
|
|
27869
27885
|
registerCommands
|
|
27870
27886
|
};
|
|
27871
27887
|
|
|
27872
|
-
//# debugId=
|
|
27888
|
+
//# debugId=4424EF8AF5A5D32D64756E2164756E21
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/function-tool",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "1.202.0-preview.
|
|
4
|
+
"version": "1.202.0-preview.137",
|
|
5
5
|
"description": "UiPath CLI tool for JS/TS and Python Functions — thin passthrough to uipath-functions / uipath",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"uipcli-tool",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"typescript": "^5.7.0"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "bbb20a6d3501afc3435a92af9ae2e9f7ab2e34f6"
|
|
38
38
|
}
|