@uipath/authz-commands 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 CHANGED
@@ -5746,7 +5746,7 @@ var jmespathSlot = singleton("JmespathCodec");
5746
5746
  async function loadOutputCodecsAsync(needed) {
5747
5747
  const loads = [];
5748
5748
  if (needed.yaml && yamlSlot.get() === undefined) {
5749
- loads.push(import("./js-yaml-ac3y4ax7.js").then((mod) => {
5749
+ loads.push(import("./js-yaml-71wj4em9.js").then((mod) => {
5750
5750
  yamlSlot.set(mod);
5751
5751
  }));
5752
5752
  }
@@ -6645,6 +6645,14 @@ var RETRY_HINTS = [
6645
6645
  "RetryAfter30Seconds",
6646
6646
  "RetryAfter60Seconds"
6647
6647
  ];
6648
+ var CLI_ERROR_CODE_VALUES = new Set(CLI_ERROR_CODES);
6649
+ var RETRY_HINT_VALUES = new Set(RETRY_HINTS);
6650
+ function isCliErrorCode(value) {
6651
+ return typeof value === "string" && CLI_ERROR_CODE_VALUES.has(value);
6652
+ }
6653
+ function isRetryHint(value) {
6654
+ return typeof value === "string" && RETRY_HINT_VALUES.has(value);
6655
+ }
6648
6656
  var RESULTS = {
6649
6657
  Success: "Success",
6650
6658
  Failure: "Failure",
@@ -7448,8 +7456,6 @@ function emitInvocationRequest(name, success, properties) {
7448
7456
 
7449
7457
  // ../../common/src/trackedAction.ts
7450
7458
  var pollSignalSlot = singleton("PollSignal");
7451
- var cliErrorCodeValues = new Set(CLI_ERROR_CODES);
7452
- var retryHintValues = new Set(RETRY_HINTS);
7453
7459
  var TELEMETRY_COMMAND_ARG_PREFIX = "uip.cmd.arg.";
7454
7460
  var processContext = {
7455
7461
  exit: (code) => {
@@ -7537,12 +7543,6 @@ function deriveCommandPath(cmd) {
7537
7543
  }
7538
7544
  return commandTelemetryName(parts);
7539
7545
  }
7540
- function isCliErrorCode(value) {
7541
- return typeof value === "string" && cliErrorCodeValues.has(value);
7542
- }
7543
- function isRetryHint(value) {
7544
- return typeof value === "string" && retryHintValues.has(value);
7545
- }
7546
7546
  function isErrorContext(value) {
7547
7547
  return value !== null && typeof value === "object";
7548
7548
  }
@@ -10626,4 +10626,4 @@ export {
10626
10626
  registerCommands
10627
10627
  };
10628
10628
 
10629
- //# debugId=35532A8330E0B88D64756E2164756E21
10629
+ //# debugId=D8D415C59698A13E64756E2164756E21
@@ -1334,16 +1334,21 @@ function requireLoader() {
1334
1334
  state.result += _result;
1335
1335
  }
1336
1336
  }
1337
+ function chargeMergeWork(state) {
1338
+ state.totalMergeKeys++;
1339
+ if (state.maxTotalMergeKeys !== -1 && state.totalMergeKeys > state.maxTotalMergeKeys) {
1340
+ throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
1341
+ }
1342
+ }
1337
1343
  function mergeMappings(state, destination, source, overridableKeys) {
1338
1344
  if (!common2.isObject(source)) {
1339
1345
  throwError(state, "cannot merge mappings; the provided source object is unacceptable");
1340
1346
  }
1347
+ chargeMergeWork(state);
1341
1348
  const sourceKeys = Object.keys(source);
1342
1349
  for (let index = 0, quantity = sourceKeys.length;index < quantity; index += 1) {
1343
1350
  const key = sourceKeys[index];
1344
- if (state.maxTotalMergeKeys !== -1 && ++state.totalMergeKeys > state.maxTotalMergeKeys) {
1345
- throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
1346
- }
1351
+ chargeMergeWork(state);
1347
1352
  if (!_hasOwnProperty.call(destination, key)) {
1348
1353
  setProperty(destination, key, source[key]);
1349
1354
  overridableKeys[key] = true;
@@ -1371,6 +1376,9 @@ function requireLoader() {
1371
1376
  }
1372
1377
  if (keyTag === "tag:yaml.org,2002:merge") {
1373
1378
  if (Array.isArray(valueNode)) {
1379
+ if (valueNode.length > 100) {
1380
+ throwError(state, "abnormal merge sequence size");
1381
+ }
1374
1382
  for (let index = 0, quantity = valueNode.length;index < quantity; index += 1) {
1375
1383
  mergeMappings(state, _result, valueNode[index], overridableKeys);
1376
1384
  }
@@ -3142,4 +3150,4 @@ export {
3142
3150
  types
3143
3151
  };
3144
3152
 
3145
- //# debugId=013F44E69BAB139B64756E2164756E21
3153
+ //# debugId=87463FE309AE7C9C64756E2164756E21
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@uipath/authz-commands",
3
3
  "license": "MIT",
4
- "version": "1.202.0-preview.134",
4
+ "version": "1.202.0-preview.137",
5
5
  "description": "Admin CLI commands for the UiPath Authorization service. Library composed by admin-tool, not a standalone CLI tool.",
6
6
  "private": false,
7
7
  "repository": {
@@ -25,15 +25,5 @@
25
25
  "files": [
26
26
  "dist"
27
27
  ],
28
- "devDependencies": {
29
- "@types/bun": "^1.3.11",
30
- "@uipath/auth": "1.202.0",
31
- "@uipath/authz-sdk": "1.202.0",
32
- "@uipath/common": "1.202.0",
33
- "@uipath/filesystem": "1.202.0",
34
- "@uipath/identity-sdk": "1.202.0",
35
- "commander": "^14.0.3",
36
- "typescript": "^7.0.2"
37
- },
38
- "gitHead": "a335728adbdb02f28308e4f55d8936d0b150444b"
28
+ "gitHead": "bbb20a6d3501afc3435a92af9ae2e9f7ab2e34f6"
39
29
  }