@uipath/api-workflow-tool 1.201.0 → 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.
@@ -19,32 +19,21 @@ var __toESM = (mod, isNodeMode, target) => {
19
19
  }
20
20
  target = mod != null ? __create(__getProtoOf(mod)) : {};
21
21
  const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
22
- for (let key of __getOwnPropNames(mod))
23
- if (!__hasOwnProp.call(to, key))
24
- __defProp(to, key, {
25
- get: __accessProp.bind(mod, key),
26
- enumerable: true
27
- });
22
+ if (mod && typeof mod === "object" || typeof mod === "function") {
23
+ for (let key of __getOwnPropNames(mod))
24
+ if (!__hasOwnProp.call(to, key))
25
+ __defProp(to, key, {
26
+ get: __accessProp.bind(mod, key),
27
+ enumerable: true
28
+ });
29
+ }
28
30
  if (canCache)
29
31
  cache.set(mod, to);
30
32
  return to;
31
33
  };
32
34
  var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
33
- var __returnValue = (v) => v;
34
- function __exportSetter(name, newValue) {
35
- this[name] = __returnValue.bind(null, newValue);
36
- }
37
- var __export = (target, all) => {
38
- for (var name in all)
39
- __defProp(target, name, {
40
- get: all[name],
41
- enumerable: true,
42
- configurable: true,
43
- set: __exportSetter.bind(all, name)
44
- });
45
- };
46
35
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
47
36
 
48
- export { __toESM, __commonJS, __export, __require };
37
+ export { __toESM, __commonJS, __require };
49
38
 
50
- //# debugId=42F86BC5AE2E70AC64756E2164756E21
39
+ //# debugId=4A15A0D6FCDB684764756E2164756E21
@@ -1332,16 +1332,21 @@ function requireLoader() {
1332
1332
  state.result += _result;
1333
1333
  }
1334
1334
  }
1335
+ function chargeMergeWork(state) {
1336
+ state.totalMergeKeys++;
1337
+ if (state.maxTotalMergeKeys !== -1 && state.totalMergeKeys > state.maxTotalMergeKeys) {
1338
+ throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
1339
+ }
1340
+ }
1335
1341
  function mergeMappings(state, destination, source, overridableKeys) {
1336
1342
  if (!common2.isObject(source)) {
1337
1343
  throwError(state, "cannot merge mappings; the provided source object is unacceptable");
1338
1344
  }
1345
+ chargeMergeWork(state);
1339
1346
  const sourceKeys = Object.keys(source);
1340
1347
  for (let index = 0, quantity = sourceKeys.length;index < quantity; index += 1) {
1341
1348
  const key = sourceKeys[index];
1342
- if (state.maxTotalMergeKeys !== -1 && ++state.totalMergeKeys > state.maxTotalMergeKeys) {
1343
- throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
1344
- }
1349
+ chargeMergeWork(state);
1345
1350
  if (!_hasOwnProperty.call(destination, key)) {
1346
1351
  setProperty(destination, key, source[key]);
1347
1352
  overridableKeys[key] = true;
@@ -1369,6 +1374,9 @@ function requireLoader() {
1369
1374
  }
1370
1375
  if (keyTag === "tag:yaml.org,2002:merge") {
1371
1376
  if (Array.isArray(valueNode)) {
1377
+ if (valueNode.length > 100) {
1378
+ throwError(state, "abnormal merge sequence size");
1379
+ }
1372
1380
  for (let index = 0, quantity = valueNode.length;index < quantity; index += 1) {
1373
1381
  mergeMappings(state, _result, valueNode[index], overridableKeys);
1374
1382
  }
@@ -3124,4 +3132,4 @@ var {
3124
3132
  } = yaml;
3125
3133
  export { yaml, Type, Schema, FAILSAFE_SCHEMA, JSON_SCHEMA, CORE_SCHEMA, DEFAULT_SCHEMA, load, loadAll, dump, YAMLException, types, safeLoad, safeLoadAll, safeDump };
3126
3134
 
3127
- //# debugId=7AE2410D77C73ADF64756E2164756E21
3135
+ //# debugId=87AF69663A6159EB64756E2164756E21