@uipath/uipath-python-bridge 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
|
@@ -2236,16 +2236,21 @@ function requireLoader() {
|
|
|
2236
2236
|
state.result += _result;
|
|
2237
2237
|
}
|
|
2238
2238
|
}
|
|
2239
|
+
function chargeMergeWork(state) {
|
|
2240
|
+
state.totalMergeKeys++;
|
|
2241
|
+
if (state.maxTotalMergeKeys !== -1 && state.totalMergeKeys > state.maxTotalMergeKeys) {
|
|
2242
|
+
throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
|
|
2243
|
+
}
|
|
2244
|
+
}
|
|
2239
2245
|
function mergeMappings(state, destination, source, overridableKeys) {
|
|
2240
2246
|
if (!common2.isObject(source)) {
|
|
2241
2247
|
throwError(state, "cannot merge mappings; the provided source object is unacceptable");
|
|
2242
2248
|
}
|
|
2249
|
+
chargeMergeWork(state);
|
|
2243
2250
|
const sourceKeys = Object.keys(source);
|
|
2244
2251
|
for (let index = 0, quantity = sourceKeys.length;index < quantity; index += 1) {
|
|
2245
2252
|
const key = sourceKeys[index];
|
|
2246
|
-
|
|
2247
|
-
throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
|
|
2248
|
-
}
|
|
2253
|
+
chargeMergeWork(state);
|
|
2249
2254
|
if (!_hasOwnProperty.call(destination, key)) {
|
|
2250
2255
|
setProperty(destination, key, source[key]);
|
|
2251
2256
|
overridableKeys[key] = true;
|
|
@@ -2273,6 +2278,9 @@ function requireLoader() {
|
|
|
2273
2278
|
}
|
|
2274
2279
|
if (keyTag === "tag:yaml.org,2002:merge") {
|
|
2275
2280
|
if (Array.isArray(valueNode)) {
|
|
2281
|
+
if (valueNode.length > 100) {
|
|
2282
|
+
throwError(state, "abnormal merge sequence size");
|
|
2283
|
+
}
|
|
2276
2284
|
for (let index = 0, quantity = valueNode.length;index < quantity; index += 1) {
|
|
2277
2285
|
mergeMappings(state, _result, valueNode[index], overridableKeys);
|
|
2278
2286
|
}
|
|
@@ -13260,4 +13268,4 @@ export {
|
|
|
13260
13268
|
runUipathPythonCommand
|
|
13261
13269
|
};
|
|
13262
13270
|
|
|
13263
|
-
//# debugId=
|
|
13271
|
+
//# debugId=A07F4C4DD2850D8764756E2164756E21
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/uipath-python-bridge",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "1.202.0-preview.
|
|
4
|
+
"version": "1.202.0-preview.136",
|
|
5
5
|
"description": "Shared Python detection, caching, and CLI bridge for UiPath Python SDK tools.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"uip",
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"publishConfig": {
|
|
25
25
|
"registry": "https://registry.npmjs.org/"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "f6270de2c7c04f4c43b2f5187b0c3d3c314c2610"
|
|
28
28
|
}
|