@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.
@@ -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
- if (!isBodyRuleType(rule.type)) {
3941
- const redactFieldset = this.document.createElement("fieldset");
3942
- const redactLegend = this.document.createElement("legend");
3943
- redactLegend.textContent = "Match logging";
3944
- redactFieldset.append(redactLegend);
3945
- const redactGrid = this.document.createElement("div");
3946
- redactGrid.dataset.editorFields = "true";
3947
- const redactCheckbox = this.document.createElement("input");
3948
- redactCheckbox.type = "checkbox";
3949
- redactCheckbox.checked = rule.redactSensitiveInLogs === true;
3950
- this.renderField(
3951
- redactGrid,
3952
- "Redact sensitive fields in logs",
3953
- `${rulePath}/redactSensitiveInLogs`,
3954
- redactCheckbox
3955
- );
3956
- redactFieldset.append(redactGrid);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rogatio/cli",
3
- "version": "5.17.0",
3
+ "version": "5.18.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Local-first browser request and response rules — editor host, file verification, test runner, and runtime dispatch.",