@uipath/apms-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.
package/dist/index.js
CHANGED
|
@@ -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
|
-
|
|
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=
|
|
3153
|
+
//# debugId=87463FE309AE7C9C64756E2164756E21
|
|
@@ -2100,7 +2100,7 @@ var require_commander = __commonJS(function(exports) {
|
|
|
2100
2100
|
var package_default = {
|
|
2101
2101
|
name: "@uipath/apms-tool",
|
|
2102
2102
|
license: "MIT",
|
|
2103
|
-
version: "1.202.0-preview.
|
|
2103
|
+
version: "1.202.0-preview.137",
|
|
2104
2104
|
description: "CLI plugin for the UiPath Access Policy Management Service.",
|
|
2105
2105
|
private: false,
|
|
2106
2106
|
repository: {
|
|
@@ -6233,7 +6233,7 @@ var jmespathSlot = singleton("JmespathCodec");
|
|
|
6233
6233
|
async function loadOutputCodecsAsync(needed) {
|
|
6234
6234
|
const loads = [];
|
|
6235
6235
|
if (needed.yaml && yamlSlot.get() === undefined) {
|
|
6236
|
-
loads.push(import("./js-yaml-
|
|
6236
|
+
loads.push(import("./js-yaml-71wj4em9.js").then((mod) => {
|
|
6237
6237
|
yamlSlot.set(mod);
|
|
6238
6238
|
}));
|
|
6239
6239
|
}
|
|
@@ -7132,6 +7132,14 @@ var RETRY_HINTS = [
|
|
|
7132
7132
|
"RetryAfter30Seconds",
|
|
7133
7133
|
"RetryAfter60Seconds"
|
|
7134
7134
|
];
|
|
7135
|
+
var CLI_ERROR_CODE_VALUES = new Set(CLI_ERROR_CODES);
|
|
7136
|
+
var RETRY_HINT_VALUES = new Set(RETRY_HINTS);
|
|
7137
|
+
function isCliErrorCode(value) {
|
|
7138
|
+
return typeof value === "string" && CLI_ERROR_CODE_VALUES.has(value);
|
|
7139
|
+
}
|
|
7140
|
+
function isRetryHint(value) {
|
|
7141
|
+
return typeof value === "string" && RETRY_HINT_VALUES.has(value);
|
|
7142
|
+
}
|
|
7135
7143
|
var RESULTS = {
|
|
7136
7144
|
Success: "Success",
|
|
7137
7145
|
Failure: "Failure",
|
|
@@ -7935,8 +7943,6 @@ function emitInvocationRequest(name, success, properties) {
|
|
|
7935
7943
|
|
|
7936
7944
|
// ../../common/src/trackedAction.ts
|
|
7937
7945
|
var pollSignalSlot = singleton("PollSignal");
|
|
7938
|
-
var cliErrorCodeValues = new Set(CLI_ERROR_CODES);
|
|
7939
|
-
var retryHintValues = new Set(RETRY_HINTS);
|
|
7940
7946
|
var TELEMETRY_COMMAND_ARG_PREFIX = "uip.cmd.arg.";
|
|
7941
7947
|
var processContext = {
|
|
7942
7948
|
exit: (code) => {
|
|
@@ -8024,12 +8030,6 @@ function deriveCommandPath(cmd) {
|
|
|
8024
8030
|
}
|
|
8025
8031
|
return commandTelemetryName(parts);
|
|
8026
8032
|
}
|
|
8027
|
-
function isCliErrorCode(value) {
|
|
8028
|
-
return typeof value === "string" && cliErrorCodeValues.has(value);
|
|
8029
|
-
}
|
|
8030
|
-
function isRetryHint(value) {
|
|
8031
|
-
return typeof value === "string" && retryHintValues.has(value);
|
|
8032
|
-
}
|
|
8033
8033
|
function isErrorContext(value) {
|
|
8034
8034
|
return value !== null && typeof value === "object";
|
|
8035
8035
|
}
|
|
@@ -9546,4 +9546,4 @@ var registerCommands = async (program2) => {
|
|
|
9546
9546
|
|
|
9547
9547
|
export { Command, metadata, registerCommands };
|
|
9548
9548
|
|
|
9549
|
-
//# debugId=
|
|
9549
|
+
//# debugId=32B21BDD1905978664756E2164756E21
|
package/dist/tool.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/apms-tool",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "1.202.0-preview.
|
|
4
|
+
"version": "1.202.0-preview.137",
|
|
5
5
|
"description": "CLI plugin for the UiPath Access Policy Management Service.",
|
|
6
6
|
"private": false,
|
|
7
7
|
"repository": {
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"files": [
|
|
27
27
|
"dist"
|
|
28
28
|
],
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "bbb20a6d3501afc3435a92af9ae2e9f7ab2e34f6"
|
|
30
30
|
}
|