@startinblox/boilerplate 6.0.5 → 6.0.6

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.js CHANGED
@@ -675,12 +675,12 @@ class _ extends lt {
675
675
  document.readyState === "complete" ? r() : document.addEventListener("readystatechange", r);
676
676
  }
677
677
  async _attach(t, e, i) {
678
- if (!this.orbit && window.orbit && (this.orbit = window.orbit, e)) {
679
- if (Ae({
678
+ if (!this.orbit && window.orbit) {
679
+ if (this.orbit = window.orbit, e && (Ae({
680
680
  component: this,
681
681
  defaultRoute: t,
682
682
  ignoreRouter: i
683
- }), this.route && (this.component = this.orbit.getComponentFromRoute(this.route), this.component))
683
+ }), this.route && (this.component = this.orbit.getComponentFromRoute(this.route), this.component)))
684
684
  for (const r of this.orbit.components)
685
685
  r.uniq === this.component.uniq && (r.instance = this);
686
686
  return await this._afterAttach(), this.ready = !0, this.dispatchEvent(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startinblox/boilerplate",
3
- "version": "6.0.5",
3
+ "version": "6.0.6",
4
4
  "description": "Startin'blox Boilerplate",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -98,20 +98,19 @@ export default class extends ComponentObjectsHandler {
98
98
  }
99
99
  }
100
100
  }
101
-
102
- await this._afterAttach();
103
-
104
- this.ready = true;
105
- this.dispatchEvent(
106
- new CustomEvent("component-ready", {
107
- detail: {
108
- component: this.component,
109
- },
110
- }),
111
- );
112
-
113
- return Promise.resolve(true);
114
101
  }
102
+ await this._afterAttach();
103
+
104
+ this.ready = true;
105
+ this.dispatchEvent(
106
+ new CustomEvent("component-ready", {
107
+ detail: {
108
+ component: this.component,
109
+ },
110
+ }),
111
+ );
112
+
113
+ return Promise.resolve(true);
115
114
  }
116
115
  }
117
116
  return Promise.resolve(false);