@uipath/common 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/index.js +12 -4
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2007,16 +2007,21 @@ function requireLoader() {
|
|
|
2007
2007
|
state.result += _result;
|
|
2008
2008
|
}
|
|
2009
2009
|
}
|
|
2010
|
+
function chargeMergeWork(state) {
|
|
2011
|
+
state.totalMergeKeys++;
|
|
2012
|
+
if (state.maxTotalMergeKeys !== -1 && state.totalMergeKeys > state.maxTotalMergeKeys) {
|
|
2013
|
+
throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
|
|
2014
|
+
}
|
|
2015
|
+
}
|
|
2010
2016
|
function mergeMappings(state, destination, source, overridableKeys) {
|
|
2011
2017
|
if (!common2.isObject(source)) {
|
|
2012
2018
|
throwError(state, "cannot merge mappings; the provided source object is unacceptable");
|
|
2013
2019
|
}
|
|
2020
|
+
chargeMergeWork(state);
|
|
2014
2021
|
const sourceKeys = Object.keys(source);
|
|
2015
2022
|
for (let index = 0, quantity = sourceKeys.length;index < quantity; index += 1) {
|
|
2016
2023
|
const key = sourceKeys[index];
|
|
2017
|
-
|
|
2018
|
-
throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
|
|
2019
|
-
}
|
|
2024
|
+
chargeMergeWork(state);
|
|
2020
2025
|
if (!_hasOwnProperty.call(destination, key)) {
|
|
2021
2026
|
setProperty(destination, key, source[key]);
|
|
2022
2027
|
overridableKeys[key] = true;
|
|
@@ -2044,6 +2049,9 @@ function requireLoader() {
|
|
|
2044
2049
|
}
|
|
2045
2050
|
if (keyTag === "tag:yaml.org,2002:merge") {
|
|
2046
2051
|
if (Array.isArray(valueNode)) {
|
|
2052
|
+
if (valueNode.length > 100) {
|
|
2053
|
+
throwError(state, "abnormal merge sequence size");
|
|
2054
|
+
}
|
|
2047
2055
|
for (let index = 0, quantity = valueNode.length;index < quantity; index += 1) {
|
|
2048
2056
|
mergeMappings(state, _result, valueNode[index], overridableKeys);
|
|
2049
2057
|
}
|
|
@@ -14197,4 +14205,4 @@ export {
|
|
|
14197
14205
|
writeTelemetrySpoolFile
|
|
14198
14206
|
};
|
|
14199
14207
|
|
|
14200
|
-
//# debugId=
|
|
14208
|
+
//# debugId=32AF799EBF618DA564756E2164756E21
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/common",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "1.202.0-preview.
|
|
4
|
+
"version": "1.202.0-preview.136",
|
|
5
5
|
"description": "Common infrastructure needed by uip tools.",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"mihaigirleanu",
|
|
76
76
|
"vlad-uipath"
|
|
77
77
|
],
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "f6270de2c7c04f4c43b2f5187b0c3d3c314c2610"
|
|
79
79
|
}
|