@uipath/gov-tool 1.202.0-preview.134 → 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.
- package/dist/tool.js +13 -5
- 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
|
-
|
|
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.
|
|
8179
|
+
version: "1.202.0-preview.136",
|
|
8172
8180
|
description: "Manage UiPath governance — AOps policies, Access policies, and compliance packs.",
|
|
8173
8181
|
private: false,
|
|
8174
8182
|
repository: {
|
|
@@ -25027,4 +25035,4 @@ export {
|
|
|
25027
25035
|
registerCommands
|
|
25028
25036
|
};
|
|
25029
25037
|
|
|
25030
|
-
//# debugId=
|
|
25038
|
+
//# debugId=FA0266DED83A3D3964756E2164756E21
|
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.
|
|
4
|
+
"version": "1.202.0-preview.136",
|
|
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": "
|
|
26
|
+
"gitHead": "f6270de2c7c04f4c43b2f5187b0c3d3c314c2610"
|
|
27
27
|
}
|