@uipath/function-tool 1.202.0-preview.134 → 1.202.0-preview.136
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 +25 -9
- 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.136",
|
|
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
|
}
|
|
@@ -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.136",
|
|
20750
20766
|
repository: {
|
|
20751
20767
|
type: "git",
|
|
20752
20768
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -27869,4 +27885,4 @@ export {
|
|
|
27869
27885
|
registerCommands
|
|
27870
27886
|
};
|
|
27871
27887
|
|
|
27872
|
-
//# debugId=
|
|
27888
|
+
//# debugId=543377591980113B64756E2164756E21
|
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.136",
|
|
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": "f6270de2c7c04f4c43b2f5187b0c3d3c314c2610"
|
|
38
38
|
}
|