From ede2c05988bd2d6f995d48399c069d3f09c968a7 Mon Sep 17 00:00:00 2001 From: deMGoncalves Date: Tue, 16 Jul 2024 07:51:04 -0300 Subject: [PATCH] refactor: troca do nome para ter mais sinergia com o projeto --- src/{mqtt/mqtt.js => eventConnect/eventConnect.js} | 4 ++-- src/eventConnect/index.js | 1 + src/mqtt/index.js | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) rename src/{mqtt/mqtt.js => eventConnect/eventConnect.js} (94%) create mode 100644 src/eventConnect/index.js delete mode 100644 src/mqtt/index.js diff --git a/src/mqtt/mqtt.js b/src/eventConnect/eventConnect.js similarity index 94% rename from src/mqtt/mqtt.js rename to src/eventConnect/eventConnect.js index 58d313d..563b0d5 100644 --- a/src/mqtt/mqtt.js +++ b/src/eventConnect/eventConnect.js @@ -1,7 +1,7 @@ import attributeChanged from "../attributeChanged"; import trait from "../trait"; -function mqtt(target) { +function eventConnect(target) { const attributeChangedCallback = target.prototype.attributeChangedCallback ?? (() => undefined); @@ -37,4 +37,4 @@ function mqtt(target) { attributeChanged("on")(target.prototype, trait.broker); } -export default mqtt; +export default eventConnect; diff --git a/src/eventConnect/index.js b/src/eventConnect/index.js new file mode 100644 index 0000000..e93d5fe --- /dev/null +++ b/src/eventConnect/index.js @@ -0,0 +1 @@ +export { default } from "./eventConnect"; diff --git a/src/mqtt/index.js b/src/mqtt/index.js deleted file mode 100644 index 9180970..0000000 --- a/src/mqtt/index.js +++ /dev/null @@ -1 +0,0 @@ -export { default } from "./mqtt";