@rogatio/cli 5.17.0 → 5.18.0
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/editor/index.js +17 -22
- package/package.json +1 -1
package/dist/editor/index.js
CHANGED
|
@@ -1844,9 +1844,6 @@ var CREATABLE_RULE_FIELDS = /* @__PURE__ */ new Set([
|
|
|
1844
1844
|
...ACTION_PAYLOAD_FIELDS,
|
|
1845
1845
|
"redactSensitiveInLogs"
|
|
1846
1846
|
]);
|
|
1847
|
-
function isBodyRuleType(type) {
|
|
1848
|
-
return type === "request-body" || type === "response-body";
|
|
1849
|
-
}
|
|
1850
1847
|
function setValueAtPath(root, path, value) {
|
|
1851
1848
|
const segments = decodePointer(path);
|
|
1852
1849
|
if (!segments || segments.length === 0) return false;
|
|
@@ -3937,25 +3934,23 @@ var EditorControllerImpl = class {
|
|
|
3937
3934
|
this.renderField(matcherGrid, "Method", `${rulePath}/method`, method);
|
|
3938
3935
|
matcherFields.append(matcherGrid);
|
|
3939
3936
|
card.append(matcherFields);
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
card.append(redactFieldset);
|
|
3958
|
-
}
|
|
3937
|
+
const redactFieldset = this.document.createElement("fieldset");
|
|
3938
|
+
const redactLegend = this.document.createElement("legend");
|
|
3939
|
+
redactLegend.textContent = "Match logging";
|
|
3940
|
+
redactFieldset.append(redactLegend);
|
|
3941
|
+
const redactGrid = this.document.createElement("div");
|
|
3942
|
+
redactGrid.dataset.editorFields = "true";
|
|
3943
|
+
const redactCheckbox = this.document.createElement("input");
|
|
3944
|
+
redactCheckbox.type = "checkbox";
|
|
3945
|
+
redactCheckbox.checked = rule.redactSensitiveInLogs === true;
|
|
3946
|
+
this.renderField(
|
|
3947
|
+
redactGrid,
|
|
3948
|
+
"Redact sensitive fields in logs",
|
|
3949
|
+
`${rulePath}/redactSensitiveInLogs`,
|
|
3950
|
+
redactCheckbox
|
|
3951
|
+
);
|
|
3952
|
+
redactFieldset.append(redactGrid);
|
|
3953
|
+
card.append(redactFieldset);
|
|
3959
3954
|
if (this.extensions.length > 0) {
|
|
3960
3955
|
const currentType = this.extensions.find(
|
|
3961
3956
|
(e) => e.matches(rule)
|
package/package.json
CHANGED