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