@uipath/uipath-python-bridge 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/index.js +20 -12
- 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
|
}
|
|
@@ -9870,6 +9878,14 @@ var RETRY_HINTS = [
|
|
|
9870
9878
|
"RetryAfter30Seconds",
|
|
9871
9879
|
"RetryAfter60Seconds"
|
|
9872
9880
|
];
|
|
9881
|
+
var CLI_ERROR_CODE_VALUES = new Set(CLI_ERROR_CODES);
|
|
9882
|
+
var RETRY_HINT_VALUES = new Set(RETRY_HINTS);
|
|
9883
|
+
function isCliErrorCode(value) {
|
|
9884
|
+
return typeof value === "string" && CLI_ERROR_CODE_VALUES.has(value);
|
|
9885
|
+
}
|
|
9886
|
+
function isRetryHint(value) {
|
|
9887
|
+
return typeof value === "string" && RETRY_HINT_VALUES.has(value);
|
|
9888
|
+
}
|
|
9873
9889
|
var RESULTS = {
|
|
9874
9890
|
Success: "Success",
|
|
9875
9891
|
Failure: "Failure",
|
|
@@ -10673,8 +10689,6 @@ function emitInvocationRequest(name, success, properties) {
|
|
|
10673
10689
|
|
|
10674
10690
|
// ../common/src/trackedAction.ts
|
|
10675
10691
|
var pollSignalSlot = singleton("PollSignal");
|
|
10676
|
-
var cliErrorCodeValues = new Set(CLI_ERROR_CODES);
|
|
10677
|
-
var retryHintValues = new Set(RETRY_HINTS);
|
|
10678
10692
|
var TELEMETRY_COMMAND_ARG_PREFIX = "uip.cmd.arg.";
|
|
10679
10693
|
var processContext = {
|
|
10680
10694
|
exit: (code) => {
|
|
@@ -10762,12 +10776,6 @@ function deriveCommandPath(cmd) {
|
|
|
10762
10776
|
}
|
|
10763
10777
|
return commandTelemetryName(parts);
|
|
10764
10778
|
}
|
|
10765
|
-
function isCliErrorCode(value) {
|
|
10766
|
-
return typeof value === "string" && cliErrorCodeValues.has(value);
|
|
10767
|
-
}
|
|
10768
|
-
function isRetryHint(value) {
|
|
10769
|
-
return typeof value === "string" && retryHintValues.has(value);
|
|
10770
|
-
}
|
|
10771
10779
|
function isErrorContext(value) {
|
|
10772
10780
|
return value !== null && typeof value === "object";
|
|
10773
10781
|
}
|
|
@@ -13260,4 +13268,4 @@ export {
|
|
|
13260
13268
|
runUipathPythonCommand
|
|
13261
13269
|
};
|
|
13262
13270
|
|
|
13263
|
-
//# debugId=
|
|
13271
|
+
//# debugId=D1E03E615701A89464756E2164756E21
|
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.137",
|
|
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": "bbb20a6d3501afc3435a92af9ae2e9f7ab2e34f6"
|
|
28
28
|
}
|