@uipath/gov-tool 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.
Files changed (2) hide show
  1. package/dist/tool.js +21 -13
  2. package/package.json +2 -2
package/dist/tool.js CHANGED
@@ -2275,16 +2275,21 @@ function requireLoader() {
2275
2275
  state.result += _result;
2276
2276
  }
2277
2277
  }
2278
+ function chargeMergeWork(state) {
2279
+ state.totalMergeKeys++;
2280
+ if (state.maxTotalMergeKeys !== -1 && state.totalMergeKeys > state.maxTotalMergeKeys) {
2281
+ throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
2282
+ }
2283
+ }
2278
2284
  function mergeMappings(state, destination, source, overridableKeys) {
2279
2285
  if (!common2.isObject(source)) {
2280
2286
  throwError(state, "cannot merge mappings; the provided source object is unacceptable");
2281
2287
  }
2288
+ chargeMergeWork(state);
2282
2289
  const sourceKeys = Object.keys(source);
2283
2290
  for (let index = 0, quantity = sourceKeys.length;index < quantity; index += 1) {
2284
2291
  const key = sourceKeys[index];
2285
- if (state.maxTotalMergeKeys !== -1 && ++state.totalMergeKeys > state.maxTotalMergeKeys) {
2286
- throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
2287
- }
2292
+ chargeMergeWork(state);
2288
2293
  if (!_hasOwnProperty.call(destination, key)) {
2289
2294
  setProperty(destination, key, source[key]);
2290
2295
  overridableKeys[key] = true;
@@ -2312,6 +2317,9 @@ function requireLoader() {
2312
2317
  }
2313
2318
  if (keyTag === "tag:yaml.org,2002:merge") {
2314
2319
  if (Array.isArray(valueNode)) {
2320
+ if (valueNode.length > 100) {
2321
+ throwError(state, "abnormal merge sequence size");
2322
+ }
2315
2323
  for (let index = 0, quantity = valueNode.length;index < quantity; index += 1) {
2316
2324
  mergeMappings(state, _result, valueNode[index], overridableKeys);
2317
2325
  }
@@ -8168,7 +8176,7 @@ var require_commander = __commonJS(function(exports) {
8168
8176
  var package_default = {
8169
8177
  name: "@uipath/gov-tool",
8170
8178
  license: "MIT",
8171
- version: "1.202.0-preview.134",
8179
+ version: "1.202.0-preview.137",
8172
8180
  description: "Manage UiPath governance — AOps policies, Access policies, and compliance packs.",
8173
8181
  private: false,
8174
8182
  repository: {
@@ -12562,6 +12570,14 @@ var RETRY_HINTS = [
12562
12570
  "RetryAfter30Seconds",
12563
12571
  "RetryAfter60Seconds"
12564
12572
  ];
12573
+ var CLI_ERROR_CODE_VALUES = new Set(CLI_ERROR_CODES);
12574
+ var RETRY_HINT_VALUES = new Set(RETRY_HINTS);
12575
+ function isCliErrorCode(value) {
12576
+ return typeof value === "string" && CLI_ERROR_CODE_VALUES.has(value);
12577
+ }
12578
+ function isRetryHint(value) {
12579
+ return typeof value === "string" && RETRY_HINT_VALUES.has(value);
12580
+ }
12565
12581
  var RESULTS = {
12566
12582
  Success: "Success",
12567
12583
  Failure: "Failure",
@@ -13365,8 +13381,6 @@ function emitInvocationRequest(name, success, properties) {
13365
13381
 
13366
13382
  // ../../common/src/trackedAction.ts
13367
13383
  var pollSignalSlot = singleton("PollSignal");
13368
- var cliErrorCodeValues = new Set(CLI_ERROR_CODES);
13369
- var retryHintValues = new Set(RETRY_HINTS);
13370
13384
  var TELEMETRY_COMMAND_ARG_PREFIX = "uip.cmd.arg.";
13371
13385
  var processContext = {
13372
13386
  exit: (code) => {
@@ -13454,12 +13468,6 @@ function deriveCommandPath(cmd) {
13454
13468
  }
13455
13469
  return commandTelemetryName(parts);
13456
13470
  }
13457
- function isCliErrorCode(value) {
13458
- return typeof value === "string" && cliErrorCodeValues.has(value);
13459
- }
13460
- function isRetryHint(value) {
13461
- return typeof value === "string" && retryHintValues.has(value);
13462
- }
13463
13471
  function isErrorContext(value) {
13464
13472
  return value !== null && typeof value === "object";
13465
13473
  }
@@ -25027,4 +25035,4 @@ export {
25027
25035
  registerCommands
25028
25036
  };
25029
25037
 
25030
- //# debugId=450B077C0ED5EF6964756E2164756E21
25038
+ //# debugId=EDBC3FA65E19CA3264756E2164756E21
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@uipath/gov-tool",
3
3
  "license": "MIT",
4
- "version": "1.202.0-preview.134",
4
+ "version": "1.202.0-preview.137",
5
5
  "description": "Manage UiPath governance — AOps policies, Access policies, and compliance packs.",
6
6
  "private": false,
7
7
  "repository": {
@@ -23,5 +23,5 @@
23
23
  "files": [
24
24
  "dist"
25
25
  ],
26
- "gitHead": "a335728adbdb02f28308e4f55d8936d0b150444b"
26
+ "gitHead": "bbb20a6d3501afc3435a92af9ae2e9f7ab2e34f6"
27
27
  }