@rkmodules/rules 0.0.136 → 0.0.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.esm.js CHANGED
@@ -6654,9 +6654,13 @@ var OutputNode = React.memo(function (_a) {
6654
6654
  newName = _b.sent();
6655
6655
  if (newName !== null && newName !== oldName) {
6656
6656
  (_a = data.onIOChange) === null || _a === void 0 ? void 0 : _a.call(data, function (fn) {
6657
+ var keys = Object.keys(fn.outputs || {});
6658
+ var newKeys = keys.map(function (key) {
6659
+ return key === oldName ? newName : key;
6660
+ });
6657
6661
  var outputs = __assign({}, fn.outputs);
6658
6662
  outputs[newName] = outputs[oldName];
6659
- delete outputs[oldName];
6663
+ outputs = Object.fromEntries(newKeys.map(function (key) { return [key, outputs[key]]; }));
6660
6664
  return { outputs: outputs };
6661
6665
  });
6662
6666
  }