@uipath/solution-sdk 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
@@ -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
- if (state.maxTotalMergeKeys !== -1 && ++state.totalMergeKeys > state.maxTotalMergeKeys) {
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
  }
@@ -8536,7 +8544,7 @@ class TextApiResponse {
8536
8544
  var package_default = {
8537
8545
  name: "@uipath/solution-sdk",
8538
8546
  license: "MIT",
8539
- version: "1.202.0-preview.134",
8547
+ version: "1.202.0-preview.137",
8540
8548
  repository: {
8541
8549
  type: "git",
8542
8550
  url: "https://github.com/UiPath/cli.git",
@@ -14396,6 +14404,14 @@ var RETRY_HINTS = [
14396
14404
  "RetryAfter30Seconds",
14397
14405
  "RetryAfter60Seconds"
14398
14406
  ];
14407
+ var CLI_ERROR_CODE_VALUES = new Set(CLI_ERROR_CODES);
14408
+ var RETRY_HINT_VALUES = new Set(RETRY_HINTS);
14409
+ function isCliErrorCode(value) {
14410
+ return typeof value === "string" && CLI_ERROR_CODE_VALUES.has(value);
14411
+ }
14412
+ function isRetryHint(value) {
14413
+ return typeof value === "string" && RETRY_HINT_VALUES.has(value);
14414
+ }
14399
14415
  var RESULTS = {
14400
14416
  Success: "Success",
14401
14417
  Failure: "Failure",
@@ -15206,8 +15222,6 @@ function emitInvocationRequest(name, success, properties) {
15206
15222
 
15207
15223
  // ../common/src/trackedAction.ts
15208
15224
  var pollSignalSlot = singleton("PollSignal");
15209
- var cliErrorCodeValues = new Set(CLI_ERROR_CODES);
15210
- var retryHintValues = new Set(RETRY_HINTS);
15211
15225
  var TELEMETRY_COMMAND_ARG_PREFIX = "uip.cmd.arg.";
15212
15226
  var TELEMETRY_ARG_VALUE_WITHHELD = "<provided>";
15213
15227
  var TELEMETRY_ARG_VALUE_DEFAULTED = "<default>";
@@ -15286,12 +15300,6 @@ function deriveCommandPath(cmd) {
15286
15300
  }
15287
15301
  return commandTelemetryName(parts);
15288
15302
  }
15289
- function isCliErrorCode(value) {
15290
- return typeof value === "string" && cliErrorCodeValues.has(value);
15291
- }
15292
- function isRetryHint(value) {
15293
- return typeof value === "string" && retryHintValues.has(value);
15294
- }
15295
15303
  function isErrorContext(value) {
15296
15304
  return value !== null && typeof value === "object";
15297
15305
  }
@@ -17893,4 +17901,4 @@ export {
17893
17901
  uploadOrOverwriteSolution
17894
17902
  };
17895
17903
 
17896
- //# debugId=A38BCC706FA7A00264756E2164756E21
17904
+ //# debugId=0922D7C9641F03E864756E2164756E21
@@ -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
  }
@@ -13924,6 +13932,14 @@ var RETRY_HINTS = [
13924
13932
  "RetryAfter30Seconds",
13925
13933
  "RetryAfter60Seconds"
13926
13934
  ];
13935
+ var CLI_ERROR_CODE_VALUES = new Set(CLI_ERROR_CODES);
13936
+ var RETRY_HINT_VALUES = new Set(RETRY_HINTS);
13937
+ function isCliErrorCode(value) {
13938
+ return typeof value === "string" && CLI_ERROR_CODE_VALUES.has(value);
13939
+ }
13940
+ function isRetryHint(value) {
13941
+ return typeof value === "string" && RETRY_HINT_VALUES.has(value);
13942
+ }
13927
13943
  var RESULTS = {
13928
13944
  Success: "Success",
13929
13945
  Failure: "Failure",
@@ -14734,8 +14750,6 @@ function emitInvocationRequest(name, success, properties) {
14734
14750
 
14735
14751
  // ../common/src/trackedAction.ts
14736
14752
  var pollSignalSlot = singleton("PollSignal");
14737
- var cliErrorCodeValues = new Set(CLI_ERROR_CODES);
14738
- var retryHintValues = new Set(RETRY_HINTS);
14739
14753
  var TELEMETRY_COMMAND_ARG_PREFIX = "uip.cmd.arg.";
14740
14754
  var TELEMETRY_ARG_VALUE_WITHHELD = "<provided>";
14741
14755
  var TELEMETRY_ARG_VALUE_DEFAULTED = "<default>";
@@ -14814,12 +14828,6 @@ function deriveCommandPath(cmd) {
14814
14828
  }
14815
14829
  return commandTelemetryName(parts);
14816
14830
  }
14817
- function isCliErrorCode(value) {
14818
- return typeof value === "string" && cliErrorCodeValues.has(value);
14819
- }
14820
- function isRetryHint(value) {
14821
- return typeof value === "string" && retryHintValues.has(value);
14822
- }
14823
14831
  function isErrorContext(value) {
14824
14832
  return value !== null && typeof value === "object";
14825
14833
  }
@@ -33300,4 +33308,4 @@ export {
33300
33308
  writeSolutionFile
33301
33309
  };
33302
33310
 
33303
- //# debugId=E3962233AAC026A164756E2164756E21
33311
+ //# debugId=A122757AB33BF19D64756E2164756E21
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@uipath/solution-sdk",
3
3
  "license": "MIT",
4
- "version": "1.202.0-preview.134",
4
+ "version": "1.202.0-preview.137",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/UiPath/cli.git",
@@ -39,5 +39,5 @@
39
39
  "dist"
40
40
  ],
41
41
  "private": false,
42
- "gitHead": "a335728adbdb02f28308e4f55d8936d0b150444b"
42
+ "gitHead": "bbb20a6d3501afc3435a92af9ae2e9f7ab2e34f6"
43
43
  }